Hi

Mindaugas Kavaliauskas wrote:
> 
> I'd rather say wvg's is better. It uses VirtualAlloc() to allocate page 
> having the correct (read/write/execute) permissions. But I'm lost among 
> the details. _AsCallback() has many strange parameters instead of a 
> single codeblock.
> 

Me too do not have any idea about its internals, but it works correct.



> The problem is I'm to lazy to change a working code. Win32 allows 
> execute code on memory allocated using hb_xgrab(), so, this solution is 
> Intel x86 Win 32bit only. I do not want to publish my code until it is 
> "dirty".
> 

NP, take your own time to clean it.

Now some issues with plain CreateObject() function.
I am using CodeJock's Calender Control. It has many 
interfaces and then it binds control with the interfaces.
The code goes like this:

oCal := hb_ActiveX( ... )
..
..
oDialogs := CreateObject( "Codejock.CalendarDialog.11.2.2" )
? valtype( oDialogs )  // "O"

oDialogs:calendar := oCal  ->    Here it GPF's

Investigating deep I find 
? valtype( oDialogs:calendar ) -> U

What I assume that some interfaces do not suppot IID_Dispatch,
may be it is IID_Unknown, I am not sure.
Extending above:

? valtype( oDialogs:ParentHWND ) -> 0    Correct

So I am lost why some properties are accessible while others not.

With previous implementation everything was fine.

Then I tried to implement pDisp->lpVtbl->AddRef( pDisp );
but it does not work on hb_oleParam(), probably it expects numeric handle.

Regards
Pritpal Bedi

Can we implement 
-- 
View this message in context: 
http://www.nabble.com/Errors-with-11032-tp23521549p23624655.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to