4 Star 0 Fork 2

leegoobin/AutoPHS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
psdstart.cpp 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
// PSDstart.cpp
//
#include "stdafx.h"
#include "PSDstart.h"
//#include "EDIBgbl.h"
#include "PHsStart.h"
#include "userphs.h"
#include "ModEncrypt.h"
//#include "ComStart.h"
#include "EDIBAcad.h"
//#include "modPHScal.h"
#include "basDirectory.h"
#include "EDIBgbl.h"
#include "modPHScal.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CTime PSDstart::sTime =CTime::GetCurrentTime();
CTime PSDstart::eTime =CTime::GetCurrentTime();
void PSDstart::ConvertAllDb(COleVariant dVer, COleVariant Pwd)
{
}
void PSDstart::tmpT()
{
}
void PSDstart::tmpSub2DB()
{
}
void PSDstart::tmpTelmdb2BitWareDefaultDBF()
{
}
bool PSDstart::Start()
{
//开始时间
sTime=CTime::GetCurrentTime();
EDIBgbl::SplashState=TRUE;
user::gstrAppName = "EDInBox";
EDIBgbl::gsSectionKey = "Settings";
user::GetSysDir();
//CreateAppIni gstrWinDir & gstrAppName & ".ini"
if(!basDirectory::GetComDir())
goto ErrExit;
if(!basDirectory::GetEDinBoxDir())
{
goto ErrExit;
}
//ComStart::CheckCmdLine();
//<<<<<<<<<<<<<<<<<<<<<<<
ModEncrypt::CheckLegalUser();
//此处只是暂时打开
ModEncrypt::gbLegalUser = true;
EDIBgbl::InitPrjAndPrjdb();
if(!EDIBgbl::InitBillType())
goto ErrExit;
//升级用户数据库sort.mdb和allprjdb.mdb,必须位于initBilltype之后
//conPRJDB4 4.0的驱动,只有升级时用
conPRJDB4.CreateInstance(__uuidof(Connection));
conPRJDB4->Open(_bstr_t(::dbConnectionString4+basDirectory::DBShareDir+_T("AllPrjDB.mdb")),//20071025 "ProjectDBDir" 改为 "//20071025 "ProjectDBDir" 改为 "DBShareDir""
_T(""),_T(""),0);
if(!EDIBgbl::UpgradeDatabase())
goto ErrExit;
//InitZdjTxName
modPHScal::InitPhsSAfx();
EDIBgbl::SplashState = false;
//AutoPHSD.Visible = True
//PhsData.Visible = True
return TRUE;
ErrExit:
return FALSE;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/uesoft/AutoPHS.git
git@gitee.com:uesoft/AutoPHS.git
uesoft
AutoPHS
AutoPHS
CAE

搜索帮助