Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: extern sample in MSDN Pin
George_George12-Feb-08 4:03
George_George12-Feb-08 4:03 
GeneralRe: extern sample in MSDN Pin
Stephen Hewitt12-Feb-08 15:01
Stephen Hewitt12-Feb-08 15:01 
GeneralDisable a toolbar button Pin
orihime10-Feb-08 18:14
orihime10-Feb-08 18:14 
GeneralRe: Disable a toolbar button Pin
Stephen Hewitt10-Feb-08 20:08
Stephen Hewitt10-Feb-08 20:08 
GeneralRe: Disable a toolbar button Pin
David Crow11-Feb-08 3:15
David Crow11-Feb-08 3:15 
QuestionAt the end of my rope with C++ (that includes Visual C++! ) Pin
Nic4310-Feb-08 17:47
Nic4310-Feb-08 17:47 
GeneralRe: At the end of my rope with C++ (that includes Visual C++! ) Pin
Garth J Lancaster10-Feb-08 19:08
professionalGarth J Lancaster10-Feb-08 19:08 
GeneralRe: At the end of my rope with C++ (that includes Visual C++! ) Pin
Matthew Faithfull10-Feb-08 23:32
Matthew Faithfull10-Feb-08 23:32 
I've been where you are but I was lucky. Your next step is to take one step back, to C (or C style C++), and write your first Win32 GUI Hello World application, not because it's that easy but because it's the only way to really understand MS Windows GUI programming and will set you up to understand what all the easier ways, MFC, Windows Forms etc are really doing underneath. The Win32 documentation on MSDN is your friend and there are (or were) relevant samples around although I can't pin one down at the minute. The basic steps are, create an empty project that's set up as a Win32 GUI app rather than a Console app, with the VS 2005 wizard. From your WinMain function, Initialize and register a Window Class [^] (Different from a C++ class but one can sort of be the other), Create a Window [^] of that class and handle some of the messages you recieve in the Window Procedure[^] (a callback function) that you registered. Use functions from the GDI library to do text and graphical output as suggested.
Good Luck Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

Generalcan't open lib file [modified] Pin
gentleguy10-Feb-08 17:21
gentleguy10-Feb-08 17:21 
GeneralRe: can't open lib file Pin
Stephen Hewitt10-Feb-08 17:26
Stephen Hewitt10-Feb-08 17:26 
GeneralRe: can't open lib file Pin
gentleguy10-Feb-08 17:35
gentleguy10-Feb-08 17:35 
GeneralRe: can't open lib file Pin
Stephen Hewitt10-Feb-08 17:38
Stephen Hewitt10-Feb-08 17:38 
GeneralRe: can't open lib file Pin
gentleguy10-Feb-08 17:49
gentleguy10-Feb-08 17:49 
GeneralRe: can't open lib file Pin
Stephen Hewitt10-Feb-08 17:51
Stephen Hewitt10-Feb-08 17:51 
GeneralRe: can't open lib file Pin
gentleguy10-Feb-08 19:33
gentleguy10-Feb-08 19:33 
GeneralRe: can't open lib file Pin
Stephen Hewitt10-Feb-08 19:54
Stephen Hewitt10-Feb-08 19:54 
GeneralRe: can't open lib file Pin
gentleguy10-Feb-08 20:06
gentleguy10-Feb-08 20:06 
GeneralRe: can't open lib file [modified] Pin
Stephen Hewitt10-Feb-08 20:10
Stephen Hewitt10-Feb-08 20:10 
GeneralRe: can't open lib file Pin
gentleguy10-Feb-08 20:32
gentleguy10-Feb-08 20:32 
GeneralStore int values in descending order Pin
CodingLover10-Feb-08 15:34
CodingLover10-Feb-08 15:34 
GeneralRe: Store int values in descending order Pin
David Crow11-Feb-08 3:22
David Crow11-Feb-08 3:22 
GeneralRe: Store int values in descending order Pin
CodingLover11-Feb-08 15:39
CodingLover11-Feb-08 15:39 
GeneralError transferring a CString to LPTSTR Pin
Larry Mills Sr10-Feb-08 11:27
Larry Mills Sr10-Feb-08 11:27 
GeneralRe: Error transferring a CString to LPTSTR Pin
Mark Salsbery10-Feb-08 12:01
Mark Salsbery10-Feb-08 12:01 
GeneralRe: Error transferring a CString to LPTSTR Pin
Larry Mills Sr11-Feb-08 3:18
Larry Mills Sr11-Feb-08 3:18 

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.