Click here to Skip to main content
15,915,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unicode functions on Windows 95 Pin
John R. Shaw28-Mar-03 8:42
John R. Shaw28-Mar-03 8:42 
GeneralMFC TREE CONTROL QUERY Pin
rohit.dhamija25-Mar-03 18:52
rohit.dhamija25-Mar-03 18:52 
GeneralHelp : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Vikrant Kapoor25-Mar-03 18:19
Vikrant Kapoor25-Mar-03 18:19 
GeneralRe: Help : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Dave Bryant25-Mar-03 18:27
Dave Bryant25-Mar-03 18:27 
GeneralRe: Help : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Vikrant Kapoor25-Mar-03 20:35
Vikrant Kapoor25-Mar-03 20:35 
GeneralRe: Help : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Dave Bryant26-Mar-03 8:56
Dave Bryant26-Mar-03 8:56 
GeneralHelp : private: static struct AFX_MSGMAP_ENTRY const * const CPropPage_SecurityGroup::_messageEntries' : 'selectany' can only be applied to statically initialized data items with external linkage Pin
Vikrant Kapoor25-Mar-03 18:18
Vikrant Kapoor25-Mar-03 18:18 
QuestionA error throwed out when I ceate a CWnd in a dll? Pin
white jungle25-Mar-03 17:11
white jungle25-Mar-03 17:11 
I want to create a CWnd in my dll,the dll file was called by a dialog based program.In the dll ,I use function as follow to create a CWnd:
static	CThreadManager	*theManager=new	CThreadManager;
	if(theManager->CreateEx(WS_EX_TRANSPARENT,"TheManager","ThreadManager",WS_POPUP,rc,pWnd,ID_WND,NULL))
	{
		AfxMessageBox("create successfully!");
	}
	else
	{
		CString	str;
		UINT	nCode=GetLastError();
		str.Format("error occured and the error code is %d",nCode);
		AfxMessageBox(str);

	}

the paramter pWnd is a pointer to the Dialog which called the dll,and the Macro ID_WND is a definition for the CWnd.

I found that when these code execute,the function
CreateEx(...)
return FALSE.
But the error code is equal to 0.And I look up MSDN and find that error code 0 is stand for "The operation completed successfully."
I don't know how to deal with it !
And anybody please help me ?
Thanks a lot!

Confused | :confused:

Don't look at me in that way!
AnswerRe: A error throwed out when I ceate a CWnd in a dll? Pin
Dave Bryant25-Mar-03 17:22
Dave Bryant25-Mar-03 17:22 
GeneralRe: A error throwed out when I ceate a CWnd in a dll? Pin
white jungle25-Mar-03 17:56
white jungle25-Mar-03 17:56 
GeneralDay from Date Covergence algorithm Pin
ColinDavies25-Mar-03 16:25
ColinDavies25-Mar-03 16:25 
GeneralRe: Day from Date Covergence algorithm Pin
Nick Parker25-Mar-03 17:49
protectorNick Parker25-Mar-03 17:49 
GeneralRe: Day from Date Covergence algorithm Pin
ColinDavies25-Mar-03 18:22
ColinDavies25-Mar-03 18:22 
Generalflat style CListCtrl Pin
logo2age25-Mar-03 16:03
logo2age25-Mar-03 16:03 
GeneralRe: flat style CListCtrl Pin
Michael Dunn25-Mar-03 19:33
sitebuilderMichael Dunn25-Mar-03 19:33 
GeneralRe: flat style CListCtrl Pin
logo2age26-Mar-03 20:41
logo2age26-Mar-03 20:41 
GeneralAbout "Select&Copy" of CGridCtrl Pin
Kanghongyuan25-Mar-03 13:50
Kanghongyuan25-Mar-03 13:50 
Question"This" reference? Pin
wow999925-Mar-03 13:34
wow999925-Mar-03 13:34 
AnswerRe: "This" reference? Pin
Anders Molin25-Mar-03 13:48
professionalAnders Molin25-Mar-03 13:48 
AnswerRe: "This" reference? Pin
Jambolo25-Mar-03 16:27
Jambolo25-Mar-03 16:27 
GeneralSpecifying debugger Pin
Jon Sagara25-Mar-03 10:46
Jon Sagara25-Mar-03 10:46 
GeneralRe: Specifying debugger Pin
Anders Molin25-Mar-03 13:21
professionalAnders Molin25-Mar-03 13:21 
GeneralRe: Specifying debugger Pin
Jon Sagara25-Mar-03 13:23
Jon Sagara25-Mar-03 13:23 
Generalcout << flush not working in my class that inherits from fstream Pin
mflores8825-Mar-03 10:28
mflores8825-Mar-03 10:28 
GeneralRe: cout << flush not working in my class that inherits from fstream Pin
Dave Bryant25-Mar-03 11:12
Dave Bryant25-Mar-03 11:12 

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.