Solved

How to detemine Connection

Posted on 2004-09-09
7
163 Views
Last Modified: 2010-04-01
I have this C++ utility, written using MFC. I am VERY new to C++ and MFC, so i am still trying to figure out some somethings. In the app that I have how to i determine what the connection string is....i mean the app connects to some remote DB, but i wanna make sure which one it is. I know there has to be a string mentioned somewhere in the program but i cant find it....is there a quick way to find it?

Thanks
0
Comment
Question by:KalluMama
  • 3
  • 3
7 Comments
 
LVL 17

Expert Comment

by:rstaveley
Comment Utility
If you could list the classes in your project, we might be able to give you a nudge in the right direction, assumming the application was developed using a wizard.
0
 

Author Comment

by:KalluMama
Comment Utility
Here are a list of the classes:

 
0
 

Author Comment

by:KalluMama
Comment Utility
Here are a list of the classes:

CAboutDlg
CAddNewDDlg
CDBMaintainUtilApp
CDBMaintainUtilDlg
CIDEditDlg
CIDValueListCtl
CPasswordDlg
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 17

Expert Comment

by:rstaveley
Comment Utility
8-)
0
 
LVL 17

Expert Comment

by:rstaveley
Comment Utility
Try pasting CDBMaintainUtilApp.cpp here
0
 

Author Comment

by:KalluMama
Comment Utility
// DBMaintainUtil.h : main header file for the DBMAINTAINUTIL application
//

#if !defined(AFX_DBMAINTAINUTIL_H__B2C911BB_7668_4CF3_8188_A9D5B4E5C542__INCLUDED_)
#define AFX_DBMAINTAINUTIL_H__B2C911BB_7668_4CF3_8188_A9D5B4E5C542__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
      #error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"            // main symbols
#include "idtable.h"

/////////////////////////////////////////////////////////////////////////////
// See SSJobSetupUtil.cpp for the implementation of this class
//

class CDBMaintainUtilApp : public CWinApp
{
public:
      CDBMaintainUtilApp();

// Overrides
      // ClassWizard generated virtual function overrides
      //{{AFX_VIRTUAL(CDBMaintainUtilApp)
      public:
      virtual BOOL InitInstance();
      virtual int ExitInstance();
      //}}AFX_VIRTUAL

// Implementation
      _ConnectionPtr m_pServerJobDBConn;

protected:
// Implementation
      CString m_strAppPath;
      void LoadProgramProfileSettings();


      //{{AFX_MSG(CDBMaintainUtilApp)
            // NOTE - the ClassWizard will add and remove member functions here.
            //    DO NOT EDIT what you see in these blocks of generated code !
      //}}AFX_MSG
      DECLARE_MESSAGE_MAP()
};

inline _ConnectionPtr GetServerJobDBConn()
      {       return ((CDBMaintainUtilApp*)AfxGetApp())->m_pServerJobDBConn; }

extern const long g_nLocalIDStart;
extern const long g_nRemoteDStart;
extern bool g_bIsUserAdmin;

extern CMapIDTables g_mapIDTables;

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DBMAINTAINUTIL_H__B2C911BB_7668_4CF3_8188_A9D5B4E5C542__INCLUDED_)
0
 
LVL 39

Accepted Solution

by:
itsmeandnobodyelse earned 500 total points
Comment Utility
Check where _ConnectionPtr is defined and post header and implementation of that class (probably _Connection).

Regards, Alex
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now