Click here to Skip to main content
15,892,697 members

Comments by code_ank (Top 3 by date)

code_ank 3-Nov-12 3:12am View    
Deleted
Please find the code in the below comments
code_ank 3-Nov-12 3:10am View    
Deleted
Also I have tried following :
char * r = NULL ;
r = new char[16];
m_audio->ExecuteVol(r,res,"GetVolume", "", "", "", "");
void CSefClientWK::ExecuteVol(char *& result, int resLen,char* cmd, char* param1, char* param2, char* param3, char* param4)
{
string str = m_sef->Execute(cmd, param1, param2, param3, param4); [ Providing correct value ]
resLen = str.size()+1;
result = const_cast<char*>(str.c_str());
return ;
// return const_cast<char*>((m_sef->Execute(cmd, param1, param2, param3, param4)).c_str());
}
code_ank 3-Nov-12 2:57am View    
Deleted
Can you please explain , I'm doing like this :
m_audio->ExecuteVol(r,res,"GetVolume", "", "", "", "");

void CSefClientWK::ExecuteVol(char *& result, int resLen,char* cmd, char* param1, char* param2, char* param3, char* param4)
{
string str = m_sef->Execute(cmd, param1, param2, param3, param4); [ Providing correct value ]
resLen = str.size()+1;
result = new char[resLen];
result = const_cast<char*>(str.c_str());
return ;
// return const_cast<char*>((m_sef->Execute(cmd, param1, param2, param3, param4)).c_str());
}

I just want to check whether I'm getting correct value in "r" or not, but I'm getting r as NULL.