CompuServe Messages

#BAD DLL CALLING CONVENT.

    04-Oct-91 10:42:15
Fm: John Ruzicka 75160,2376
To: Jonathan Zuck (UFI) 76702,1605
THanks for the help, actually, no need to zip the code–it's short. I was just playing to see if I could do it. Here's the Code BC++ ————#include <stdio.h> #include <windows.h> extern "C" int Chowmain(void); int FAR PASCAL LibMain(HANDLE One,WORD Two,WORD Three,LPSTR Four) { return 1; } int Chowmain(void) { return 1; } VB GLOBAL FILE ———Declare Function Chowmain Lib "d:\vb\john.dll" I also tried Declare Function Chowmain Lib "d:\vb\john.dll" Alias "_Chowmain" () (parents should be after first declaration, too). In addition, in CPP source file, I used _export before function name, and also tried using 'extern "C" int FAR PASCAL Libmain…' Thanks, John There is 1 Reply.