|
-
Jul 28th, 2001, 11:44 PM
#1
Thread Starter
New Member
C++ Builder DLL
I cant get a simple C++ Builder DLL to return a string into Visual Basic
The C++ Builder DLL Function Code is this:
extern "C" __declspec (dllexport) __stdcall char* ReturnHello()
{
char* NewString = "hEllo WoRLd!";
return NewString;
}
the VB side is:
Private Declare Function ReturnHello Lib "mylib" () As String
private sub form_load()
msgbox retunrHello
end sub
it keeps coming up with error 96, conflicting type modifiers, Help, please, someone.....
ICQ# 96929314
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
|