Click here to Skip to main content
15,898,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:02
lgatcodeproject29-Apr-08 0:02 
Hi EveryOne,
I have added a class which contains a method that accepts a VARIANT type variable in an ActivexDll written in VC++. In one of sample code I found the a value is assigned to the VARIANT type variable using a SAFEARRAY. My question is how can a string value be assigned to VARIANT type variable(type casting in strcpy does't work). Can we achieve it only by using SAFEARRAY? if yes why is it so? Is there any other way to obtain the same? kindly explain. Thank you.

Regards,
LG.

lgatcodeproject

GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:14
mveCPallini29-Apr-08 0:14 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:29
lgatcodeproject29-Apr-08 0:29 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:38
mveCPallini29-Apr-08 0:38 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:50
lgatcodeproject29-Apr-08 0:50 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 1:02
mveCPallini29-Apr-08 1:02 
QuestionWhich type of string do you use in VC++ project? Pin
zengkun10028-Apr-08 22:55
zengkun10028-Apr-08 22:55 
AnswerRe: Which type of string do you use in VC++ project? Pin
Saurabh.Garg28-Apr-08 23:01
Saurabh.Garg28-Apr-08 23:01 
AnswerRe: Which type of string do you use in VC++ project? Pin
_AnsHUMAN_ 28-Apr-08 23:32
_AnsHUMAN_ 28-Apr-08 23:32 
GeneralRe: Which type of string do you use in VC++ project? Pin
zengkun10028-Apr-08 23:50
zengkun10028-Apr-08 23:50 
AnswerRe: Which type of string do you use in VC++ project? Pin
CPallini28-Apr-08 23:48
mveCPallini28-Apr-08 23:48 
GeneralRe: Which type of string do you use in VC++ project? Pin
zengkun10028-Apr-08 23:51
zengkun10028-Apr-08 23:51 
GeneralRe: Which type of string do you use in VC++ project? Pin
CPallini29-Apr-08 0:01
mveCPallini29-Apr-08 0:01 
GeneralRe: Which type of string do you use in VC++ project? Pin
zengkun10029-Apr-08 0:12
zengkun10029-Apr-08 0:12 
AnswerRe: Which type of string do you use in VC++ project? Pin
Ozer Karaagac29-Apr-08 1:43
professionalOzer Karaagac29-Apr-08 1:43 
GeneralRe: Which type of string do you use in VC++ project? Pin
jhwurmbach29-Apr-08 5:42
jhwurmbach29-Apr-08 5:42 
GeneralIs STL ineffable itself? Pin
Ozer Karaagac29-Apr-08 11:02
professionalOzer Karaagac29-Apr-08 11:02 
AnswerRe: Which type of string do you use in VC++ project? Pin
Nemanja Trifunovic29-Apr-08 4:17
Nemanja Trifunovic29-Apr-08 4:17 
AnswerRe: Which type of string do you use in VC++ project? Pin
toxcct29-Apr-08 5:14
toxcct29-Apr-08 5:14 
GeneralTool Bar Pin
T.RATHA KRISHNAN28-Apr-08 22:49
T.RATHA KRISHNAN28-Apr-08 22:49 
GeneralRe: Tool Bar Pin
ShilpiP28-Apr-08 23:45
ShilpiP28-Apr-08 23:45 
GeneralRe: Tool Bar Pin
Hamid_RT29-Apr-08 4:06
Hamid_RT29-Apr-08 4:06 
GeneralRegarding HtmlView class in MFC Pin
H4u3228-Apr-08 21:32
H4u3228-Apr-08 21:32 
GeneralRe: Regarding HtmlView class in MFC Pin
Rajkumar R28-Apr-08 21:49
Rajkumar R28-Apr-08 21:49 
GeneralRe: Regarding HtmlView class in MFC Pin
H4u3228-Apr-08 22:20
H4u3228-Apr-08 22:20 

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.