From ec77f06c40c9e0986e82096105bd9f90d0c4a46b Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 15 Nov 2000 01:15:44 +0000 Subject: changes to catch up with the new features fo the linux version git-svn-id: http://svn.leocad.org/trunk@162 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- win/Leocad.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'win/Leocad.cpp') diff --git a/win/Leocad.cpp b/win/Leocad.cpp index f792a43..66c45e1 100644 --- a/win/Leocad.cpp +++ b/win/Leocad.cpp @@ -12,6 +12,7 @@ #include "globals.h" #include "system.h" #include "pieceinf.h" // TODO: remove +#include "config.h" #ifdef _DEBUG #define new DEBUG_NEW @@ -91,12 +92,14 @@ BOOL CCADApp::InitInstance() SetRegistryKey(_T("BT Software")); // LoadStdProfileSettings(); // Load standard INI file options (including MRU) + if (!GL_Initialize (NULL)) + return FALSE; + // Register the application's document templates. Document templates // serve as the connection between documents, frame windows and views. - CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, @@ -296,7 +299,7 @@ void CCADApp::OnHelpUpdates() { CString str; - if (ver > LC_APP_VERSION) + if (ver > LC_VERSION_MAJOR + (float)LC_VERSION_MINOR/100) str.Format("There's a new version (%0.2f) on the home page.\n", ver); else str = "You are using the latest version of the program.\n"; -- cgit v1.2.3