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

C / C++ / MFC

 
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 
GeneralRe: How to hide a file (any file)? Pin
john_tran4-Nov-04 3:45
john_tran4-Nov-04 3:45 
GeneralRe: How to hide a file (any file)? Pin
jan larsen4-Nov-04 3:47
jan larsen4-Nov-04 3:47 
GeneralRe: How to hide a file (any file)? Pin
jan larsen4-Nov-04 3:49
jan larsen4-Nov-04 3:49 
AnswerRe: How to hide a file (any file)? Pin
David Crow3-Nov-04 3:24
David Crow3-Nov-04 3:24 
Generalstrtok, Find the next token in a string Pin
gunnar662-Nov-04 23:07
gunnar662-Nov-04 23:07 
Hi

I wan't to run my exe program and pass some arguments with the exe file. example:
MyProgram.exe "nr1,nr2,nr3,nr4,nr5"

This is some of the code:

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
char *token;
char seps[] = ",";
token = strtok( lpCmdLine, seps );

This works ok in Visual C++, but i would like to do this in Emededd C++. There i get an error: error C2664: 'strtok' : cannot convert parameter 1 from 'unsigned short *' to 'char *'

How can I do this right?

Thanks!
GeneralRe: strtok, Find the next token in a string Pin
GDavy3-Nov-04 0:02
GDavy3-Nov-04 0:02 
GeneralRe: strtok, Find the next token in a string Pin
Anonymous3-Nov-04 0:28
Anonymous3-Nov-04 0:28 
GeneralRe: strtok, Find the next token in a string Pin
jan larsen3-Nov-04 0:52
jan larsen3-Nov-04 0:52 
GeneralRe: strtok, Find the next token in a string Pin
GDavy3-Nov-04 0:59
GDavy3-Nov-04 0:59 
GeneralRe: strtok, Find the next token in a string Pin
jan larsen3-Nov-04 1:21
jan larsen3-Nov-04 1:21 
GeneralRe: strtok, Find the next token in a string Pin
jan larsen3-Nov-04 0:50
jan larsen3-Nov-04 0:50 
GeneralProblem CRichEditCtrl and scroll-messages Pin
maty22-Nov-04 22:50
maty22-Nov-04 22:50 
GeneralHelp on Command Line Parameters Pin
WinAPILearner2-Nov-04 21:45
WinAPILearner2-Nov-04 21:45 
GeneralRe: Help on Command Line Parameters Pin
vcplusplus3-Nov-04 0:18
vcplusplus3-Nov-04 0:18 
GeneralRe: Help on Command Line Parameters Pin
David Crow3-Nov-04 3:31
David Crow3-Nov-04 3:31 
GeneralTrouble witn CreateWindow Pin
lillah2-Nov-04 21:30
lillah2-Nov-04 21:30 
GeneralPut focus to App. Pin
V.2-Nov-04 21:24
professionalV.2-Nov-04 21:24 
GeneralRe: Put focus to App. Pin
Neville Franks2-Nov-04 23:37
Neville Franks2-Nov-04 23:37 
GeneralRe: Put focus to App. Pin
V.3-Nov-04 0:14
professionalV.3-Nov-04 0:14 
GeneralRe: Put focus to App. Pin
Rage3-Nov-04 4:47
professionalRage3-Nov-04 4:47 
GeneralAsynch Serial Comms Pin
louis2-Nov-04 20:44
louis2-Nov-04 20:44 
AnswerRe: Read from a file? Pin
Rage2-Nov-04 20:22
professionalRage2-Nov-04 20:22 

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.