|
HELP ME! How do I pass an array of strings from VB to C++?
Hi, why does'nt this code work?
VB / Visual Basic Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Private Declare Function startFunction Lib "..\..\scenefile_concat\debug\scenefile_concat.dll" (ByVal argc As Int32, ByRef argv() As String, ByVal dest As String) As Int32
--windows form designer generated code--
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim argv(3) As String
Dim argc As Int32
argc = 3
argv(0) = "C:\bunkspeed\content\scenes\demoordie.scn"
argv(1) = "C:\bunkspeed\content\scenes\dome.scn"
argv(2) = "C:\bunkspeed\content\scenes\presentationscene.scn"
Call startFunction(argc, argv, "C:\testscn.scn")
End Sub
End Class
Last edited by LuciWiz : 26-Mar-2006 at 11:04.
Reason: Please insert your Visual Basic code between [vb] & [/vb] tags
|