Click here to Skip to main content
15,909,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ??? error Pin
cradle11-Nov-02 1:37
cradle11-Nov-02 1:37 
GeneralRe: ??? error Pin
Anonymous11-Nov-02 2:23
Anonymous11-Nov-02 2:23 
Questionwhat can happen? (Creating controls on the fly with the same resource name...) Pin
Joan M11-Nov-02 1:15
professionalJoan M11-Nov-02 1:15 
AnswerRe: what can happen? (Creating controls on the fly with the same resource name...) Pin
567890123411-Nov-02 3:43
567890123411-Nov-02 3:43 
General_outp problem Pin
viliam11-Nov-02 0:39
viliam11-Nov-02 0:39 
GeneralRe: _outp problem Pin
Daniel Turini11-Nov-02 0:52
Daniel Turini11-Nov-02 0:52 
Generalprocessor usage Pin
Josus10-Nov-02 23:42
Josus10-Nov-02 23:42 
GeneralDLL problem!!!! Pin
cradle10-Nov-02 23:18
cradle10-Nov-02 23:18 
I have create a DLL,this DLL used in powerBuilder is no problem,but I used it in Visual C++ 6.0,the DLL function has finished,but a problem showed after being used DLL function,
the problem code as follow:
/////////////////////////////////////
module:
file:i386\chkesp.c
line:42
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 different calling convention!
/////////////////////////////////////////////////////
My DLL has a Function named int exchange(int pVar);
my code in vc is:
//declare in head file:
typedef int (*MYFUNC)(int);
//On a button clicked event code:
HINSTANCE hInstance=NULL;
MYFUNC pFunction;
hInstance=::LoadLibrary("MyDll.dll");
if(hInstance!=NULL)
MessageBox("The MyDll.DLL has already been load.");
ASSERT(hInstance);
pFunction=(MYFUNC)GetProcAddress(hInstance,"exchange");
(pFunction)(5);
ASSERT(pFunction);
::FreeLibrary( hInstance );
//when run program,show messagebox "The MyDll.DLL has already been load",and the dll function has returned right value,but then a problem appeared just as before I said?? I have trid so many ways to resolve this problem,but failed!! what this problem it is??? who can help me,thanks!!!!!!!Cry | :((
GeneralRe: DLL problem!!!! Pin
Stephane Rodriguez.10-Nov-02 23:28
Stephane Rodriguez.10-Nov-02 23:28 
GeneralRe: DLL problem!!!! Pin
dabs10-Nov-02 23:40
dabs10-Nov-02 23:40 
GeneralRe: DLL problem!!!! Pin
cradle11-Nov-02 0:53
cradle11-Nov-02 0:53 
GeneralRe: DLL problem!!!! Pin
dabs11-Nov-02 1:49
dabs11-Nov-02 1:49 
GeneralRe: DLL problem!!!! Pin
cradle11-Nov-02 23:34
cradle11-Nov-02 23:34 
GeneralRe: DLL problem!!!! Pin
dabs12-Nov-02 3:19
dabs12-Nov-02 3:19 
GeneralRe: DLL problem!!!! Pin
cradle15-Nov-02 1:50
cradle15-Nov-02 1:50 
GeneralRe: DLL problem!!!! Pin
dabs15-Nov-02 4:07
dabs15-Nov-02 4:07 
GeneralRe: DLL problem!!!! Pin
cradle17-Nov-02 2:04
cradle17-Nov-02 2:04 
GeneralRe: DLL problem!!!! Pin
dabs17-Nov-02 3:12
dabs17-Nov-02 3:12 
GeneralRe: DLL problem!!!! Pin
cradle19-Nov-02 2:20
cradle19-Nov-02 2:20 
GeneralRe: DLL problem!!!! Pin
cradle11-Nov-02 1:31
cradle11-Nov-02 1:31 
QuestionHow to reuse code in a simple way Pin
Jan Van Der Mix10-Nov-02 22:38
sussJan Van Der Mix10-Nov-02 22:38 
AnswerRe: How to reuse code in a simple way Pin
Christian Graus10-Nov-02 23:19
protectorChristian Graus10-Nov-02 23:19 
AnswerRe: How to reuse code in a simple way Pin
Stephane Rodriguez.10-Nov-02 23:25
Stephane Rodriguez.10-Nov-02 23:25 
GeneralUser Breakpoint in Gdiplus.dll Pin
Swinefeaster10-Nov-02 22:29
Swinefeaster10-Nov-02 22:29 
GeneralRe: User Breakpoint in Gdiplus.dll Pin
Christian Graus10-Nov-02 23:20
protectorChristian Graus10-Nov-02 23:20 

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.