Click here to Skip to main content
15,037,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create a virtual printer? Pin
Hamid_RT28-Jun-06 19:03
MemberHamid_RT28-Jun-06 19:03 
GeneralRe: How to create a virtual printer? Pin
yanping wang28-Jun-06 22:50
Memberyanping wang28-Jun-06 22:50 
GeneralRe: How to create a virtual printer? Pin
yanping wang28-Jun-06 23:00
Memberyanping wang28-Jun-06 23:00 
QuestionCreateProcess problem. Pin
iLoveM28-Jun-06 16:41
MemberiLoveM28-Jun-06 16:41 
AnswerRe: CreateProcess problem. Pin
Naveen28-Jun-06 17:29
MemberNaveen28-Jun-06 17:29 
GeneralRe: CreateProcess problem. Pin
iLoveM28-Jun-06 22:16
MemberiLoveM28-Jun-06 22:16 
AnswerRe: CreateProcess problem. Pin
Hamid_RT28-Jun-06 19:00
MemberHamid_RT28-Jun-06 19:00 
GeneralRe: CreateProcess problem. Pin
iLoveM28-Jun-06 22:18
MemberiLoveM28-Jun-06 22:18 
Main process:

STARTUPINFO si;

ZeroMemory(&si, sizeof(si));

si.cb = sizeof STARTUPINFO;


PROCESS_INFORMATION pi;
CreateProcess("A.exe",
NULL,
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi);


Sub Process:

GetModuleFileName(NULL,read,1000);
printf("%s\n",read);
int len = strlen(read);
strcpy(read+len-4,".tmp");
printf("%s\n",read);

FILE *f = fopen(read,"rb");

if (f==NULL) {
printf("Hello world\n");
}

Just relax
GeneralRe: CreateProcess problem. Pin
Naveen28-Jun-06 22:43
MemberNaveen28-Jun-06 22:43 
QuestionRe: CreateProcess problem. Pin
David Crow29-Jun-06 3:27
MemberDavid Crow29-Jun-06 3:27 
QuestionRe: CreateProcess problem. Pin
David Crow29-Jun-06 3:23
MemberDavid Crow29-Jun-06 3:23 
AnswerRe: CreateProcess problem. Pin
iLoveM29-Jun-06 15:47
MemberiLoveM29-Jun-06 15:47 
QuestionHow to display 2 byte characters Pin
surendra vk28-Jun-06 14:11
Membersurendra vk28-Jun-06 14:11 
AnswerRe: How to display 2 byte characters Pin
Michael Dunn28-Jun-06 15:28
sitebuilderMichael Dunn28-Jun-06 15:28 
GeneralRe: How to display 2 byte characters Pin
surendra vk28-Jun-06 16:00
Membersurendra vk28-Jun-06 16:00 
GeneralRe: How to display 2 byte characters Pin
Joe Woodbury28-Jun-06 16:18
professionalJoe Woodbury28-Jun-06 16:18 
GeneralRe: How to display 2 byte characters Pin
surendra vk28-Jun-06 16:52
Membersurendra vk28-Jun-06 16:52 
GeneralRe: How to display 2 byte characters Pin
Michael Dunn28-Jun-06 19:26
sitebuilderMichael Dunn28-Jun-06 19:26 
QuestionCreateWindow() issue Pin
Jeremy Falcon28-Jun-06 12:54
professionalJeremy Falcon28-Jun-06 12:54 
AnswerRe: CreateWindow() issue Pin
valikac28-Jun-06 13:10
Membervalikac28-Jun-06 13:10 
GeneralRe: CreateWindow() issue [modified] Pin
Jeremy Falcon28-Jun-06 13:21
professionalJeremy Falcon28-Jun-06 13:21 
AnswerRe: Workaround but still curious... Pin
Jeremy Falcon28-Jun-06 13:42
professionalJeremy Falcon28-Jun-06 13:42 
AnswerRe: CreateWindow() issue Pin
Jörgen Sigvardsson28-Jun-06 14:06
MemberJörgen Sigvardsson28-Jun-06 14:06 
GeneralRe: CreateWindow() issue Pin
Jeremy Falcon28-Jun-06 14:41
professionalJeremy Falcon28-Jun-06 14:41 
GeneralRe: CreateWindow() issue Pin
Jeremy Falcon28-Jun-06 14:46
professionalJeremy Falcon28-Jun-06 14: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.