Yes I am, for further reference, here is what my compiling batchfile says:
gcc -c SDLTest.cpp
g++ -o SDLTest SDLTest.o -I SDL/include -L SDL/lib -lmingw32 -lSDLmain -lSDL -mwindows
Type: Posts; User: Rider
Yes I am, for further reference, here is what my compiling batchfile says:
gcc -c SDLTest.cpp
g++ -o SDLTest SDLTest.o -I SDL/include -L SDL/lib -lmingw32 -lSDLmain -lSDL -mwindows
(from a thread that got nuked)
I've just gotten SDL to work properly for a change, and was able to compile a basic SDL app with it.
Now I'm trying to get the hang of SDL itself, but this latest...
I'm currently working on a simple encryption program. The basic principles work and I've already implemented one method of encryption, and I want to add another.
The only problem is, for this, I...
Yes well, I already accomplished that earlyer. The only problem is that my method of encryption (by recalculating the ASCII value of the read character) requires the character to be moved through...
*Bump*
I'd really like some help on this issue... my current Encryption program looks like this:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
Regarding 1, I'm not quite sure what the right way would be to go about that, just removing it b0rks the code :)
on 3, I made the program output the size of every character read, and already it's...
They're defined above that, I didn't think it'd be that important, but regardless, this is where they are defined:
ifstream Fileop;
ofstream DestFil;
char Filenam[32];
char OutFile[32];...
Allright, after a bit of messing around with the code (and your second link, vart) I've come to create the following:
while (Fileop.good()) // As long as there's no Error or End of File
{
...
Ah! Excellent! That solves everything!
Now I have another question:
In my original program I converted the char read to an integer (it's ASCII value), did some math with that integer and put it...
Allright! That got rid of the thing... there's only 1 thing wrong now... at the end of a text file, it appends the last character twice.
I'm sorry to be such a bother, I'm not quite "at home" in...
I'm not sure I"m following...
does this mean I should declare the char pointer as an unsigned char? Or should I declare the integer m (as the example states) as unsigned?
And in the case of the...
Thanks for the help so far! I really appreciate it!
Just to try out your code bit, I made a small program that simply opens a file, and copies it to another file, character by character.
It...
I'm not quite sure what you're proposing here... I'm still quite new at C++
The read loop is what confuses me the most... could you elaborate?
Whoops, my bad.
After a disasterous last attempt at programming, I tried my hand at something a little easyer! Namely... Encryption! I'm quite pleased with my current handy-work... but there's something that I don't...
I'm trying to create a bit of code that can read information from a file, and based off this information, create a number of objects. However... I want every object created to be called U001 where...
Thanks a lot! Works like a charm :)
Hi, I'm rather new at C++ but I decided to go on and write 'a' program to see how far I could get. I got quite a while until I tried to do this:
class PlayerObject // The Object Representing the...
*bump*
I'd just like to get started on making games.
If anyone can help, please do, and if the question is stupid, please tell me.
I'm just here to learn :)
Surely, here's the code, as ripped from the link provided in my first post.
#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>
void Slock(SDL_Surface *screen)
{
Not sure how much of this is relevant but hey...
I'm running Win2000, and I'm using Dev-c++ with the Mingw32 compiler.
I've copied the libraries from the SDL installation into their respective...
Well I found out something stupid and fixed it, I forgot to add the library directories to the "directories" tab in my project...
that fixed most of my anguish, but now I'm getting a Makefile...
I have now tried to point to the .a and .lib files manually in parameters, but then I get a whole bunch of errors before even the first line of code.
...
I have set it up exactly as posted before (a couple of times) and added the stuff to my project's parameters tab, but it still tells me that it can't find lSDLmain
all the lib files in the...
It's kind of difficult to get the right bits of information, especially when several sites tell me varying things about how to get SDL to work.
I run Windows 2000.
My Dev-C++ is installed in:...
It looks allright, but I can't seem to figure out how to get the package running in Dev-C++ once I downloaded it.
It seems like I have all the files, I just don't know what to do with 'em...