1.3 updates
This commit is contained in:
parent
bb4769dbba
commit
78071b1635
13 changed files with 627 additions and 725 deletions
14
CB32.cpp
14
CB32.cpp
|
|
@ -49,13 +49,15 @@ CCB32App theApp;
|
|||
BOOL CCB32App::InitInstance()
|
||||
{
|
||||
// find the location of the exe from Help File Path
|
||||
CString sHelp, sIni;
|
||||
sHelp = m_pszHelpFilePath;
|
||||
sIni = sHelp.Left(sHelp.ReverseFind('.'));
|
||||
sIni += ".INI";
|
||||
CString szHelp, szPath;
|
||||
szHelp = m_pszHelpFilePath;
|
||||
szPath = szHelp.Left(szHelp.ReverseFind('.')) + ".INI";
|
||||
free((void*)m_pszProfileName);
|
||||
m_pszProfileName = _tcsdup((LPCSTR)sIni);
|
||||
|
||||
m_pszProfileName = _tcsdup((LPCSTR)szPath);
|
||||
// set global path to self
|
||||
szPath = szHelp.Left(szHelp.ReverseFind('\\')) + '\\';
|
||||
m_pszPathToExe = _tcsdup((LPCSTR)szPath);
|
||||
|
||||
#ifdef _AFXDLL
|
||||
Enable3dControls(); // Call this when using MFC in a shared DLL
|
||||
#else
|
||||
|
|
|
|||
Reference in a new issue