I'm creating a dll for a Visual Basic program.
It works fine when I just put a messagebox and run
it because it shows up in the vb program but
when i try to load the dialog I created it doesnt show up
I'm not sure if I'm doing it correctly
( using VC++ 6.0) and created a mfc dll project
that supports both win32 and mfc.
Any ideas?

Here is the code that loads the dialog:

extern "C" int WINAPI dlg();

extern "C" int WINAPI dlg()
{
CTest testDlg;

testDlg.DoModal();
testDlg.ShowWindow( SW_SHOW);
return MessageBox( NULL, "SDFSDF", "SDFDSSD", MB_OK );
}

CTest is a c++ class created using classwizard