Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Utterly lost about ETW. Pin
i_kant_spel9-Nov-09 16:08
i_kant_spel9-Nov-09 16:08 
Questionpopup menus Pin
doug258-Nov-09 3:23
doug258-Nov-09 3:23 
AnswerRe: popup menus Pin
Richard MacCutchan8-Nov-09 6:24
mveRichard MacCutchan8-Nov-09 6:24 
AnswerRe: popup menus Pin
Chris Losinger8-Nov-09 16:21
professionalChris Losinger8-Nov-09 16:21 
GeneralRe: popup menus Pin
doug259-Nov-09 23:06
doug259-Nov-09 23:06 
GeneralRe: popup menus Pin
doug2510-Nov-09 0:00
doug2510-Nov-09 0:00 
GeneralRe: popup menus Pin
doug2510-Nov-09 1:02
doug2510-Nov-09 1:02 
QuestionA very hard question? friend function again! Pin
wanchao5078-Nov-09 2:48
wanchao5078-Nov-09 2:48 
AnswerRe: A very hard question? friend function again! Pin
CPallini8-Nov-09 5:13
mveCPallini8-Nov-09 5:13 
AnswerRe: A very hard question? friend function again! Pin
N a v a n e e t h8-Nov-09 6:07
N a v a n e e t h8-Nov-09 6:07 
GeneralRe: A very hard question? friend function again! Pin
wanchao5078-Nov-09 16:29
wanchao5078-Nov-09 16:29 
GeneralRe: A very hard question? friend function again! Pin
N a v a n e e t h8-Nov-09 19:37
N a v a n e e t h8-Nov-09 19:37 
AnswerRe: A very hard question? friend function again! Pin
wanchao5078-Nov-09 16:10
wanchao5078-Nov-09 16:10 
QuestionStatic variable Pin
kumar sanghvi8-Nov-09 1:39
kumar sanghvi8-Nov-09 1:39 
AnswerRe: Static variable Pin
Richard MacCutchan8-Nov-09 2:13
mveRichard MacCutchan8-Nov-09 2:13 
QuestionWeird situation with WinSock Pin
hxhl957-Nov-09 19:19
hxhl957-Nov-09 19:19 
AnswerRe: Weird situation with WinSock Pin
Code-o-mat8-Nov-09 0:01
Code-o-mat8-Nov-09 0:01 
GeneralRe: Weird situation with WinSock Pin
hxhl958-Nov-09 6:41
hxhl958-Nov-09 6:41 
AnswerRe: Weird situation with WinSock Pin
David Crow9-Nov-09 3:20
David Crow9-Nov-09 3:20 
Questionwin32 prog Pin
himmi20097-Nov-09 16:40
himmi20097-Nov-09 16:40 
im develping a Win32 Program with the name """"Add"""" that takes a """string""" as input at command line. The command line argument should be of the following format (commandline argument may be provided from DOS console):

D:\Add\Debug>Add 2,4

The program will extract the integer values from commandline string (e.g. it will extract the values “2” and “4” in above argument) and will add them, finally the result will be displayed in a message box:


wht i did so far

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, LPSTR lpCmdLine, int nShowCmd)
{
LPWSTR *szArgList;
int argCount;

szArgList = CommandLineToArgvW(GetCommandLine(), &argCount);
if (szArgList == NULL)
{
MessageBox(NULL, L"Unable to parse command line", L"Error", MB_OK);
return 10;
}

for(int i = 0; i++; i < argCount)
{
MessageBox(NULL, szArgList[i], L"Arglist contents", MB_OK);
}

LocalFree(szArgList);
return 0;
}
GeneralRe: win32 prog Pin
himmi20097-Nov-09 16:41
himmi20097-Nov-09 16:41 
AnswerRe: win32 prog Pin
«_Superman_»7-Nov-09 18:38
professional«_Superman_»7-Nov-09 18:38 
AnswerRe: win32 prog Pin
himmi20098-Nov-09 4:17
himmi20098-Nov-09 4:17 
GeneralRe: win32 prog Pin
«_Superman_»8-Nov-09 6:13
professional«_Superman_»8-Nov-09 6:13 
QuestionRe: win32 prog Pin
David Crow9-Nov-09 3:23
David Crow9-Nov-09 3:23 

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.