Many thanks for the link, should have tried msdn myself :| ScorpioMidget
ScorpioMidget
Posts
-
Non-MFC Colored Listbox items -
Non-MFC Colored Listbox itemsI have a small application that doesn't use MFC, but i'd like to alter the listbox's so each item can be displayed in it's own colour. I've searched these forums and google, but can't find any reference to non-mfc code to do this ... there is plenty of mfc stuff around though. Hoping someone will know of a resource/example i can look at, else i'll have to convert the app to MFC. ScorpioMidget
-
FlowChart Ctrl ?I've been looking for some s/code for a flowchart control. I'd like to present some data as a flowchart, or as Frontpage does it's Hyperlink view, or as family tree data is presented. Anyone know of any s/code for this type of presentation ? ScorpioMidget
-
Changing row Font in listctrl, changes width but not heightI have a listctrl where i can set any row to use a new font, the main problem i had was that on changing the font the rows/columns would not resize correctly to take account of the new text extents. After searching on this site and then looking on MSDN, i now send a CCM_SETVERSION 5 message to the listctrl before i add any items. This now makes the column widths resize correctly, but the row heights are still wrong. I've spent many hours trying to find a way to fix this but have made no progress. Hoping you can give me some ideas. BTW it's a NW_CUSTOMDRAW listctrl not an ownerdraw. ScorpioMidget
-
Can't debug if including 'vector'At last i got it 2 compile by putting #include above all mfc includes. Is the right way to go when mixing STL with MFC ? ScorpioMidget
-
Can't debug if including 'vector'If i try to compile my mfc dialog application in DEBUG configuration with a '#include inside one of my cpp files or headers, i get the following error messages: c:\program files\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE' c:\program files\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function c:\program files\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters c:\program files\microsoft visual studio\vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE' c:\program files\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function c:\program files\microsoft visual studio\vc98\include\new(37) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct std::nothrow_t &)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl op erator new(void))(unsigned int)' c:\program files\microsoft visual studio\vc98\include\new(35) : see declaration of 'new' c:\program files\microsoft visual studio\vc98\include\memory(16) : error C2061: syntax error : identifier 'THIS_FILE' c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2091: function returns function c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2784: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' : could not deduce template argument for 'void *(__cdecl *)(u nsigned int,class std::allocator<_Ty> &)' from 'void *(__cdecl *)(unsigned int)' c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2785: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class std::allocator<`template-parameter257'> &)' and 'void *(__cdecl *__cdecl operator new(void))(unsigned int )' have different return types c:\program files\microsoft visual studio\vc98\include\memory(16) : see declaration of 'new' c:\program files\microsoft visual studio\vc98\include\memory(17) : error C2809: 'operator new' has no formal parameters c:\program files\microsoft visual studio\vc98\include\memory(20) : error C2954: template definitions cannot nest Error executing cl.exe. Creating browse info file... I can't figure out why this happens or how to fix it. BTW it compiles without the #include in DEBUG configuration. And it also compiles with/without it in RELEASE configuration. I'm using VC++ 6
-
Convert IP4_ADDRESS to string ?Not tried them yet, will have a go in a few minutes. ScorpioMidget
-
Convert IP4_ADDRESS to string ?Many thanks, i've got it working now. ScorpioMidget
-
Convert IP4_ADDRESS to string ?Been playing around with DnsQuery() but i can't find a way to convert from IP4_ADDRESS to a string. Hoping you can help me. ScorpioMidget