is it the right way?
Managed C++/CLI
1
Posts
1
Posters
1
Views
1
Watching
-
is it the right way to initialized MFC in managed code DLL if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0)) { // TODO: change error code to suit your needs cerr << _T("Fatal Error: MFC initialization failed") << endl; nRetCode = 1; } May i use the same code in c# static void Main function ? May i used AfxGetInstanceHandle() in managed code after that ? can any body tell how to access and creat an object of class in MFC DLL that will be used in managed code? r00d0034@yahoo.com