Click here to Skip to main content
15,905,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CCombobox width problem Pin
prithaa28-Sep-07 4:34
prithaa28-Sep-07 4:34 
QuestionRe: CCombobox width problem Pin
David Crow28-Sep-07 5:49
David Crow28-Sep-07 5:49 
AnswerRe: CCombobox width problem Pin
prithaa28-Sep-07 7:28
prithaa28-Sep-07 7:28 
QuestionRe: CCombobox width problem Pin
David Crow28-Sep-07 7:39
David Crow28-Sep-07 7:39 
GeneralRe: CCombobox width problem Pin
Vaclav_28-Sep-07 15:57
Vaclav_28-Sep-07 15:57 
QuestionHow assign Variant type of data to safe array? Pin
shir_k28-Sep-07 3:35
shir_k28-Sep-07 3:35 
AnswerRe: How assign Variant type of data to safe array? Pin
Iain Clarke, Warrior Programmer28-Sep-07 3:57
Iain Clarke, Warrior Programmer28-Sep-07 3:57 
AnswerRe: How assign Variant type of data to safe array? Pin
Matthew Faithfull28-Sep-07 4:51
Matthew Faithfull28-Sep-07 4:51 
Your immediate problem would seem to be the need to use
<br />
*pData = result;<br />

not that just changing that is going to make your code work.
More generally if you're getting unparsed binary data in a VARIANT from a COM object isn't it already in a SafeArray?
Check the type of the VARIANT and the contents of its array members. I suspect you'll find the VARIANT already is a SafeArray just disguised for COM/OLE Automation correctness.
If not then I would do everything possible to keep the data away from SafeArrays which are code bloaty and awkward unless you're forced to interact with classic VB in which case they're also essential. Good luck.

Nothing is exactly what it seems but everything with seems can be unpicked.

QuestionHelp Needed Pin
Y_Kaushik28-Sep-07 3:17
Y_Kaushik28-Sep-07 3:17 
AnswerRe: Help Needed Pin
Hamid_RT28-Sep-07 3:36
Hamid_RT28-Sep-07 3:36 
GeneralRe: Help Needed Pin
Y_Kaushik28-Sep-07 3:47
Y_Kaushik28-Sep-07 3:47 
GeneralRe: Help Needed Pin
Hamid_RT28-Sep-07 8:14
Hamid_RT28-Sep-07 8:14 
QuestionTray and memory usage Pin
Leso28-Sep-07 1:02
Leso28-Sep-07 1:02 
QuestionDAO vs CFile // Which is faster? Pin
Nelek28-Sep-07 0:50
protectorNelek28-Sep-07 0:50 
AnswerRe: DAO vs CFile // Which is faster? Pin
David Crow28-Sep-07 2:29
David Crow28-Sep-07 2:29 
GeneralRe: DAO vs CFile // Which is faster? Pin
Nelek28-Sep-07 2:42
protectorNelek28-Sep-07 2:42 
GeneralRe: DAO vs CFile // Which is faster? Pin
David Crow28-Sep-07 2:46
David Crow28-Sep-07 2:46 
QuestionDll creation problem Pin
Karismatic28-Sep-07 0:26
Karismatic28-Sep-07 0:26 
AnswerRe: Dll creation problem Pin
Nelek28-Sep-07 0:30
protectorNelek28-Sep-07 0:30 
GeneralRe: Dll creation problem Pin
Karismatic28-Sep-07 0:40
Karismatic28-Sep-07 0:40 
GeneralRe: Dll creation problem Pin
Nelek28-Sep-07 0:51
protectorNelek28-Sep-07 0:51 
AnswerRe: Dll creation problem Pin
Sachinpatole28-Sep-07 1:27
Sachinpatole28-Sep-07 1:27 
QuestionEnable Spinbutton ctrl Pin
rajaratk27-Sep-07 23:51
rajaratk27-Sep-07 23:51 
AnswerRe: Enable Spinbutton ctrl Pin
Russell'28-Sep-07 0:29
Russell'28-Sep-07 0:29 
GeneralRe: Enable Spinbutton ctrl Pin
rajaratk28-Sep-07 1:53
rajaratk28-Sep-07 1:53 

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.