1. BSTR that is used in VB is always a Unicode string (each symbol is coded with 2 bytes). It also has 2 bytes of zeros at the end of the string for compatibility with WinAPI functions, that usually use null-terminated strings (PB uses them as well).
2. I have tested one of a element of the array ...
					Search found 21 matches
- Tue Jun 09, 2009 1:14 pm
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
- Sun Jun 07, 2009 7:31 pm
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
- Sat Jun 06, 2009 7:56 am
 - Forum: Coding Questions
 - Topic: How do I put a Shifted Return in a Stringgadget
 - Replies: 3
 - Views: 1605
 
With WM_CHAR lParam 
					Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table (MSDN).
- Fri Jun 05, 2009 11:52 am
 - Forum: Coding Questions
 - Topic: How do I put a Shifted Return in a Stringgadget
 - Replies: 3
 - Views: 1605
 
- Fri Jun 05, 2009 5:19 am
 - Forum: Coding Questions
 - Topic: 'SizeOf' array in PureBasic?
 - Replies: 21
 - Views: 3674
 
My way:
					Code: Select all
Procedure SizeOfArray(*Array)
  ProcedureReturn PeekL(*Array-8)*PeekL(*Array-20)
EndProcedure
Dim MyArray.l(10,10)
Debug SizeOfArray(MyArray())
Debug 11*11*4- Wed Jun 03, 2009 11:03 pm
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
Code: Select all
 MyArrayVB(0) = StrConv("one", vbFromUnicode)
 MyArrayVB(1) = StrConv("two", vbFromUnicode) - Wed Jun 03, 2009 10:41 pm
 - Forum: Coding Questions
 - Topic: Bold in MessageRequester (messagebox_()) ?
 - Replies: 2
 - Views: 932
 
- Wed Jun 03, 2009 8:11 pm
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
- Fri May 29, 2009 3:27 pm
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
- Fri May 29, 2009 11:36 am
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
- Fri May 29, 2009 10:14 am
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
Try this:
And also declare MyArrayVB and MyArrayPB as global arrays.
					Code: Select all
***VB***
Private Declare Sub MyFunctionPB Lib "c:\MyDll.dll" (ByRef MyArray As Long)
***PB***
Dim MyArrayPB(1) as Long- Fri May 29, 2009 9:55 am
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
- Thu May 28, 2009 6:39 pm
 - Forum: Coding Questions
 - Topic: Passing VB Arrays
 - Replies: 42
 - Views: 12556
 
Re: Passing VB Arrays
 Can I pass a VB string array into PureBasic?
I want to create a PureBasic DLL that handles arrays created in VB. e.g.
In VB:
Redim MyArray(2) as string
MyArray(0)="one"
MyArray(1)="two"
MyArray(2)="three"
PureBasicFunction MyArray()
Any help would be appreciated, thanks
I'm not sure if it ...
					I want to create a PureBasic DLL that handles arrays created in VB. e.g.
In VB:
Redim MyArray(2) as string
MyArray(0)="one"
MyArray(1)="two"
MyArray(2)="three"
PureBasicFunction MyArray()
Any help would be appreciated, thanks
I'm not sure if it ...
- Mon May 18, 2009 9:17 am
 - Forum: Coding Questions
 - Topic: Passing array of DLL Pure to VB [Resolved]
 - Replies: 16
 - Views: 4450
 
- Thu May 14, 2009 9:55 pm
 - Forum: Coding Questions
 - Topic: Passing array of DLL Pure to VB [Resolved]
 - Replies: 16
 - Views: 4450