HELP with pointer

Subject: HELP with pointer
From: Lesley-Anne Nelson <Moshe -at- MERIDIANNI -dot- CO -dot- UK>
Date: Thu, 21 Jan 1999 14:20:48 -0000

I am having a really bad braindead day here can someone clear up this( what should be really simple problem for me)
Ok I am testing a C++ program I have to test SetChannelParameterValue(Float) which I have done as below (snippet)

enum floatParameters {qrs=0 etc)
bool SetChannelParameterValue( intiChannel, floatParameters iParameter, float fValue);
Returns TRUE if set operation succeeded

bool CCoreDataTestView::TestCMappingDataSetChannelParameterValueFloat(CStdioFile * fResults)
{
bool bResult, bTestResult;

/////////////////////////////////////////////////////////////////////
///// CD22
/////////////////////////////////////////////////////////////////////

bResult = true;
if (!(bTestResult = m_pMappingData->SetChannelParameterValue(81,((CMappingData::floatParameters)0),6666)));
{
fResults->WriteString("Test CD22 (SetChannelParameterValue (Float)) Failed using 81,0,6666 \n");
bResult = false;
}

etc.

Now I want to do the Get from this.

the details of this are as follows
enum floatParameters {qrs=0 etc)
bool GetChannelParameterValue( int iChannel, floatParameters iParameter, float* pfValue);

I can't get this sorted out could someone help me here

This is example data
Description Purpose Parameters ExpectedResult
Normal Operation Verify Normal 1,0,&pfValue 1111,1 (TRUE)



Please can someone help. Its just one of those days


Thankyou

Lesley-Anne


From ??? -at- ??? Sun Jan 00 00:00:00 0000=



Previous by Author: Query NuMega Track Record
Next by Author: Re: images
Previous by Thread: Re: designing a demo--timing
Next by Thread: Don't Take Notes, Goats, or Bull!


What this post helpful? Share it with friends and colleagues:


Sponsored Ads