Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hooking CoCreateInstance / CoGetClassObject Pin
Michael Dunn29-Mar-05 5:35
sitebuilderMichael Dunn29-Mar-05 5:35 
GeneralRe: Hooking CoCreateInstance / CoGetClassObject Pin
Joel Lucsy29-Mar-05 13:03
Joel Lucsy29-Mar-05 13:03 
QuestionHow to compare two images using cximage Pin
Madhurya29-Mar-05 4:54
Madhurya29-Mar-05 4:54 
AnswerRe: How to compare two images using cximage Pin
Ted Ferenc29-Mar-05 5:23
Ted Ferenc29-Mar-05 5:23 
AnswerRe: How to compare two images using cximage Pin
Chris Losinger29-Mar-05 10:01
professionalChris Losinger29-Mar-05 10:01 
AnswerRe: How to compare two images using cximage Pin
John R. Shaw30-Mar-05 9:09
John R. Shaw30-Mar-05 9:09 
Generalproblem with MFC DLL Pin
eli1502197929-Mar-05 3:47
eli1502197929-Mar-05 3:47 
GeneralRe: problem with MFC DLL Pin
Blake Miller29-Mar-05 5:27
Blake Miller29-Mar-05 5:27 
I would first like to mention that your specific problem has nothing to do with the MFC DLL. You have the same problem if it was a regualr' NOn-MFC' DLL.

You need to make the function signatures match the pascal calling convention.

I usually give all regular 'C' functions exported from a DLL the pascal calling convention, unless otherwise required. One exception, for example, is if the function has a variable number of arguments.

Especially since you declared that the function has this signature:
typedef int (CALLBACK* FLRInitializeIP_PROCCESS)(IPStruct* ,int);

And in WTYPES.H there is this definition:
#define CALLBACK FAR PASCAL

You need to define the function ion the DLL with the same signature, like this:

#define TCPDLL_API __declspec(dllexport)
TCPDLL_API int WINAPI FLRInitializeIP(IPStruct *Server,int num_of_radars);

TCPDLL_API int WINAPI FLRInitializeIP(IPStruct *Server , int num_of_radars){
GeneralRe: problem with MFC DLL Pin
eli150219791-Apr-05 0:05
eli150219791-Apr-05 0:05 
GeneralRe: problem with MFC DLL Pin
Blake Miller1-Apr-05 4:09
Blake Miller1-Apr-05 4:09 
GeneralHELP!!! Pin
shulflem29-Mar-05 3:46
shulflem29-Mar-05 3:46 
GeneralRe: HELP!!! Pin
Alexander M.,29-Mar-05 5:37
Alexander M.,29-Mar-05 5:37 
GeneralRe: HELP!!! Pin
ThatsAlok29-Mar-05 17:59
ThatsAlok29-Mar-05 17:59 
GeneralRe: HELP!!! Pin
ThatsAlok29-Mar-05 18:04
ThatsAlok29-Mar-05 18:04 
GeneralHELP!!! Pin
Anonymous29-Mar-05 3:45
Anonymous29-Mar-05 3:45 
GeneralCMSHFlexGrid How Move .... Pin
ivax29-Mar-05 2:28
ivax29-Mar-05 2:28 
GeneralUser Password Pin
Anonymous29-Mar-05 1:44
Anonymous29-Mar-05 1:44 
GeneralRe: User Password Pin
bosfan29-Mar-05 1:49
bosfan29-Mar-05 1:49 
GeneralRe: User Password Pin
Blake Miller29-Mar-05 5:30
Blake Miller29-Mar-05 5:30 
GeneralRe: User Password Pin
Michael Dunn29-Mar-05 5:40
sitebuilderMichael Dunn29-Mar-05 5:40 
GeneralRe: User Password Pin
bosfan29-Mar-05 20:06
bosfan29-Mar-05 20:06 
GeneralRe: User Password Pin
deldeep29-Mar-05 20:41
deldeep29-Mar-05 20:41 
GeneralRe: User Password Pin
bosfan30-Mar-05 1:05
bosfan30-Mar-05 1:05 
GeneralCompatabilty between windows 95 &windows 98 device drivers Pin
Neha.marwaha29-Mar-05 1:18
Neha.marwaha29-Mar-05 1:18 
GeneralRe: Compatabilty between windows 95 &windows 98 device drivers Pin
Alexander M.,29-Mar-05 2:55
Alexander M.,29-Mar-05 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.