G
Guest
I have made this simple funcion running into a eVC++ .dll - just displaying Hi World
void Test(
{ HWND hWnd
HDC hDc
hWnd=GetActiveWindow()
hDc= GetDC(hWnd)
ExtTextOut (hDc, 10, 10, ETO_OPAQUE, NULL, _T("Hi World !"), 4, NULL)
ReleaseDC(hWnd,hDc);
If I run this in C, outside the .dll works fine - more complex code using rotated fonts also run well
But when I call this from VB.Net using a Form - pushing a button - <DllImport("Test.dll", SetLastError:=True)> Public Shared Function Test() End Functio
then nothing happens .. never display anything ..
What's going on ? .. please help ! .. thanksss :-
PD: The point of all this is displaying rotated font in Pocket Pc, not available in .Net compact framework
void Test(
{ HWND hWnd
HDC hDc
hWnd=GetActiveWindow()
hDc= GetDC(hWnd)
ExtTextOut (hDc, 10, 10, ETO_OPAQUE, NULL, _T("Hi World !"), 4, NULL)
ReleaseDC(hWnd,hDc);
If I run this in C, outside the .dll works fine - more complex code using rotated fonts also run well
But when I call this from VB.Net using a Form - pushing a button - <DllImport("Test.dll", SetLastError:=True)> Public Shared Function Test() End Functio
then nothing happens .. never display anything ..
What's going on ? .. please help ! .. thanksss :-
PD: The point of all this is displaying rotated font in Pocket Pc, not available in .Net compact framework