Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: use string instead of commands Pin
David Crow3-Nov-04 3:09
David Crow3-Nov-04 3:09 
GeneralRe: use string instead of commands Pin
BlackDice3-Nov-04 4:08
BlackDice3-Nov-04 4:08 
GeneralRe: use string instead of commands Pin
David Crow3-Nov-04 4:30
David Crow3-Nov-04 4:30 
GeneralRe: use string instead of commands Pin
BlackDice3-Nov-04 7:10
BlackDice3-Nov-04 7:10 
GeneralRe: use string instead of commands Pin
David Crow3-Nov-04 7:48
David Crow3-Nov-04 7:48 
GeneralRe: use string instead of commands Pin
BlackDice3-Nov-04 8:00
BlackDice3-Nov-04 8:00 
GeneralHave a custom titlebar Pin
dSolariuM3-Nov-04 2:26
dSolariuM3-Nov-04 2:26 
GeneralCreateFile ... error C2065 Pin
gunnar663-Nov-04 2:13
gunnar663-Nov-04 2:13 
Hi
I try to Create a File. The LpFileName i will receive from a token. But i get and error when i do this, Why? Error : error C2065: 'Lfilnavn1' : undeclared identifier

Here is some of the code:
HANDLE hFile1;
char seps[] = ",";
char *token;
int ch = ',';

char* filnavn1;
token = strtok((char *)lpCmdLine, seps );

filnavn1 = token;
while( token != NULL )
{
token = strtok( NULL, seps );
// Get all token and assign to strings

}


hFile1 = CreateFile (TEXT(filnavn1), // Open .txt
GENERIC_READ, // Open for reading
0, // Do not share
NULL, // No security
OPEN_EXISTING, // Existing file only
FILE_ATTRIBUTE_NORMAL, // Normal file
NULL); // No template file
GeneralRe: CreateFile ... error C2065 Pin
P-Rex3-Nov-04 2:55
P-Rex3-Nov-04 2:55 
GeneralRe: CreateFile ... error C2065 Pin
gunnar663-Nov-04 3:22
gunnar663-Nov-04 3:22 
GeneralRe: CreateFile ... error C2065 Pin
Antony M Kancidrowski3-Nov-04 4:26
Antony M Kancidrowski3-Nov-04 4:26 
QuestionAny help for memory leak ? Pin
Amarelia3-Nov-04 1:43
Amarelia3-Nov-04 1:43 
AnswerRe: Any help for memory leak ? Pin
Selvam R3-Nov-04 2:31
professionalSelvam R3-Nov-04 2:31 
AnswerRe: Any help for memory leak ? Pin
Henry miller3-Nov-04 2:45
Henry miller3-Nov-04 2:45 
GeneralHardware programming help Pin
Pothirajan C3-Nov-04 1:18
Pothirajan C3-Nov-04 1:18 
GeneralColoring static group box Pin
balajeedurai3-Nov-04 0:29
balajeedurai3-Nov-04 0:29 
GeneralRe: Coloring static group box Pin
Ravi Bhavnani3-Nov-04 2:40
professionalRavi Bhavnani3-Nov-04 2:40 
GeneralRe: Coloring static group box Pin
Selvam R3-Nov-04 2:44
professionalSelvam R3-Nov-04 2:44 
GeneralHelp Files In a MFC Application Pin
sweep1232-Nov-04 23:31
sweep1232-Nov-04 23:31 
QuestionHow to write o soft keyboard Pin
ledallam2-Nov-04 23:31
ledallam2-Nov-04 23:31 
AnswerRe: How to write o soft keyboard Pin
vcplusplus2-Nov-04 23:54
vcplusplus2-Nov-04 23:54 
QuestionHow to hide a file (any file)? Pin
john_tran2-Nov-04 23:24
john_tran2-Nov-04 23:24 
AnswerRe: How to hide a file (any file)? Pin
jan larsen3-Nov-04 0:20
jan larsen3-Nov-04 0:20 
GeneralRe: How to hide a file (any file)? Pin
john_tran4-Nov-04 3:25
john_tran4-Nov-04 3:25 
GeneralRe: How to hide a file (any file)? Pin
jan larsen4-Nov-04 3:32
jan larsen4-Nov-04 3:32 

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.