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

C / C++ / MFC

 
GeneralSendMessag/Post Message Pin
AnnJS17-Mar-04 18:18
AnnJS17-Mar-04 18:18 
GeneralRe: SendMessag/Post Message Pin
tcss17-Mar-04 20:25
tcss17-Mar-04 20:25 
GeneralRe: SendMessag/Post Message Pin
Balkrishna Talele17-Mar-04 22:37
Balkrishna Talele17-Mar-04 22:37 
GeneralRe: SendMessag/Post Message Pin
David Crow18-Mar-04 3:17
David Crow18-Mar-04 3:17 
QuestionHow to insert icon into a toolbar? Pin
P_JAYAPRAKASH17-Mar-04 17:39
P_JAYAPRAKASH17-Mar-04 17:39 
AnswerRe: How to insert icon into a toolbar? Pin
Prakash Nadar17-Mar-04 19:48
Prakash Nadar17-Mar-04 19:48 
AnswerRe: How to insert icon into a toolbar? Pin
Balkrishna Talele17-Mar-04 22:14
Balkrishna Talele17-Mar-04 22:14 
Generalaccess violation 0xC0000005 when calling func in dll Pin
suninwater17-Mar-04 15:36
suninwater17-Mar-04 15:36 
access violation 0xC0000005 when calling func in dll

hi,guys:
ask for your kind help. thanks in advance.

typedef int (WINAPI * _DLL_FOO)(int, char **, int, char **, LPDCL, LPUSERFUNCTIONS);
......
_DLL_FOO m_PFoo;
......
LoadLibrary successfully。
m_PFoo = (_DLL_FOO)GetProcAddress(m_hDll, "Foo"); //successfully

326: retval = (*m_PFoo)(infc, infv, exfc, exfv, m_lpDCL, m_lpUserFunctions);
004440D2 mov esi,esp
004440D4 mov eax,dword ptr [ebp-4]
004440D7 mov ecx,dword ptr [eax+0B8h]
004440DD push ecx
004440DE mov edx,dword ptr [ebp-4]
004440E1 mov eax,dword ptr [edx+0BCh]
004440E7 push eax
004440E8 mov ecx,dword ptr [ebp-10h]
004440EB push ecx
004440EC mov edx,dword ptr [ebp-8]
004440EF push edx
004440F0 mov eax,dword ptr [ebp-14h]
004440F3 push eax
004440F4 mov ecx,dword ptr [ebp-0Ch]
004440F7 push ecx
004440F8 mov edx,dword ptr [ebp-4]
004440FB call dword ptr [edx+0B0h] <== here access violation 0xC0000005
00444101 cmp esi,esp
00444103 call __chkesp (00451fa0)
00444108 mov dword ptr [ebp-11Ch],eax
327:

when failure edx+0B0h == 0x009796b0
009796b0:B0 D4 11 02 CD CD CD CD 38 7B 14 00 78 A4 14 00 00 00 11 02 CD CD CD CD 38 7B 14 00 78 A4 14 00
The address of func m_PFoo is 0x0211D4B0, it's all right.

What 's the problem with my program and how to fix it ?
Thank you very much !
GeneralRe: access violation 0xC0000005 when calling func in dll Pin
ian mariano17-Mar-04 17:26
ian mariano17-Mar-04 17:26 
GeneralSome questions when declare a function Pin
nachilau17-Mar-04 15:32
nachilau17-Mar-04 15:32 
GeneralRe: Some questions when declare a function Pin
Prakash Nadar17-Mar-04 16:52
Prakash Nadar17-Mar-04 16:52 
GeneralMessage Box Hanging the Application Pin
jerry1211a17-Mar-04 14:23
jerry1211a17-Mar-04 14:23 
GeneralRe: Message Box Hanging the Application Pin
Prakash Nadar17-Mar-04 15:13
Prakash Nadar17-Mar-04 15:13 
GeneralRe: Message Box Hanging the Application Pin
Balkrishna Talele17-Mar-04 22:20
Balkrishna Talele17-Mar-04 22:20 
GeneralRe: Message Box Hanging the Application Pin
Prakash Nadar17-Mar-04 22:58
Prakash Nadar17-Mar-04 22:58 
GeneralRe: Message Box Hanging the Application Pin
Balkrishna Talele17-Mar-04 22:18
Balkrishna Talele17-Mar-04 22:18 
GeneralURGENT -- creating msi package for a vc++ application Pin
Member 84062417-Mar-04 13:59
Member 84062417-Mar-04 13:59 
GeneralRe: URGENT -- creating msi package for a vc++ application Pin
P_JAYAPRAKASH17-Mar-04 17:42
P_JAYAPRAKASH17-Mar-04 17:42 
GeneralRe: URGENT -- creating msi package for a vc++ application Pin
Anonymous17-Mar-04 18:56
Anonymous17-Mar-04 18:56 
GeneralCDC Pin
Anonymous17-Mar-04 12:26
Anonymous17-Mar-04 12:26 
GeneralRe: CDC Pin
gUrM33T17-Mar-04 14:22
gUrM33T17-Mar-04 14:22 
GeneralCPropertySheet SetActiveWindow in DoModal hangs Pin
Gizi Gyorgy17-Mar-04 11:14
Gizi Gyorgy17-Mar-04 11:14 
GeneralSubclassing CDateTimeCtrl Pin
Pir8ofTampa17-Mar-04 10:48
Pir8ofTampa17-Mar-04 10:48 
GeneralOnSize &amp; MoveWindow Release Mouse Pin
leemidgley17-Mar-04 10:42
leemidgley17-Mar-04 10:42 
GeneralRe: OnSize &amp; MoveWindow Release Mouse Pin
Prakash Nadar17-Mar-04 16:51
Prakash Nadar17-Mar-04 16:51 

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.