C++ example?

Anything and Everything about Uplink

Moderators: jelco, bert_the_turtle, Chris, Icepick, Rkiver

Natzor
level2
level2
Posts: 106
Joined: Thu Apr 29, 2004 7:54 pm

C++ example?

Postby Natzor » Wed May 05, 2004 3:30 am

I was wondering if somebody could use OpenGL & Dev-C++ and make an example program using the given H files... that could detect mouse clicks&the mouse position along with detecting keyboard input?
Kinda like this: Three buttons. Button1 can be clicked and dragged. If you click button two then button1 with say 'clicked' and if you type on the keyboard then it will display your input text on button three.

Could somebody make that?
http://arsenark.com/games/original/?game=651
[Check out Galactic Hacker-Made totally by me using Game Maker & Corel Draw V9-current download is Version 1.0]
ReflectingGod
level5
level5
Posts: 2725
Joined: Sun Mar 17, 2002 4:40 pm
Location: W. Australia

Postby ReflectingGod » Wed May 05, 2004 4:16 am

Yeah, except there are two things stopping me:

Time

Laziness


Why don't you figure out how to do it yourself?
ME!

Procrastination - Hard work often pays of after time, but laziness always pays off now!

**Bibo ergo sum!**
Stewsburntmonkey
level5
level5
Posts: 11553
Joined: Wed Jul 10, 2002 7:44 pm
Location: Nashville, TN
Contact:

Postby Stewsburntmonkey » Wed May 05, 2004 4:19 am

My guess would be:

Time

Laziness :P
ReflectingGod
level5
level5
Posts: 2725
Joined: Sun Mar 17, 2002 4:40 pm
Location: W. Australia

Postby ReflectingGod » Wed May 05, 2004 4:21 am

Heh, maybe, but if he can't be bothered to do it for himself, why should I make the effort to do it for him?
ME!



Procrastination - Hard work often pays of after time, but laziness always pays off now!



**Bibo ergo sum!**
Stewsburntmonkey
level5
level5
Posts: 11553
Joined: Wed Jul 10, 2002 7:44 pm
Location: Nashville, TN
Contact:

Postby Stewsburntmonkey » Wed May 05, 2004 4:37 am

I don't know. It is like he is actually expecting someone to code him up a program. If he would just figure out Google he could find all sorts of stuff on his own. :)
User avatar
Iris
level5
level5
Posts: 2423
Joined: Wed Apr 09, 2003 6:15 am
Location: Land of the Morning Calm

Postby Iris » Wed May 05, 2004 5:10 am

Perhaps if he offered some money, then he'll be talkin. =)
Image
Katana Steel
level2
level2
Posts: 131
Joined: Tue Sep 30, 2003 12:12 pm
Contact:

Postby Katana Steel » Wed May 05, 2004 7:34 am

You could start on the lessions at nehe.gamedev.net, there you can learn how to use OpenGL, and also how to detect mouse clicks in your application.

But there's no easy way to this, you'll need to actualy learn something. :)
-- as life grows older, I gain experience
User avatar
NeoThermic
Introversion Staff
Introversion Staff
Posts: 6256
Joined: Sat Mar 02, 2002 10:55 am
Location: ::1
Contact:

Postby NeoThermic » Wed May 05, 2004 11:26 am

And... read the red book...

http://shadowconflict.com/opengl.html

Its got everything that you will need on how to do OpenGL...

NeoThermic
Natzor
level2
level2
Posts: 106
Joined: Thu Apr 29, 2004 7:54 pm

Postby Natzor » Wed May 05, 2004 4:04 pm

Actually I didn't ask ya'll to make an example cuz I was lazy, I just wanted to learn how to do it... I don't know how, thus I asked. I'll check out those links though. :)
http://arsenark.com/games/original/?game=651

[Check out Galactic Hacker-Made totally by me using Game Maker & Corel Draw V9-current download is Version 1.0]
Natzor
level2
level2
Posts: 106
Joined: Thu Apr 29, 2004 7:54 pm

Postby Natzor » Wed May 05, 2004 6:46 pm

BTW to you people who can't get GH to go past the first mission:
There is a bug... the server you have to hack has a low proxy... and you can't manipulate the files unless you have the security analyzer and a bypasser. My next beta fixes that.... also my next beta already has a complete storyline... I just gotta iron out the bugs in it now.
http://arsenark.com/games/original/?game=651

[Check out Galactic Hacker-Made totally by me using Game Maker & Corel Draw V9-current download is Version 1.0]
Superpig
level4
level4
Posts: 658
Joined: Sat May 04, 2002 10:06 pm
Location: Right behind you
Contact:

Postby Superpig » Thu May 06, 2004 12:20 am

It's very simple. You just google for and download the DWIM library, add it to your linker settings, and tap in the following program:

Code: Select all

#include <dwim.h>

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmdLine, int nCmdShow)
{
 DoWhatIMean();
}
Superpig
- Saving pigs from untimely fates

Return to “General”

Who is online

Users browsing this forum: No registered users and 11 guests