Forum: C++ 7 Days Ago |
| Replies: 8 Views: 260 After your edit it still gives me errors:
c:\documents and settings\tom\my documents\visual studio 2008\projects\classeslol\classeslol\main.cpp(6) : error C2440: 'initializing' : cannot convert... |
Forum: C++ 7 Days Ago |
| Replies: 8 Views: 260 You code has alot of errors:
------ Build started: Project: classeslol, Configuration: Debug Win32 ------
Compiling...
main.cpp
c:\documents and settings\tom\my documents\visual studio... |
Forum: C++ 7 Days Ago |
| Replies: 8 Views: 260 I have seen an array struct in C that can hold data even if they are a different type. I forgot what that code was and I don't have the code on me at the moment. So I was wondering if anyone could... |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 I fixed that one two, but now when I enter "spawn BaseEntity" it outputs this 11 times:
BaseEntity::OnSpawn( ): This class does not have a OnSpawn function.
Any more help would be appreciated. |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 I fixed that error by having this instead of the split_string function:
std::string strBuf;
std::stringstream sStream( strCommand );
while ( sStream >> strBuf )
vInputs.push_back(... |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 I enter "spawn BaseEntity"(without the quotes) and it gives me the error.
This is my split_string function:
void split_string(const std::string& str, std::vector<std::string>& tokens, const... |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 So does that mean that I have a problem with my split_string function? |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 Ok thanks, that fixed the Stack Overflow error.
But now I get the Vector Supscript out of Range error, so I put a check in so that it wouldn't try to do anything if the sm_vBaseEntities vector was... |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 Why isn't the #define making it better? |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 what does that mean and how do u do it? |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 I don't enter anything, when I run it, after about 2 seconds, it comes up with that Stack Overflow error. |
Forum: C++ 19 Days Ago |
| Replies: 18 Views: 491 When I try to run my program( which is a test entity system for anyone who's wondering ), I get a Stack Overflow error, and I cannot find the source of this error.
Here is my code:
... |
Forum: C++ 25 Days Ago |
| Replies: 3 Views: 290 |
Forum: C++ 25 Days Ago |
| Replies: 11 Views: 392 C#, Python or similar languages are good for attaining goals in the short term, when I did Python, I did it for about a quarter of a year, then got bored. But now I have been doing C++ for almost 2... |
Forum: C++ 25 Days Ago |
| Replies: 2 Views: 219 What kind of debugging features are there in VC++ 2008?
I'm looking for things like:
-Something to show which functions are being called and what functions are they calling, but limiting what it... |
Forum: C++ 25 Days Ago |
| Replies: 3 Views: 290 |
Forum: C++ 26 Days Ago |
| Replies: 3 Views: 290 Can someone please take a look at my code so I can get this part over and done with so I can continue making my engine. |
Forum: C++ 26 Days Ago |
| Replies: 3 Views: 290 Ok, So I'm trying to create a 3D engine with DirectX 9, and I have run into a runtime error that says "Stack overflow". When I encountered this, I thought that it might have came from a for loop, so... |
Forum: C++ 27 Days Ago |
| Replies: 10 Views: 342 I agree, I think that most if not all software should be open-source, it would create a more bug-free world haha. |
Forum: C++ 27 Days Ago |
| Replies: 10 Views: 342 Nah, if you look at the site, the paid part teaches you all this:
Direct3D Textures
Direct3D Meshes
Game Display
Game Input
Game Development
Advanced Effects
Particle Engines
Multiplayer |
Forum: C++ 27 Days Ago |
| Replies: 10 Views: 342 No, I can't as I do not have the Model class definition. (: |
Forum: C++ 27 Days Ago |
| Replies: 10 Views: 342 I have been doing that tutorial, the free part anyway haha.
Model probably is a class that you get to write in the 3D Meshes tutorial in that, which you have to pay for :( |
Forum: C++ 27 Days Ago |
| Replies: 10 Views: 342 Your code give these errors when I try to compile:
------ Build started: Project: DirectX9_Engine, Configuration: Debug Win32 ------
Compiling...
baseentity.cpp
object.cpp
c:\documents and... |
Forum: C++ 27 Days Ago |
| Replies: 10 Views: 342 How do I load 3D meshes from a .x file, and extract the material data from it? Also, how do I apply a texture to the loaded mesh? |
Forum: C++ 27 Days Ago |
| Replies: 2 Views: 314 |
Forum: C++ 28 Days Ago |
| Replies: 2 Views: 314 |
Forum: C++ 28 Days Ago |
| Replies: 2 Views: 314 How do I load 3D models that are in the .x format from DirectX 9?
I am trying to make a simple engine and this is the part where I am stuck at. |
Forum: C++ Nov 6th, 2009 |
| Replies: 11 Views: 389 Hey man thanks for your posts, they have helped me alot to reach the next stage of my project. Just if you're wondering, I am making a Text-based SUD(Single User Dungeon). Thanks again mate. |
Forum: C++ Nov 6th, 2009 |
| Replies: 11 Views: 389 Making it static didn't work, I'll attach the project in a .zip. |
Forum: C++ Nov 6th, 2009 |
| Replies: 11 Views: 389 Bump, This is kinda urgent by the way. |
Forum: C++ Nov 5th, 2009 |
| Replies: 11 Views: 389 That was just an error by me when copying and pasting it.
This is what it looks now:
std::vector<BaseEnt> entities(MAX_ENTITIES);
MAX_ENTITIES is a macro with the value of 100000.
Any help... |
Forum: C++ Nov 5th, 2009 |
| Replies: 11 Views: 389 |
Forum: C++ Nov 5th, 2009 |
| Replies: 11 Views: 389 When I try to compile my code, I get this error:
------ Build started: Project: SUD, Configuration: Debug Win32 ------
Compiling...
baseent.cpp
c:\program files\microsoft visual studio... |
Forum: C++ Nov 2nd, 2009 |
| Replies: 2 Views: 367 When I try to compile this:
void *BaseEnt::GetVar(char const *varname)
{
char name = *varname;
switch(name)
{
case "id":
return (void*)id; |
Forum: C++ Oct 26th, 2009 |
| Replies: 3 Views: 181 What?
This is what I wanna do:
void print_something(const char *val, ...)
{
//the val part can have things like this in it:
//%1, %2 and so forth, and then those parts get... |
Forum: C++ Oct 26th, 2009 |
| Replies: 3 Views: 181 How do I access the paramaters entered after param1?
Like this:
void foo(param1, ...);
How do I access the ... part? |
Forum: C++ Oct 26th, 2009 |
| Replies: 3 Views: 572 I did that, and now it compiles, but now when I run it I get this:
Unhandled exception at 0x00419537 in TheAlienEngine.exe: 0xC00000FD: Stack overflow.
And it points to this:
... |
Forum: C++ Oct 26th, 2009 |
| Replies: 3 Views: 572 When I try to compile this:
#define NODES_MAX 100000
extern node_t _nodes[NODES_MAX];
It gives me this error:
------ Build started: Project: TheAlienEngine, Configuration: Debug Win32... |
Forum: C++ Oct 25th, 2009 |
| Replies: 1 Views: 223 I am trying to make a 3D Engine using OpenGL, I've got all the model loading, 3D nodes, all that stuff done, but I get linker errors when I try to compile, it.. these are the errors:
------ Build... |