Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDll Pin
J512198222-Feb-06 1:20
J512198222-Feb-06 1:20 
AnswerRe: Dll Pin
mehrdadov22-Feb-06 1:38
mehrdadov22-Feb-06 1:38 
GeneralRe: Dll Pin
ThatsAlok22-Feb-06 2:47
ThatsAlok22-Feb-06 2:47 
GeneralRe: Dll Pin
Prabu.22-Feb-06 3:37
Prabu.22-Feb-06 3:37 
GeneralRe: Dll Pin
Divyang Mithaiwala22-Feb-06 3:40
Divyang Mithaiwala22-Feb-06 3:40 
GeneralRe: Dll Pin
ThatsAlok22-Feb-06 3:49
ThatsAlok22-Feb-06 3:49 
AnswerRe: Dll Pin
ThatsAlok22-Feb-06 2:45
ThatsAlok22-Feb-06 2:45 
Questionpassing pointer in thunking Pin
indra2022-Feb-06 1:12
indra2022-Feb-06 1:12 
Hi,

I have defined a call back:
typedef int (*GETHSPATTERNPPROC) (TCHAR **&, long&);
I am then loading the library:
DWORD hModSP = lpfnLoadLibraryEx32W("MyDLL", NULL, 0);
Getting the function pointer:
GETHSPATTERNPPROC hGetHSPatterns = (GETHSPATTERNPPROC)GetProcAddress32W(hModSP, "GetHSPatterns");
Then calling the method:
pchHSPaternNames = NULL;
lNumPaterns = 0;
CallProcEx32W(2, 1, (DWORD)hGetHSPatterns, (TCHAR FAR **)pchHSPaternNames, (DWORD)lNumPatterns);

In "MyDLL" I am doing:
lNumPatterns = GetPatNum();
pchHSPaternNames = new TCHAR* [lNumPatterns];
and here it fails.

What is going wrong????







AnswerRe: passing pointer in thunking Pin
toxcct22-Feb-06 1:54
toxcct22-Feb-06 1:54 
GeneralRe: passing pointer in thunking Pin
indra2022-Feb-06 2:34
indra2022-Feb-06 2:34 
GeneralRe: passing pointer in thunking Pin
toxcct22-Feb-06 2:39
toxcct22-Feb-06 2:39 
GeneralRe: passing pointer in thunking Pin
indra2022-Feb-06 2:56
indra2022-Feb-06 2:56 
Questionabt CList Pin
namaskaaram21-Feb-06 23:57
namaskaaram21-Feb-06 23:57 
AnswerRe: abt CList Pin
Maximilien22-Feb-06 0:58
Maximilien22-Feb-06 0:58 
AnswerRe: abt CList Pin
David Crow22-Feb-06 3:15
David Crow22-Feb-06 3:15 
GeneralRe: abt CList Pin
namaskaaram22-Feb-06 17:04
namaskaaram22-Feb-06 17:04 
GeneralRe: abt CList Pin
David Crow23-Feb-06 2:20
David Crow23-Feb-06 2:20 
GeneralRe: abt CList Pin
namaskaaram24-Feb-06 0:45
namaskaaram24-Feb-06 0:45 
QuestionCHttpConnection Pin
murali_utr21-Feb-06 23:12
murali_utr21-Feb-06 23:12 
Questionlib file location Pin
Chintoo72321-Feb-06 21:56
Chintoo72321-Feb-06 21:56 
AnswerRe: lib file location Pin
Malli_S21-Feb-06 22:04
Malli_S21-Feb-06 22:04 
GeneralRe: lib file location Pin
Chintoo72321-Feb-06 22:13
Chintoo72321-Feb-06 22:13 
AnswerRe: lib file location Pin
Malli_S21-Feb-06 22:31
Malli_S21-Feb-06 22:31 
GeneralRe: lib file location Pin
Malli_S21-Feb-06 22:33
Malli_S21-Feb-06 22:33 
Questionhow to get the selected files name during Drag&Drop's mouse moving process Pin
welli21-Feb-06 21:56
welli21-Feb-06 21:56 

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.