J
Jack Wright
Dear All,
I am trying to pass a Window Handle to a Win32 dll function...but I
sometimes get NullReferenceException...this is usually the first time
I start my application...here is the sample code...
MyControl: Control
{
....
protected override void OnCreateControl()
{
base.OnCreateControl();
SCSkin.ExcludeWnd(this.Handle.ToInt32(),0);
}
}
ExcludeSkin is does an call... this is the code in ildasm...
..method public hidebysig instance int32 ExcludeWnd(int32 hWnd,
int32
withChildren) cil managed
{
// Code size 8 (0x8)
.maxstack 2
IL_0000: ldarg.1
IL_0001: ldarg.2
IL_0002: call int32 SkinCrafter.SCSkin::impExcludeWnd(int32,
int32)
IL_0007: ret
} // end of method SCSkin::ExcludeWnd
Am I doing something wrong? Please help...
TALIA
Many Regards
Jack
I am trying to pass a Window Handle to a Win32 dll function...but I
sometimes get NullReferenceException...this is usually the first time
I start my application...here is the sample code...
MyControl: Control
{
....
protected override void OnCreateControl()
{
base.OnCreateControl();
SCSkin.ExcludeWnd(this.Handle.ToInt32(),0);
}
}
ExcludeSkin is does an call... this is the code in ildasm...
..method public hidebysig instance int32 ExcludeWnd(int32 hWnd,
int32
withChildren) cil managed
{
// Code size 8 (0x8)
.maxstack 2
IL_0000: ldarg.1
IL_0001: ldarg.2
IL_0002: call int32 SkinCrafter.SCSkin::impExcludeWnd(int32,
int32)
IL_0007: ret
} // end of method SCSkin::ExcludeWnd
Am I doing something wrong? Please help...
TALIA
Many Regards
Jack