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

C / C++ / MFC

 
GeneralRe: CMap lookup Pin
Jack Puppy13-May-05 13:28
Jack Puppy13-May-05 13:28 
GeneralRe: CMap lookup Pin
rgchezhian14-May-05 21:16
rgchezhian14-May-05 21:16 
GeneralRe: CMap lookup Pin
Jack Puppy14-May-05 22:20
Jack Puppy14-May-05 22:20 
GeneralRe: CMap lookup Pin
Jack Puppy13-May-05 2:30
Jack Puppy13-May-05 2:30 
GeneralRe: CMap lookup Pin
rgchezhian13-May-05 2:35
rgchezhian13-May-05 2:35 
QuestionHow to judge window server 2003 and 64-bit OS? Pin
>|Gaara|<12-May-05 23:11
>|Gaara|<12-May-05 23:11 
AnswerRe: How to judge window server 2003 and 64-bit OS? Pin
>|Gaara|<15-May-05 14:25
>|Gaara|<15-May-05 14:25 
GeneralHANDLE, DWROD please help newbiew Pin
afil654512-May-05 21:59
afil654512-May-05 21:59 
Hello gurus,

Please be patient with a newbie.

Everywhere I look on the web I see code with these strange vriable types written in capitals like "DWORD" or "HANDLE". Pleople just declare them without having a class of type dword or handle. When I try to use such code, ofcourse the compiler says:

'DWORD' : undeclared identifier

I am trying to use a function called CreateFile which has the attributes:

HANDLE CreateFile(
LPCTSTR lpFileName,
DWORD dwDesiredAccess,
DWORD dwShareMode,
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
DWORD dwCreationDispostion,
DWORD dwFlagsAndAttributes,
HANDLE hTemplateFile
);

It return type is "HANDLE". What the? Theres no such thing. Is it an int?

MSDN says that "dwDesiredAcess" has to be either 0, GENERIC_READ or GENERIC_WRITE. Is GENERIC_READ a string or what?

When I try to use the the function. ie:

hComm = CreateFile(portname,
GENERIC_READ | GENERIC_WRITE,
0,
0,
OPEN_EXISTING,
0,
0);

The compiler says:

'GENERIC_READ' : undeclared identifier.

Look, this is a basic question that has porbably been answered elsewhere? But what am I supposed to search for? "variable types written in CAPITALS"?

Pleas help.

GeneralRe: HANDLE, DWROD please help newbiew Pin
Priyank Bolia12-May-05 22:14
Priyank Bolia12-May-05 22:14 
GeneralRe: HANDLE, DWROD please help newbiew Pin
CP Visitor13-May-05 2:19
CP Visitor13-May-05 2:19 
GeneralRe: HANDLE, DWROD please help newbiew Pin
Bob Stanneveld12-May-05 22:29
Bob Stanneveld12-May-05 22:29 
QuestionHi,a Dialog program insert flash file,but it runing error? Pin
tomenzi12-May-05 21:45
tomenzi12-May-05 21:45 
AnswerRe: Hi,a Dialog program insert flash file,but it runing error? Pin
toxcct12-May-05 22:46
toxcct12-May-05 22:46 
GeneralRe: Hi,a Dialog program insert flash file,but it runing error? Pin
tomenzi12-May-05 23:02
tomenzi12-May-05 23:02 
GeneralRe: Hi,a Dialog program insert flash file,but it runing error? Pin
toxcct12-May-05 23:04
toxcct12-May-05 23:04 
GeneralRe: Hi,a Dialog program insert flash file,but it runing error? Pin
tomenzi12-May-05 23:49
tomenzi12-May-05 23:49 
GeneralQuestion: Adding a progress bar in status bar using Win32 API Pin
lxcid12-May-05 21:11
lxcid12-May-05 21:11 
GeneralRe: Question: Adding a progress bar in status bar using Win32 API Pin
Jack Puppy12-May-05 22:38
Jack Puppy12-May-05 22:38 
GeneralRanges of an unsigned _int64 Pin
fardak12-May-05 20:53
fardak12-May-05 20:53 
GeneralRe: Ranges of an unsigned _int64 Pin
Graham Bradshaw12-May-05 21:18
Graham Bradshaw12-May-05 21:18 
GeneralRe: Ranges of an unsigned _int64 Pin
cmk12-May-05 21:31
cmk12-May-05 21:31 
GeneralRe: Ranges of an unsigned _int64 Pin
fardak12-May-05 23:09
fardak12-May-05 23:09 
GeneralRe: Ranges of an unsigned _int64 Pin
PJ Arends13-May-05 9:45
professionalPJ Arends13-May-05 9:45 
GeneralRe: Ranges of an unsigned _int64 Pin
fardak13-May-05 21:39
fardak13-May-05 21:39 
GeneralRe: Ranges of an unsigned _int64 Pin
PJ Arends13-May-05 22:08
professionalPJ Arends13-May-05 22:08 

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.