Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / December 2003



Tip: Looking for answers? Try searching our database.

GetCommandLine() returns invalid address

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Akira Nagata - 13 Dec 2003 19:26 GMT
Hi,

I have just started coding a tiny application for Windows with
CodeWarrior Win 8.3 (on Windows 98SE).
Current probrem is GetCommandLine() ever returns invalid pointer,
therefore I cannot obtain what is passed to the application.  It
occurs in runtime start-up routine (winmaincrt.c), of course, valid
pointer never be passed to WinMain().
It looks like linking problem, because everything goes well when I
build same code with VC++6.

Any idea?

Thanks in advance.
---------------------
Akira Nagata
Tokyo, Japan
Akira Nagata - 15 Dec 2003 17:26 GMT
> Hi,
>
[quoted text clipped - 4 lines]
> occurs in runtime start-up routine (winmaincrt.c), of course, valid
> pointer never be passed to WinMain().

I noticed that WinMain() was passed valid pointer but CodeWarrior
debugger just displayed 'Can't read the memory from the address'.

Now I can open a file D&D to my app.
---------------------
Akira Nagata
Tokyo, Japan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.