Click here to Skip to main content
15,892,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DateTime in MFC application Pin
CPallini22-Mar-08 2:35
mveCPallini22-Mar-08 2:35 
GeneralRe: DateTime in MFC application Pin
Paresh Chitte23-Mar-08 23:40
Paresh Chitte23-Mar-08 23:40 
GeneralRe: DateTime in MFC application Pin
Rajkumar R22-Mar-08 0:17
Rajkumar R22-Mar-08 0:17 
GeneralStack register/pointer problem Pin
ForNow21-Mar-08 11:25
ForNow21-Mar-08 11:25 
GeneralRe: Stack register/pointer problem Pin
Arman S.21-Mar-08 13:14
Arman S.21-Mar-08 13:14 
GeneralRe: Stack register/pointer problem Pin
ForNow22-Mar-08 14:35
ForNow22-Mar-08 14:35 
GeneralRe: Stack register/pointer problem Pin
Arman S.23-Mar-08 0:11
Arman S.23-Mar-08 0:11 
GeneralRe: Stack register/pointer problem Pin
ForNow23-Mar-08 2:08
ForNow23-Mar-08 2:08 
I think that (extern "C") and the fact that I was using LOCAL variables between calls to the exported functions might have been the problem (as it now works). Let me explains what I mean by the former


What I had was the follwing
#define MYEXPORT extern "C"

MYEXPORT int a(int c) <--- call DLL export func a
{
int b


.
.
.

return b

}


MYEXPORT int d(int b) <--- Call DLL export function d
{
.
.
.
.
return



Since since "b" was a local variable in a {defined on the stack after the input and output variables

it is storage are is not perserved between Calls

What I did was declare b as "static" I think then b's storage area gets declared in a different area as a Global variable maybe off the the Data Segment register

Anyway this seemed to make it work

Let me know if any of whay I am saying makes sense

Thankx
QuestionHow to reference tlb file in VC++ Pin
Jahnson K21-Mar-08 11:21
Jahnson K21-Mar-08 11:21 
AnswerRe: How to reference tlb file in VC++ Pin
Arman S.21-Mar-08 13:46
Arman S.21-Mar-08 13:46 
GeneralRe: How to reference tlb file in VC++ Pin
Jahnson K25-Mar-08 7:46
Jahnson K25-Mar-08 7:46 
GeneralRe: How to reference tlb file in VC++ Pin
Jahnson K27-Mar-08 13:02
Jahnson K27-Mar-08 13:02 
GeneralUsing resources with subclassed controls. Pin
Amaroqwlf21-Mar-08 8:22
Amaroqwlf21-Mar-08 8:22 
GeneralRe: Using resources with subclassed controls. Pin
Mark Salsbery21-Mar-08 8:41
Mark Salsbery21-Mar-08 8:41 
GeneralRe: Using resources with subclassed controls. Pin
led mike21-Mar-08 9:20
led mike21-Mar-08 9:20 
GeneralRe: Using resources with subclassed controls. Pin
Amaroqwlf21-Mar-08 9:57
Amaroqwlf21-Mar-08 9:57 
GeneralRe: Using resources with subclassed controls. Pin
Mark Salsbery21-Mar-08 10:50
Mark Salsbery21-Mar-08 10:50 
QuestionGetCurrentHwProfile Pin
Joseph Marzbani21-Mar-08 8:16
Joseph Marzbani21-Mar-08 8:16 
GeneralRe: GetCurrentHwProfile Pin
led mike21-Mar-08 8:51
led mike21-Mar-08 8:51 
GeneralRe: GetCurrentHwProfile Pin
David Crow21-Mar-08 10:09
David Crow21-Mar-08 10:09 
GeneralRe: GetCurrentHwProfile Pin
Arman S.21-Mar-08 13:52
Arman S.21-Mar-08 13:52 
Questiontaylor formula Pin
me_10121-Mar-08 8:05
me_10121-Mar-08 8:05 
GeneralGet back in the Soapbox Kyle! Pin
led mike21-Mar-08 8:45
led mike21-Mar-08 8:45 
GeneralRe: taylor formula Pin
malaugh21-Mar-08 9:04
malaugh21-Mar-08 9:04 
QuestionRe: taylor formula Pin
CPallini21-Mar-08 10:40
mveCPallini21-Mar-08 10:40 

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.