Archived

This topic is now archived and is closed to further replies.

RedFTiger

FOR THE LOVE OF GOD PLEASE HELP!!!

Recommended Posts

Soory for putting this up twice but Everytime i compile my code, and run it, i get an illegal operation. Ive tried everything i could thing of but it didn't help. Please Help!! Edited by - RedFTiger on February 21, 2002 7:46:27 PM

Share this post


Link to post
Share on other sites
It''s hard to help when you don''t give any useful information about your problem...

First off, did you run your program under a debugger?
What does it do?
Are there any error messages?

Just saying "Please help" won''t get you far, if you say nothing about your particular situation.

Share this post


Link to post
Share on other sites
Well Im using Dev-C++. Anyway, when i make my window, it runs fine, but when i call the DirectdrawCreateEx() function, my program makes and illegal operation. Ive tried compiling examples from the sdk using Dev-C++ and i get the same results.


Edited by - RedFTiger on February 21, 2002 9:11:32 PM

Share this post


Link to post
Share on other sites
This could be because:

* Your video card drivers need updating (to DX compatible ones)
* Your Dev C++ build files are corrupt - try re-installing them.
* Your RAM fails at certain addresses - boot of a boot disk and test the memory with himem.
* U need updated Dev C++ DirectX files.

Share this post


Link to post
Share on other sites
quote:
Original post by Anarchi
This could be because:

* Your video card drivers need updating (to DX compatible ones)
* Your Dev C++ build files are corrupt - try re-installing them.
* Your RAM fails at certain addresses - boot of a boot disk and test the memory with himem.
* U need updated Dev C++ DirectX files.


Or he could be just doing something wrong in the function.

Secondly maybe you should try Borland C++ builder(the free one). A good IDE for it is at www.objectcentral.com




Edited by - flame_warrior on February 21, 2002 10:13:45 PM

Share this post


Link to post
Share on other sites
NULL Pointer perhaps? Thos cause problems...

-----------------------------
Damnit Dave, I would have a link to Graphics Wars here, but you haven''t put it up on GDNet yet!

The sad thing about artificial intelligence is that it lacks artifice and therefore intelligence.

Democracy is where you say what you want and do what you''re told.

Share this post


Link to post
Share on other sites
If it still doesnt work then I suggest u start fresh with DirectDraw7 and maybe even use classes to organise your code more - download the DX7SDK and use the code from the DDraw7 samples.

Otherwise send me the code again as a zipped attachment and ill find the problem.

NSZeroOne@Hotmail.com

Downloads, D3DXSprite tutorial, New platform game: .-= The ZeroOne Realm =-.

Share this post


Link to post
Share on other sites
quote:
Original post by Anarchi
Otherwise send me the code again as a zipped attachment and ill find the problem.


Why don''t you zip your project and put it up somewhere?

Share this post


Link to post
Share on other sites
I used to be a Dev-C++ user (thank goodness those days are over). I got the same problems as you''re getting. Are you by any chance using the libs and headers from the SDK? If no, STOP IT! No good for Dev-C++. Go here instead: http://www.bloodshed.net/dev/docs/doc_directx.html. Special converted libs for DX. If all else fails, somethings not working right with your code, and its a failure on your part.

Share this post


Link to post
Share on other sites