I'm trying to integrate Tcl/Tk with OpenCascade on a Windows 2000 system.
I can't link the tk canvas to the V3d_View. I could do it when integrating with the FOX Gui but not in Tk.
Can someone help me. I'm using this code:
//assumnig MyGraphicDevice and MyView are
//and the canvas path in Tk is .mycanvas
Tk_Window mainwin, win; HWND winid;
mainwin = Tk_MainWindow(interp);
win = Tk_NameToWindow(interp, ".mycanvas",(Tk_Window) mainwin);
winid = (HWND) Tk_WindowId(win);
Handle(WNT_Window) aWNTWindow = new WNT_Window(MyGraphicDevice,winid);
MyView->SetWindow(aWNTWindow); //here I get an exception
if (!aWNTWindow->IsMapped()) aWNTWindow->Map();
What's wrong? Should I be using other classes to manage X11 windows?
Can someone point me the right direction.
Thanks a lot.