[E] argc, argv example
I need an AmigaE example how to get program name while executing from icon. I know there is an easy to use GetProgramName() function of AmigaOS, but it reads only from CLI/Shell.
|
I've never used E and I don't know how OS stuff is handled there (you know OS calls, OS structures). But when your program started from WB and you sure about that, then you have (after callsys GetMsg) as answer structure WBStartup and there you can find sm_NumArgs and sm_ArgList.
|
|
Thank You!
I've managed in other way. I found 'workbench/startup' module with wbstartup object defined. In short: Code:
... :-) But it works. |
All times are GMT +2. The time now is 03:30. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.