Home All Groups Group Topic Archive Search About

Creating a dialog in managed c++ DLL

Author
15 Oct 2006 1:48 PM
Yoavo
Hi,
I have a managed c++ DLL, and I want to add a dialog box to it.
How do I do it ?
I tried to design a dialog box in the resources, and use the MFC wizard to
attach a class to it but I got some link errors:
"unresoulved external symbol ___wargv"

Should I use the MFC wizard ?
If not, how do I attach the class to the resources ?
Can someone please help ?

thanks,
Yoav.

Author
15 Oct 2006 5:44 PM
Bryan Phillips
If you are just trying to add a dialog, add a managed dialog (form) to
the DLL.  Mixing unmanaged and managed code is a little complex, so I
avoid it until it becomes necessary.  (I write a lot of managed wrappers
for the more complicated Win32 functions instead of using p/invoke.)

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com




Show quote
"Yoavo" <y***@cimatron.co.il> wrote in message
news:OE3dYBG8GHA.2128@TK2MSFTNGP05.phx.gbl:

> Hi,
> I have a managed c++ DLL, and I want to add a dialog box to it.
> How do I do it ?
> I tried to design a dialog box in the resources, and use the MFC wizard to
> attach a class to it but I got some link errors:
> "unresoulved external symbol ___wargv"
>
> Should I use the MFC wizard ?
> If not, how do I attach the class to the resources ?
> Can someone please help ?
>
> thanks,
> Yoav.

AddThis Social Bookmark Button