|
i get error when using this:
bool TestCollision(BoundingVolume * volume) { return Collision< volume->getType() >(volume); }
Error:
error C2975: 'type' : invalid template argument for 'BoundingBox::Collision', expected compile-time constant expression
modified on Sunday, January 4, 2009 12:06 PM
|
|
|
|
|
Why don't you exploit polymorphism instead of using template methods?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Exploit is such a harsh word....I prefer "enslave".
Sorry for the OT interruption
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Sorry for the OT interruption
Oh, I know you wanted sooooooooooooo bad to be the first CP 's member to join the Happy Brigade [^] in 2009.
Welcome Mark!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Wow! I had never heard of that list.
A dubious honor indeed! I am so honored!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You mean overload the functions. Then why i need BVolume Class here in my code. If i can do it with template please tell me how.
Thanks,
Kasya
|
|
|
|
|
You need it because polymorphism works this way. I actually don't see how templates can do the job, in your scenario.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
.
modified 15-Mar-19 22:04pm.
|
|
|
|
|
Devise a system of commands that the microcontroller sends to the C++ program, and then have the program carry out the commands.
What specifically is your question? What is it that you want to find out?
|
|
|
|
|
Message Closed
modified 15-Mar-19 22:04pm.
|
|
|
|
|
Wow. You're basically asking how to program for the Windows platform.
There's no simple answer, it's a long process of research and learning.
As for which headers and libraries to use, the answer is "all of them."
Why not start researching some of these things with MSDN and Google, and then come back when you have specific questions about a particular thing.
Have you ever written a Windows program before? Do you know how to use Visual Studio?
|
|
|
|
|
Message Closed
modified 15-Mar-19 22:02pm.
|
|
|
|
|
|
Have a look at Codeproject Articles[^] regarding Serial port communication. You can find a lot of samples which handles serial port communication. Now the rest is to interpret the read data accordingly and do the intended operations. If you have more doubts about "how to do x" , then please be specific.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
In your serial communication class you must have an eventhandler which is called by interrupt service and sending custom messages to your mainfrm application class. Handle this custom messages to convert them to windows messages.
|
|
|
|
|
http://lcdinterfacing.googlepages.com
|
|
|
|
|
Of course your message was reported as abuse.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Ive similarly flagged the other two posting in the other forums
hope you're well and rested after the xmas/New Year break
'g'
|
|
|
|
|
Garth J Lancaster wrote: hope you're well and rested after the xmas/New Year break
Best wishes to you
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Of course your message was reported as abuse.
humm i am thinking of doing same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Why its here?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
not mine!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Dear All
I want to create the OnDestroy command in VC2005.
But because there is no ClassWizard in it, I dont know how to do this
could u please help me?
Regards
Monhi
|
|
|
|
|
See Q7 and Q10-Q12 here[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
thanks
It was really helpfull.
|
|
|
|