Hi Viktor,
I write a new CREATEPTRACTIVEX function that works in FWH, but my app
still GPF at end. I find a message in changelog from Pritpal about it:
WvgActiveXControl() can be tested both with winsink|axcore event
handellers. NOTE: CPP mode generates a GPF when ole is unloaded due to
refcount. Mindaugas can you fix it?
Is it fixed ?
Regards,
Toninho.
---cut---
#include "windows.h"
#include "hbapi.h"
extern HINSTANCE _hInstance;
HB_FUNC( CREATEPTRACTIVEX )
{
hb_retptr( CreateWindowEx(
hb_parnl( 1 ),
hb_parc( 2 ),
(LPCTSTR)ISNIL( 3 ) ? "" : hb_parc( 3 ) , //
cProgId
(DWORD) ISNIL( 4 ) ? WS_OVERLAPPEDWINDOW : hb_parni( 4 ), //
style
ISNIL( 5 ) ? CW_USEDEFAULT : hb_parni( 5 ), //
nLeft
ISNIL( 6 ) ? CW_USEDEFAULT : hb_parni( 6 ), //
nTop
ISNIL( 7 ) ? 300 : hb_parni( 7 ), //
nWidth
ISNIL( 8 ) ? 300 : hb_parni( 8 ), //
nHeight
ISNIL( 9 ) ? HWND_DESKTOP : (HWND) hb_parnl( 9
), // oParent:handle
ISNIL( 10 ) ? 0 : (HMENU) hb_parnl(
10 ), // Id
_hInstance,
NULL ) );
}
---cut---
_______________________________________________________
Yahoo! Mail - Sempre a melhor opção para você!
Experimente já e veja as novidades.
http://br.yahoo.com/mailbeta/tudonovo/
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour