1 // @file wxNamingViewer.cpp
2 // A wxWindows-based CORBA naming viewer.
3 // Based on NamingViewer Version 1.0 by Chris Hafey (chris@stentorsoft.com)
5 // @author: Charlie Frasch (cfrasch@atdesk.com)
6 #include "ace/Init_ACE.h"
8 #include "wx/resource.h"
9 #include "wxNamingViewerFrame.h"
10 #include "wxNamingViewer.wxr"
12 #if defined(wxUSE_RESOURCES) && (wxUSE_RESOURCES == 1)
13 #include "wxNamingViewer.wxr"
14 #endif // defined(wxUSE_RESOURCES)
16 // Stuff for the C++Builder IDE
21 USEUNIT("wxNamingViewerFrame.cpp");
22 USEUNIT("wxNamingTree.cpp");
23 USEUNIT("wxNamingObject.cpp");
24 USEFILE("wxNamingViewer.wxr");
25 USEUNIT("wxSelectNSDialog.cpp");
26 USEUNIT("wxBindNewContext.cpp");
27 USEUNIT("wxAddNameServerDlg.cpp");
28 USEUNIT("wxBindDialog.cpp");
29 USEUNIT("wxViewIORDialog.cpp");
30 USERC("wxNamingViewer.rc");
32 //---------------------------------------------------------------------------
38 virtual bool OnInit();
42 IMPLEMENT_APP(WxNamingViewer
)
44 // Need this to keep C++Builder 4 happy
46 extern WINAPI
WinMain( HINSTANCE
, HINSTANCE
, LPSTR
, int);
49 int WxNamingViewer::OnExit()
56 bool WxNamingViewer::OnInit()
59 CORBA::ORB_var orb
= CORBA::ORB_init(
63 #if defined(wxUSE_RESOURCES) && (wxUSE_RESOURCES == 1)
64 wxResourceParseData( bindObject
);
65 wxResourceParseData( selectNS
);
66 wxResourceParseData( addNameServer
);
67 wxResourceParseData( bindNewContext
);
68 wxResourceParseData( viewIOR
);
69 #endif // defined(wxUSE_WX_RESOURCES)
71 WxNamingViewerFrame
* frame
= new WxNamingViewerFrame(