i think u must declare dll as __stdcall ( standed c )such asPublic Declare Sub MyFunc Lib "MyVCDLL" ( ByVal a as long )MyFunc 10& __declspec( dllexport ) void __stdcall MyFunc( int a ) { }
jennyvenus: Thank you for your reply! ' MyFunc 10& ' ' __declspec( dllexport ) void __stdcall MyFunc( int a ) ' { ' } what's mean? write in DLL source or Define a function in VB??
Public Declare Sub MyFunc Lib "MyVCDLL" ( ByVal a as long )this is vb dll declare ============================================================= MyFunc 10&this is vb call dll =============================================================== __declspec( dllexport ) void __stdcall MyFunc( int a ) { } this is vc implement, it work good under my env.
this Dll is create by others!now I can change the dll!can i use this dll in my VB application???Help!!!!
Thank you for your reply!
' MyFunc 10&
'
' __declspec( dllexport ) void __stdcall MyFunc( int a )
' {
' } what's mean? write in DLL source or Define a function in VB??
=============================================================
MyFunc 10&this is vb call dll
=============================================================== __declspec( dllexport ) void __stdcall MyFunc( int a )
{
}
this is vc implement, it work good under my env.