I'm creating a C++ DLL for use with VB, but since this is my first day of C++ and my 21-day tutorial (I know, I read fast ) doesn't explain it.

I've code this piece of code:

Code:
void _stdcall testfunc(unsigned __int8 *source, 
        unsigned __int8 *dest, short width, short height)
{
    int iX=1, iY=1;

    dest = iX * iY;
}
ok, there's a lot more, but this is where the problem is. If I do something like dest++ it works fine, but when I try to compile the piece of code above it says "error C2440: '=' : cannot convert from 'int' to 'unsigned __int8 *'"...

so how do I fix it?


And something more generally: how do I convert for example integers to longs, or strings (BStr) to integers?


Thanks...