Home All Groups Group Topic Archive Search About

Using a C DLL for vb.net 2005

Author
5 May 2006 2:44 PM
Bob Simoneau
I am trying hard to utilize a C DLL from my VB.net code.  I have had luck
with most of the translations.  The following 5 function have been giving me
a real hard time, particularly the last one which has a **.  Any help would
be appreciated.

TS_CTX* __EXPORT__ __STDCALL__
SIM_FLD_INIT(char *userId, int userIdLen,
   char *password, int passwordLen,
   char *resource, int resourceLen,
   char *configPath, int configPathLen);

void __EXPORT__ __STDCALL__
SIM_FLD_TERM(TS_CTX *tsCtx);

int __EXPORT__ __STDCALL__
SIM_FLD_DEC(TS_CTX *tsCtx, unsigned char *changedField,
   unsigned int changedFieldLen,
   unsigned char *field, unsigned int fieldLen,
   unsigned int *fieldLenUsed);

int __EXPORT__ __STDCALL__
SIM_FLD_ENC(TS_CTX *tsCtx, unsigned char *field,
   unsigned int fieldLen, unsigned char *changedField,
   unsigned int changedFieldLen,
   unsigned int *changedFieldLenUsed);

int __EXPORT__ __STDCALL__
SIM_GET_ERR(TS_CTX *tsCtx, char **message, int *messageLen);

Author
5 May 2006 11:29 PM
Robert J. Simoneau
I got them to work.  Thanks for the help.
Show quoteHide quote
"Bob Simoneau" <bobsimoneau@newsgroups.nospam> wrote in message
news:uM5A4JFcGHA.3364@TK2MSFTNGP05.phx.gbl...
>I am trying hard to utilize a C DLL from my VB.net code.  I have had luck
>with most of the translations.  The following 5 function have been giving
>me a real hard time, particularly the last one which has a **.  Any help
>would be appreciated.
>
> TS_CTX* __EXPORT__ __STDCALL__
> SIM_FLD_INIT(char *userId, int userIdLen,
>   char *password, int passwordLen,
>   char *resource, int resourceLen,
>   char *configPath, int configPathLen);
>
> void __EXPORT__ __STDCALL__
> SIM_FLD_TERM(TS_CTX *tsCtx);
>
> int __EXPORT__ __STDCALL__
> SIM_FLD_DEC(TS_CTX *tsCtx, unsigned char *changedField,
>   unsigned int changedFieldLen,
>   unsigned char *field, unsigned int fieldLen,
>   unsigned int *fieldLenUsed);
>
> int __EXPORT__ __STDCALL__
> SIM_FLD_ENC(TS_CTX *tsCtx, unsigned char *field,
>   unsigned int fieldLen, unsigned char *changedField,
>   unsigned int changedFieldLen,
>   unsigned int *changedFieldLenUsed);
>
> int __EXPORT__ __STDCALL__
> SIM_GET_ERR(TS_CTX *tsCtx, char **message, int *messageLen);
>
>