|
|
why am i getin error when declaring control variables through ddx
|
|
|
|
|
arshadkc wrote: why am i getin error when declaring control variables through ddx
what error?
How are you going along with the declaration of variables?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Error is Memory could not be read
I'm tryin to declare variable for a button through class wizard
|
|
|
|
|
You get this error on all your projects or in this project
|
|
|
|
|
ya most time i am getin this error in my other projects also
but when i'm not declaring variable through ddx i am not getin error here
|
|
|
|
|
show off a piece of the code you wrote...
|
|
|
|
|
In debug mode i am getin error as unhandled exception and accec violation at statement
lResult = pWnd->WindowProc(nMsg, wParam, lParam);
in funtion AfxCallWndProc
|
|
|
|
|
What error (e.g., compiler, linker, exception, assertion)? What does the DDX statement look like? Is the variable present in the class' definition?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
// Dialog Data
//{{AFX_DATA(CGCU)
enum { IDD = IDD_DIALOG_GCUAPP };
CButton m_ImuRecord;
CString m_ImuAzimuth;
//}}AFX_DATA
void CGCU::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGCU)
DDX_Control(pDX, IDC_BUTTON_IMU_REC, m_ImuRecord);
DDX_Text(pDX, IDC_EDIT_IMU_AZ, m_ImuAzimuth);
//}}AFX_DATA_MAP
}
there is no error when i declare a ddx_Text only for controls i'm getin error
|
|
|
|
|
I think the 11-year sunspot cycle is nearing its most active point right now...
|
|
|
|
|
I want to handle Desktop menu context, the menu is shown when you rightclick on every blank point on the Desktop. Could you tell me how to do that please?
Thank you in advance!
|
|
|
|
|
|
Yes, thank you very much! I admire you and your work!
By the way, I want to ask for one thing more. I have a dialog. When I right click on that, I want to show Desktop menu context as well as add my own menu item. Could you be kind enough to help me please? Thank you very much!
Have a nice day!
|
|
|
|
|
Check out Raymond Chen's series of posts on hosting a context menu, starting here[^]
|
|
|
|
|
Many thanks to you. I will read it. Have a nice weekend!
|
|
|
|
|
Hi there,
I would like to know if I can call the destuctor explicitly in case of
containership.
Lets consider an example:
class A
{
public:
~A()
{
cout <<"~A()"<
|
|
|
|
|
There's no need of calling the destructor of A explicitly. Since the object of class A is being created in B, after the destructor of B get's called the destructor of class A is also called.
#include <iostream>
using namespace std;
class A
{
public:
~A()
{
cout <<"~A()"<<endl;
}
};
class b
{
a="" a;
public:
~b()
{
="" cout="" <<="" "~b()"="" endl;
="" a.~a();="" try="" uncommenting="" this="" line
="" please="" pay="" extra="" concentration="" here..
}
b()
{
="" cout<<"b's="" constructor\n";
}
};
void="" main()
{
="" b="" b1;
="" *b="new" b();
="" do="" something="" here
="" delete="" b;
}=""
=""
<div="" class="ForumSig">Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Raj Prathap wrote: In the above case should the destructor of A be called explictly? If I dont call, the destructor for A is never called.
Thanks in advance,
Pratap Reddy
No, It will be called before B's d'tor.
|
|
|
|
|
Raj Prathap wrote: In the above case should the destructor of A be called explictly?
No. It will happen automatically when the A object goes out of scope.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
If this is not the right place, please suggest me the right one...
I wish to display the all the items (Appointments, Calendar, Folders, Email,
Tasks, etc.) by reading the raw data of the OST File...That means I don't
wish to use installing outlook, MAPI, CDO and even third Party tools. It should be done in VC++.
Please suggest me where I will get
The source code for reading the raw data of the OST file (or)
Documents releated to OST file structure (or else)
The source code for Conversion of OST file to PST file...
I'm eagerly waiting for ur response....
Regards,
nag.
|
|
|
|
|
Hi,
If this is not the right place, please suggest me the right one...
I wish to display the all the items (Appointments, Calendar, Folders, Email,
Tasks, etc.) by reading the raw data of the OST File...That means I don't
wish to use installing outlook, MAPI, CDO and even third Party tools. It should be done in VC++.
Please suggest me where I will get
The source code for reading the raw data of the OST file (or)
Documents releated to OST file structure (or else)
The source code for Conversion of OST file to PST file...
I'm eagerly waiting for ur response....
Regards,
nag.
|
|
|
|
|
PST/OST format is microsoft proprietary. You can not find its internal structure. To read pst/ost items you need Microsoft COM controls installed on machine.
Manish Agarwal
manish.k.agarwal @ gmail DOT com
|
|
|
|
|
Hi Manish,
I'm thankful for ur prompt response...For reading PST file, I have seen
Libpst...Just for testing, I tried OST file with this, but no use...
Coming OST file to PST file conversion, I have seen ost2pst tool, but I'm unable to find source code for conversion of OST file to PST file...
Regards,
nag.
|
|
|
|