Click here to Skip to main content
15,913,944 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Run-Time Check Failure Pin
George_George3-Oct-08 0:14
George_George3-Oct-08 0:14 
GeneralRe: Run-Time Check Failure Pin
toxcct3-Oct-08 0:22
toxcct3-Oct-08 0:22 
GeneralRe: Run-Time Check Failure Pin
George_George3-Oct-08 0:37
George_George3-Oct-08 0:37 
AnswerRe: Run-Time Check Failure Pin
Cedric Moonen1-Oct-08 0:17
Cedric Moonen1-Oct-08 0:17 
GeneralRe: Run-Time Check Failure Pin
George_George1-Oct-08 0:23
George_George1-Oct-08 0:23 
GeneralRe: Run-Time Check Failure Pin
Cedric Moonen1-Oct-08 0:53
Cedric Moonen1-Oct-08 0:53 
GeneralRe: Run-Time Check Failure Pin
George_George1-Oct-08 1:01
George_George1-Oct-08 1:01 
GeneralRe: Run-Time Check Failure Pin
Cedric Moonen1-Oct-08 1:12
Cedric Moonen1-Oct-08 1:12 
I suggest you read a bit more about calling conventions to understand what it is exactly (basically, this defines who, of the caller or the callee, will clean the stack after the function terminates). By default, C++ uses a __cdecl calling convention. In your dll, you explicitely stated that your functions should follow the __stdcall convention. If in your executable (in your typedef), you don't specify that the function uses a __stdcall calling convention, there's no way for your executable to know that, so it will uses the __cdecl as usual, thus your crash.

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

GeneralRe: Run-Time Check Failure Pin
George_George3-Oct-08 0:12
George_George3-Oct-08 0:12 
GeneralRe: Run-Time Check Failure Pin
Cedric Moonen3-Oct-08 1:42
Cedric Moonen3-Oct-08 1:42 
GeneralRe: Run-Time Check Failure Pin
George_George3-Oct-08 1:51
George_George3-Oct-08 1:51 
QuestionSystem Volume Information folder Pin
john563230-Sep-08 23:01
john563230-Sep-08 23:01 
AnswerRepost: System Volume Information folder Pin
Iain Clarke, Warrior Programmer1-Oct-08 5:03
Iain Clarke, Warrior Programmer1-Oct-08 5:03 
GeneralRe: Repost: System Volume Information folder Pin
Michael Schubert1-Oct-08 5:27
Michael Schubert1-Oct-08 5:27 
AnswerRe: System Volume Information folder Pin
Michael Schubert1-Oct-08 5:29
Michael Schubert1-Oct-08 5:29 
GeneralRe: System Volume Information folder Pin
john56322-Oct-08 20:40
john56322-Oct-08 20:40 
GeneralRe: System Volume Information folder Pin
Michael Schubert2-Oct-08 22:26
Michael Schubert2-Oct-08 22:26 
QuestionHow to change the number of bits per pixel of BMP file? Pin
hanlei000000000930-Sep-08 22:59
hanlei000000000930-Sep-08 22:59 
AnswerRe: How to change the number of bits per pixel of BMP file? Pin
Naveen30-Sep-08 23:22
Naveen30-Sep-08 23:22 
QuestionDebug Assertion Failed... Pin
RYU^^30-Sep-08 21:34
RYU^^30-Sep-08 21:34 
AnswerRe: Debug Assertion Failed... Pin
Roger Stoltz30-Sep-08 23:58
Roger Stoltz30-Sep-08 23:58 
GeneralRe: Debug Assertion Failed... Pin
RYU^^1-Oct-08 13:50
RYU^^1-Oct-08 13:50 
AnswerRe: Debug Assertion Failed... Pin
Roger Stoltz1-Oct-08 20:05
Roger Stoltz1-Oct-08 20:05 
Questionwarning C4503 in using multimap <wstring,wstring> map1 Pin
preeti sharma30-Sep-08 20:58
preeti sharma30-Sep-08 20:58 
AnswerRe: warning C4503 in using multimap <wstring,wstring> map1 Pin
Cedric Moonen30-Sep-08 21:00
Cedric Moonen30-Sep-08 21:00 

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.