Click here to Skip to main content
15,891,863 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sorting a list with class for complex types [modified] Pin
Stephen Hewitt10-Jul-06 14:45
Stephen Hewitt10-Jul-06 14:45 
GeneralRe: Sorting a list with class for complex types Pin
Harold_Wishes10-Jul-06 15:00
Harold_Wishes10-Jul-06 15:00 
GeneralRe: Sorting a list with class for complex types Pin
Stephen Hewitt10-Jul-06 15:05
Stephen Hewitt10-Jul-06 15:05 
GeneralRe: Sorting a list with class for complex types [modified] Pin
Harold_Wishes10-Jul-06 22:38
Harold_Wishes10-Jul-06 22:38 
GeneralRe: Sorting a list with class for complex types Pin
Stephen Hewitt11-Jul-06 1:06
Stephen Hewitt11-Jul-06 1:06 
QuestionRTI - related (Zac Howland) can help [modified] Pin
Jay0310-Jul-06 4:43
Jay0310-Jul-06 4:43 
AnswerRe: RTI - related (Zac Howland) can help Pin
Zac Howland10-Jul-06 5:01
Zac Howland10-Jul-06 5:01 
GeneralRe: RTI - related (Zac Howland) can help Pin
Jay0310-Jul-06 5:16
Jay0310-Jul-06 5:16 
This is for CallInIt

void Ball::classInit( RTI::RTIambassador* rtiAmb )<br />
{<br />
   ObjectRoot::ms_rtiAmb     = rtiAmb;<br />
   ObjectRoot::ms_classIdStr = ms_ballIdStr;<br />
<br />
   if ( ms_rtiAmb ) // if ms_rtiAmb!=NULL <br />
   {<br />
      ms_classId             = ms_rtiAmb->getObjectClassHandle( ms_classIdStr );<br />
      ms_ballId              = ms_rtiAmb->getObjectClassHandle( ms_ballIdStr );<br />
      ms_ballLocationXId     = ms_rtiAmb->getAttributeHandle( ms_ballLocationXIdStr, ms_ballId );<br />
      ms_ballLocationYId     = ms_rtiAmb->getAttributeHandle( ms_ballLocationYIdStr, ms_ballId );<br />
      ms_ballVelocityXId     = ms_rtiAmb->getAttributeHandle( ms_ballVelocityXIdStr, ms_ballId );<br />
      ms_ballVelocityYId     = ms_rtiAmb->getAttributeHandle( ms_ballVelocityYIdStr, ms_ballId );<br />
      ms_clockTickId         = ms_rtiAmb->getInteractionClassHandle( ms_clockTickIdStr );<br />
      ms_clockTickNumId      = ms_rtiAmb->getParameterHandle( ms_clockTickNumIdStr, ms_clockTickId );<br />
      ms_clockTickTimeId     = ms_rtiAmb->getParameterHandle( ms_clockTickTimeIdStr, ms_clockTickId );<br />
      ms_clockTickIntervalId = ms_rtiAmb->getParameterHandle( ms_clockTickIntervalIdStr, ms_clockTickId );<br />
   }<br />
}


This is for InIt

void RoundTable::Init( RTI::RTIambassador* rtiAmb )<br />
{<br />
	ms_rtiAmb = rtiAmb;<br />
<br />
	if ( ms_rtiAmb )<br />
	{<br />
		/**<br />
		* Get the RTTI (Meta-Object Protocol MOP) handles<br />
		* Since the 1.0 RTI does not know anything about your data<br />
		* and thus uses Run-Time Type Identification we must ask the<br />
		* RTI what to call each of our data elements.<br />
		*/<br />
		try<br />
		{<br />
		ms_tableTypeId    = ms_rtiAmb->getObjectClassHandle( ms_tableTypeStr );<br />
		ms_radiusTypeId   = ms_rtiAmb->getAttributeHandle(	ms_radiusTypeStr,<br />
															ms_tableTypeId);		<br />
		ms_coefElastTypeId = ms_rtiAmb->getAttributeHandle( ms_coefElastTypeStr,<br />
			ms_tableTypeId);<br />
		ms_coefFrictionTypeId = ms_rtiAmb->getAttributeHandle( ms_coefFrictionTypeStr,<br />
			ms_tableTypeId);<br />
		}<br />
		catch(RTI::FederateNotExecutionMember e)<br />
		{<br />
			cerr<<"RoundTable Exception: "<<__LINE__<<endl;	<br />
		}<br />
	}<br />
}

GeneralRe: RTI - related (Zac Howland) can help Pin
Jay0310-Jul-06 6:33
Jay0310-Jul-06 6:33 
GeneralRe: RTI - related (Zac Howland) can help Pin
Zac Howland10-Jul-06 6:54
Zac Howland10-Jul-06 6:54 
GeneralRe: RTI - related (Zac Howland) can help Pin
Jun Du10-Jul-06 7:20
Jun Du10-Jul-06 7:20 
AnswerRe: RTI - related (Zac Howland) can help Pin
earl10-Jul-06 7:24
earl10-Jul-06 7:24 
QuestionDeleting desktop shortcut while not administrator [modified] Pin
clemb10-Jul-06 4:04
clemb10-Jul-06 4:04 
AnswerRe: Deleting desktop shortcut while not administrator Pin
clemb21-Jul-06 4:51
clemb21-Jul-06 4:51 
QuestionGetting the Parent Window Handle Pin
HakunaMatada10-Jul-06 3:53
HakunaMatada10-Jul-06 3:53 
AnswerRe: Getting the Parent Window Handle Pin
Sarath C10-Jul-06 4:15
Sarath C10-Jul-06 4:15 
GeneralRe: Getting the Parent Window Handle Pin
HakunaMatada10-Jul-06 17:20
HakunaMatada10-Jul-06 17:20 
AnswerRe: Getting the Parent Window Handle Pin
Abhi Lahare10-Jul-06 4:15
Abhi Lahare10-Jul-06 4:15 
AnswerRe: Getting the Parent Window Handle Pin
FarPointer10-Jul-06 4:18
FarPointer10-Jul-06 4:18 
AnswerRe: Getting the Parent Window Handle Pin
ThatsAlok10-Jul-06 19:20
ThatsAlok10-Jul-06 19:20 
Questionlist control Pin
jokefake10-Jul-06 3:49
jokefake10-Jul-06 3:49 
AnswerRe: list control Pin
Sarath C10-Jul-06 4:17
Sarath C10-Jul-06 4:17 
AnswerRe: list control Pin
David Crow10-Jul-06 4:19
David Crow10-Jul-06 4:19 
GeneralRe: list control Pin
jokefake10-Jul-06 5:46
jokefake10-Jul-06 5:46 
GeneralRe: list control Pin
David Crow10-Jul-06 6:11
David Crow10-Jul-06 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.