extern goes before your definition, like so extern "C" void IOLabel::display()
Type: Posts; User: durban
extern goes before your definition, like so extern "C" void IOLabel::display()
Anyone have it? Yea it sucks.. I've been editting manifests, searching forums, running through configuration over and over again and still to no avail, my program blows up. This is the error as soon...
you can't include like that, the compiler has no clue what to do and generally pops up random errors in your code. I also have this problem alot when trying to seperate classes up, like you're...
file->new->Project, select console app and you're set..
Unfortunately, you can't get that data from the child window. You will need to override the control and subclass it to the child window. Then you can parse messages in the PreTranslateMessage...
Figured it out...
??????
what I meant was...its not doing a damn thing. perhaps putting it in an if statement would get you the results..
if( whatever & 6 )
{
// DO SOMETHING
}
I'm a little hazy when it comes to vectors, maybe some of you can shed some light on me. I'm trying to generate an axis based on 2 3D vectors. What I mean is, I want +Z to go down the vector +X to...
(maze[xstart][ystart] & W_NORTH)
what do you suppose you are doing with that? Does that solve any task you had in mind? Maybe its there for looks?
Oh I just thought of a useful bit of...
you can't just & it...is it in an if statement or are you assigning the result to something? More than anything, what is the error???
I'll give you a sample:
maze[20][20]; //Predefined maze array
if( GetKeyState(VK_LEFT) ) //However you do it in C
{
if( CharacterPosition & 0x08 ) //Character position is a maze[][]...
As to your maze reorder problem...reorder the text file to work with your program or parse the file differently...
For the & operator, testing for collision on input is probably your only...
Never seen it done or heard of it either. Just use an If statment.
couldn't tell you in C...Perhaps this is a C++ Program?
btw...The windows calculator can convert decimal to hex and binary. Could be very useful for your situation.
I think I misunderstood you, if the number is an int and its 0110 then when the & operator converts it to binary it won't be the same. instead you should make an unsigned char hold the data and give...
the & operator works automatically. For your walls, why don't u just hardcode the data? Maybe make the program do it randomly...it seems a whole lot easier to me but oh well. You could make an...
yes, for more information on making functions look up a C++ Functions tutorials. I think there are some on this site.
outputs need to be deleted as well. call delete [] outputs to delete an array.
you can't link, you will need to start a new project and copy paste what you want to it. If you mean you want multiple files you will have to make a new file with whatever IDE you're using and link...
1 question, why are you calling it physics? It looks like an electronics/electricity program to me.
why not? Copy Paste it.
Not seeing you delete weights and Invec, probably giving you a heap overflow after u call it a few times.
Sometimes programs get big...you should take a look at some of my MFC Programs heh. 1 Suggestion tho, you could put the "Would you like to continue" line after the If statements, you don't need them...
yea, everything was correct. I got it working by restarting VS.. 2005 bug I guess.. =\