flat assembler
Message board for the users of flat assembler.

Index > Windows > __GetMainArgs question

Author
Thread Post new topic Reply to topic
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude
Hi

I have a pretty simple question... which function should i use, __GetMainArgs from crtdll.dll or __getmainargs from msvcrt.dll? is there any difference? i have been not able to find anything about it on internet. Probably a stupid question lol
Post 17 Jul 2012, 20:24
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
What this function is supposed to do?
If you are talking about command line arguments, then use GetCommandLine and CommandLineToArgv from kernel32.dll
Post 18 Jul 2012, 04:24
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude
I tried using them but they are unicode and got a lot of troubles with them. So i used __getmainargs but im not sure if import it from crtdll.dll or msvcrt.dll as i could not find any reference about them
Post 18 Jul 2012, 16:24
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
Use msvcrt.dll, it's a more modern version of crtdll.dll
Post 19 Jul 2012, 10:55
View user's profile Send private message Reply with quote
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude
Ok, Thx Smile
Post 19 Jul 2012, 17:25
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.