Click here to Skip to main content
15,902,938 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak15-Feb-09 3:50
mveDave Kreskowiak15-Feb-09 3:50 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim15-Feb-09 19:41
Samir Ibrahim15-Feb-09 19:41 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 2:11
mveDave Kreskowiak16-Feb-09 2:11 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim16-Feb-09 3:48
Samir Ibrahim16-Feb-09 3:48 
GeneralRe: Create Structure Dynamically Pin
Dave Kreskowiak16-Feb-09 13:59
mveDave Kreskowiak16-Feb-09 13:59 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim17-Feb-09 5:51
Samir Ibrahim17-Feb-09 5:51 
GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim14-Feb-09 3:25
Samir Ibrahim14-Feb-09 3:25 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn14-Feb-09 4:54
sitebuilderLuc Pattyn14-Feb-09 4:54 
Hi,

It all depends. What API?

.NET supports dynamic stuff but it is not simple to use it.

If the number of required types is limited (say a subset of the Win32 types) it would be much easier
to predefine those types, that is what everyone is doing when calling native functions from
kernel32.dll, user32.dll, and the like. As an example, look at www.pinvoke.org

If the types are yours, and you are in charge of the code on both sides, then you may consider replacing all those structs by key-value collections, where both keys and values are strings. As far as the interface goes, that could boil down to an array of strings (holding an even number of them),
or even one big string with a separator char as in
"key1=value1;key2=value2;...;keyN=valueN"

Hope this helps.

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Create Structure Dynamically Pin
Samir Ibrahim15-Feb-09 19:46
Samir Ibrahim15-Feb-09 19:46 
GeneralRe: Create Structure Dynamically Pin
Luc Pattyn16-Feb-09 0:06
sitebuilderLuc Pattyn16-Feb-09 0:06 
QuestionSkipping Some queries and conditions Pin
jishbalan13-Feb-09 19:09
jishbalan13-Feb-09 19:09 
AnswerRe: Skipping Some queries and conditions Pin
Dave Kreskowiak14-Feb-09 1:04
mveDave Kreskowiak14-Feb-09 1:04 
GeneralRe: Skipping Some queries and conditions Pin
jishbalan14-Feb-09 5:07
jishbalan14-Feb-09 5:07 
GeneralRe: Skipping Some queries and conditions Pin
Dave Kreskowiak15-Feb-09 3:53
mveDave Kreskowiak15-Feb-09 3:53 
Question"Send and Receive message" -Threading Problem Pin
scothyhut13-Feb-09 19:03
scothyhut13-Feb-09 19:03 
AnswerRe: "Send and Receive message" -Threading Problem Pin
Dave Kreskowiak14-Feb-09 1:02
mveDave Kreskowiak14-Feb-09 1:02 
GeneralRe: "Send and Receive message" -Threading Problem Pin
scothyhut14-Feb-09 1:37
scothyhut14-Feb-09 1:37 
GeneralRe: "Send and Receive message" -Threading Problem Pin
Dave Kreskowiak15-Feb-09 3:48
mveDave Kreskowiak15-Feb-09 3:48 
QuestionThreading Pin
Cory Kimble13-Feb-09 7:11
Cory Kimble13-Feb-09 7:11 
GeneralRe: Threading Pin
Luc Pattyn13-Feb-09 7:45
sitebuilderLuc Pattyn13-Feb-09 7:45 
QuestionWhy can't I see one of the reference (dll) file name within imports? Pin
JUNEYT13-Feb-09 6:23
JUNEYT13-Feb-09 6:23 
AnswerRe: Why can't I see one of the reference (dll) file name within imports? Pin
vaghelabhavesh13-Feb-09 6:30
vaghelabhavesh13-Feb-09 6:30 
QuestionHow to extend a generic type like KeyValuePair(of TKey, TValue)? Pin
Jon_Boy13-Feb-09 5:45
Jon_Boy13-Feb-09 5:45 
AnswerRe: How to extend a generic type like KeyValuePair(of TKey, TValue)? Pin
Gideon Engelberth13-Feb-09 6:20
Gideon Engelberth13-Feb-09 6:20 
GeneralRe: How to extend a generic type like KeyValuePair(of TKey, TValue)? Pin
Jon_Boy13-Feb-09 6:30
Jon_Boy13-Feb-09 6: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.