Click here to Skip to main content
15,895,192 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I'm a little confused about a method in a SDK that I have. Here's the method:

HRESULT IDgnDictCustom::SnapShotSave( 
Variant IndexedFileName = vtMissing, Variant WaveFileName = vtMissing );


I'm not used to using variants, but what is confusing me, honestly, is the how to use this function correctly. This is expecting the variants as an input, but I didn't think you would use variants this way.

(I'm assuming the filenames are just the path where I want the file saved)
Posted
Updated 24-Mar-10 4:46am
v2

1 solution

I have found this in the header

VB
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SnapshotSave(
    /* [optional][in] */ VARIANT IndexedFileName,
    /* [optional][in] */ VARIANT WaveFileName) = 0;


(cleaning it up a bit)

SnapshotSave(/*in*/ VARIANT IndexedFileName, /*in*/ VARIANT WaveFileName)

now, naming the file names still causes an error when I try it (just name it like "c:\test.ibx") What's the proper way to name the variant in this case?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900