Click here to Skip to main content
15,907,231 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Windows Installer Condition sytax Pin
Joseph Guadagno15-May-07 11:51
Joseph Guadagno15-May-07 11:51 
GeneralRe: Windows Installer Condition sytax Pin
Karma3125117-May-07 9:16
Karma3125117-May-07 9:16 
GeneralRe: Windows Installer Condition sytax Pin
Joseph Guadagno17-May-07 12:22
Joseph Guadagno17-May-07 12:22 
QuestionFavorite free toolbox controls? Pin
gdijim15-May-07 8:27
gdijim15-May-07 8:27 
QuestionRemoving an object from a list Pin
steve_rm15-May-07 8:06
steve_rm15-May-07 8:06 
AnswerRe: Removing an object from a list Pin
Dave Kreskowiak15-May-07 10:18
mveDave Kreskowiak15-May-07 10:18 
QuestionMarshalling Variable-Size Array Pin
VFaul15-May-07 7:49
VFaul15-May-07 7:49 
AnswerRe: Marshalling Variable-Size Array Pin
Dave Kreskowiak15-May-07 10:12
mveDave Kreskowiak15-May-07 10:12 
VFaul wrote:
<marshalas(unmanagedtype.lparray, sizeparamindex:="0)"> Public InterfaceList() As WLAN_INTERFACE_INFO


Loose the SizeParamIndex field, it's only used in COM. Replace it with SizeCont:=10. Before you call the function that is returning data in this structure, create 10 entries in your InterfaceList array so the memory is reserved for the funtion to pass data back in. You cannot pass variable length arrays because the Marshaler has no way of determining how many elements are comming back to managed code or how to read the format of the memory block. The Marshaler can copy back a single structure with PtrToStructure. It cannot handle variable length structures!

You can find some more tidbits from this[^].


It IS possible to do though! You have to supply the code to walk the memory block and pick out the values yourself. I do NOT recommend doing this because you'll be lucky to get any help making it work. It's a technique that is very very rarely ever used. There's just about no support base for it. But, for the curious -> Here it is[^].




A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionNotifyIcon and ContextMenuStrip Pin
viperbyte65015-May-07 5:54
viperbyte65015-May-07 5:54 
AnswerRe: NotifyIcon and ContextMenuStrip Pin
Dave Kreskowiak15-May-07 9:54
mveDave Kreskowiak15-May-07 9:54 
GeneralRe: NotifyIcon and ContextMenuStrip Pin
viperbyte65015-May-07 10:39
viperbyte65015-May-07 10:39 
GeneralRe: NotifyIcon and ContextMenuStrip Pin
Dave Kreskowiak15-May-07 12:51
mveDave Kreskowiak15-May-07 12:51 
QuestionDetermine Path of Windows Folder Pin
Rupesh Kumar Swami15-May-07 4:14
Rupesh Kumar Swami15-May-07 4:14 
AnswerRe: Determine Path of Windows Folder Pin
Dave Kreskowiak15-May-07 4:37
mveDave Kreskowiak15-May-07 4:37 
QuestionRe: Determine Path of Windows Folder Pin
Rupesh Kumar Swami15-May-07 6:08
Rupesh Kumar Swami15-May-07 6:08 
AnswerRe: Determine Path of Windows Folder Pin
Dave Kreskowiak15-May-07 6:12
mveDave Kreskowiak15-May-07 6:12 
AnswerRe: Determine Path of Windows Folder Pin
The ANZAC15-May-07 13:14
The ANZAC15-May-07 13:14 
QuestionAccess verses SQL Server [modified] Pin
Werries15-May-07 3:56
Werries15-May-07 3:56 
AnswerRe: Access verses SQL Server Pin
Dave Kreskowiak15-May-07 4:25
mveDave Kreskowiak15-May-07 4:25 
AnswerRe: Access verses SQL Server Pin
Polymorpher15-May-07 17:53
Polymorpher15-May-07 17:53 
QuestionSelect all of the text in a textbox Pin
Marcus J. Smith15-May-07 3:36
professionalMarcus J. Smith15-May-07 3:36 
AnswerRe: Select all of the text in a textbox Pin
Dave Kreskowiak15-May-07 4:17
mveDave Kreskowiak15-May-07 4:17 
GeneralRe: Select all of the text in a textbox Pin
Marcus J. Smith15-May-07 5:45
professionalMarcus J. Smith15-May-07 5:45 
AnswerRe: Select all of the text in a textbox Pin
TwoFaced15-May-07 4:22
TwoFaced15-May-07 4:22 
GeneralRe: Select all of the text in a textbox Pin
Dave Kreskowiak15-May-07 4:30
mveDave Kreskowiak15-May-07 4:30 

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.