CrossWired
asked on
Launch WebPage from Console App
Is it possible to launch a webpage from a Console App using the ShellExecute?
ShellExecute(NULL,"open"," http://www.trgnet.com/bcb/index.htm", NULL,NULL,SW_SHOWDEFAULT);
Jay
ShellExecute(NULL,"open","
Jay
Yes, absolutely. What problems are you encountering?
ASKER
The instruction at "0x00401cd0" referencd memory at "0x00000000". The memory could not be "read".
Click n Ok to Terminate...
Click Cancel to debug
Click n Ok to Terminate...
Click Cancel to debug
ASKER
It compiles fine, bu tdoesn't run fine..
ASKER
nevermind its not in that code its elsewherew
That is not related to the above line of code, this in fact works OK. Speaking of OK, have you tried pressing 'Cancel'? This will take you straight to the line of code that produced that error.
ASKER
it takes me to the assmebly line
Are you testing a Debug or Release build? For the latter, that could be the problem why you don't seee any source code. BTW, check the call stack to see what function in your code called the faulting instruction.
ASKER
You lost me there, I set it to Debug Mode vice Release, Ran it again, and hit Cancel, it took me to Assembly, not so good with reading that stuff
ASKER
What are some of the common thigns that could do to make "0x?????" reference "0x00000000"? What should I look for in my code?
ASKER
eitherway, i'll pick this up on Monday, it tis the weekend, I must go play..
Thanks so far
Jay
Thanks so far
Jay
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It turned out to be my command line arguments. When I didn't have one I was checking the value of argv[1] which was not there, hence giving me an error.