473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Need some help compiling something

I used to program. However i'm finding that statment now means as much
as a 40 year old saying "I used to be cool".

I've got a program here, and the code for it, and i want to make a
custom alteration. Very minor at that.

Here's what the program does. It generates a pattern of random lights
on the screen, pauses for a few seconds, then does it again. If during
the pause the "S" key is pressed, it writes the screen contents to a
..bmp file.

All this code is already in place. All i want to do is make it so that
instead of pausing, it calls the sub for writing the bmp automatically,
then continues.

I can even make these modifications to the code myself, it's pretty
simple. The problem i'm having is compiling. It's been about 10 years
since i left school, and therefor about 10.5 years since i've actually
done anything like this.

If anyone is willing to help me get this to work, please reply. I thank
you in advance.

Jun 11 '06 #1
9 1556

ki*****@yahoo.com schreef:
If anyone is willing to help me get this to work, please reply. I thank
you in advance.


If I understand correctly you're asking how to compile a program? Don't
you think it's only fair you tell us _what_ compiler you are using (or
trying to use)?

Besides, this is an n.g. on the language 'c', not about specific
implementations, so you may get a better answer if you ask in a n.g.
that's specific for your OS/implementation.

Jun 11 '06 #2
It's not finished, but if you can't be bothered messing about
installing compilers you can use an online one called Compilr at
http://www.caller.me.uk/Compilr - just put the code in textbox and
click compile.

Jun 11 '06 #3
ki*****@yahoo.com wrote:
I used to program. However i'm finding that statment now means as much
as a 40 year old saying "I used to be cool".

I've got a program here, and the code for it, and i want to make a
custom alteration. Very minor at that.


You've not even specified what language the program is written with.
Since you're posting here, I'm assuming it's C.

If the failure to compile is due to standard C constructs or misuse of
the same then this group can help you, if you post your source along
with compilation details.

Otherwise, it would be better to post to a group specific to the
compiler you're using or the operating system for which you're
compiling. In anycase provide the source code and details of
compilation environment.

Jun 12 '06 #4
Thank you santosh, this is the reply i was hoping to get :)
1) your right in asuming it's a C program
2) Your right in asuming the failure to compile is a misuse of
something

Here is the file, I've got a few links for it, just incase one fails.

http://s1.upload.sc/request/09c260b5...530bdd6e/owner
http://www.filefactory.com/?8269f3

The file contains the source, a compiled version of that source, and a
prefs file.

So the source is pretty plainly laid out. Note, that's the original
version. It does not contain the alterations i want. I discarded them,
because i'm sure that's probably the issue. Like i said originally,
it's been 10 years since i used C++ in my Highschool class.

All i need is for "void screenshot" to be called at the end of the
routine that makes all the pretty images. This will create a looping
program that will create a TON of bmp's until I press ESC. (esc is
already programed as a break)

Thank you so much for your willingness to help.

Jun 12 '06 #5
In article <11**********************@c74g2000cwc.googlegroups .com>,
Kileran <ki*****@yahoo.com> wrote:
Here is the file, I've got a few links for it, just incase one fails. http://s1.upload.sc/request/09c260b5...530bdd6e/owner
That one doesn't work. There was a 60 second timeout on the link you
generated.
http://www.filefactory.com/?8269f3


That one is pretty slow... I'm not sure if it is working or not.
--
Programming is what happens while you're busy making other plans.
Jun 12 '06 #6
Kileran wrote:

Thank you santosh, this is the reply i was hoping to get :)
1) your right in asuming it's a C program
2) Your right in asuming the failure to compile is a misuse of
something

Here is the file, I've got a few links for it, just incase one fails.

http://s1.upload.sc/request/09c260b5...530bdd6e/owner
http://www.filefactory.com/?8269f3

The file contains the source, a compiled version of that source, and a
prefs file.


Include context. If you are using a google that has not
implemented automatic quoting, see my sig below. Without context
your post it meaningless to the vast majority, who are not using
the broken google interface to usenet.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>
Jun 12 '06 #7
This one may work better. It's only a 9kb zip file, so slow shouldn't
matter

http://s1.upload.sc/request/8a5d5f0d...3b0f8eaddef46d

Jun 12 '06 #8
In article <11**********************@j55g2000cwa.googlegroups .com>,
Kileran <ki*****@yahoo.com> wrote:
This one may work better. It's only a 9kb zip file, so slow shouldn't
matter http://s1.upload.sc/request/8a5d5f0d...3b0f8eaddef46d


I had a bunch of trouble getting it to work, but eventually was
able to do the download.
--
Prototypes are supertypes of their clones. -- maplesoft
Jun 12 '06 #9
In article <11**********************@c74g2000cwc.googlegroups .com>,
Kileran <ki*****@yahoo.com> wrote:
:Thank you santosh, this is the reply i was hoping to get :)
:1) your right in asuming it's a C program
:2) Your right in asuming the failure to compile is a misuse of
:something
Here is the file, I've got a few links for it, just incase one fails.


Sorry, your program requires
<windows.h> and <ddraw.h>, neither of which are standard C.
The problem might be with those. Your program appears to use
Windows specific features: in particular you declare some things
with a CALLBACK attribute; for standard C that would have to be
#define'd into nothingness.

You also have these difficulties:
- <stdlib.h> must be included to define RAND_MAX malloc free exit
- <string.h> must be included to define memset
- you do not define min() or max() anywhere. Those are not defined
in any standard header, so you need ot define them yourself.
--
If you lie to the compiler, it will get its revenge. -- Henry Spencer
Jun 12 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: svenn.are | last post by:
Hi, I wanted to run a program that is written in PyQt on my mac, and went over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources. I followed the installation guide except for the compiling...
14
by: Rostau | last post by:
Hi all I'm writing a small app that needs to be in C++ and needs to send email from inside the program. I can do this easily in PHP, Perl and Java, but have no clue how to do it in C++. Does...
3
by: federico_bertola | last post by:
I have this code: int RESULT_OF_BLACKLIST = 0; int BlackListMethod( { FILE *blacklist; char String = "I.am.a.dotted.string"; char Word; if ((blacklist = fopen("blacklist.dat", "r")) == NULL)...
2
by: john.placais | last post by:
Hello generous helper! I am trying to figure out how to port my code from 32-bit VC++ 6.0 to unmanaged C++ 64-bit VS2005. I have found the preprocessor definition changes and the linker changes,...
9
by: kotori | last post by:
Hi, i'm looking for a C++ compiler that I can run straight off of a USB Thumbdrive for compiling my applications on-the-go. I currently use both dev-cpp and MSVS8 at home, but I desperately need...
7
by: The Cool Giraffe | last post by:
Please note that i do intend to use a header file. However, i'm not sure if it's really needed or just a convention. Suppose we have the following two files. // Something.h class Something {...
0
by: rsadalarasu | last post by:
Hi Everybody, I m very new to Db2. I tried compiling a stored procedure in DB2 Development Center. Build failed with error message like nmake command is unavailable..(something like that). I...
1
by: sahilrekhi | last post by:
Hi i am working on a graphical user interface deisgn programme. when i compile the file i i get the following output with the mentioned errors: 1>------ Rebuild All started: Project: guiq,...
0
by: Sells, Fred | last post by:
I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.