Hi Experts,
I need an URGENT help. I applied an ODBC through a Dialog Box (base class: CDialogODBC) to open a database. Then, I selected specified table available in the database before importing it into a new data structure which can be viewed as a set of matrix entries or information...
Hey,
Something is wrong again... Perhaps the display does not support "- & gt". What I mean is:
CMyDoc*pDoc=(CMyDoc*)m_pDocTemp- & gt->CreateNewDocument();
ASSERT(pDoc- & gt->IsKindOf(RUNTIME_CLASS(CMyDoc)));
What is the "- & gt" trying to tell?
Sorry for the...
Oh,
I am sorry, something is wrong with the display. I was trying to say -> instead. For example, I have this code:
CMyDoc*pDoc=(CMyDoc*)m_pDocTemp->->CreateNewDocument();
ASSERT(pDoc->->IsKindOf(RUNTIME_CLASS(CMyDoc)));
What is the "->" trying to tell?
Sorry for the...
Hi,
Can anyone tell me what -> means? For example, I have this code:
CMyDoc*pDoc=(CMyDoc*)m_pDocTemp->CreateNewDocument();
ASSERT(pDoc->IsKindOf(RUNTIME_CLASS(CMyDoc)));
What is the -> trying to tell?
many thanks!
cheers,
Hi, thank you for your reply. Sorry, I am a bit confused. If I do all these message processings, variable adding or mapping as you said, would the name appear in the Class Wizard?
I have a source code from CodeGuru. It has a non MFC-base class and I wonder how it could appear in the Class...
Hi.
I am a fresh Visual C++ Programmer. can anyone please advise me how to add a new non-MFC class using ClassWizard.
For example,
I want to create my own class called CImporter based on the base class of CMyRecordView which is not the Visual C++ MFC Class. How am I supposed to do that...
Hi,
I have a treeview built in the CView class. There is no OnDblclkTree1 function but OnLButtonDblClk handler. Can anyone please tell me how to call a dialog box whenever I double click on one item on the tree?
For example:
Here is my tree directory. When I double click on the sample data...
Hi,
I have been trying hard to add an imported item into the tree control. This is how I did:
void CTestView::Onimport()
{
String strQuery;
char bstr[300];
CDialogImporter odbc(NULL);
odbc.DoModal();
strQuery = odbc.tablestring;
strcpy(bstr, strQuery.GetBuffer());
// for sub folders of...
Hi Matt,
Thank you for help. I have one more question. In my CDialog Class. I have a database defined as CDatabase locally: -
CDatabase db; (declared in CDialog Class header file)
BOOL CDialogODBC::Opendatabase() //in CDialog source files.
db.Open(NULL,false,false,"ODBC;",TRUE)...
Can anyone tell me what to pass a database to another file. For example, I have a dialog box to open a database using ODBC. I retrieve all the information I want from the database. However, I do have another source file (not CDialog class) which is used to do the data manipulation. It needs some...
Hi,
just a very simply question. I got a function.
Bool CDialogTest::OpenFiles()
{
ODBCCall::GetTables(db, tables);
... }
N/B: db is defined as CDatabase and tables are strings. My answer is very simple, how to check the return value of ODBCCall from the BOOL CDialogTest. Please help...
if i have a string as:
"Time Decimal(3)"
"Cat Integer "
I want the program each time to extract the second word of the statements. In this case is "Decimal" or "Integer" depending which line has been selected. How am I supposed to do...
Sorry, typing errors: :)
Also when I click on the status line, the default value shown will be String in the attribute dialog. How to do that? I have been trying many method but not successful. Please help. I deeply appreciate that. Many thanks.
Hi,
I have a CListBox displaeyd with the column as shown:
CheckBox Time Float
CheckBox Toronto String
CheckBox NewYork String
CheckBox California String
CheckBox Status String
Besides, I have created a dialog...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.