Game Development Community

VISUAL C++ and TORQUE HEADER FILES (MSCORLIB.TLH and FASTDELEGATE.H)

by Jonathan Harris · in Technical Issues · 06/24/2010 (1:09 pm) · 8 replies

I am working with Torque 3d and am trying to create a console method that will call one of my C++ functions. The C++ function call calls a method from out of a C# dll. When I first add the line #include"console/simBase.h" I got a number of errors. So I copied the entire Console folder and all the needed things to the directory of the project. However, when I compiled it gave two errors. Those two errors were:

1> c:usersj.b.harrisdocumentsvisual studio 2008projectscom_finalcom_finalcoreutilfastdelegate.h(1636) : see declaration of 'fastdelegate::FastDelegate'
1>c:usersj.b.harrisdocumentsvisual studio 2008projectscom_finalcom_finaldebugmscorlib.tlh(64) : error C2990: 'fastdelegate::FastDelegate' : non-class template has already been declared as a class template
1> c:usersj.b.harrisdocumentsvisual studio 2008projectscom_finalcom_finalcoreutilfastdelegate.h(1636) : see declaration of 'fastdelegate::FastDelegate'
1>c:usersj.b.harrisdocumentsvisual studio 2008projectscom_finalcom_finaldebugmscorlib.tlh(3329) : warning C4099: 'fastdelegate::FastDelegate' : typae name first seen using 'class' now seen using 'struct'
1> c:usersj.b.harrisdocumentsvisual studio 2008projectscom_finalcom_finalcoreutilfastdelegate.h(1636) : see declaration of 'fastdelegate::FastDelegate'
1>c:usersj.b.harrisdocumentsvisual studio 2008projectscom_finalcom_finaldebugmscorlib.tlh(3329) : error C2990: 'fastdelegate::FastDelegate' : non-class template has already been declared as a class template
1> c:usersj.b.harrisdocumentsvisual studio 2008projectscom_finalcom_finalcoreutilfastdelegate.h(1636) : see declaration of 'fastdelegate::FastDelegate'


I looked in each of the header files and one declares a class named fastDelegate (Torque) and the other declares a struct Delegate (MS.

So, I do not know what the problem really is??

btw if it makes any difference - I am using COM to access the C# dll.


About the author

Recent Threads


#1
06/28/2010 (5:26 am)
@Jonathan: I don't see a Torque 3D license under your profile.
#2
06/30/2010 (9:50 am)
What are you asking me about? Under my profile I don't see a section for Torque3D License.
#3
06/30/2010 (9:52 am)
Where did you buy Torque 3D?
#4
06/30/2010 (10:01 am)
I am working on an educational project and our project has purchased the educational licenses. I am a student and do not know any more details regarding that.
#5
06/30/2010 (10:15 am)
Oh ok, thanks. In that case I think your question would better be answered in the private Torque 3D forums. Good luck!
#6
06/30/2010 (10:19 am)
why is it that I can not have this answered in the public forum?
#7
06/30/2010 (10:23 am)
@Jonathan - To answer your question, it deals with source code which we only discuss in the private forum. Send me an e-mail (michaelp@torquepowered.com) and we will work something out.
#8
06/30/2010 (10:25 am)
Oh ok! I didn't mean to post that response twice.