Elecard
May 22, 2013, 01:00:49 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to set VARIANT const pointer in C++  (Read 2520 times)
asifjavaid
Newbie
*
Posts: 7


View Profile
« on: September 18, 2008, 05:18:25 pm »

Hi guys,

I want set any type of value iun VARIANT const pointer but vain, i am facing a compile time error. see my code below.
Code:
VARIANT *v=NULL;
        v->bstrVal = "Video.Bin";

another try

VARIANT *pValue;
//BSTR *fileName;
const char* pName;
pName = "Video.bin";
pValue = pName;
pConfig->SetValue(&ESF_FileName,pValue);
pModuleConfig->CommitChanges(v);
Logged
Polyakov
Newbie
*
Posts: 77


View Profile WWW
« Reply #1 on: September 21, 2008, 07:53:30 pm »

Hi,

something like this:

Code:
VARIANT Value;
Value.vt = VT_BSTR;
Value.bstrVal = bstrFileName;
hr = pModuleConfig->SetValue(&PARAMETER_ID, &Value);

VARIANT Result;
pModuleConfig->CommitChanges(&Result);

But the simplest way - to buy SDK and licenses to use Elecard filters.

« Last Edit: September 21, 2008, 07:56:29 pm by Polyakov » Logged

Regards,
Alexey Polyakov
http://www.elecard.com
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!