i've read a lot about exporting C++ functions to VB but never had any luck. I keep getting some stupid error like "cannot find DLL entry point". I don';t know what I'm doing wrong.
this is my C++ code
this is my VB code.Code:int __stdcall ThisFunction( int n ){ return n; }
Code:Private Declare Function ThisFunction Lib "ThisLib" (ByVal n As Integer) As Long Private Command1_Click() Print ThisFunction(42) End Sub




Reply With Quote