Using a C DLL for vb.net 2005

B

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top