Tips on windows programming

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2004
Posts: 353
Reputation: Asif_NSU is on a distinguished road 
Solved Threads: 2
Asif_NSU's Avatar
Asif_NSU Asif_NSU is offline Offline
Posting Whiz

Tips on windows programming

 
0
  #1
Jul 9th, 2004
Guys, I need some help on programming in windows.

U see I learned to program in DOS using C and C++. So I mostly used console to show output and to get input. Now as a part of my this semester's project i have to do the programming in windows. I actually want to make some games that would be running in a window. For that i need to now "How do I even create a window and write things on that,that is how can i use it as a subtitute for the console." I just need to know the easy library functions to get the job done as simply as possible. And also how to show some image in a portion of that window and then how to move it. Just tell me the library functions that will make my life easy.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 3
Reputation: Talib is an unknown quantity at this point 
Solved Threads: 0
Talib Talib is offline Offline
Newbie Poster

Re: Tips on windows programming

 
1
  #2
Jul 9th, 2004
A R R
well if u use MFC there are class for windows

in Windows operating system sends messages to your window's procedure (ex wM_mousemove, ...) witch is responsible for calling functions u want depending on the type of message

in mFC it is easy and u dant need to know all minor things
u just create a class for window derived from CFrameWnd and show wich functions u want to call on the specific event=message

u create the CWinApp::instance(...) of these class CFramewnd::Create(...) in initinstance-function of you CWinApp class object representing the application and
and give the pointer to the window m_pMain...= ptrYourWnd;
look in MSDN= microsoft developer network

if u want to use borlands VCL there are also some classes

But if u want to use WinAPI=aplication programming interface directly it is hard
but i can send u a skeleton

if u want some details write me mail www.tsadigov@yahoo.com

I am a beginner but i hope i will be able to help u
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 10
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: Tips on windows programming

 
0
  #3
Jul 9th, 2004
If you look for examples using DirectDraw, that will be closer to gaming things. The DirectDraw examples show typical simple gaming loops, and will be better for gaming animation than regular windows drawing.

In the VC++ help index, look for "DirectDraw samples"
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 353
Reputation: Asif_NSU is on a distinguished road 
Solved Threads: 2
Asif_NSU's Avatar
Asif_NSU Asif_NSU is offline Offline
Posting Whiz

Re: Tips on windows programming

 
0
  #4
Jul 10th, 2004
MFC or DirectDraw? I guess i have to do some studies on them to pick the right one.
I really dont have much time though. Maybe about 4 weeks to do my project.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC