Dev C++ Works MSVS 2008 Doesn't Work

Hello :D

I have two compilers on my system: MS Visual Studio 2008 Express and; Dev C++.

I have written an encryption/decryption program for a console application in VS 2008 and It compiled fine, but the actual app did not behave as expected (it only encrypted one character).

I checked the code and everything was OK. So then I copied over the same code into DEV C++ (except I didn't include "stdafx.h") , compiled, and it works just the way I wanted it to.

How could this happen when the code is exactly the same?

Thanks for any help,

Muhasaresa
Dev-C++ is probably using an older compiler and is compiling things wrong, allowing you to do things you shouldn't be able to. This is exactly why it should be avoided.

You must have a problem in your code. Can you post the code here?

Also you don't need the stdafx crap in MSVS. Just be sure to create an empty project and not one of the pre-built templates.
<>
Last edited on
I can't spot it. The code is really hard to follow with no comments, goto, and variable names that lack any meaningful description of what they represent.

What exactly is this code doing?
Oh, don't worry. I got it fixed by changing it to "Release" instead of "Debug".

Thanks anyway :D

Muhasaresa
Last edited on
That isn't fixing it. That's just a fluke. The program should work in both release and debug.

Blah @ deleting your post.
Topic archived. No new replies allowed.