Click here to Skip to main content
15,914,943 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralGame Pin
Andy H2-Dec-02 6:38
Andy H2-Dec-02 6:38 
GeneralRe: Game Pin
Nick Seng2-Dec-02 14:16
Nick Seng2-Dec-02 14:16 
GeneralRe: Game Pin
David Brooks19-Dec-02 10:28
David Brooks19-Dec-02 10:28 
Questionmenu enable/disable problem....?? Pin
drmzunlimited30-Nov-02 19:51
drmzunlimited30-Nov-02 19:51 
AnswerRe: menu enable/disable problem....?? Pin
mikasa1-Dec-02 2:47
mikasa1-Dec-02 2:47 
GeneralCustom Property Editor in VB.NET Pin
mikasa30-Nov-02 9:44
mikasa30-Nov-02 9:44 
GeneralRe: Custom Property Editor in VB.NET Pin
FruitBatInShades2-Dec-02 12:09
FruitBatInShades2-Dec-02 12:09 
GeneralDispatchWrapper gives error Pin
Uday Bhaskar29-Nov-02 18:34
Uday Bhaskar29-Nov-02 18:34 
I have a vc++6.0 dll(ATL COM), a method in the dll takes a Variant(of type VT_DISPATCH) parameter as input. I am using this dll in vb.Net by imptlb process. The problem is that I am unable to pass the VT_DISPATCH type to my method. I am trying to use DispatchWrapper class as per MSDN but it gives unsupported interface error. Can any one help me out, its a bit urgent. I face the same problem in c# too. A solution in c# or vb.Net will do for me Smile | :) ).

IDL Method Signature
====================
Compress([in,out] VARIANT* DocumentObject, [out,retval] short* retVal);

DocumentObject is of type VT_DISPATCH.

vb.Net code snippet
====================

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim Comp As New XMLCOMPRESSIONLib.JNIXMLCompressionClass()<br />
        Dim XmlDoct As New Xml.XmlDocument()<br />
        Dim XYZ As Short<br />
<br />
        XmlDoct.Load("C:\DEXML\asdfa.xml")<br />
        XYZ = Comp.Compress(DispatchWrapper(XmlDoct))          <br />
        MessageBox.Show(XmlDoct.InnerXml)<br />
End Sub


I get error "Interface not supported" when I call compress with dispatch wrapper tyepcast.
GeneralSelecting all the Items in Checked List Box Pin
Sameers (theAngrycodeR )28-Nov-02 11:56
Sameers (theAngrycodeR )28-Nov-02 11:56 
GeneralRe: Selecting all the Items in Checked List Box Pin
Richard Deeming2-Dec-02 5:40
mveRichard Deeming2-Dec-02 5:40 
GeneralRe: Selecting all the Items in Checked List Box Pin
Anonymous2-Dec-02 9:38
Anonymous2-Dec-02 9:38 
Questionwhat is the difference between.. Pin
zhoujun27-Nov-02 18:12
zhoujun27-Nov-02 18:12 
AnswerRe: what is the difference between.. Pin
Black Cat27-Nov-02 19:03
Black Cat27-Nov-02 19:03 
GeneralRe: what is the difference between.. Pin
zhoujun30-Nov-02 16:04
zhoujun30-Nov-02 16:04 
GeneralWeb Sraping/post through two urls Pin
DotNetNewbie27-Nov-02 11:09
DotNetNewbie27-Nov-02 11:09 
GeneralRe: Web Sraping/post through two urls Pin
Ravi Bhavnani27-Nov-02 11:32
professionalRavi Bhavnani27-Nov-02 11:32 
GeneralRe: Web Sraping/post through two urls Pin
Nick Parker27-Nov-02 11:39
protectorNick Parker27-Nov-02 11:39 
GeneralRe: Web Sraping/post through two urls Pin
Ravi Bhavnani27-Nov-02 11:46
professionalRavi Bhavnani27-Nov-02 11:46 
GeneralRe: Web Sraping/post through two urls Pin
Nick Parker28-Nov-02 18:52
protectorNick Parker28-Nov-02 18:52 
QuestionHow to intercept chr(13) in datagrid Cell Pin
intibnin26-Nov-02 23:17
intibnin26-Nov-02 23:17 
AnswerRe: How to intercept chr(13) in datagrid Cell Pin
Nick Parker27-Nov-02 6:51
protectorNick Parker27-Nov-02 6:51 
Questionusing system icons? Pin
Sean Cull26-Nov-02 21:41
Sean Cull26-Nov-02 21:41 
AnswerRe: using system icons? Pin
Nick Seng26-Nov-02 23:23
Nick Seng26-Nov-02 23:23 
GeneralRe: using system icons? Pin
Sean Cull27-Nov-02 6:28
Sean Cull27-Nov-02 6:28 
GeneralWriting windows services Pin
GV26-Nov-02 20:52
GV26-Nov-02 20:52 

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.