Click here to Skip to main content
11,502,201 members (65,417 online)

C / C++ / MFC

 
AnswerRe: compile code twice,why the two result is differrent Pin
sajeesh.c30-Nov-12 18:28
membersajeesh.c30-Nov-12 18:28 
AnswerRe: compile code twice,why the two result is differrent Pin
Cristian Amarie3-Dec-12 8:55
memberCristian Amarie3-Dec-12 8:55 
QuestionCListCtrl Pin
sarfaraznawaz28-Nov-12 21:07
membersarfaraznawaz28-Nov-12 21:07 
AnswerRe: CListCtrl Pin
Jochen Arndt28-Nov-12 21:30
memberJochen Arndt28-Nov-12 21:30 
QuestionLong pointer to character C++ Pin
pix_programmer28-Nov-12 4:41
memberpix_programmer28-Nov-12 4:41 
GeneralRe: Long pointer to character C++ Pin
DavidCrow28-Nov-12 5:19
memberDavidCrow28-Nov-12 5:19 
AnswerRe: Long pointer to character C++ Pin
Richard MacCutchan28-Nov-12 5:20
mvpRichard MacCutchan28-Nov-12 5:20 
AnswerRe: Long pointer to character C++ Pin
Stefan_Lang28-Nov-12 6:07
memberStefan_Lang28-Nov-12 6:07 
GeneralRe: Long pointer to character C++ Pin
DavidCrow28-Nov-12 7:56
memberDavidCrow28-Nov-12 7:56 
GeneralRe: Long pointer to character C++ Pin
Stefan_Lang28-Nov-12 22:03
memberStefan_Lang28-Nov-12 22:03 
AnswerRe: Long pointer to character C++ Pin
CPallini28-Nov-12 7:48
mvpCPallini28-Nov-12 7:48 
AnswerRe: Long pointer to character C++ Pin
sajeesh.c30-Nov-12 18:35
membersajeesh.c30-Nov-12 18:35 
AnswerRe: Long pointer to character C++ [modified] Pin
April Fans13-Dec-12 18:06
memberApril Fans13-Dec-12 18:06 
Questionproblem in c with linux Pin
a1_shay28-Nov-12 2:23
membera1_shay28-Nov-12 2:23 
i need to make program that i give some system command like ls,date et cetera.and to check if thre is path that include this command(file).i have variable commandandparameters that start to change in the last loop while and i dont know why.
i put puts(commandandparameters); to show that the output is not good if you want to run it.
#include
#include
#include
void main()
{
char *arr[5];//for the command and his parameter
char command[10];
int i,j;
char *path=NULL,*tempath,*finalpath,*commandandparameters;
do
{
i=0;
printf("enter new command:");
gets(command);
arr[i]=strtok(command," ");
while(arr[i]!=NULL)//save the command and also the parametrs
{
i++;
arr[i]=strtok(NULL," ");
}
strcpy(commandandparameters,arr[0]);//add first command
for(j=1;j
AnswerRe: problem in c with linux Pin
CPallini28-Nov-12 3:07
mvpCPallini28-Nov-12 3:07 
SuggestionRe: problem in c with linux Pin
Richard MacCutchan28-Nov-12 3:11
mvpRichard MacCutchan28-Nov-12 3:11 
GeneralRe: problem in c with linux Pin
a1_shay28-Nov-12 21:35
membera1_shay28-Nov-12 21:35 
GeneralRe: problem in c with linux Pin
Richard MacCutchan28-Nov-12 23:04
mvpRichard MacCutchan28-Nov-12 23:04 
AnswerRe: problem in c with linux Pin
sajeesh.c30-Nov-12 18:40
membersajeesh.c30-Nov-12 18:40 
QuestionMerging Arrays Pin
pix_programmer27-Nov-12 21:57
memberpix_programmer27-Nov-12 21:57 
AnswerRe: Merging Arrays Pin
Andy41127-Nov-12 22:48
memberAndy41127-Nov-12 22:48 
AnswerRe: Merging Arrays Pin
CPallini27-Nov-12 23:09
mvpCPallini27-Nov-12 23:09 
JokeRe: Merging Arrays Pin
Richard MacCutchan27-Nov-12 23:45
mvpRichard MacCutchan27-Nov-12 23:45 
JokeRe: Merging Arrays Pin
CPallini27-Nov-12 23:58
mvpCPallini27-Nov-12 23:58 
GeneralRe: Merging Arrays Pin
DavidCrow28-Nov-12 5:36
memberDavidCrow28-Nov-12 5:36 
AnswerRe: Merging Arrays Pin
Stefan_Lang28-Nov-12 2:45
memberStefan_Lang28-Nov-12 2:45 
AnswerRe: Merging Arrays Pin
sajeesh.c30-Nov-12 18:47
membersajeesh.c30-Nov-12 18:47 
QuestionHow to use ribbon in MFC Activex control Pin
Lamourou27-Nov-12 20:23
memberLamourou27-Nov-12 20:23 
AnswerRe: How to use ribbon in MFC Activex control Pin
Richard MacCutchan27-Nov-12 23:44
mvpRichard MacCutchan27-Nov-12 23:44 
GeneralMessage Removed Pin
Lamourou28-Nov-12 0:26
memberLamourou28-Nov-12 0:26 
GeneralRe: How to use ribbon in MFC Activex control Pin
Richard MacCutchan28-Nov-12 1:10
mvpRichard MacCutchan28-Nov-12 1:10 
Questionhow to use more than one rc file in vc6 project at the same time when compiling project [modified] Pin
yingkou27-Nov-12 19:59
memberyingkou27-Nov-12 19:59 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
Richard MacCutchan27-Nov-12 23:42
mvpRichard MacCutchan27-Nov-12 23:42 
GeneralRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
yingkou28-Nov-12 14:35
memberyingkou28-Nov-12 14:35 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
DavidCrow28-Nov-12 17:33
memberDavidCrow28-Nov-12 17:33 
AnswerRe: how to use more than one rc file in vc6 project at the same time when compiling project Pin
Freak3028-Nov-12 23:33
memberFreak3028-Nov-12 23:33 
Questiontransparency in 32bit bmp in vs2010 Pin
yogeshs27-Nov-12 19:21
memberyogeshs27-Nov-12 19:21 
AnswerRe: transparency in 32bit bmp in vs2010 Pin
Hadi Dayvary27-Nov-12 21:42
memberHadi Dayvary27-Nov-12 21:42 
GeneralRe: transparency in 32bit bmp in vs2010 Pin
yogeshs27-Nov-12 23:11
memberyogeshs27-Nov-12 23:11 
GeneralRe: transparency in 32bit bmp in vs2010 Pin
Hadi Dayvary28-Nov-12 0:00
memberHadi Dayvary28-Nov-12 0:00 
QuestionHow To Use Macro In dsp file(VC6.0 *.dsp file) Pin
yingkou27-Nov-12 14:59
memberyingkou27-Nov-12 14:59 
SuggestionRe: How To Use Macro In dsp file(VC6.0 *.dsp file) Pin
Albert Holguin27-Nov-12 16:30
memberAlbert Holguin27-Nov-12 16:30 
GeneralRe: How To Use Macro In dsp file(VC6.0 *.dsp file) Pin
yingkou28-Nov-12 21:50
memberyingkou28-Nov-12 21:50 
GeneralRe: How To Use Macro In dsp file(VC6.0 *.dsp file) Pin
Albert Holguin29-Nov-12 4:55
memberAlbert Holguin29-Nov-12 4:55 
QuestionA class for operations with Large Integer Numbers Pin
Pahanuch27-Nov-12 12:39
memberPahanuch27-Nov-12 12:39 
AnswerRe: A class for operations with Large Integer Numbers Pin
Albert Holguin27-Nov-12 16:34
memberAlbert Holguin27-Nov-12 16:34 
AnswerRe: A class for operations with Large Integer Numbers Pin
Stefan_Lang28-Nov-12 3:01
memberStefan_Lang28-Nov-12 3:01 
QuestionSetupDiGetDeviceRegistryProperty - buffer size? Pin
Vaclav_Sal27-Nov-12 6:39
memberVaclav_Sal27-Nov-12 6:39 
AnswerRe: SetupDiGetDeviceRegistryProperty - buffer size? Pin
Richard MacCutchan27-Nov-12 6:50
mvpRichard MacCutchan27-Nov-12 6:50 
AnswerRe: SetupDiGetDeviceRegistryProperty - buffer size? Pin
Jochen Arndt27-Nov-12 22:54
memberJochen Arndt27-Nov-12 22:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 2 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid