Click here to Skip to main content
15,895,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Vs Release Pin
Anilkumar K V5-Jan-06 0:44
Anilkumar K V5-Jan-06 0:44 
GeneralRe: Debug Vs Release Pin
Eytukan5-Jan-06 0:55
Eytukan5-Jan-06 0:55 
GeneralRe: Debug Vs Release Pin
ThatsAlok8-Jan-06 19:01
ThatsAlok8-Jan-06 19:01 
GeneralRe: Debug Vs Release Pin
Eytukan8-Jan-06 20:21
Eytukan8-Jan-06 20:21 
GeneralRe: Debug Vs Release Pin
Eytukan24-Jan-06 21:18
Eytukan24-Jan-06 21:18 
GeneralRe: Debug Vs Release Pin
S Douglas5-Jan-06 1:11
professionalS Douglas5-Jan-06 1:11 
GeneralRe: Debug Vs Release Pin
Stephen Hewitt9-Jan-06 2:23
Stephen Hewitt9-Jan-06 2:23 
QuestionUsing a DLL having its own DialogProcedure Pin
torbeli4-Jan-06 21:34
torbeli4-Jan-06 21:34 
Hi,

does anybody know how I can setup a DLL having its own Dialogprocedure?
I have tried with LoadLibrary/GetProcadress etc. I am able to call any functions that
are within the DLL. But when i Try to do a DialogBox(....) it seems to be rather "complicated".
I keep getting the 1814 error (The specified resource name cannot be found in the image file)
I have tried to have all files available in same directory. No Luck. My Code looks like this:

HINSTANCE hDll;
FARPROC aDll;
int rc;
hDll = LoadLibrary((LPSTR)"test.dll");
if ((int)hDll < HINSTANCE_ERROR)
{
ErrMsg();
return(0);
}
aDll = GetProcAddress(hDll, (LPSTR)"TestDialog");
if (aDll==0)
{
ErrMsg();
return(0);
}
rc = DialogBox(hInst, (LPCTSTR)IDD_TEST_DIALOG, hWnd, (DLGPROC) aDll);
if (rc==-1)
ErrMsg();


And i have tried to use the MAKEINTRESOURCE instead. No luck.
Seems to be something with in connection with the Resourcefile, but I am not able to find the one thing that might help me.

We are using Visual C++ 6.0. But we are not using any C++ related programming at all.
It is all pure C-code but with exentsion of *.cpp


Rgds
Torben
AnswerRe: Using a DLL having its own DialogProcedure Pin
Prakash Nadar4-Jan-06 21:55
Prakash Nadar4-Jan-06 21:55 
GeneralRe: Using a DLL having its own DialogProcedure Pin
torbeli4-Jan-06 22:51
torbeli4-Jan-06 22:51 
GeneralRe: Using a DLL having its own DialogProcedure Pin
Prakash Nadar4-Jan-06 23:21
Prakash Nadar4-Jan-06 23:21 
QuestionCan i type cast a function ? Pin
vikas amin4-Jan-06 21:33
vikas amin4-Jan-06 21:33 
AnswerRe: Can i type cast a function ? Pin
Prakash Nadar4-Jan-06 22:00
Prakash Nadar4-Jan-06 22:00 
AnswerRe: Can i type cast a function ? Pin
Owner drawn4-Jan-06 22:13
Owner drawn4-Jan-06 22:13 
GeneralRe: Can i type cast a function ? Pin
Prakash Nadar4-Jan-06 22:44
Prakash Nadar4-Jan-06 22:44 
GeneralRe: Can i type cast a function ? Pin
Eytukan4-Jan-06 22:47
Eytukan4-Jan-06 22:47 
GeneralRe: Can i type cast a function ? Pin
Owner drawn4-Jan-06 23:09
Owner drawn4-Jan-06 23:09 
GeneralCorrected . Pin
Eytukan4-Jan-06 23:31
Eytukan4-Jan-06 23:31 
GeneralRe: Corrected . Pin
Owner drawn4-Jan-06 23:34
Owner drawn4-Jan-06 23:34 
GeneralRe: Corrected . Pin
Eytukan5-Jan-06 0:56
Eytukan5-Jan-06 0:56 
GeneralRe: Corrected . Pin
Owner drawn5-Jan-06 0:59
Owner drawn5-Jan-06 0:59 
GeneralRe: Corrected . Pin
vikas amin5-Jan-06 0:59
vikas amin5-Jan-06 0:59 
AnswerRe: Can i type cast a function ? Pin
S. Senthil Kumar5-Jan-06 3:40
S. Senthil Kumar5-Jan-06 3:40 
Questionresizing frame to fit view? Pin
LeeeNN4-Jan-06 20:13
LeeeNN4-Jan-06 20:13 
AnswerRe: resizing frame to fit view? Pin
Owner drawn4-Jan-06 20:17
Owner drawn4-Jan-06 20:17 

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.