J
JLW
Here is my function in C++:
__declspec (dllexport) void CHARtoINT(char *input, int *output)
{
int length = strlen(input);
for (int i=0; i > length; i++)
{
output = (int)input;
}
}
Now, this function works fine if I declare it as a regular function and call
it from C++, but I need it exported and call from VB.NET.
Here's how it looks under VB.NET:
Public Shared SubCHARtoINT(ByVal input as string, ByRef output() as Integer)
And this crashes. I think it's to do with my ByRef call, but I need this
inorder for the function to work.
Thanks,
JLW
__declspec (dllexport) void CHARtoINT(char *input, int *output)
{
int length = strlen(input);
for (int i=0; i > length; i++)
{
output = (int)input;
}
}
Now, this function works fine if I declare it as a regular function and call
it from C++, but I need it exported and call from VB.NET.
Here's how it looks under VB.NET:
Public Shared SubCHARtoINT(ByVal input as string, ByRef output() as Integer)
And this crashes. I think it's to do with my ByRef call, but I need this
inorder for the function to work.
Thanks,
JLW