Click here to Skip to main content
15,905,785 members

Comments by bearbear91 (Top 5 by date)

bearbear91 15-Aug-11 2:36am View    
I've updated the question with codings.
Thanks.
bearbear91 5-Aug-11 3:38am View    
I'm actually doing on a program for face recognition.
but for the face detection part i'm using java for the coding while the rest of the portion is on c++. so is there any way to do that?
bearbear91 27-Jul-11 3:58am View    
yeah. it has a error saying override. the following is my coding:


protected override HandleRef BuildWindowCore(HandleRef hwndParent)
{
// start google earths
EARTHLib.ApplicationGE ge = null;
ge = new ApplicationGEClass();

ge.LoadKmlData(@"\Resources\Etc\GoogleEarth.kml");

int googleearth = ge.GetRenderHwnd();

IntPtr hwndControl = IntPtr.Zero;
IntPtr hwndHost = IntPtr.Zero;
int hostHeight = 200;
int hostWidth = 300;

hwndHost = CreateWindowEx(0, "static", "",
WS_CHILD | WS_VISIBLE,
0, 0,
hostHeight, hostWidth,
hwndParent.Handle,
(IntPtr)HOST_ID,
IntPtr.Zero,
0);

int oldPar = SetParent(googleearth, (int) hwndHost);
// check to see if I'm now a child
if (IsChild(hwndHost.ToInt32(), googleearth)) {
System.Console.WriteLine("now a child");
}

return new HandleRef(this, hwndHost);
}

protected override void DestroyWindowCore(HandleRef hwnd)
{
throw new NotImplementedException();
}
}
}

It's not the full coding. It's where the error are found.
bearbear91 27-Jul-11 0:26am View    
i've added that in, but it still doesn't work. thanks.
bearbear91 21-Jul-11 2:14am View    
Hi Pete O'Hanlon, is it possible for you to give me a example?