Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionToolbar with two columns how Pin
sharp_k15-Sep-07 5:35
sharp_k15-Sep-07 5:35 
AnswerRe: Toolbar with two columns how Pin
Mark Salsbery16-Sep-07 8:27
Mark Salsbery16-Sep-07 8:27 
GeneralRe: Toolbar with two columns how Pin
sharp_k17-Sep-07 12:21
sharp_k17-Sep-07 12:21 
QuestionWinMain and argv/argc Pin
dellthinker15-Sep-07 5:29
dellthinker15-Sep-07 5:29 
QuestionRe: WinMain and argv/argc Pin
David Crow15-Sep-07 11:49
David Crow15-Sep-07 11:49 
AnswerRe: WinMain and argv/argc Pin
dellthinker15-Sep-07 13:32
dellthinker15-Sep-07 13:32 
GeneralRe: WinMain and argv/argc Pin
David Crow15-Sep-07 17:27
David Crow15-Sep-07 17:27 
AnswerRe: WinMain and argv/argc Pin
carrivick15-Sep-07 21:00
carrivick15-Sep-07 21:00 
You need to use GetCommandLine and CommandLineToArgvW like

#include <windows.h><br />
#include <stdio.h><br />
#include <shellapi.h><br />
<br />
int __cdecl main()<br />
{<br />
   LPWSTR *szArglist;<br />
   int nArgs;<br />
   int i;<br />
<br />
   szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);<br />
   if( NULL == szArglist )<br />
   {<br />
      wprintf(L"CommandLineToArgvW failed\n");<br />
      return 0;<br />
   }<br />
   else for( i=0; i<nArgs; i++) printf("%d: %ws\n", i, szArglist[i]);<br />
<br />
// Free memory allocated for CommandLineToArgvW arguments.<br />
<br />
   LocalFree(szArglist);<br />
<br />
   return(1);<br />
}

Questionashen character Pin
youbo15-Sep-07 3:33
youbo15-Sep-07 3:33 
AnswerRe: ashen character Pin
Chris Losinger15-Sep-07 4:37
professionalChris Losinger15-Sep-07 4:37 
QuestionRe: ashen character Pin
David Crow15-Sep-07 11:50
David Crow15-Sep-07 11:50 
AnswerRe: ashen character Pin
youbo15-Sep-07 14:59
youbo15-Sep-07 14:59 
GeneralRe: ashen character Pin
David Crow15-Sep-07 17:18
David Crow15-Sep-07 17:18 
GeneralRe: ashen character Pin
Russell'16-Sep-07 0:22
Russell'16-Sep-07 0:22 
QuestionProblem in RegQueryValue. Pin
GauranG Shah15-Sep-07 2:07
GauranG Shah15-Sep-07 2:07 
AnswerRe: Problem in RegQueryValue. Pin
carrivick15-Sep-07 2:25
carrivick15-Sep-07 2:25 
AnswerRe: Problem in RegQueryValue. Pin
Mark Salsbery15-Sep-07 5:35
Mark Salsbery15-Sep-07 5:35 
QuestionStl::map Link Error Pin
Vinod CS15-Sep-07 0:27
Vinod CS15-Sep-07 0:27 
AnswerRe: Stl::map Link Error Pin
Chris Losinger15-Sep-07 4:34
professionalChris Losinger15-Sep-07 4:34 
QuestionProblem with Combo Box Pin
GauranG Shah14-Sep-07 23:27
GauranG Shah14-Sep-07 23:27 
AnswerRe: Problem with Combo Box Pin
Hamid_RT15-Sep-07 0:32
Hamid_RT15-Sep-07 0:32 
GeneralRe: Problem with Combo Box Pin
GauranG Shah15-Sep-07 0:55
GauranG Shah15-Sep-07 0:55 
GeneralRe: Problem with Combo Box Pin
GauranG Shah15-Sep-07 1:13
GauranG Shah15-Sep-07 1:13 
GeneralRe: Problem with Combo Box Pin
Hamid_RT15-Sep-07 1:30
Hamid_RT15-Sep-07 1:30 
AnswerRe: Problem with Combo Box Pin
David Crow15-Sep-07 11:54
David Crow15-Sep-07 11:54 

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.