|
Yes, I am using C++ for my CE games. I am almost finished with my first, a flavor of Space Invaders!
I suppose it is really a matter of what language you prefer. I guess you can be most productive with a language you know.
However, Java, C# etc could be used if you prefer.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
|
thanks about to check it out..
question would you recomend the book "beginning c++ game programming?
dee
|
|
|
|
|
I'm relatively new to win32 programming and im just looking to get a small application together that causes a windows application to have a 'shade' effect when one double clicks the title bar (instead of maximizing)... If anyone can give me some tips and/or examples I would appreciate it very much.
Thanks in advance.
Regards,
Will
|
|
|
|
|
Handle the WM_NCLBUTTONDBLCLK message. This is the message sent when a double-click occurs in the non-client area of a window.
the WPARAM variable should contain a hit-test value, one of which is HTCAPTION, signifying a hit on the caption bar.
if (wParam == HTCAPTION)
// do whatever
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
8-)
Thank you, this helped me a lot
|
|
|
|
|
Is there a function to tell you what's the size of current window? So I can do wordwrap if the user shrink the window or draw horizon line that stretch all the way across
|
|
|
|
|
Ooops forgot to mention. Using MFC default Document/View
|
|
|
|
|
|
ok.....;)
define a variable......
CRect rect;
then use the the function.....
GetClientRect(rect);
then u can get the properties of the window using the following functions.....
x=rect.Height();
y=rect.Width();
hope that helpz.....
happy programmin.....
cheerz
|
|
|
|
|
For a MFC application I have been using the standard windows timers (WM_TIMERS - SetTimer() etc).
However sometimes data is missed, I was thinking of using Multimedia timers.
The resolution of my PC is 1 msec (I though it was 10 msec via a timer program).
My question is: Is 50 msec too hard for Windows 2000 to meet.
It is difficult to test for missing data, but I think the Multimedia timers are also missing some data. Do I need to rethink the situation?
grahamfff
|
|
|
|
|
Multimedia timers would likely be better, however I would think processing incoming data would be better handled in a worker thread and posted back to the main thread.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
i seriously dont think that 50ms could be the reason.....they are interrupts(timer) and therefore they are serviced at the rigth time.....;)
|
|
|
|
|
Always remember: Windows is NOT a real-time OS!
Don't try it, just do it!
|
|
|
|
|
I'm getting some weird results in my MFC application when I press F1 over a menu item. For some reason, I get an error "cannot open Help" when I press F1 over certain menu items. It seems totally random. I never did anything special to make it work for any of the items anyway. When I created the application, I enabled HTML help. I've been able to change the table of contents and add help files. But one thing I have not figured out is how to control what pops up when F1 is pressed. For most of the menu items, it works fine. For instance when I put the mouse pointer over the view -> status item and press F1 it immediately brings up the status help screen with the Main Help dialogue. When I do the same over File -> open or Help -> help topics I get the error message. I'm not finding anything specific in MSDN library.
What is the trick here? I know I can handle a message to respond to F1 and have done this. But I was hoping to find another way. I mean after all, 95% of the menu items work fine when I press F1 but I have no idea what gives for the very few where it doesn't work.
Also, in one of my dialogues I have written code for the function:
HtmlHelp(NULL, HH_DISPLAY_TOPIC);
Now this will display the main help window. The NULL could be a pointer to something. I don't know what it is a pointer to. Does anyone know? How do I use the first argument to cause a specific help topic to display within the help dialogue? I've tried a few things and don't think the documentation is entirely clear on what I am supposed to point the function to. Any ideas?
Thank you,
Shawn
|
|
|
|
|
|
Hello everybuddy,
I have developed a simple dialer application that uses RAS ocx component to dial a RAS server. I set three of its properties as 'PhoneNumber', 'UserName' & 'Password' and start dialing, but Authentication fails although I am sure my credentials are correct. (I can connect using Windows' connection)
I am not sure if just these three properties are sufficient to be set, or anything that I haven't noted,... I need your gaidance.
Thank you,
- den
---
"Art happens when you least expect it."
|
|
|
|
|
I have a ON_NOTIFY_REFLECT handler that does not get called.
I tried the same ON_NOTIFY_REFLECT in another dummy application with the same GUI layout and hierarchy, and the handler is called.
Is there a way to know where the message is blocked ?
the message is
ON_NOTIFY_REFLECT( NM_CUSTOMDRAW, OnCustomDraw )
To do a custom draw on a CTreeCtrl derived class.
(edit)
Never mind me ... I was brain dead for a couple of minutes ...
I already had NM_CUSTOMDRAW handled in the parent window.
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hello,
How could i parse a CHttpFile object (response from a HTTP request)?
Which class can i use?
[]'
Cris
|
|
|
|
|
IHTMLDocument2
There is no spoon.
mail
|
|
|
|
|
Thank you for your help, but this class is not from Visual C documentation.
I have solve my problem simply interpreting the xml received like a text.
[]'s
Cris
|
|
|
|
|
Howdy All-
I am not sure where to post this -- but being a C++ program, this is as good a place as any.
I've got this DLL, written as a resources for IIS.
It loads via DLLHost and and ISAPI DLL....
It uses MSXML3
It leaks bytes.
Anyone have any good clues how to debug a DLL, looking for memory leaks, when it's loaded in someone else's process? Inside DLLHOST?
Any and all clues are welcomed!
Thanks in advance
-peter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Saludos:
I am in the need for reading huge text files and displaying the contents of
the file page by page. I have read many of the articles in the Doc/View
section but right now I am confused into wich way to go. I am an experienced
mainframe programmer but really a newbee in MFC/C++. Any help with this will be very much appreciated.
Cordially;
Joe González
|
|
|
|
|
JoeGonzalez wrote:
I am in the need for reading huge text files
How huge is "huge?" Have you considered a CEdit or CRichEdit control? Are the files viewable by, say, Notepad? If so, why not just use it?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Good question. Also keep in mind that when it comes to "HUGE", say > 100MB of text data, I would not recommend using notepad. Notepad is terribly inefficient for some reason. Wordpad handles large text files, for viewing, much more effectively.
|
|
|
|