Click here to Skip to main content
15,893,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Printer status is Unknown Pin
KaptinKrunch8-Nov-05 10:54
KaptinKrunch8-Nov-05 10:54 
QuestionTCP Client Pin
Brent Lamborn7-Nov-05 10:28
Brent Lamborn7-Nov-05 10:28 
AnswerRe: TCP Client Pin
capitan_cavernicola13-Jan-06 0:01
capitan_cavernicola13-Jan-06 0:01 
QuestionMicrosoft Web Browser Control Pin
Mo_developer7-Nov-05 5:48
Mo_developer7-Nov-05 5:48 
AnswerRe: Microsoft Web Browser Control Pin
Brent Lamborn7-Nov-05 12:29
Brent Lamborn7-Nov-05 12:29 
QuestionMultiple comboboxes in datagrid.... Pin
oakleaf7-Nov-05 5:26
oakleaf7-Nov-05 5:26 
AnswerRe: Multiple comboboxes in datagrid.... Pin
rudy.net9-Nov-05 17:55
rudy.net9-Nov-05 17:55 
QuestionSequential Structures with arrays Pin
rand197-Nov-05 4:48
rand197-Nov-05 4:48 
One of the arguments that I must pass to the Function in a DLL is a pointer to an array of a structure that has a byte array in the middle of the structure with a fixed length of 256 bytes. Here is the Structure:

<StructLayout(LayoutKind.Sequential)> _<br />
Public Structure KEYBOARDINFO       <br />
    Public KeyboardID As Int32<br />
    Public KbdName(0 To 255) As Byte<br />
    Public pKeyboard As Int32<br />
End Structure
My problem is I cannot get VB to make this structure be sequential in memory since it has the KbdName(255) in the middle of it. I have tried everything I can think of and VB always puts KbdName at the end. How can I get it to be sequential, so I can pass it to the function as an argument.



Rand
AnswerRe: Sequential Structures with arrays Pin
Joshua Quick7-Nov-05 7:06
Joshua Quick7-Nov-05 7:06 
GeneralRe: Sequential Structures with arrays Pin
rand197-Nov-05 7:29
rand197-Nov-05 7:29 
GeneralRe: Sequential Structures with arrays Pin
Joshua Quick7-Nov-05 7:43
Joshua Quick7-Nov-05 7:43 
GeneralRe: Sequential Structures with arrays Pin
rand197-Nov-05 8:19
rand197-Nov-05 8:19 
GeneralRe: Sequential Structures with arrays Pin
Joshua Quick7-Nov-05 9:09
Joshua Quick7-Nov-05 9:09 
QuestionAdding reference at runtime Pin
nikneem20057-Nov-05 2:12
nikneem20057-Nov-05 2:12 
AnswerRe: Adding reference at runtime Pin
S. Senthil Kumar7-Nov-05 3:59
S. Senthil Kumar7-Nov-05 3:59 
AnswerRe: Adding reference at runtime Pin
Steve Pullan8-Nov-05 11:33
Steve Pullan8-Nov-05 11:33 
Questionmultiple selection on a dropdownlist Pin
mcgann7-Nov-05 2:10
mcgann7-Nov-05 2:10 
AnswerRe: multiple selection on a dropdownlist Pin
rudy.net9-Nov-05 18:03
rudy.net9-Nov-05 18:03 
Questionhelp pls , doubt with collection class in vb Pin
tejaswi-teja7-Nov-05 2:06
tejaswi-teja7-Nov-05 2:06 
Questionhelp pls , doubt with collection class in vb Pin
tejaswi-teja7-Nov-05 2:05
tejaswi-teja7-Nov-05 2:05 
QuestionProblem With ImageList control Pin
Anindya Chatterjee7-Nov-05 0:27
Anindya Chatterjee7-Nov-05 0:27 
Questionclient/server communication Pin
sahil puri6-Nov-05 22:21
sahil puri6-Nov-05 22:21 
QuestionHelpNameSpace linked to host machine Pin
nashdb6-Nov-05 16:36
nashdb6-Nov-05 16:36 
AnswerRe: HelpNameSpace linked to host machine Pin
nikneem20057-Nov-05 2:34
nikneem20057-Nov-05 2:34 
GeneralRe: HelpNameSpace linked to host machine Pin
nashdb7-Nov-05 4:27
nashdb7-Nov-05 4:27 

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.