Hi Toninho,

2009/6/16 toni...@fwi <[email protected]>

> 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:


You call two WAPI_CREATEWINDOWEX() had a few problems:
- (parameters off - thanks for your fix)
- oWindow:hWnd is probably numeric so you need to convert it to pointer
 with win_P2N( oWindow:hWnd )
- 11th parameter is missing, which is _hInstance.

I'll add a new API inside hbwin to return that value, so such
hacks won't be needed.

So your final call would look something like this:
---
WAPI_CREATEWINDOWEX( 0,;
   "AtlAxWin",;
   "ShockwaveFlash.ShockwaveFlash.1",;
   NIL, NIL, NIL,;
   300, 300,;
   win_N2P( oWindow:hWnd ),;
   NIL,;
   win_hInstance() )
---

Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to