|
-
September 3rd, 2004, 04:42 PM
#1
Wrapping C++ functions
I'm trying to call a C++ function in a dll from a GUI I made with Winforms in VS.NET. I'm doing it something like this:
[DllImport("Data.dll")]
private static extern bool IsOpen();
...
static void Main(){
IsOpen();
//do something
}
The error I keep getting is
"Unable to find an entry point named IsOpen in DLL Data.dll"
Since the function is actually CDataApp::IsOpen() in the .dll I tried to make a wrapper function like this:
BOOL IsOpen(){
return theApp.IsOpen();
}
but I get the same error...Any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|