Ignore:
Timestamp:
08/11/06 15:23:47 (18 years ago)
Author:
bittner
Message:

code merge

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 
    15#include <windows.h> 
    26#include <stdio.h> 
     
    3438int LoadMyDll() 
    3539{ 
    36         importFunction LoadRenderWidget; 
    37          
    38     // Load DLL file 
    39         HINSTANCE hinstLib = LoadLibrary("QtGlRenderer.dll"); 
    40          
    41         if (hinstLib == NULL)  
    42         { 
    43                 cout << "ERROR: unable to load DLL\n"; 
    44                 return 1; 
    45         } 
    46  
    47         // Get function pointer 
    48         LoadRenderWidget = (importFunction)GetProcAddress(hinstLib, "LoadRenderWidget"); 
    49          
    50         if (LoadRenderWidget == NULL)  
    51         { 
    52                 cout << "ERROR: unable to find DLL function\n"; 
    53                 return 1; 
    54         } 
    55  
    56         // load the render window 
    57     rendererWidget = LoadRenderWidget(preprocessor); 
    58  
    59         // Unload DLL file 
    60     //FreeLibrary(hinstLib); 
    61  
    62         return 0; 
     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; 
    6367} 
    6468 
     
    103107 
    104108        Debug.open("debug.log"); 
    105  
     109   
    106110        Environment::GetSingleton()->Parse(argc, argv, USE_EXE_PATH); 
    107111        MeshKdTree::ParseEnvironment(); 
     
    112116 
    113117        if (preprocessorType == "vss") 
    114         { 
     118          { 
    115119                preprocessor = new VssPreprocessor(); 
    116         } 
     120          } 
    117121        else 
    118122        { 
Note: See TracChangeset for help on using the changeset viewer.