Hi,
I'm using c# to build a program with "DLL".
I declare your library function as follows:
***
public static extern int vensim_get_info(int infowanted, StringBuilder buf, int maxbuflen);
***
and I call this function:
***
sb = new StringBuilder(500);
Vensim.vensim_get_info(10, sb, 500);
***
but the function returns only the first name of the currently loaded runs.
How I can get all the data?
Kind regards, Paolo.
VENSIM_GET_INFO
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
VENSIM_GET_INFO
Thanks for the reply.
The function VENSIM_GET_SUBSTRING returns only the first string; the rest is garbage, so this function doesn't fit our problem.
I seem that the only way is working with pointers; isn't it?
kind regards, Paolo.
The function VENSIM_GET_SUBSTRING returns only the first string; the rest is garbage, so this function doesn't fit our problem.
I seem that the only way is working with pointers; isn't it?
kind regards, Paolo.
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm