Advertisement

Problems with MSVC++ 6...

Started by March 08, 2003 01:50 PM
27 comments, last by cippyboy 21 years, 11 months ago
NO SHIT!

Relative Games - My apps

NO SHIT!

Relative Games - My apps

Advertisement
quote:
Original post by cippyboy
So the best way of = 2 arrays is to use a for ?


The only way.

quote:

It`s so stupid that 2 things of the same sizes not to be able to equal them...


The c++ standard prohibits you from assigning arrays. If you don''t like it, use std::vector, or pick a different programming language.


quote:

Dev-C++ is way better in these kinda things...way better...

No it''s not - it''s uncompliant, wrong, and teaches you poor coding habits because of it.
quote:
Original post by cippyboy
is he stupid or what ?
I think this is something we can all agree on!


quote:

Original post by cippyboy
So the best way of = 2 arrays is to use a for ?
Original post by sjelkjd
The only way.


Or memcpy() for arrays of primitive types, or std::copy().

quote:

The c++ standard prohibits you from assigning arrays. If you don''t like it, use std::vector, or pick a different programming language.


Don''t forget boost::array or std::valarray.
->However, dev-c++ doesn''t even work most of the time, and it ---->makes it harder than it already is...
What the heck does that supposed to mean ? MSVC++ never works !!!
Its damn stupid ! It gives me an error because I said that:
float a=0;
SO I have to ahead in more than 300 lines and set 0 to 0f or 0.0f
is it so hard for him to understand ?

Relative Games - My apps

Advertisement
It doesn''t give you an error, it gives you a warning. You can easily disable warnings or limit the compiler to reporting a warning only once using the #pragma directive.
"Walk not the trodden path, for it has borne it's burden." -John, Flying Monk
Oh well I managed to fix all my 60 errors and 500 warnings I had when I first compield my whole Project in MSVC++...I`m running fine right now...My exec is 100 KB Smaller(in Release offcourse)
but...in Debug Mode it gives me an error with some ESP,and says :
Microsoft Run-Time Debug Library Error...
Tells about some callig convetion...
I have a func(that might be the problem)
CheckButton(char C,..../*blah blah*/)
And I`m using it like
CheckButton((char)VK_RETURN,/*blah blah*/)
It`s no error when compiling(both IDE-s as someone said...)

Relative Games - My apps

quote:
Original post by cippyboy
but...in Debug Mode it gives me an error with some ESP,and says :


Are you overwriting some stack-allocated array?
I`m using 3 times a memcpy(Blah1,Blah2,sizeof(Blah2));
is this a bug ?

Relative Games - My apps

This topic is closed to new replies.

Advertisement