Didnt know if i should have put it under C++ Or VB
Well i found a c++ code that allowed u to add the c++ dll in the refrence menu.. All this workes fine and everything..
"
//MYDll.cpp
void __stdcall Dll_PrintIT(HDC hdc, int x, int y, int Height, int Width, HDC hdc2, int sx, int sy)
{
BitBlt(hdc,x,y,Height,Width,hdc2,sx,sy,SRCCOPY);
}
//MYDll.odl
library MyDll
{
module MyDllFunctions
{
[
helpstring("Bitblt a hdc to another"),
entry("Dll_PrintIT")
]
void __stdcall PrintBit([in] HDC hdc, [in] int x,
[in] int y, [in] int Height,
[in] int Width, [in] HDC hdc2,
[in] int sx, [in] int sy);
}
}
"
Is used to specifie the function/sub..
Now the problem is that when i now import this DLL to Vb i has transformed the HDC in to a wireHDC... and i am not abel to use the sub.... but if i change the HDC to int it works but it dosent find the correct function because BITBLT in C++ had to have an HDC variabel..
Dose anyone know how to fix this problem???
I can send source code if u want to look at the whole C++ code.. but i got the importatnt bits in.. i hope
...
Well i found a c++ code that allowed u to add the c++ dll in the refrence menu.. All this workes fine and everything..
"
//MYDll.cpp
void __stdcall Dll_PrintIT(HDC hdc, int x, int y, int Height, int Width, HDC hdc2, int sx, int sy)
{
BitBlt(hdc,x,y,Height,Width,hdc2,sx,sy,SRCCOPY);
}
//MYDll.odl
library MyDll
{
module MyDllFunctions
{
[
helpstring("Bitblt a hdc to another"),
entry("Dll_PrintIT")
]
void __stdcall PrintBit([in] HDC hdc, [in] int x,
[in] int y, [in] int Height,
[in] int Width, [in] HDC hdc2,
[in] int sx, [in] int sy);
}
}
"
Is used to specifie the function/sub..
Now the problem is that when i now import this DLL to Vb i has transformed the HDC in to a wireHDC... and i am not abel to use the sub.... but if i change the HDC to int it works but it dosent find the correct function because BITBLT in C++ had to have an HDC variabel..
Dose anyone know how to fix this problem???
I can send source code if u want to look at the whole C++ code.. but i got the importatnt bits in.. i hope