Changeset 1241 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 08/21/06 02:54:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1239 r1241 36 36 typedef GlRendererWidget *(*importFunction)(Preprocessor *); 37 37 38 38 39 int LoadMyDll() 39 40 { 40 41 42 43 HINSTANCE hinstLib = LoadLibrary("QtGlRenderer.dll");44 45 46 { 47 48 49 } 50 51 52 53 54 55 { 56 57 58 } 59 60 // load the render window 61 rendererWidget = LoadRenderWidget(preprocessor); 62 63 // Unload DLL file 64 //FreeLibrary(hinstLib); 65 66 return 0;67 } 68 41 importFunction LoadRenderWidget; 42 43 // Load DLL file 44 HINSTANCE hinstLib = LoadLibrary("../QtGlRenderer/Release/QtGlRenderer.dll"); 45 46 if (hinstLib == NULL) 47 { 48 cout << "ERROR: unable to load DLL\n"; 49 return 1; 50 } 51 52 // Get function pointer 53 LoadRenderWidget = (importFunction)GetProcAddress(hinstLib, "LoadRenderWidget"); 54 55 if (LoadRenderWidget == NULL) 56 { 57 cout << "ERROR: unable to find DLL function\n"; 58 return 1; 59 } 60 61 cout << "loading widget ... "; 62 // load the render window 63 rendererWidget = LoadRenderWidget(preprocessor); 64 cout << "finished" << endl; 65 // Unload DLL file 66 //FreeLibrary(hinstLib); 67 68 return 0; 69 } 69 70 70 71 … … 83 84 { 84 85 if (!rendererWidget) 86 { 85 87 LoadMyDll(); 86 88 } 89 87 90 //rendererWidget->Show(); 88 91 } … … 217 220 if (preprocessor->mUseGlRenderer || preprocessor->mUseGlDebugger) 218 221 { 222 cout << "using gl widget" << endl; 219 223 // create and run the preprocessor application in a parallel thread 220 224 pt.InitThread();
Note: See TracChangeset
for help on using the changeset viewer.