Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Device Context Pin
Richard MacCutchan20-Dec-10 1:02
mveRichard MacCutchan20-Dec-10 1:02 
QuestionRe: Device Context Pin
bleedingfingers20-Dec-10 1:05
bleedingfingers20-Dec-10 1:05 
AnswerRe: Device Context Pin
002comp20-Dec-10 1:13
002comp20-Dec-10 1:13 
AnswerRe: Device Context Pin
pasztorpisti21-Dec-10 23:36
pasztorpisti21-Dec-10 23:36 
QuestionCToolBar Flickers Pin
janaswamy uday19-Dec-10 18:33
janaswamy uday19-Dec-10 18:33 
AnswerRe: CToolBar Flickers Pin
Roger Allen10-Jan-11 1:53
Roger Allen10-Jan-11 1:53 
GeneralRe: CToolBar Flickers Pin
janaswamy uday10-Jan-11 23:36
janaswamy uday10-Jan-11 23:36 
Questionvariable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 16:30
Randy12719-Dec-10 16:30 
Hello Everybody,
I am new to C programming not yet even C++ experienced. I am following instructions Beginning C (from novice to Professional) Forth Edition from Ivor Horton. I am working on Program and 7.14.

I am compiling with Visual Studio 2010 Express and NetBeans 6.9.1
The program compiles without errors or warnings with NetBeans.
I really like the VS 2010 Express package because of the ease of looking at locals and would like to know more about VS 2010 Ex. This is why I come to you.

This programs has:
#include <stdbool.h> for a header and
bool sorted = false; for a declaration.

I get errors building the program in VS 2010 Ex. the stdbool.h header is not in any sub folder of the main VS 2010 Ex. directory.
I tried to build it as a cpp and c file and same results.
I found a stdbool.h from the Bloodshed DevC++ or Bloodshed and that did not work.
I downloaded the pdf of C99 standard for c dated 2005 could not understand how to make the 6 lines of code to work correctly. seemed way to advance for a begginer.
I tried using #include <windows.h> that was recommended from a user here at codeproject.com.
I have created a small program just to test bool true and false pulled from Program 7.14 of the C programming book I am learning from.

I made this:
#include <stdio.h>

int main(void)
{
int false = 0;
int true = 1;
int i = 0;
int bool = false;
char sorted = ' ';
sorted = false;

return 0;
}


but as you experience will see that false will not be zero but rather a decimal of 32

Nothing worked.

HELP!! Please..
rarael


AnswerRe: variable 'bool' / header stdbool.h [modified] Pin
Luc Pattyn19-Dec-10 16:59
sitebuilderLuc Pattyn19-Dec-10 16:59 
GeneralRe: variable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 19:38
Randy12719-Dec-10 19:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Luc Pattyn20-Dec-10 3:14
sitebuilderLuc Pattyn20-Dec-10 3:14 
AnswerRe: variable 'bool' / header stdbool.h Pin
T210219-Dec-10 19:38
T210219-Dec-10 19:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Aescleal20-Dec-10 3:55
Aescleal20-Dec-10 3:55 
QuestionWhy VC project won't run on Windows 7 Pin
ed welch19-Dec-10 10:45
ed welch19-Dec-10 10:45 
AnswerRe: Why VC project won't run on Windows 7 Pin
T210219-Dec-10 19:36
T210219-Dec-10 19:36 
GeneralRe: Why VC project won't run on Windows 7 Pin
ed welch20-Dec-10 1:31
ed welch20-Dec-10 1:31 
GeneralRe: Why VC project won't run on Windows 7 Pin
T210220-Dec-10 2:12
T210220-Dec-10 2:12 
QuestionOwner Button Width Pin
john563218-Dec-10 18:19
john563218-Dec-10 18:19 
AnswerRe: Owner Button Width Pin
Maximilien19-Dec-10 1:40
Maximilien19-Dec-10 1:40 
Question890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid218-Dec-10 1:48
professionalilostmyid218-Dec-10 1:48 
AnswerRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ALLERSLIT18-Dec-10 2:59
ALLERSLIT18-Dec-10 2:59 
GeneralRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid218-Dec-10 3:19
professionalilostmyid218-Dec-10 3:19 
AnswerRe: 890927 - Invalid Input Format exception in sscanf_s Pin
Richard MacCutchan18-Dec-10 4:57
mveRichard MacCutchan18-Dec-10 4:57 
GeneralRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid218-Dec-10 7:53
professionalilostmyid218-Dec-10 7:53 
GeneralRe: 890927 - Invalid Input Format exception in sscanf_s Pin
Richard MacCutchan18-Dec-10 10:34
mveRichard MacCutchan18-Dec-10 10:34 

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.