|
-
February 4th, 2000, 04:02 PM
#1
Visual Basic
Hi,
I have a C++ function implementation for a COM Object as follows
foo(Variant *var, String Text)..
I need to create this COM object and call the above mentioned function from visual basic.
I cannot find an equivalent to Variant * in VB?? I am getting typemismatch for Variant (obviously)
Thanks
Shoba
-
February 4th, 2000, 05:02 PM
#2
Re: Visual Basic
Try using
Dim YourVariable as Variant
'set the value of YourVariable
Call Foo(YourVariable,strText)
I admit, I'm not familiar with C++ but it looks like you're looking for a variable type that can hold anything - in VB thats the Variant type.
If I'm wrong, then I'm sorry, but that's my guess. 
John
John Pirkey
MCSD
www.ShallowWaterSystems.com
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|