Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
Want to earn prizes for clicking online advertisements? Join Rewards1.com.
|
|
|
#17403 - 07/31/02 05:19 PM
multithreading!!
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
Ok, I'm going to ask all the REAL C++ programmers out there to answer this.. and give me some good advice. I'm programming an arcade game, probotector style, with flashy lights, lots of ammo, and sh*t. This blended in with the all-mighty invaders feeling with ships moving downwards and changing direction and so... Now.. I have been reading on multithreading. (I have Turbo C++ 5.02 ) And the help that I find there is not very satisfactory! I have been reading till my eyeballs started to bleed, but it doesn't make any sense!I mean, god!!! Can annyone here give a light-easy to understand-explanation of how to: Start a new thread - and linking or putting in or whatever it's called functions into it. Stopping the tread. The compilation is suposed to be speciall with some parameters.. that's no problem...
![[Shit]](graemlins/shit.gif)
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
|
|
#17405 - 08/01/02 07:07 AM
Re: multithreading!!
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
SilentRage, with 'real programmer', i'm refering to the guys that know what theyr'e talking about. Not the showoff boardgliders that oftenly get their nowses into discutions that they haven't got a clue about just to look cool. And I'm sure that you don't fit into THAT category =) Thanx a lot for the 'directioning', if it doesn't work out i'll let ya know. 
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
#17406 - 08/01/02 01:02 PM
Re: multithreading!!
|
DollarDNS Owner
Registered: 03/04/02
Posts: 1273
Loc: OH, USA
|
well, if you said 'real programmer' I probably wouldn't have said anything cause I consider myself a real programmer (I place a lot of meaning to 'real programmers'). however, you said 'REAL C++ programmers' and I do not code in C++ at all. My hold on C is patchy at best - learning only what I need to learn to do a given project or answer a given question. So I was a bit miffed that even though I wasn't a 'REAL C++ programmer' that you indicated that I couldn't be of any help to you at all. But anyway, it was a moments irritation. I no longer care.  You're coo'. And if you do still have issues, I'll learn it and give ya a detailed tut/example code on how to multi-thread.
|
|
Top
|
|
|
|
#17407 - 08/02/02 05:25 PM
Re: multithreading!!
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
Well SilentRage, enlight me! I'm sure that you will give me something better than the planetsourcecode. Honestly, I'm not good at reading other peep's code that doesn't have any good comments. I got lost in an example that I downloaded. I would really like you to show me some multithreading, not something complex. Just some basic, so that I can carry it on from there. Example: a program that has 2 balls, ball no1's movement is calculated in one thread and ball no2's movement in another thread. =) Thanx a lot ![[Thumb]](graemlins/thumb.gif)
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
#17408 - 08/06/02 07:01 AM
Re: multithreading!!
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
Come on SilentRage, tell me...
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
#17409 - 08/06/02 01:49 PM
Re: multithreading!!
|
DollarDNS Owner
Registered: 03/04/02
Posts: 1273
Loc: OH, USA
|
ah yes, thanks for reminding me. Last time I had searched for the example code that I had previous downloaded from planet source code and couldn't find it. Then I had given up and forgot to pursue other sources. I found a tutorial by doing a google search: http://www.flipcode.com/tutorials/tut_mthreading.shtml http://www.flipcode.com/tutorials/tut_mthreading2.shtml However, I was not entirely satisfied, and altered my search criteria at msdn.microsoft.com for "creating threads". Then i found a bundle of information which is what I myself would prefer to read if I wanted to make a multi-threading application. Here's the link that will take you through several pages of helpful information. http://msdn.microsoft.com/library/en-us/dllproc/prothred_0t83.asp Only after you've looked at all that and still can't get a grasp on what you need to do, will I take that information and round it out into a no-nonsense tutorial.
|
|
Top
|
|
|
|
#17410 - 08/06/02 05:24 PM
Re: multithreading!!
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
Thanx man =) If I would have chosen someone to be my programming teacher, you would have been the man,,, (if you are a man I really honestly don't know). ![[Thumb]](graemlins/thumb.gif)
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
#17413 - 08/09/02 10:25 AM
Re: multithreading!!
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
Hmmm.. maybe I should refrace myself, yes I will use the links you gave me when I get into Visual C++, but now I wonder...
(the most classicall problem of all) How do I do to make for example (in DOS) to program the motion of the space ships in "Invaders", and still be able to have the user moving the spaceship at the same time? Something like multithreading, but for DOS. How? Thanks...
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
#17415 - 08/09/02 08:52 PM
Re: multithreading!!
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
For example. How did they do Duke Numed 1, I mean, that's for sure some DOS game. How did they get the enviorment to function, independently from the player?
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
|
Registered: 03/07/02
Posts: 270
|
|
2198 Members
46 Forums
24935 Topics
60105 Posts
Max Online: 1567 @ 04/25/10 10:20 AM
|
|
|
0 registered (),
314
Guests and
253
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|