————————————————————————— VC Part ————————————————————————————————————— Statement********************************************************************************************************extern "C"_declspec (dllexport) [] _stdcall []********************************************************************************************************DllMain Code Fill section:********************************************************************************************************BOOL apientry DllMain (HANDLE hmodule, DWORD Ul_reason_for_call, LPVOID lpreserved) {Switch(ul_reason_for_call) { CaseDll_process_attach: CaseDll_thread_attach: CaseDll_thread_detach: CaseDll_process_detach: Break; } returnTRUE;} ——————————————————————————— VB part ————————————————————————————— statement********************************************************************************************************( Public/Private/) Declare Function [] Lib"[path]"Alias"[DLL formerly]"([parameter table]) as [return type]********************************************************************************************************
VB Call VC DLL function