Click here to Skip to main content
16,018,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert initialize an unsigned char* Pin
prithaa26-Nov-07 1:28
prithaa26-Nov-07 1:28 
GeneralRe: How to convert initialize an unsigned char* Pin
Cedric Moonen26-Nov-07 1:39
Cedric Moonen26-Nov-07 1:39 
JokeRe: How to convert initialize an unsigned char* Pin
Rajesh R Subramanian26-Nov-07 2:28
professionalRajesh R Subramanian26-Nov-07 2:28 
QuestionVirtual Destructor Pin
Andy Rama25-Nov-07 23:35
Andy Rama25-Nov-07 23:35 
AnswerRe: Virtual Destructor Pin
CPallini25-Nov-07 23:54
mveCPallini25-Nov-07 23:54 
GeneralRe: Virtual Destructor Pin
Matthew Faithfull26-Nov-07 0:15
Matthew Faithfull26-Nov-07 0:15 
AnswerRe: Virtual Destructor Pin
peterchen26-Nov-07 2:57
peterchen26-Nov-07 2:57 
QuestionCalling few functions inside a single function. Pin
CodingLover25-Nov-07 23:19
CodingLover25-Nov-07 23:19 
Hi all,

I have few functions which that the arguments are used by reference. Just like this,

<br />
void CDBRecorder::GetFixData(const CRfMessage &Msg, _RecordsetPtr &pRecSet)<br />
{<br />
	unsigned __int32 des_list;<br />
	unsigned __int32 mem_ID;	<br />
	unsigned char dm_con;	<br />
	unsigned char ser_ID;	<br />
	unsigned short act;	<br />
<br />
	des_list = Msg.GetDestinationList();<br />
	pRecSet->Fields->GetItem("Destination List")->PutValue(des_list);<br />
<br />
	mem_ID = Msg.GetSenderID();<br />
	pRecSet->Fields->GetItem("Member ID")->PutValue(mem_ID);<br />
<br />
	ser_ID = Msg.GetServiceID();<br />
	pRecSet->Fields->GetItem("Service ID")->PutValue(ser_ID);<br />
<br />
	act = Msg.GetActivityID();<br />
	pRecSet->Fields->GetItem("Activity ID")->PutValue(act);<br />
}<br />
<br />
void CDBRecorder::GetMess(const CRfMessage &Msg, _RecordsetPtr &pRecSet)<br />
{<br />
	long mLength;			// Data length<br />
	BYTE * mBuffer = NULL;	// Dynamic buffer used<br />
<br />
	mLength = Msg.GetDataLength();<br />
	mBuffer = Msg.GetDataBuffer();<br />
<br />
	_variant_t vtData;<br />
	long nRetLength = 0;<br />
<br />
	_variant_t vAppendChunck = BinaryToVariant((BYTE*)mBuffer, mLength, nRetLength);<br />
	pRecSet->Fields->GetItem("Bio_Data")->AppendChunk(vAppendChunck);<br />
<br />
	vtData.vt = VT_I2;<br />
	vtData.iVal = (int)nRetLength;<br />
	pRecSet->Fields->GetItem("Bio_Size")->PutValue(vtData);<br />
}<br />


I want to call these two functions inside another function. How can I do that. Where I'm stuck is that about main/parent functions' arguments. How should I use those arguments.

I appreciate your help all the time...
Eranga Smile | :)

AnswerRe: Calling few functions inside a single function. Pin
Nelek26-Nov-07 0:53
protectorNelek26-Nov-07 0:53 
GeneralRe: Calling few functions inside a single function. Pin
CodingLover26-Nov-07 17:25
CodingLover26-Nov-07 17:25 
AnswerRe: Calling few functions inside a single function. Pin
David Crow26-Nov-07 7:09
David Crow26-Nov-07 7:09 
GeneralRe: Calling few functions inside a single function. Pin
CodingLover26-Nov-07 17:31
CodingLover26-Nov-07 17:31 
GeneralRe: Calling few functions inside a single function. Pin
Nelek26-Nov-07 20:03
protectorNelek26-Nov-07 20:03 
GeneralRe: Calling few functions inside a single function. Pin
CodingLover26-Nov-07 21:24
CodingLover26-Nov-07 21:24 
GeneralRe: Calling few functions inside a single function. Pin
Nelek27-Nov-07 2:43
protectorNelek27-Nov-07 2:43 
QuestionHow to view the resources used by the project ? Pin
keyto25-Nov-07 23:10
keyto25-Nov-07 23:10 
AnswerRe: How to view the resources used by the project ? Pin
Hamid Taebi26-Nov-07 0:02
professionalHamid Taebi26-Nov-07 0:02 
AnswerRe: How to view the resources used by the project ? Pin
Priya_Sundar26-Nov-07 0:05
Priya_Sundar26-Nov-07 0:05 
GeneralRe: How to view the resources used by the project ? Pin
keyto26-Nov-07 0:35
keyto26-Nov-07 0:35 
Questionneed your help Pin
zhiyuan1625-Nov-07 23:07
zhiyuan1625-Nov-07 23:07 
AnswerI think the error message is clear Pin
CPallini25-Nov-07 23:18
mveCPallini25-Nov-07 23:18 
AnswerRe: need your help Pin
zhiyuan1626-Nov-07 0:01
zhiyuan1626-Nov-07 0:01 
GeneralRe: need your help Pin
Nelek26-Nov-07 0:45
protectorNelek26-Nov-07 0:45 
AnswerRe: need your help Pin
Hamid Taebi26-Nov-07 0:03
professionalHamid Taebi26-Nov-07 0:03 
GeneralRe: need your help Pin
zhiyuan1626-Nov-07 0:47
zhiyuan1626-Nov-07 0:47 

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.