Doomulation
?????????????????????????
I know it's possible to call c++ functions from VB. Especially self-made ones.
However, no matter how i try now, i can't get it to work.
Basically, i'm trying to send a string to a c++ dll function.
But the result is that the function doesn't recieve it.
C++ Code:
VB Code:
Whatever i try to send, it isn't recieved by the c++ function. It's always the same data that you get. There's no problem compiling or linking the project.
Any tips? Any suggestions? Any help? Anyone know?
However, no matter how i try now, i can't get it to work.
Basically, i'm trying to send a string to a c++ dll function.
But the result is that the function doesn't recieve it.
C++ Code:
PHP:
extern "C" int PASCAL EXPORT Bah(char* test)
{
MessageBox(0,(LPCTSTR)test,"",MB_OK);
return 0;
}
VB Code:
PHP:
Private Declare Sub Bah Lib "..." (str as String)
Private Sub Form_Load()
Bah "test"
End Sub
Whatever i try to send, it isn't recieved by the c++ function. It's always the same data that you get. There's no problem compiling or linking the project.
Any tips? Any suggestions? Any help? Anyone know?