In your header file, your HelloProc prototype is wrapped in an extern "C" declaration. So either you need to bend reality to fit that description (by writing your HelloProc in C, not C++, and compiling it as such), or bend the description to fit reality (by letting the compiler do the C++ name mangling).

05-27-2011

OffyGhost

c or c++

char buffer succesful sent, when I add matrix in the program all the stops working

05-27-2011

tabstop

Your matrix is a two-dimensional array, which is not at all similar to the char ** your function expects. Again, you need to change one to match the other.

matrix[i][j] is just a char, not a char* that atoi() expects. You can do atoi(matrix[i]) if matrix[i] is really a string with an ending null character. But I am doubtful about it being a real string since the array is of unsigned char. You might need to make a real string with the current length of matrix[i]:

You need to decide whether your matrix is really going to give you a matrix of ints -- you have a matrix of digits at least, I guess. If you want to translate each digit into it's 0 through 9 equivalent, you should just subtract '0' from the character to get the value. If you want numbers bigger than 10, then you should probably be transforming a row at a time (which means you have too many elements in your array).