Click here to Skip to main content

C / C++ / MFC

 
AnswerRe: Using VISUAL C++ 6.0 with OLE Pinmemberjschell30-Nov-12 11:46 
SuggestionRe: Using VISUAL C++ 6.0 with OLE PinmemberDavidCrow30-Nov-12 15:24 
GeneralRe: Using VISUAL C++ 6.0 with OLE PinmemberForNow4-Dec-12 14:48 
AnswerRe: Using VISUAL C++ 6.0 with OLE PinmemberStephen Hewitt2-Dec-12 5:54 
AnswerRe: Using VISUAL C++ 6.0 with OLE PinmemberCristian Amarie3-Dec-12 9:52 
QuestionDll injection and hooking Pinmemberminiman0630-Nov-12 8:47 
AnswerRe: Dll injection and hooking Pinmemberminiman061-Dec-12 20:01 
Questionsimple program in linux doesnt work Pinmembera1_shay29-Nov-12 23:59 
this simple program supposed to run the command ls
but the output is 1 and 2.can someone explain to me why ls not working ?
#include <stdio.h>
main()
{
    int pid,stat;
    if((pid=fork())==0)
      {
        execl("/bin/","ls",NULL);
        printf("1");
	exit(1);
      }
    else
      {
         wait(&stat);
         printf("2");
      }
}

AnswerRe: simple program in linux doesnt work PinmemberGraham Breach30-Nov-12 1:24 
GeneralRe: simple program in linux doesnt work Pinmembera1_shay30-Nov-12 2:43 
AnswerRe: simple program in linux doesnt work Pinmemberjschell30-Nov-12 11:49 
QuestionRead binary File Pinmemberyogeshs29-Nov-12 0:05 
AnswerRe: Read binary File PinmvpRichard MacCutchan29-Nov-12 0:14 
AnswerRe: Read binary File PinmemberFreak3029-Nov-12 0:18 
GeneralRe: Read binary File Pinmemberyogeshs29-Nov-12 0:41 
QuestionRe: Read binary File PinmemberDavidCrow29-Nov-12 3:37 
Questionextracting resources from an exe for translation Pinmemberchronodekar28-Nov-12 22:28 
AnswerRe: extracting resources from an exe for translation PinmemberMattias G3-Dec-12 23:24 
Questioncompile code twice,why the two result is differrent Pinmemberyingkou28-Nov-12 22:10 
AnswerRe: compile code twice,why the two result is differrent PinmemberStefan_Lang28-Nov-12 23:31 
AnswerRe: compile code twice,why the two result is differrent PinmemberStephen Hewitt29-Nov-12 1:42 
AnswerRe: compile code twice,why the two result is differrent Pinmembersajeesh.c30-Nov-12 19:28 
AnswerRe: compile code twice,why the two result is differrent PinmemberCristian Amarie3-Dec-12 9:55 
QuestionCListCtrl Pinmembersarfaraznawaz28-Nov-12 22:07 
AnswerRe: CListCtrl PinmemberJochen Arndt28-Nov-12 22:30 

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.150414.1 | Last Updated 19 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid