|
What if date has been altered before program was installed?
Saurabh
|
|
|
|
|
Hello,
Either limit the number of days also or if you are providing a license, do not proceed if the supplied date is earlier than the start date of the license.
You could also use both, if you want it.
The only drawback of this approach is that, if the user changes the date to an earlier date for any purpose (reports ), and mistakenly opened your program also, he/she would be pissed off .
Bekir.
|
|
|
|
|
Actually that is the interesting thing. OP do not want to disable application after a given number of days, he wants to disable it on a particular date.
-Saurabh
|
|
|
|
|
My suggestion is to follow what beko said. In addition to that you can mark it as expired once the expiry date reached. After that you should not allow the application to continue working even if the date is changed back.
|
|
|
|
|
Thank u to all. I really appreciate your help. I got a clue from all of your replies. Again thanks a lot to u all.
|
|
|
|
|
I am working on an mfc application in which I am opening a dialog box containing smileys on button click. Now what I want is to close the dialog dialog box with smileys when mouse click event is fired anywhere on the screen.
Thanks
Dhiraj Kumar Saini
|
|
|
|
|
You can use SetCapture, then you will get the click event anywhere on the screen and at that time you can check the coordinates and close the dialog if it is outside the dialog.
|
|
|
|
|
Can you help me out with some article.
|
|
|
|
|
|
Change style of IDC_FEEDLIST to owner draw fixed and check has strings.
|
|
|
|
|
thanks but what DDX_ to use? I tried DDX_Control it crashed the app
devy
|
|
|
|
|
Did u do what manish told u to do. well DDX_Control works for me.
|
|
|
|
|
devvvy wrote: I tried DDX_Control it crashed the app
Because you failed to set LBS_OWNERDRAWFIXED and LBS_HASSTRINGS styles.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I have the following two classes :
1) A CDialog derived CDlgClass
2) A CCmdTarget derived CAnotherClass
I am unable to disable an item of the launched context-menu.
Please follow the comments below to track the problem.
In DlgClass.cpp
ON_COMMAND(ID_MENUITEM1, OnMenuItemEdit1Clicked)
ON_UPDATE_COMMAND_UI(ID_MENUITEM1, OnUpdateMenuItemEdit1)
VOID CDlgClass::OnContextMenu(CWnd* pWnd, CPoint point)
{
m_pAnotherClass->ShowContextMenu( this, point);
}
void CDlgClass::OnMenuItemEdit1Clicked()
{
}
void CDlgClass::OnUpdateMenuItemEdit1(CCmdUI* pCmdUI)
{
pCmdUI->Enable(FALSE);
}
In AnotherClass.cpp
VOID CAnotherClass::ShowContextMenu(CWnd *pDlg, CPoint point)
{
CMenu cmCtxtMenu;
cmCtxtMenu.LoadMenu(IDR_MENU_OPTIONS);
CMenu *pcmPopupMenu = cmCtxtMenu.GetSubMenu(0);
ASSERT(pcmPopupMenu);
pcmPopupMenu->TrackPopupMenu (TPM_RIGHTBUTTON|TPM_LEFTALIGN, point.x, point.y, pDlg );
}
What could be the problem with disabling the menu item although I could actually activate the menu item handler
properly?
The function CDlgClass::OnUpdateMenuItemEdit1(CCmdUI* pCmdUI) itself is not getting called before launch of the menu,
when the menu is loaded in a different class.
What could be the reason ?
Thanks in Advance.
|
|
|
|
|
SherTeks wrote: The function CDlgClass::OnUpdateMenuItemEdit1(CCmdUI* pCmdUI) itself is not getting called
See this post[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I would like to declare Estimator class a friend of YLC2Plot class. Any ideas??
Thanks in advance.
Regards: Hadi
i am using sun c++ 5.9 ( CC )
*********************************************/
#ifndef _ESTIMATOR_H
#define _ESTIMATOR_H
template <typename RadarType, typename FilterType >
class IMM: public RadarType, public FilterType {
public:
//....
protected:
//...
private:
//..
};
#endif
/******************************************/
#ifndef _YLC2PLOT_H
#define _YLC2PLOT_H
#include "Estimator.h"
class YLC2Plot : public BasePlot {
public:
friend class IMM;
protected:
//....
private:
//.....
};
#endif /* _YLC2PLOT_H */
|
|
|
|
|
What about
class YLC2Plot : public BasePlot {
template <typename RadarType, typename FilterType > friend class IMM;
};
?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I wanted to know if one exe can be controlled by another exe. for example i have 2 dialog boxes which are 2 different exes. now in the first exe i am doing a simple addition where there are 3 edit boxes and a button to calculate. now in the 2nd dialog box i only have one button "calculate". now when i click on the 2nd exes calculate button, the event on the first exes button should execute. i hope i have made my problem clear. give me some leads for this.
Thanks
|
|
|
|
|
|
If the controlled exe is a console application that uses standard input/output for communication you could use Universal Console Redirector[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi All,
I have referred a term "ActivexDll" I think there exist a concept called ActiveDll, if I am wrong then kindly excuse me and clarify "Difference between a Dll and ActiveX Components ".
If I am correct then can any one explain me the difference between a Dll and an ActicexDll.
Regards,
LG.
lgatcodeproject
|
|
|
|
|
DLL is just a binary file containing executable code in PE(Portable Executable) format. One can make DLL's for many purposes like ActiveX objects, COM components, or simple library of functions.
-Saurabh
|
|
|
|
|
Hi saurabh,
Thanks for the response. can you explain what is the difference between the dll and activex dll. With respect to you answer may be I would put it this way, how does a dll differ when its purpose is to serve an ActiceX Object?
Regards,
LG.
lgatcodeproject
|
|
|
|
|
Conceptually there is no difference. They both are PE files. It is same as asking what is the difference between two BMP files.
-Saurabh
|
|
|
|
|
So, when you import any dll into an ActiveXControl you can call it as ActiceXDll, am I correct?
In VC++6.0 New->Project, one can find many projects, where in there is
"MFC AppWizard (dll)"and another project called
"ATL COM AppWizard"->Dll/Service(Exe)/Executable(exe);
can you tell me what is the difference between these two projectS? when would one choose these?
I had the lead to my initial question from the above option?
Regards,
LG.
lgatcodeproject
|
|
|
|