| | |
i need help i c++ graphics
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
It depends what platform your building your game for. C++ doesn't know about 'mice'
If you're creating your game for Windows, you need to look at the Win32 API. Particularly the message loop or 'pump' as it's sometimes called. Windows will send mouse event msgs with parameters to this function within your C++ program where you can then decide how to handle them.
So Google for some of the terms I've mentioned and you can come back when your problem's a little more specific.
If you're creating your game for Windows, you need to look at the Win32 API. Particularly the message loop or 'pump' as it's sometimes called. Windows will send mouse event msgs with parameters to this function within your C++ program where you can then decide how to handle them.
So Google for some of the terms I've mentioned and you can come back when your problem's a little more specific.
Last edited by hollystyles; Jan 10th, 2008 at 11:59 am.
> and explaining a couple of functions i would really appreciate it
OK, All C and C++ programs begin with this function. When the function returns 0, this indicates that the program has successfully run to completion. Other values you can return are specified using the
Further,
> can anyone help me with mouse handling in c++
Standard C++ knows nothing about mice, or any other kind of rodentae. You need to tell us which operating system, compiler, graphics library etc you're using.
> help required urgently.
I'm sure it is, but that isn't my problem.
http://www.catb.org/~esr/faqs/smart-...ns.html#urgent
OK,
C++ Syntax (Toggle Plain Text)
int main ( ) { // your code goes here return 0; }
EXIT_SUCCESS and EXIT_FAILURE macro constants.Further,
int main ( int argc, char *argv[] ) introduce the mechanism by which you can specify command line parameters to the program.> can anyone help me with mouse handling in c++
Standard C++ knows nothing about mice, or any other kind of rodentae. You need to tell us which operating system, compiler, graphics library etc you're using.
> help required urgently.
I'm sure it is, but that isn't my problem.
http://www.catb.org/~esr/faqs/smart-...ns.html#urgent
You need to make use of MFC apis. Just create an application in VC++ environment and use the mouse operation apis.
![]() |
Similar Threads
- getting graphics into c++ (C++)
- Graphics cards question? (Monitors, Displays and Video Cards)
- Graphics T and L support (Monitors, Displays and Video Cards)
- XP and Graphics card problems (Windows NT / 2000 / XP)
- graphics card (Monitors, Displays and Video Cards)
- recommendations 4 a 3D graphics prog? (Graphics and Multimedia)
Other Threads in the C++ Forum
- Previous Thread: main(int argc, char *argv[])
- Next Thread: Flicking and/or disappearing sysmenu on MDI child window
Views: 773 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






