|
-
February 23rd, 2000, 11:54 AM
#1
Arrays
Hi,
I am writing code that uses a DLL. The function is that uses the DLL, does not take any values in. It ouptputs a really long string. I have the same code in Visual C++, where the value that is returned is of type char[33].
How can I do the same in Visual Basic? I tried to define an array as follows:
option explicit
private HostId() as string
then the function definition in a module
Declare Function GenerateId Lib "PLId.DLL" (ByRef HostId() As String) As Long
this is how I'm using the function:
dim rc as long
rc = GenerateId(HostId())
This gives me an exception. If I define the array with the size like private HostId(33) as string, then the function gives me invalid function arguments error.
What I am doing wrong??? Please help!!!
Thank you in advance.
Avni
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
|