Click here to Skip to main content
15,916,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Alphablend question Pin
Michael Dunn20-Dec-04 7:30
sitebuilderMichael Dunn20-Dec-04 7:30 
GeneralRe: Alphablend question Pin
__makaveli__20-Dec-04 8:02
__makaveli__20-Dec-04 8:02 
GeneralRe: Alphablend question Pin
Michael Dunn20-Dec-04 8:37
sitebuilderMichael Dunn20-Dec-04 8:37 
GeneralRe: Alphablend question Pin
__makaveli__20-Dec-04 8:39
__makaveli__20-Dec-04 8:39 
GeneralA (simple) dialogs question Pin
Dave Kerr19-Dec-04 23:17
Dave Kerr19-Dec-04 23:17 
GeneralRe: A (simple) dialogs question Pin
ThatsAlok20-Dec-04 0:50
ThatsAlok20-Dec-04 0:50 
GeneralRe: A (simple) dialogs question Pin
Dave Kerr20-Dec-04 2:28
Dave Kerr20-Dec-04 2:28 
GeneralProblems when converting from VC6++ to .Net Pin
Samuel Ranta-Eskola19-Dec-04 22:50
Samuel Ranta-Eskola19-Dec-04 22:50 
I'm converting a multi project, multi threaded application from VC6 to .Net. After solving all the obvious problems due to the forgiveful VC6 compiler I stumbled across some harder problems.

First of all I got a ziljon of warnings (4251 and 4275). I chose to pragma ignore them. After that I got it all to compile and ran the application.

Then I got an Assertion Failed when the application greated the first CFrameWnd:
<br />
BOOL InterfaceThread::InitInstance()<br />
{<br />
  // Init event handles.<br />
	iThreadHasExited = NULL;<br />
<br />
  // Init dummy window<br />
  iDummyWindow=new DummyWindow();<br />
<br />
  iDummyWindow->Create(NULL,"InterfaceThreadDummy");<br />

iDummyWindow is a CFrameWnd and InterfaceThread inherits from CWinthread. This is the first function called from _AfxThreadEntry.

In CFrameWnd::CreateEx AfxGetInstanceHandle Fails Assertion.

After this a lot of assertion fails and finally I get an unrecoverable crash in AfxNewHandler. The error occurs here (in operator new):
<br />
#ifdef _AFXDLL<br />
		if (pfnNewHandler == _pfnUninitialized)<br />
		{<br />
			AFX_MODULE_THREAD_STATE* pState = AfxGetModuleThreadState();<br />
			pfnNewHandler = pState->m_pfnNewHandler;<br />
		}<br />
		if (pfnNewHandler == NULL || (*pfnNewHandler)(nSize) == 0)<br />
			break;<br />
#else<br />
		->>>>>>>>if (_afxNewHandler == NULL || (*_afxNewHandler)(nSize) == 0)<br />
			break;<br />
#endif<br />


Seems like _AFXDLL isn't defined even though it is defined in the preprocessor definitions.

Anybody got a hint???
GeneralRe: Problems when converting from VC6++ to .Net Pin
Samuel Ranta-Eskola19-Dec-04 23:00
Samuel Ranta-Eskola19-Dec-04 23:00 
GeneralRe: Problems when converting from VC6++ to .Net Pin
benjymous19-Dec-04 23:18
benjymous19-Dec-04 23:18 
GeneralRe: Problems when converting from VC6++ to .Net Pin
Samuel Ranta-Eskola19-Dec-04 23:40
Samuel Ranta-Eskola19-Dec-04 23:40 
GeneralRecommendation of interpolation methods in visual C++ Pin
melachseng19-Dec-04 22:29
melachseng19-Dec-04 22:29 
GeneralRe: Recommendation of interpolation methods in visual C++ Pin
Anonymous20-Dec-04 9:17
Anonymous20-Dec-04 9:17 
GeneralHelp! about 2 threads share one com port Pin
stans8019-Dec-04 22:12
stans8019-Dec-04 22:12 
GeneralRe: Help! about 2 threads share one com port Pin
Blake Miller20-Dec-04 7:08
Blake Miller20-Dec-04 7:08 
GeneralThread Termination Pin
sudiptam19-Dec-04 21:17
sudiptam19-Dec-04 21:17 
GeneralRe: Thread Termination Pin
David Crow20-Dec-04 6:18
David Crow20-Dec-04 6:18 
GeneralThread Termination Pin
sudiptam19-Dec-04 21:17
sudiptam19-Dec-04 21:17 
GeneralRe: Thread Termination Pin
stans8019-Dec-04 22:03
stans8019-Dec-04 22:03 
GeneralSuggestions Please Pin
Neelesh K J Jain19-Dec-04 20:28
Neelesh K J Jain19-Dec-04 20:28 
GeneralProblem when Copying Text content to Clipboard Pin
SivaramanDhamodharan19-Dec-04 19:33
SivaramanDhamodharan19-Dec-04 19:33 
GeneralRe: Problem when Copying Text content to Clipboard Pin
Anonymous19-Dec-04 19:39
Anonymous19-Dec-04 19:39 
GeneralRe: Problem when Copying Text content to Clipboard Pin
David Crow20-Dec-04 8:18
David Crow20-Dec-04 8:18 
GeneralRe: Problem when Copying Text content to Clipboard Pin
SivaramanDhamodharan20-Dec-04 19:44
SivaramanDhamodharan20-Dec-04 19:44 
Generalcompile hangs Pin
Anonymous19-Dec-04 19:28
Anonymous19-Dec-04 19:28 

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.