|
hi,
Since i am new to vc++ i want to know the entire procedures for using a tab control and progress bar in a dialog box.Starting from the initiallizing state till the working of progress bar and tab control using activex control in MFC.
I saw MSDN for reference but i dont know how to proceed with it.
Plz help me out,its v.urgent
Thanx in Advance,
zari
|
|
|
|
|
|
In a MFC active x control application , I have created a dialog box and placed a tab control in that now how to proceed???????????
zari
|
|
|
|
|
|
Hi Friends,
Following error is troubling me from last couple of days, I am looking for some help from the group
I am doing following steps:
1. Adding a dialog box with ID=IDD_DLG_ORG_IMAGE in the SDI application
2. Adding class using class wizard with class name ‘COrgImgDlg’ derived from ‘CDialog’ for the above created dialog
3. After Compiling a code I am getting following error
--------------------Configuration: IP - Win32 Debug--------------------
Compiling...
MyTabCtrl.cpp
e:\dinesh\ip\orgimgdlg.h(23) : error C2065: 'IDD_DLG_ORG_IMAGE' : undeclared identifier
e:\dinesh\ip\orgimgdlg.h(23) : error C2057: expected constant expression
Error executing cl.exe.
IP.exe - 2 error(s), 0 warning(s)
Following is the part of the orgimgdlg.h file where I am getting error
class COrgImgDlg : public CDialog
{
// Construction
public:
COrgImgDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(COrgImgDlg)
enum { IDD = IDD_DLG_ORG_IMAGE };
// CMyTabCtrl m_ImageTabs;
//}}AFX_DATA
Please help me out I am not understating why this error is occurring in the same header file of the dialog.
Thanks and Regards,
-Dinesh
|
|
|
|
|
Check whether, dilaog you wnat to base class upon is having id IDD_DLG_ORG_IMAGE .
And resource.h is included appropriately .
|
|
|
|
|
Did you include Resource.h
|
|
|
|
|
What #include directives do you have at the top of orgimgdlg.cpp and orgimgdlg.h ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am trying to do this steps but i am not able to see the "new ATL object in my project,can anybody help me what went wrong.....
Insert > New ATL Object > Data Access > Consumer. It will ask you for a data source, select the data source which you have made with ODBC.
from the source http://www.codeproject.com/database/YulOLEDBdatabase.asp[^]
|
|
|
|
|
abrakadbra wrote: I am trying to do this steps but i am not able to see the "new ATL object in my project
What you want to say. There is no menu "New ATL object". Which version of VS you are using ?
|
|
|
|
|
vc6 and that is not present there
|
|
|
|
|
Maybe you need to ATL OLE DB Consumer Wizard
|
|
|
|
|
|
|
sorry to ask you silly question but how to get this wizard....can you pls help me in simple words
|
|
|
|
|
You dont need to say sorry
Right click on project in solution window and select Add Class>then select ALT OLEDC Consumer
|
|
|
|
|
Do your problem solve?
|
|
|
|
|
no still it is there..do i need to start my project with ATL wizard then only i can get the atl wizrad and class ..i am still confuse for this...pls help me..vc++ is all new to me..
|
|
|
|
|
I guess your problem was on that option but if you have problem you can ask from author that article
|
|
|
|
|
thanks i will try that way.
|
|
|
|
|
|
I got error,
compiler limit : internal heap limit reached; use /Zm to specify a higher limit
I looked in msdn ididn't under wehere the /Zm Value to be set?
Plz Help me
|
|
|
|
|
Did you see MSDN?
From the MSDN:
/Zmnumber
where:
number
A scaling factor that determines the compiler's memory allocation limit for the precompiled header.
...
...
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the C/C++ folder.
Click the Command Line property page.
Type the compiler option in the Additional Options box.
|
|
|
|
|
Thanks for reply ,but it is not helped me.
I didn't found propety pages MSDEV,
I opened Settings then i clicked C/C++ tab, i didn't find Command line there .
and also i didn't find Additional Options box.
can u explain step by step?
|
|
|
|
|
When you right click on your project in (Solution explorer window)
you have a option Properties in the left of window you have a treecrl
in this control you have a folder C/C++ and in this folder last option is command Line
Right click on project->select Propertie->select C/C++->click on Command Line
did your problem solve?
|
|
|
|