Click here to Skip to main content
15,946,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dll problem unsolved Pin
CPallini20-Apr-08 21:38
mveCPallini20-Apr-08 21:38 
GeneralRe: dll problem unsolved Pin
trioum20-Apr-08 21:48
trioum20-Apr-08 21:48 
GeneralRe: dll problem unsolved Pin
CPallini20-Apr-08 21:56
mveCPallini20-Apr-08 21:56 
GeneralRe: dll problem unsolved Pin
trioum20-Apr-08 22:12
trioum20-Apr-08 22:12 
GeneralRe: dll problem unsolved Pin
CPallini20-Apr-08 22:48
mveCPallini20-Apr-08 22:48 
GeneralRe: dll problem unsolved Pin
KASR120-Apr-08 23:54
KASR120-Apr-08 23:54 
GeneralRe: dll problem unsolved Pin
CPallini21-Apr-08 0:11
mveCPallini21-Apr-08 0:11 
GeneralRe: dll problem unsolved Pin
Sameerkumar Namdeo20-Apr-08 22:16
Sameerkumar Namdeo20-Apr-08 22:16 
Hello Everybody,

I too have a same problem.
[1]having a function ABC(arg1, arg2) in a dll that does not uses MFC.
[2]explicitly loading the dll (through LoadLibrary()).
[3]fetching the address of ABC() by using GetProcAddress(...) and storing it in appropriate function pointer.
[4]calling ABC() through the function pointer.

In DEBUG mode when control reaches the function pointer I get a MessageBox with following message :

The value of ESP was not properly saved across a function call.This is usually a result
of calling a function declared with no calling convention with a function pointer declared
with a different calling convention.

MessageBox does not appears in RELEASE mode.

Regards.
GeneralRe: dll problem unsolved Pin
Randor 20-Apr-08 22:46
professional Randor 20-Apr-08 22:46 
GeneralRe: dll problem unsolved Pin
Sameerkumar Namdeo21-Apr-08 0:19
Sameerkumar Namdeo21-Apr-08 0:19 
GeneralRe: dll problem unsolved Pin
Randor 20-Apr-08 22:28
professional Randor 20-Apr-08 22:28 
GeneralRe: dll problem unsolved Pin
trioum20-Apr-08 22:37
trioum20-Apr-08 22:37 
GeneralBriefcase Pin
john563220-Apr-08 21:05
john563220-Apr-08 21:05 
GeneralRe: Briefcase Pin
Iain Clarke, Warrior Programmer21-Apr-08 3:54
Iain Clarke, Warrior Programmer21-Apr-08 3:54 
QuestionFilePath? Pin
ritz123420-Apr-08 20:52
ritz123420-Apr-08 20:52 
AnswerRe: FilePath? Pin
Saurabh.Garg20-Apr-08 20:58
Saurabh.Garg20-Apr-08 20:58 
GeneralRe: FilePath? Pin
ritz123420-Apr-08 21:16
ritz123420-Apr-08 21:16 
GeneralRe: FilePath? Pin
Naveen20-Apr-08 21:21
Naveen20-Apr-08 21:21 
GeneralRe: FilePath? Pin
Rajesh R Subramanian20-Apr-08 21:24
professionalRajesh R Subramanian20-Apr-08 21:24 
GeneralRe: FilePath? Pin
CPallini20-Apr-08 21:27
mveCPallini20-Apr-08 21:27 
AnswerRe: FilePath? Pin
Rajesh R Subramanian20-Apr-08 21:26
professionalRajesh R Subramanian20-Apr-08 21:26 
GeneralRe: FilePath? Pin
ritz123420-Apr-08 22:23
ritz123420-Apr-08 22:23 
GeneralRe: FilePath? Pin
Naveen20-Apr-08 22:41
Naveen20-Apr-08 22:41 
GeneralRe: FilePath? Pin
ritz123420-Apr-08 22:59
ritz123420-Apr-08 22:59 
GeneralRe: FilePath? Pin
Naveen20-Apr-08 23:02
Naveen20-Apr-08 23:02 

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.