Click here to Skip to main content
16,007,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PARSING of Command Line Arguments Pin
Michael P Butler15-Oct-01 5:26
Michael P Butler15-Oct-01 5:26 
GeneralRe: PARSING of Command Line Arguments Pin
Chris Losinger15-Oct-01 8:07
professionalChris Losinger15-Oct-01 8:07 
GeneralBackground image in a window? (MFC) Pin
15-Oct-01 4:14
suss15-Oct-01 4:14 
GeneralRe: Background image in a window? (MFC) Pin
Michael P Butler15-Oct-01 4:30
Michael P Butler15-Oct-01 4:30 
GeneralRe: Background image in a window? (MFC) Pin
Paul Selormey15-Oct-01 5:29
Paul Selormey15-Oct-01 5:29 
GeneralHelp !!!!! I am getting bogus poiner problem Pin
15-Oct-01 4:02
suss15-Oct-01 4:02 
GeneralRe: Help !!!!! I am getting bogus poiner problem Pin
Michael P Butler15-Oct-01 4:08
Michael P Butler15-Oct-01 4:08 
GeneralRe: Help !!!!! I am getting bogus poiner problem Pin
15-Oct-01 5:15
suss15-Oct-01 5:15 
BOOL CEthnewApp::ParseCmdInfo(LPCSTR m_lpCmdLine)
{

char *str;
int nCnt[CMDLINE_ARGS],nStartIndex=0;
CString szCmdLineParam;
char szCmdLineParam1[CMDLINE_ARGS][12];
theApp.m_bDwnld = TRUE;
BOOL bSuccess = FALSE;
szCmdLineParam.Format("%s",m_lpCmdLine);
for(int Index=0;Index< CMDLINE_ARGS;Index++)
{
nCnt[Index] = szCmdLineParam.Find('/',(nStartIndex+1));
*szCmdLineParam1[Index] = _T('\0');
for(int j = nStartIndex,ii = 0;j<ncnt[index];j++,ii++)
{
="" szcmdlineparam1[index][ii]="szCmdLineParam.GetAt(nStartIndex+ii);
" }
="" ;
="" nstartindex="nCnt[Index]+1;
"
="" if(!strncmp(szcmdlineparam1[2],"~upl0001.tmp",12))
="" m_bdwnld="FALSE;
" m_dwhwnd="strtol(szCmdLineParam1[0],&str,16);
" m_lparam="strtol(szCmdLineParam1[1],&str,16);
" m_szupldfilename.format("%s",szcmdlineparam1[2]);
="" char="" buff[10];="" only="" for="" formmatting="" handler="" recognition="" need="" not="" to="" be="" changed="" able="" allocate="" buffer="" in="" release="" mode
="" wsprintf(buff,"%ld",m_dwhwnd);="" bsuccess="TRUE;
" else
="" dword="" dwtemp;
="" getting="" hwnd="" qmgr="" sending="" message="" qmgr
="" dwtemp="strtol(szCmdLineParam1[1],&str,16);" m_szdwldprjname.format("%s",(lpcstr)szcmdlineparam1[2]);
="" m_dwprotid="((dwTemp)&0xff00)">>8; // getting protocol ID selected in Setup of Qmgr
m_dwGPMachineID = (dwTemp)&0x00ff; // getting ddoID for panel selected in Qmgr.
m_szDwldPrjName.MakeUpper();
bSuccess = TRUE;
}

return bSuccess;

}
This code is for Command line parsing is there any other way of getting parsing done My command line arguments are "/6ee/4d2f/TEST/"
GeneralRe: Help !!!!! I am getting bogus poiner problem Pin
Michael P Butler15-Oct-01 5:25
Michael P Butler15-Oct-01 5:25 
GeneralRe: Help !!!!! I am getting bogus poiner problem Pin
15-Oct-01 5:48
suss15-Oct-01 5:48 
GeneralRe: Help !!!!! I am getting bogus poiner problem Pin
15-Oct-01 5:48
suss15-Oct-01 5:48 
GeneralCArray and Windows CE Pin
Ray Kinsella15-Oct-01 3:52
Ray Kinsella15-Oct-01 3:52 
GeneralWeird ADO/ADOX problem Pin
Christian Graus15-Oct-01 3:37
protectorChristian Graus15-Oct-01 3:37 
GeneralRe: Weird ADO/ADOX problem Pin
Rashid Thadha15-Oct-01 4:18
Rashid Thadha15-Oct-01 4:18 
GeneralCreate File with Custom Size Pin
Derek Price15-Oct-01 3:23
Derek Price15-Oct-01 3:23 
GeneralRe: Create File with Custom Size Pin
Rob Caldecott15-Oct-01 3:36
Rob Caldecott15-Oct-01 3:36 
GeneralRe: Create File with Custom Size Pin
Derek Price15-Oct-01 3:42
Derek Price15-Oct-01 3:42 
QuestionHow do i determine how many bytes of memory available Pin
Jase Jennings15-Oct-01 3:13
Jase Jennings15-Oct-01 3:13 
AnswerRe: How do i determine how many bytes of memory available Pin
Rob Caldecott15-Oct-01 3:22
Rob Caldecott15-Oct-01 3:22 
AnswerRe: How do i determine how many bytes of memory available Pin
15-Oct-01 6:32
suss15-Oct-01 6:32 
GeneralSending HTML mails Pin
ed welch15-Oct-01 1:14
ed welch15-Oct-01 1:14 
GeneralCComBSTR Memory Leak Pin
Anders Molin15-Oct-01 0:57
professionalAnders Molin15-Oct-01 0:57 
GeneralRe: CComBSTR Memory Leak Pin
Michael Dunn15-Oct-01 8:59
sitebuilderMichael Dunn15-Oct-01 8:59 
GeneralRe: CComBSTR Memory Leak Pin
Anders Molin15-Oct-01 9:50
professionalAnders Molin15-Oct-01 9:50 
QuestionHow to allow the user to choose language and... Pin
Joan M15-Oct-01 0:46
professionalJoan M15-Oct-01 0:46 

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.