Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can i change the background color of selected listctrl item Pin
Stephen Hewitt20-Jan-06 19:50
Stephen Hewitt20-Jan-06 19:50 
QuestionSimple C++ Error... Please Help Pin
Joshua N20-Jan-06 15:42
Joshua N20-Jan-06 15:42 
AnswerRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 16:06
professionalGarth J Lancaster20-Jan-06 16:06 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N20-Jan-06 21:54
Joshua N20-Jan-06 21:54 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster20-Jan-06 23:33
professionalGarth J Lancaster20-Jan-06 23:33 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 0:03
professionalGarth J Lancaster21-Jan-06 0:03 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 6:45
Joshua N21-Jan-06 6:45 
GeneralRe: Simple C++ Error... Please Help Pin
Garth J Lancaster21-Jan-06 12:19
professionalGarth J Lancaster21-Jan-06 12:19 
'build' in your IDE is a compile of the source code into an object module, and then link the required object modules into an executable program (program in this case as opposed to dll etc) .. this executable program can be run directly by the host platform ie Win32 (thats a big simplification)

'execute' actually calls/runs the .exe and shows its output (if you look, in likely to be a 'debug' folder under where you created the test1 project, you'll have test1.exe, plus some other objects) .. you could run a cmd prompt, change to the directory where the .exe is (or copy it somewhere useful) and simply run it from the command line

Joshua N wrote:
In the language I know


ok .. its probably a 'bytecode'/interpreted language, like java perhaps ? .. in this case, the source code is compiled into an intermediate representation, 'bytecode', that is then interpreted code by code/instruction by instruction by an engine - a 'java virtual machine "jvm"' - ie, the JVM calls the underlying os functions etc and performs the functionality (again, simplistic for this response)

ok, so, you're started .. at some stage, I suggest you experiment with doing the 'build' stage, then instead of running a program using CTRL+F5, use 'debug' options (there's a menu for them, showing some of the keys I'll mention below) .. for example, pressing F10 after a 'clean' build will run the program one statement at a time (so you'll have to press it more than once), and you can see the contents of your variables etc in a window on the screen. You can 'step into' functions, using F11, you can put the cursor on a line of code and say 'run to here', you can set a stop called a breakpoint on a line and push F5 to run to that breakpoint (put cursor on line, select 'hand symbol' and a red dot should appear next to the line), and of course you can have more than one breakpoint ... knowing how to use these options will save you many hours of grief when it comes to debugging something more complex .. it will take some time to learn it and find the various windows etc, but dont most things worthwhile take some effort to learn ?

'g'

-- modified at 18:19 Saturday 21st January, 2006
GeneralRe: Simple C++ Error... Please Help Pin
RadioOpa21-Jan-06 10:25
RadioOpa21-Jan-06 10:25 
GeneralRe: Simple C++ Error... Please Help Pin
Joshua N21-Jan-06 11:41
Joshua N21-Jan-06 11:41 
GeneralRe: Simple C++ Error... Please Help Pin
waxie22-Jan-06 17:30
waxie22-Jan-06 17:30 
AnswerRe: Simple C++ Error... Please Help Pin
Dr Dan22-Jan-06 10:02
Dr Dan22-Jan-06 10:02 
QuestionDatabase connection in .NET Pin
Jordan C. Atlas20-Jan-06 15:41
Jordan C. Atlas20-Jan-06 15:41 
AnswerRe: Database connection in .NET Pin
Ed K21-Jan-06 13:01
Ed K21-Jan-06 13:01 
GeneralRe: Database connection in .NET Pin
Jordan C. Atlas21-Jan-06 13:36
Jordan C. Atlas21-Jan-06 13:36 
QuestionHow to use code coverage in VC 2005? Pin
Azbok20-Jan-06 15:25
Azbok20-Jan-06 15:25 
QuestionNewbie question - data storage Pin
ruzu20-Jan-06 14:57
ruzu20-Jan-06 14:57 
AnswerRe: Newbie question - data storage Pin
Stephen Hewitt20-Jan-06 15:07
Stephen Hewitt20-Jan-06 15:07 
GeneralRe: Newbie question - data storage Pin
ruzu21-Jan-06 3:13
ruzu21-Jan-06 3:13 
AnswerRe: Newbie question - data storage Pin
Lilith.C21-Jan-06 4:19
Lilith.C21-Jan-06 4:19 
GeneralRe: Newbie question - data storage Pin
ruzu21-Jan-06 5:21
ruzu21-Jan-06 5:21 
GeneralRe: Newbie question - data storage Pin
Stephen Hewitt21-Jan-06 17:36
Stephen Hewitt21-Jan-06 17:36 
QuestionRe: Newbie question - data storage Pin
Lilith.C20-Jan-06 16:59
Lilith.C20-Jan-06 16:59 
AnswerRe: Newbie question - data storage Pin
Stephen Hewitt20-Jan-06 19:32
Stephen Hewitt20-Jan-06 19:32 
QuestionDetermine if running during logon process. Pin
ShawnTassie20-Jan-06 7:51
ShawnTassie20-Jan-06 7:51 

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.