|
-
May 7th, 2001, 01:40 PM
#1
Thread Starter
Fanatic Member
Simple question...
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...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|