unsigned char Array von vc++ Dll an vb übergeben
-
Hallo,
c++ dll - Funktion
void test(unsigned char *pBytes) { pBytes = new unsigned char[5]; pBytes[0] = 1; pBytes[1] = 2; pBytes[2] = 3; pBytes[3] = 4; pBytes[4] = 5; }vb6 Funktion
private function meinefunction(byVal pBytes as Byte)...
end function
Kann mir jemmand sagen was ich falsch mache?
Oder wie ich es am besten mache ?Gruß Ronny
-
Ich hoffe ihr könnte mir jetzt helfen!
vc++6 dll
void test(unsigned char *pBytes)
{
pBytes = new unsigned char[5];pBytes[0] = 1;
pBytes[1] = 2;
pBytes[2] = 3;
pBytes[3] = 4;
pBytes[4] = 5;
}vb6
private declare function test lib "test.dll" (ByRef Bytes as Byte)private function meinefunction()
Dim Bytes() as Byte
Call test(Bytes)
end function
Kann mir jemmand sagen was ich falsch mache?
Oder wie ich es am besten mache ?Gruß Ronny