Link to home
Start Free TrialLog in
Avatar of CrossWired
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
Avatar of jkr
jkr
Flag of Germany image

Yes, absolutely. What problems are you encountering?
Avatar of CrossWired
CrossWired

ASKER

The instruction at "0x00401cd0" referencd memory at "0x00000000". The memory could not be "read".

Click n Ok to Terminate...
Click Cancel to debug


It compiles fine, bu tdoesn't run fine..

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.
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.
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

What are some of the common thigns that could do to make "0x?????" reference "0x00000000"?  What should I look for in my code?
eitherway, i'll pick this up on Monday, it tis the weekend, I must go play..

Thanks so far

Jay
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.