flat assembler
Message board for the users of flat assembler.
Index
> Windows > Help me save my hair! CreateProcess |
Author |
|
comrade 22 Feb 2004, 03:25
take off square brackets [] from FileName and CmdLine
|
|||
22 Feb 2004, 03:25 |
|
Intrinsic 22 Feb 2004, 04:03
Well, it compiles now thanks( i thought i had tried that already but obviously not :). But crashes so i gotta fix that now :)
So when "push FileName" happens it puts the address onto the stack so i don't need the [ ] correct? Thanks Comrade |
|||
22 Feb 2004, 04:03 |
|
comrade 22 Feb 2004, 04:25
Yes, push FileName puts address of FileName on stack (equivalent to using OFFSET in MASM).
[FileName] is to get value of FileName, you would use that is FileName did not contain actual string, but contained pointer to that string |
|||
22 Feb 2004, 04:25 |
|
Intrinsic 22 Feb 2004, 15:58
Thanks Comrade, i assumed it would work like mov si, [Buffer] for example but different with pushes i guess :) i had only ever pushed registers before.
|
|||
22 Feb 2004, 15:58 |
|
Intrinsic 23 Feb 2004, 03:33
Well, WinExec suited what i wanted todo more so used that instead in the end :) and it's 10 billion times easier.
|
|||
23 Feb 2004, 03:33 |
|
comrade 23 Feb 2004, 04:02
WinExec is obsolete... If you are making a trainer, CreateProcess() already give you hProcess in PROCESSINFO structure.
|
|||
23 Feb 2004, 04:02 |
|
Intrinsic 23 Feb 2004, 04:26
No not a trainer, just a launcher for a game that refused to work with CreateProcess, but WinExec worked 1st time. This is a game that can only be launched by a dll of a certain name so i created a fake one that bypasses the patch server so you can point it at different server.
Ie, the way it was being done was to rename cmd.exe to login.dll then you would call the real dll with login.dll /C game.dll [parameters] But this wasn't much use to Win98 users, and as the original launcher was written in VB it required a load of OCXs to resolve IP addresses etc. So I set out to create one that would work for Win98 users and didn't require VBloat components etc. So, atm it calls it fine now and you launch the game and logon to the server, but it still gives me "login.dll has encountered a problem and needs to close" so i need to get rid of that. Edit: i will add that the problem message disappears after i exit the game, but it's still annoying anyways :) |
|||
23 Feb 2004, 04:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.