char *arr;//for the command and his parameter
printf("enter new command:");
while(arr[i]!=NULL)//save the command and also the parametrs
strcpy(commandandparameters,arr);//add first command
for(j=1;j<i;j++)//add the parameters
//now we check if the command in every path
path = getenv("PATH");
tempath = strtok(path,":");
while (tempath != NULL)
strcpy(finalpath,tempath);//get the current path
strcat(finalpath,"/");//we add '/'
tempath = strtok(NULL, ":");//get next path
When posting question, first you should ensure that my problem is clearly mentioned. because we cannot read your mind or monitor. you posted your code section , that is good. but exactly what is your problem?
This is a simple program. I think in my opinion programming skill will develop through thinking, practice etc.
here your problem is simple. so try to implement self such a problem. i will give the logic.
1. allocate required array size for destination array.
2.copy the content from source array to destination.
I also agree with Richard and pallini
I ported my application from VC6 to VS2010 in mfc.In vc6 , using 8bit indexed bmp as Dialog'Toolbar. But in VS2010,after porting Icons colors are corrupted and not showing icons properly.And Icons which are disabled are hidden. Its showing up only when they get enabled.
So,now m facing two problems:
first,Icons colors are not proper.
Second,its showing background color too. m Guessing that background color only hiding my icons on disable.Its not showing transparency as it is happening with 8bit images.Any Ideas?
I tried by changing bmp to 32 bit then icon'color came fine but other prob still.
Any help will be Appreciated.
Thanks & Regards
Open workspace by VC6 IDE, RC is not loaded and RCF and RCF are display as a file name in workspace but empty，why？how should I do for doing this work well。
Change macro definition as below,result is same
Last Visit: 31-Dec-99 18:00 Last Update: 31-Jul-14 23:52