Path: chuka.playstation.co.uk!news From: "Peter Armstrong" Newsgroups: scee.yaroze.freetalk.english Subject: Re: loading an exe and using Exec() Date: Mon, 16 Apr 2001 20:16:55 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 173 Message-ID: <9bfgkt$30s6@www.netyaroze-europe.com> References: <9bbp7u$t451@www.netyaroze-europe.com> <9bep1d$30s3@www.netyaroze-europe.com> <9bepko$30s4@www.netyaroze-europe.com> <9bev5u$30s5@www.netyaroze-europe.com> NNTP-Posting-Host: host213-122-79-252.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > Probably the greatest chance of success is to avoid any libps calls that > might come in conflict with executing the program. You could try loading the > exe as data into your program, transfer it to its start address yourself > then jump to it from within your own program it rather than call Exec. Can't > say this will work, but it sounds good in theory. :) > > I'll give it a try and see what happens. I wrote a short proggy to give this a go, but no joy. The programs that ran before like the boot disc and Toshinden2 still run, but those that didn't still don't. I've attached the source file in case it's of any use to anyone, let me know if you get it working. :) Peter begin 666 main.c M+RH@<&QA>7-T871I;VX@<')O:F5C="!T96UP;&%T92!F;W(@8V]D97=A7!E&5C=71E*'9O:60I.PT*#0HO*B!D969I;F5S("HO#0H-"B-D969I;F4)3TL) M"3$-"B-D969I;F4)3D<)"3 -"@T*+RH@97AT97)N" J+R -"@T*+RH@&5C7W [#0IC:&%R M"0DJ;F%M95]P(#T@(EQ<1%1,7U,S,"XS-3LQ(CL)"2\O"2)<7$U/3EQ<34]. M+D5813LQ(B)<7%-,15-?,# Q+C,R.S$B(")<7$143%]3,S N,S4[,2(@(EQ< M5$]32$E.,EQ<5#(N15A%.S$B(")<7$1$7%Q30T5$7S P-"XU-CLQ(@T*#0IU M7VQO;F<)&4@&4GR -"@EI;G0)"71I;65R M(#T@,#L-"@T*"4EN:710F4I.PT*#0H)"0D):68H4F5A9$9I M;&4H;F%M95]P+&UE;5]P+'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