So I have this code:
String^ main = "http://www.lockerz.com/";
if(main == web->Url->ToString()){
MessageBox::Show("Hello", "WIN");
}
and it's attached to a timer that ticks every 100 milliseconds. Oh yeah, and web is the web browser in VC++.
But when I run, I get this error:
An unhandled exception of type 'System.NullReferenceException' occurred in Lockerz.exe
Additional information: Object reference not set to an instance of an object.
(The project is named lockerz)
and when I used the red-dot thingy (that pauses the code at the line), it pointed to the "if" as being the problem...
So, any ideas?