No, neither produced any error messages.
The way without the '$' symbols worked as I expected, and the one with the '$' symbol didn't *appear* to change anything (the page reloaded displaying the same thing)
Since then I have found ways to work with the 'proper' notation, and while I don't...
This code shows what I expect: a submit button which when pressed will load the same page again with the words 'Submit was pressed' only appearing.
When I try this with $hasPassed instead of hasPassed, which is the way I thought I was 'supposed' to write PHP, it doesn't work...
Suggestions...
do you want to write some actual code here? that may help
i'm not an expert on these things, but have you checked to make sure you are releasing the DC at the correct time?
good luck, this stuff ain't easy...
-------------------------------------------------
“Talent is cheap, dedication is...
I think I understand that much; I know how to use a switch statement or if statement to determine the VALUE of nChar.
However, if one does as I say, the message will appear no matter what key is pressed - nChar is not checked...so shouldn't the WM_KEYDOWN message be passed to my dialog box no...
I create a MFC Dialog based app in MSVC++6
I get rid of all the controls (label, two buttons)
I add a windows message handler for WM_KEYDOWN
I change it so it shows a message with
AfxMessageBox("Hello", NULL, NULL);
Then I compile and run the program
If I press an arrow key...
Thank you very much for responding, your post and further reading have straightened this matter out for me. Have a good day BGrego!
-------------------------------------------------
“Talent is cheap, dedication is expensive. It will cost you your life.”
No revolutions :)
I thought messages were automatically sent to your WndProc function. Then I saw the loop with GetMessage, TranslateMessage, and DispatchMessage.
So two questions: 1) Does a windows message go automatically to your WndProc function? 2) Does the Get,Translate,Dispatch loop have...
I am moving (trying to!) from C++ console apps to windows apps. I have looked at some textbooks, and they explain that you need WinMain, sort of in place of main, and also a message handler or pump or something.
I understand that windows are sent messages and that it is generally a good idea to...
I understand that it sounds pretty strange, so I'll tell you what I'm interested in.
I want to model protein structures (three dimensions), which is fairly ambitious for someone who has only programmed in C++ for 2 weeks...
So I decided not to say, "How can I represent 3d electron...
I'm not entirely new to C++, but I need 'general' help...
Instead of reading dry manuals and the like, I want to improve my skills by practising on simple programs. So my question to you is: do you have any challenges for me, or other fairly new programmers, to improve our skills?
Not Olympiad...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.