Changeset 1199 for GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
- Timestamp:
- 08/11/06 15:23:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1197 r1199 1 #ifdef UNICODE 2 #undef UNICODE 3 #endif 4 1 5 #include <windows.h> 2 6 #include <stdio.h> … … 34 38 int LoadMyDll() 35 39 { 36 37 38 39 40 41 42 { 43 44 45 } 46 47 48 49 50 51 { 52 53 54 } 55 56 57 58 59 60 61 62 40 importFunction LoadRenderWidget; 41 42 // Load DLL file 43 HINSTANCE hinstLib = LoadLibrary("QtGlRenderer.dll"); 44 45 if (hinstLib == NULL) 46 { 47 cout << "ERROR: unable to load DLL\n"; 48 return 1; 49 } 50 51 // Get function pointer 52 LoadRenderWidget = (importFunction)GetProcAddress(hinstLib, "LoadRenderWidget"); 53 54 if (LoadRenderWidget == NULL) 55 { 56 cout << "ERROR: unable to find DLL function\n"; 57 return 1; 58 } 59 60 // load the render window 61 rendererWidget = LoadRenderWidget(preprocessor); 62 63 // Unload DLL file 64 //FreeLibrary(hinstLib); 65 66 return 0; 63 67 } 64 68 … … 103 107 104 108 Debug.open("debug.log"); 105 109 106 110 Environment::GetSingleton()->Parse(argc, argv, USE_EXE_PATH); 107 111 MeshKdTree::ParseEnvironment(); … … 112 116 113 117 if (preprocessorType == "vss") 114 {118 { 115 119 preprocessor = new VssPreprocessor(); 116 }120 } 117 121 else 118 122 {
Note: See TracChangeset
for help on using the changeset viewer.