the program gave me the following error as shown in the picture
the upper message box is the first to come. followed by the lower messagebox
link to picture : [url]http://i8.tinypic.com/6byefcy.jpg[/url]
it was working perfectly fine on my computer with compiler. When i brought it to another computer, this happened!
i tried redoing a new testing project and creating the webbrowser in the same manner and it was good
- using MFC
- created webbrowser2 by going to dialog editor, right click and select "insert activeX"
- disabled firewall on both computer
- both computers definitely have internet connection with IE 7
- m_webbrowser.Navigate runs in a worker thread
- the target website yahoo.com is definitely up. i checked with my firefox and IE browser
- no delay, noticed. which means webbrowser2 did not neven attempt to contact the site
I had a small task at hand of tracing out the contents of a packet(generally a binarry array) and was looking for a sample code on web to quickly do it. Couldn't find any, so wrote my own small function. I wanted to share this on this site. I am sure it would be helpful to many sorry souls like me .
I am already a registered member of this site. But I don't see any link on how to post a small code snippet.
You're describing an article. A code snippet is useless without some text to describe what it does, and how, so you'd want to write a short article and use the article submission wizard to submit it, and the code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I'm running Visual Studio 2005 and I have a specific key set for toggling between full screen and windowed mode -- F10. The following is a section of my code that runs in a while loop and handles my messages.
//Check message queue and remove the message after processingif (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
if (msg.message == WM_QUIT)
m_terminate = true;
elseif (msg.message == WM_KEYDOWN) //DEBUGGING
//... more code here
Now, when I set a breakpoint at if (msg.message == WM_KEYDOWN), whenever I press a key in my program, Visual Studio will break at that line and allow me to debug into it. This works all the time except for when I press F10 (I have a few other keys for toggling things). When I press F10, my program will hang for a little while, and then just continue working as if nothing happened, and my breakpoint will not be hit. I'm curious as to why this is. Anyone have an idea?
I guess I should mention that I have declared MESSAGE msg; outside of the while loop.
MODIFIED: It seems like the F10 key is a special key that is handled differently from the others.
Here's an addition to my problem. The F9 key is OK (VK_F9), but the F10 key is still not (VK_F10). VK_F9 = 0x78, VK_F10 = 0x79, as expected. Is there something in the details that I should know but that I've completely overlooked (such as VK_F10 being reserved for some kind of system use only, or whatnot)?