Beispiel #1
0
extern "C" _declspec(dllexport) BOOL startPrnVw(CString strName,_ConnectionPtr ptrCon,CString& strFndC,BOOL bFndC, CString& strSql, CString& strCod){

	CDlg dlg;
	int i;
	dlg.ptrCnn    = ptrCon;
	dlg.m_strNT   = strName;
	dlg.m_strCod  = strCod;

//AfxMessageBox(dlg.m_strCod);

	i = strFndC.Find(_T("~"));
	dlg.m_strFndC  = strFndC.Left(i);
	dlg.m_strFndC1 = strFndC.Mid(i+1);	//  то будет получать
	dlg.m_bFndC   = bFndC;
//AfxMessageBox(strSql);
	i = strSql.Find(_T("~"));
	dlg.m_strSql  = strSql.Left(i);
	dlg.m_strSls  = strSql.Mid(i+1);

	if (dlg.DoModal()==IDOK) {
		if(bFndC) strFndC=dlg.m_strFndC;
		return TRUE;
	}
	else{ 
		if(bFndC) strFndC=dlg.m_strFndC;
		return FALSE;
	}
}
BOOL CApp::InitInstance()
{
	CDlg dlg;
	m_pMainWnd = &dlg;
	dlg.DoModal();
	return FALSE;
}
BOOL CApp::InitInstance()
{
#ifdef _AFXDLL
	Enable3dControls();			// Call this when using MFC in a shared DLL
#else
	Enable3dControlsStatic();	// Call this when linking to MFC statically
#endif

#ifdef _DEBUG
	for (int i = 0; i < __argc; i++)
		TRACE(_T("argv[%d]=<%s>\n"), i, __targv[i]);
#endif

	if (__argc < 2)
	{
#ifdef _DEBUG
		m_pszModule = _T("darwinia.exe");
#else
		return FALSE;
#endif
	}
	else
	{
		m_pszModule = __targv[1];
	}

	if (__argc < 3)
	{
#ifdef _DEBUG
		m_pszCrashID = _T("");
#else
		return FALSE;
#endif
	}
	else
	{
		m_pszCrashID = __targv[2];
	}

	// TODO:
	// We need to set up 	TCHAR *m_pszMagicPrefix;
	// TCHAR *m_pszAppVersion;

	if (__argc < 5)
		return FALSE;

	m_pszMagicPrefix = __targv[3];
	m_pszAppVersion = __targv[4];

	CDlg dlg;
	m_pMainWnd = &dlg;
	dlg.DoModal();

	return FALSE;
}
Beispiel #4
0
BOOL CApp::InitInstance()
{
	// InitCommonControlsEx() is required on Windows XP if an application
	// manifest specifies use of ComCtl32.dll version 6 or later to enable
	// visual styles.  Otherwise, any window creation will fail.
	INITCOMMONCONTROLSEX InitCtrls;
	InitCtrls.dwSize = sizeof(InitCtrls);
	// Set this to include all the common control classes you want to use
	// in your application.
	InitCtrls.dwICC = ICC_WIN95_CLASSES;
	InitCommonControlsEx(&InitCtrls);

	CWinApp::InitInstance();


	AfxEnableControlContainer();

	// Create the shell manager, in case the dialog contains
	// any shell tree view or shell list view controls.
	CShellManager *pShellManager = new CShellManager;

	// Standard initialization
	// If you are not using these features and wish to reduce the size
	// of your final executable, you should remove from the following
	// the specific initialization routines you do not need
	// Change the registry key under which our settings are stored
	// TODO: You should modify this string to be something appropriate
	// such as the name of your company or organization
	SetRegistryKey(_T("Local AppWizard-Generated Applications"));

	CDlg dlg;
	m_pMainWnd = &dlg;
	INT_PTR nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with OK
	}
	else if (nResponse == IDCANCEL)
	{
		// TODO: Place code here to handle when the dialog is
		//  dismissed with Cancel
	}

	// Delete the shell manager created above.
	if (pShellManager != NULL)
	{
		delete pShellManager;
	}

	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}
Beispiel #5
0
extern "C" _declspec(dllexport) BOOL startVidCrs(CString strName,_ConnectionPtr ptrCon){

	CDlg dlg;
	dlg.ptrCnn    = ptrCon;
	dlg.m_strNT   = strName;
	if (dlg.DoModal()==IDOK) {
		return TRUE;
	}
	else{ 
		return FALSE;
	}
}
Beispiel #6
0
extern "C" _declspec(dllexport) BOOL startAddBk(CString strName,_ConnectionPtr ptrCon, CString strCod, CString strIns){

	CDlg dlg;
	dlg.ptrCnn    = ptrCon;
	dlg.m_strNT   = strName;
	dlg.m_strCod  = strCod;
	dlg.m_strIns  = strIns;
	if (dlg.DoModal()==IDOK) {
		return TRUE;
	}
	else{ 
		return FALSE;
	}
}
Beispiel #7
0
extern "C" _declspec(dllexport) BOOL startOrder(CString strName,_ConnectionPtr ptrCon,CString strFndC,BOOL bFndC){

	CDlg dlg;
	dlg.ptrCnn    = ptrCon;
	dlg.m_strNT   = strName;
	dlg.m_strFndC = strFndC;
	dlg.m_bFndC   = bFndC;
	if (dlg.DoModal()==IDOK) {
		return TRUE;
	}
	else{ 
		return FALSE;
	}
}
Beispiel #8
0
extern "C" _declspec(dllexport) BOOL startAddRasSch(CString strName,_ConnectionPtr ptrCon,CString& strFndC,CString& strCod,BOOL bFndC){
	CDlg dlg;
	dlg.ptrCnn    = ptrCon;
	dlg.m_strNT   = strName;
	dlg.m_strFndC = strFndC;
	dlg.m_bFndC   = bFndC;
	dlg.m_strCod  = strCod;
	if (dlg.DoModal()==IDOK) {
		if(bFndC) strFndC=dlg.m_strFndC;
		return TRUE;
	}
	else{ 
		if(bFndC) strFndC=dlg.m_strFndC;
		return FALSE;
	}
}
Beispiel #9
0
extern "C" _declspec(dllexport) BOOL startSbNmMan(CString strName,_ConnectionPtr ptrCon,CString& strFndC,BOOL bFndC){

//AfxMessageBox(strFndC);
	CDlg dlg;
//	AfxMessageBox(_T("start dlg"));

	dlg.ptrCnn    = ptrCon;
	dlg.m_strNT   = strName;
	dlg.m_strFndC = strFndC;
	dlg.m_bFndC   = bFndC;
	
	if (dlg.DoModal()==IDOK) {
		if(bFndC) strFndC = dlg.m_strFndC;
		return TRUE;
	}
	else{ 
		if(bFndC) strFndC = dlg.m_strFndC;
		return FALSE;
	}
}