Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 853455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:45:43+00:00 2026-05-15T07:45:43+00:00

I have been attemptng to create a DLL with C/C++ that can be accessed

  • 0

I have been attemptng to create a DLL with C/C++ that can be accessed by VB6, and that’s right I get error “453 Can’t find DLL entry point myFunctionName in myDllName.dll” upon calling the function from a VB6 app.
After searching the Web, including this site, I see that I am not alone, and I have tried the various solutions posted but error “453” is unexcapable.
This is Not a COMM dll, and I believe that is possible when created via C/C++.
In any case, please help, if you can. Please refer to the following simple test case below:

The DLL created as a C/C++ 6.00 Win32 Dynamic-Link Library:

#include <Windows.h>   

// Note that I did try the line below rather than the def file, but to no avail...  
// #pragma comment(linker, "/EXPORT:ibask32=_ibask32@0")

// Function definition   
extern "C" int __declspec(dllexport) __stdcall ibask32()   
{   
    MessageBox(NULL,"String","Sample Code", NULL);   
    return 0L;   
}   

The def file:

LIBRARY "Gpib-32"
EXPORTS   
ibask32

Now for the VB App:

The following is the entire content of the startup Form1, Form_Load

Option Explicit
 Private Sub Form_Load()
  Call ibask
 End Sub

The following is a BAS module file that is added to the project:

Option Explicit

Declare Function ibask32 Lib "Gpib-32.dll" Alias "ibask" () As Long

Sub ibask()

    Call ibask32   ' Note: This is the point of failure

End Sub

Thanks in advance if a workable solution can be provided,
Tom

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:45:44+00:00Added an answer on May 15, 2026 at 7:45 am

    You are doing everything right as near as I can tell. Verify your assumptions by running Dumpbin.exe /exports on the DLL. That shows the actual name of the exported function, it has to match the Alias in the VB6 declaration.

    The only other failure mode I can think of is VB6 loading the wrong DLL. It has to be present in a directory listed on the PATH if you want to use it from the VB6 IDE. Verify by running “where gpib-32.dll” from the command line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have been looking at the MVC storefront and see that IQueryable is returned from
I'm attempting to create a NotifyIcon that can be inherited so that I can
I'm attempting to create a CodeActivity object that will register a DLL on a
I have been trying to create a new file inside of my application support
I have recently started work on a project that has already been running for
I have been attempting to write some routines to read RSS and ATOM feeds
Have been studying the file system related classes of Adobe AIR 1.5, but so
We have been using CruiseControl for quite a while with NUnit and NAnt. For
I have been experimenting with woopra.com A web analytics tool. Which requires a piece
I have been working on a web services related project for about the last

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.