Click here to Skip to main content
16,004,890 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to Decrypt an MD5'd password using a textbox and a button... Pin
Dave Kreskowiak14-Jan-10 18:09
mveDave Kreskowiak14-Jan-10 18:09 
GeneralRe: How to Decrypt an MD5'd password using a textbox and a button... Pin
Smithers-Jones15-Jan-10 0:40
Smithers-Jones15-Jan-10 0:40 
JokeRe: How to Decrypt an MD5'd password using a textbox and a button... Pin
JHizzle22-Jan-10 3:19
JHizzle22-Jan-10 3:19 
GeneralRe: How to Decrypt an MD5'd password using a textbox and a button... Pin
Jörgen Andersson15-Jan-10 9:47
professionalJörgen Andersson15-Jan-10 9:47 
QuestionVB Script in word 2007 Pin
Niungareamit13-Jan-10 22:10
Niungareamit13-Jan-10 22:10 
AnswerRe: VB Script in word 2007 Pin
Dalek Dave13-Jan-10 22:32
professionalDalek Dave13-Jan-10 22:32 
GeneralRe: VB Script in word 2007 Pin
Niungareamit13-Jan-10 22:35
Niungareamit13-Jan-10 22:35 
QuestionI need to pass an array from VBScript to VB.Net COM .DLL Pin
Hrizip13-Jan-10 21:25
Hrizip13-Jan-10 21:25 
I would need to pass an array (variant) which was dimensioned and "filled" in VBScript to a com-interop-based VB.Net .dll

On the VBS side I got;

Dim DoubleArray(4) 'Fixed size array
DoubleArray(0) = 100
DoubleArray(1) = 200
DoubleArray(2) = 300
DoubleArray(3) = 400


This is purely for test purposes so don't lose it over the inefficiency of the way I did that Wink | ;)

On the VB.net dll side I got the following property with which I tried to get the array;

Public Property DataY() As Object()
       Get
           Return RezultatiY
       End Get
       Set(ByVal value As Object())
           RezultatiY = value
       End Set

   End Property


At first I tried declaring DataY as Integer Array and got "type mismatch" error, this was before I was aware of the fact that VBS does not deal with "type" arrays (integer array, string array), only "variant" ones. This made me try to pass it as an object...again it didn't work.

I have never before worked with VBScript (which is painfully apparent) and after having spent 2 days pouring over google search results it became self evident that the problem is not only in my lack of knowledge but also in some sort of inconsistency between array definitions in VB.Net and VBScript.

Currently I am fiddling with the following method in my COM .dll, hoping it would work;

Public Class GetArray
    Public Function GetArrayPls(ByRef vntArray As VariantType)
        Dim NewArray = Nothing
        NewArray = vntArray
        MsgBox(vntArray(1).ToString)
        Return NewArray
    End Function


*Any* help would be *much* appreciated.
Thanks!
AnswerRe: I need to pass an array from VBScript to VB.Net COM .DLL Pin
DaveAuld13-Jan-10 23:38
professionalDaveAuld13-Jan-10 23:38 
GeneralRe: I need to pass an array from VBScript to VB.Net COM .DLL Pin
Hrizip14-Jan-10 2:28
Hrizip14-Jan-10 2:28 
GeneralRe: I need to pass an array from VBScript to VB.Net COM .DLL Pin
isaacchk2-Aug-10 23:12
isaacchk2-Aug-10 23:12 
GeneralRe: I need to pass an array from VBScript to VB.Net COM .DLL Pin
Hrizip3-Aug-10 2:54
Hrizip3-Aug-10 2:54 
GeneralRe: I need to pass an array from VBScript to VB.Net COM .DLL Pin
isaacchk3-Aug-10 23:23
isaacchk3-Aug-10 23:23 
GeneralRe: I need to pass an array from VBScript to VB.Net COM .DLL Pin
Hrizip3-Aug-10 23:48
Hrizip3-Aug-10 23:48 
GeneralRe: I need to pass an array from VBScript to VB.Net COM .DLL Pin
Hrizip4-Aug-10 0:11
Hrizip4-Aug-10 0:11 
QuestionMouse Move on Label Pin
Tufail Ahmad13-Jan-10 20:00
Tufail Ahmad13-Jan-10 20:00 
AnswerRe: Mouse Move on Label Pin
DaveAuld13-Jan-10 23:28
professionalDaveAuld13-Jan-10 23:28 
GeneralRe: Mouse Move on Label Pin
Tufail Ahmad14-Jan-10 0:33
Tufail Ahmad14-Jan-10 0:33 
GeneralRe: Mouse Move on Label Pin
Dave Kreskowiak14-Jan-10 1:36
mveDave Kreskowiak14-Jan-10 1:36 
GeneralRe: Mouse Move on Label Pin
DaveAuld14-Jan-10 2:47
professionalDaveAuld14-Jan-10 2:47 
GeneralRe: Mouse Move on Label Pin
Eddy Vluggen14-Jan-10 3:40
professionalEddy Vluggen14-Jan-10 3:40 
QuestionGeneric code for updating business object from dataset - feedback requested Pin
Lee Ludden13-Jan-10 9:37
Lee Ludden13-Jan-10 9:37 
AnswerWow, way to complicated ... Pin
David Mujica13-Jan-10 9:57
David Mujica13-Jan-10 9:57 
QuestionHow to generate a check sum string? Pin
azusakt12-Jan-10 18:02
azusakt12-Jan-10 18:02 
AnswerRe: How to generate a check sum string? Pin
Abhinav S12-Jan-10 18:37
Abhinav S12-Jan-10 18:37 

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.