Click here to Skip to main content
15,920,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstatic constant template member problems Pin
Andras Zoltan18-Sep-04 12:17
Andras Zoltan18-Sep-04 12:17 
GeneralRe: static constant template member problems Pin
Michael Dunn18-Sep-04 12:56
sitebuilderMichael Dunn18-Sep-04 12:56 
GeneralRe: static constant template member problems Pin
Andras Zoltan19-Sep-04 3:08
Andras Zoltan19-Sep-04 3:08 
GeneralRe: static constant template member problems Pin
Michael Dunn19-Sep-04 11:50
sitebuilderMichael Dunn19-Sep-04 11:50 
GeneralRe: static constant template member problems Pin
Andras Zoltan20-Sep-04 12:25
Andras Zoltan20-Sep-04 12:25 
GeneralRe: static constant template member problems Pin
Michael Dunn20-Sep-04 12:36
sitebuilderMichael Dunn20-Sep-04 12:36 
Questionhow to remove MDI doc template Pin
Igemon18-Sep-04 11:22
Igemon18-Sep-04 11:22 
GeneralDLL debug error message.. Pin
Laing,James18-Sep-04 10:38
Laing,James18-Sep-04 10:38 
Hi.

I am quite new to windows and MFC programming and I have over the last few months, been developing an application that 'does stuff'.

Now, I have decided that given the design, it would be much more suited to the 'DLL' concept. So, I would like to convert the application to a client/server approach.

So, with a view to testing some of the 'needed' functionality, I created a very simple client and server.

One or both client(s) and server require the use of MFC, that is to say, neither derive classes from MFC but the server uses MFC functions; CString, Afx.. stuff. The client may also use MFC stuff CString etc..

Before I describe the problem, it might, but I dont know if it is relevent to note that both client and server link in MFC dynamically.

Anyway, I define a very simple server function that accepts an LPCTSTR which it should display in a message box.

However, I keep getting the same debug error after the call from the client to the server completes:

Debug Error!
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a differnt calling convention.

I have tried all sorts of combinations of call conventions and I have now hit a brick wall.

Any advice or pointers would be much appreciated.

Best regards.
James.

GeneralRe: DLL debug error message.. Pin
Tim Smith18-Sep-04 19:17
Tim Smith18-Sep-04 19:17 
GeneralRe: DLL debug error message.. Pin
cmk18-Sep-04 21:17
cmk18-Sep-04 21:17 
QuestionDialog to Tray? Pin
Larsson18-Sep-04 9:44
Larsson18-Sep-04 9:44 
Generaldisplaying the cursor Pin
Member 117092518-Sep-04 9:29
Member 117092518-Sep-04 9:29 
GeneralAdvice needed for a DB project. Pin
crimsongrape18-Sep-04 8:48
crimsongrape18-Sep-04 8:48 
GeneralRe: Advice needed for a DB project. Pin
cmk18-Sep-04 21:25
cmk18-Sep-04 21:25 
GeneralON_CHANGE of CRicheditCtrl works abnormality in windows 98 Pin
Anonymous18-Sep-04 5:57
Anonymous18-Sep-04 5:57 
GeneralTake answer from a user then go to certain string Pin
intilli18-Sep-04 4:43
intilli18-Sep-04 4:43 
QuestionDialog q? Pin
Larsson18-Sep-04 3:29
Larsson18-Sep-04 3:29 
AnswerRe: Dialog q? Pin
Ravi Bhavnani18-Sep-04 7:19
professionalRavi Bhavnani18-Sep-04 7:19 
GeneralRe: Dialog q? Pin
User 665818-Sep-04 7:34
User 665818-Sep-04 7:34 
GeneralRe: Dialog q? Pin
Larsson18-Sep-04 7:50
Larsson18-Sep-04 7:50 
GeneralSmart Card SDK Pin
jsaroj17-Sep-04 20:56
jsaroj17-Sep-04 20:56 
GeneralRe: Smart Card SDK Pin
ThatsAlok17-Sep-04 23:05
ThatsAlok17-Sep-04 23:05 
GeneralGDI Pin
pdtrung17-Sep-04 17:17
pdtrung17-Sep-04 17:17 
GeneralDLL being freed Pin
0v3rloader17-Sep-04 14:15
0v3rloader17-Sep-04 14:15 
GeneralRe: DLL being freed Pin
cmk17-Sep-04 20:30
cmk17-Sep-04 20:30 

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.