I have a picturebox (AutoRedraw is TRUE) ..
and a dll for text out to DC.
'-------------in VB Project.
'in the module
Declare function fnTextOut lib "test.dll" (byval hDCtmp as long) as long
'in the form
Private Sub Command1_Click()
label1 = fnTextOut(Picture1.hDC)
//in Dll project (VC 6.0)
unsigned char tmp;
#define DLLexport __declspec( dllexport )
DLLexport BOOL WINAPI fnTextOut(HDC hdc)
sprintf(tmp, "test printf");
TextOut(hdc, 0, 0, tmp, strlen(tmp));
// it's all.. surely..dll frame is omitted.
# problem is..
the text "test printf" is not appeared..
but if i toggle test program with other program(and if it is overraped), text is appeard...
Why does the text not appeared automatically ?
Is there any thing to do in DLL for display text ?