flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
comrade
take off square brackets [] from FileName and CmdLine
|
|||
![]() |
|
Intrinsic
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 |
|||
![]() |
|
comrade
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 |
|||
![]() |
|
Intrinsic
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.
|
|||
![]() |
|
Intrinsic
Well, WinExec suited what i wanted todo more so used that instead in the end :) and it's 10 billion times easier.
|
|||
![]() |
|
comrade
WinExec is obsolete... If you are making a trainer, CreateProcess() already give you hProcess in PROCESSINFO structure.
|
|||
![]() |
|
Intrinsic
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 :) |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.