[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Passing a window pointer from unmanged to managed

Feldaspar

2/22/2007 7:17:00 AM

Hi,

I want to pass a window handle from unmanaged code to managed code:

------------------------------------
Unmanaged code:

LOCAL CVPrompt AS OBJECT
CVPrompt := oleautoobject{"CV.Prompt.3"}
CVPrompt:Create(num1,num2,ClinicalWindow:Handle()) //this is where i
pass the handle

------------------------------------
Managed code:

public class CreatePrompt:MarshalByRefObject,ICreatePrompt
{
public void Create(string ur_no,string dr_no,IntPtr clinicalWin)
...................
}
------------------------------------

It is meant to bring up a window, this worked before I started passing
through the handle to the window, now it does not work (the managed
code does not execute).

Can anyone see what I am doing wrong?

Andy