|
Have you tried to use dependency walker to find out the resources that your app depends on? More importantly, Have you installed the Visual C++ redistributables on the target machine?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
initially i tried by registering required DLLs in XP system.later i installed VC++6 then also i shows the same error.
|
|
|
|
|
????????????
What's the Problem. Language Country or Culture dependent Resources?
Or,
Is the problem: 'Will it run on any computer rather the one I compiled it on'
If the latter is the case, buy one and try!
Bram van Kampen
|
|
|
|
|
Hi all,
i m using CDateTimeCtrl in MFC,
here when i set a year before 1970 than it gives number of times this error message
Error is :: "The Parameter is incorrect."
please tell me how can i resolve this error.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
You are probably using a CTime object to set the time, and according to MSDN, the earliest date for a CTime is 1/1/1970.
If you use a COleDateTime object instead, the dates can be from 1/1/100 to 12/31/9999.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
I m try this
COleDateTime dtMin;
COleDateTime dtMax;
dtMin = COleDateTime(100, 1, 1, 0, 0, 0);
dtMax = COleDateTime(9999, 12, 31, 0, 0, 0);
CDateTimeCtrl m_date;
m_date.SetRange(&dtMin, &dtMax);
but after using this the problem remains same.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hi all,
i m using a read only type EditBoxControl.
here ctrl+C not working.
how can i use Ctrl+C here.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: how can i use Ctrl+C here.
By making sure you are using the ES_READONLY style instead of the WS_DISABLED style.
"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
|
|
|
|
|
yes its only readonly not disabled.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Ctrl + C. Just need to Check the Read Only Checkbox. try creating a sample program where u have 2 edit boxes in the dialog box and make one as read only and the other one as normal editbox. select the text in the read only and press ctrl+c and paste it in the the other edit box. it should work.
|
|
|
|
|
thanks
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
hi ..
any body tell me how to write DOS equivalent NET exe for windows
vineesh
|
|
|
|
|
Can you more explain,please?
|
|
|
|
|
"Net"? The DOS command? Have you checked the Win32 IPHelper functions?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hi,
How can I coverup my vc++ application with a skin?
|
|
|
|
|
|
Yes but whole window should be covered including all controls in it.
|
|
|
|
|
I think you want to cutomize your controls like buttons,treectrls and... so you can derived your class for example you can derived your class of CButton.See Creating Custom Controls[^] for more info.
|
|
|
|
|
hi
i am having a char* which have a '\0' EOS as a data
problem is the data after this '\0'EOS is not assigned to CString object.
when i assign this char* to CString the data after '\0' EOS is not available in the CString object.
where i go wrong ? or is there any other method to do so ?
please help
Thanks,
|
|
|
|
|
Well of course, this character is the end of string character so CString will detect the end of the string because of this character.
|
|
|
|
|
One of the CString constructors takes a char * pointer and a character count. I'm not sure, but that one may allow embedded nul's in the string.
|
|
|
|
|
Well, use a CArray (or better) a std::vector instead of a CString object.
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]
|
|
|
|
|
My project is SDI that first view is CFromView derive class.
Then I add second view with CScrollView derive class.
In this view I want to print out the data So I add this function
BOOL CReportView::OnPreparePrinting(CPrintInfo* pInfo)
{
CPrintDialog *dlg = new CPrintDialog(FALSE, PD_PAGENUMS);
pInfo->m_pPD = dlg;
pInfo->SetMinPage(1);
pInfo->SetMaxPage(1);
return DoPreparePrinting(pInfo);
}
while I run this function I got exception error at
BOOL CDialog::Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd)
in file "dlgcore.cpp"
BOOL CDialog::Create(LPCTSTR lpszTemplateName, CWnd* pParentWnd)
{
ASSERT(IS_INTRESOURCE(lpszTemplateName) ||
AfxIsValidString(lpszTemplateName));
m_lpszTemplateName = lpszTemplateName;
if (IS_INTRESOURCE(m_lpszTemplateName) && m_nIDHelp == 0)
m_nIDHelp = LOWORD((DWORD_PTR)m_lpszTemplateName);
#ifdef _DEBUG
if (!_AfxCheckDialogTemplate(lpszTemplateName, FALSE))
{
Error Here >>>> ASSERT(FALSE);
PostNcDestroy();
return FALSE;
}
#endif //_DEBUG
HINSTANCE hInst = AfxFindResourceHandle(lpszTemplateName, RT_DIALOG);
HRSRC hResource = ::FindResource(hInst, lpszTemplateName, RT_DIALOG);
HGLOBAL hTemplate = LoadResource(hInst, hResource);
BOOL bResult = CreateIndirect(hTemplate, pParentWnd, hInst);
FreeResource(hTemplate);
return bResult;
}
Please help me to solve this problem
|
|
|
|
|
Hi
I have declared static vectors in a function that i call multiple times:
static map<HWND, myVector<CString>> myMap;
On some of the function calls i want to remove elements from a vector:
myMap[hWindow].erase(iterator)
where iterator pointers to the element in the array I want to remove.
when I call myMap[hWindow].size() after erasing this element the size is the same as before??
Is this a consequences of using static vectors. Or am I doing something wrong?????
More likely option 2 but wanted to check with some one who knows more about this stuff.
Many thanks
|
|
|
|
|
steph5 wrote: Is this a consequences of using static vectors.
I don't think so.
steph5 wrote: Or am I doing something wrong?
I think so.
I tried this:
HWND hWindow = (HWND)1234;
static std::map <HWND, vector <CString>> myMap;
typedef pair <HWND, vector <CString>> myPair;
vector <CString> myVector;
myVector.push_back(_T("string 1"));
myVector.push_back(_T("string 2"));
myVector.push_back(_T("string 3"));
myMap.insert(myPair(hWindow, myVector));
vector <CString>::size_type sizeBefore = myMap[hWindow].size();
vector <CString>::iterator iterator;
iterator = myMap[hWindow].begin();
myMap[hWindow].erase(iterator);
vector <CString>::size_type sizeAfter = myMap[hWindow].size();
sizeBefore is 3, sizeAfter is 2.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|