Click here to Skip to main content
15,906,628 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFinding the TEMP directory? Pin
jfaulken11-Nov-01 11:51
jfaulken11-Nov-01 11:51 
AnswerRe: Finding the TEMP directory? Pin
Michael Dunn11-Nov-01 12:50
sitebuilderMichael Dunn11-Nov-01 12:50 
GeneralCTreeCtrl Drag and Drop Pin
11-Nov-01 11:34
suss11-Nov-01 11:34 
GeneralRe: CTreeCtrl Drag and Drop Pin
Tomasz Sowinski11-Nov-01 23:29
Tomasz Sowinski11-Nov-01 23:29 
GeneralRe: CTreeCtrl Drag and Drop Pin
12-Nov-01 12:22
suss12-Nov-01 12:22 
GeneralGetting parameters to DLL function dont success ! Please HELP !!! Pin
11-Nov-01 8:15
suss11-Nov-01 8:15 
GeneralRe: Getting parameters to DLL function dont success ! Please HELP !!! Pin
Mukkie11-Nov-01 9:54
Mukkie11-Nov-01 9:54 
GeneralRe: Getting parameters to DLL function dont success ! Please HELP !!! Pin
Mike Burston11-Nov-01 10:56
Mike Burston11-Nov-01 10:56 
Have you checked the expected size of the returned type in your Delphi declararion ?

The function you have written [ BOOL func(int n) ] takes a 32-bit value as a parameter, and returns a 32 bit value as a result - BOOL is a typedef for 'int', and therefore takes up 4 bytes, not 1 byte like 'bool'.

If this is not the problem, the first thing you need to do is determine whether the crash is on the way into tyour function, or on the way out. Add some 'tracing' code (MessageBox, perhaps) to your function as the first and the last lines of the function, and see if the crash happens before or after your function code. Or just use the debugger to watch the DLL! If it's on the way out, then the problem is probably the calling convention - the stack is not being cleared properly.

-----------------------------
"I leave no turn un-stoned." - John Simmons, Nov 6 2001
-----------------------------
GeneralResults , Please : Pin
11-Nov-01 21:17
suss11-Nov-01 21:17 
GeneralCFileDialog opening in detail view Pin
Ulrich Straub11-Nov-01 5:04
Ulrich Straub11-Nov-01 5:04 
GeneralCustomizing webbrowser control Pin
11-Nov-01 4:41
suss11-Nov-01 4:41 
GeneralProtected Storage System Provider Pin
Peter Molnar11-Nov-01 4:00
Peter Molnar11-Nov-01 4:00 
Generala simple mfc question Pin
Dave Kerr11-Nov-01 3:56
Dave Kerr11-Nov-01 3:56 
QuestionGot Focus? Pin
11-Nov-01 0:00
suss11-Nov-01 0:00 
AnswerRe: Got Focus? Pin
Nish Nishant11-Nov-01 16:21
sitebuilderNish Nishant11-Nov-01 16:21 
AnswerRe: Got Focus? Pin
Tomasz Sowinski12-Nov-01 1:28
Tomasz Sowinski12-Nov-01 1:28 
Generaldeclare function in regular dll for delphi Pin
10-Nov-01 22:58
suss10-Nov-01 22:58 
GeneralRe: declare function in regular dll for delphi Pin
Michael Dunn10-Nov-01 23:22
sitebuilderMichael Dunn10-Nov-01 23:22 
GeneralRe: declare function in regular dll for delphi Pin
11-Nov-01 0:19
suss11-Nov-01 0:19 
GeneralOk ! I did so and it dont success Pin
11-Nov-01 2:37
suss11-Nov-01 2:37 
GeneralRe: Ok ! I did so and it dont success Pin
Tomasz Sowinski12-Nov-01 1:37
Tomasz Sowinski12-Nov-01 1:37 
Generalnot processing button clicks Pin
10-Nov-01 22:44
suss10-Nov-01 22:44 
GeneralRe: not processing button clicks Pin
Nish Nishant10-Nov-01 22:47
sitebuilderNish Nishant10-Nov-01 22:47 
GeneralRe: not processing button clicks Pin
Anders Molin11-Nov-01 2:40
professionalAnders Molin11-Nov-01 2:40 
GeneralFlat Window Pin
alton10-Nov-01 14:50
alton10-Nov-01 14:50 

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.