|
Just for yor information, you need to unzip all files into one folder and then run the Setup.exe that came with the 1st cab file.
|
|
|
|
|
Thanks for the answer
Now, I will proceed.
Yarp
http://www.senosoft.com/
|
|
|
|
|
Hi guys
I've read the following optimizations switches
/G5 Optimizes for Pentium processor.
/G6 Optimizes for Pentium Pro processor.
But exists some newer switches to optimize for Pentium III or Pentium 4 processors?
Best Regards
Dr.Pi
|
|
|
|
|
|
I'm downloading.
I have some questions.
What happen if you run this code in an AMD processor?
Best regards
Dr.Pi
|
|
|
|
|
How to check if bit STORE_RTF_OK is set in message store provider?
|
|
|
|
|
Call the message store's GetProps() method to retrieve the PR_STORE_SUPPORT_MASK property. Then check the STORE_RTF_OK bit.
|
|
|
|
|
if ((pPropVal->Value.l & STORE_UNCOMPRESSED_RTF) == STORE_UNCOMPRESSED_RTF)
will get it.
|
|
|
|
|
Which is incorrect. The expression (pPropVal->Value.l && STORE_UNCOMPRESSED_RTF) evaluates to 1 so of course the whole condition is TRUE. To AND two values, you need to use the '&' operator.
|
|
|
|
|
Have you tried printing the hex value of pPropVal->Value.l ? It'll show you what bits are set and what bits aren't.
|
|
|
|
|
dec: 145405
hex: 237FD
bin: 10 0011 0111 1111 1101
|
|
|
|
|
100011011111111101 (0x237FD)
& 001000000000000000 (STORE_UNCOMPRESSED_RTF)
====================
000000000000000000
100011011111111101 (0x237FD)
& 000000100000000000 (STORE_RTF_OK)
====================
000000000000000000
|
|
|
|
|
|
I am permanently logging lines of text with a "\r\n" at the end to a CRichEditCtrl. That way, the CRichEdit appends a new line of text with every call of ReplaceSel("SomeText\r\n") and keeps scrolling down. Stupidly the whole thing gets very sluggish as the amount of text increases. I saw applications doing this kind of "logging" for several hours without getting slower. Does anybody have an idea how to do this ???
MS
|
|
|
|
|
I use a listbox and add lines to the end of the list.
John
|
|
|
|
|
I have a problem I have been scratching my head on for a few hours now. I have a class in a project which has not changed in 6 months, but when I came to build the whole project this morning I got about 22 errors in it to do with some friend functions for serialzation trying to access a protected member variable.
#ifdef _DEBUG
friend CDumpContext& AFXAPI operator<<(CDumpContext& dc, CGoodTime time);
#endif
friend CArchive& AFXAPI operator<<(CArchive& ar, CGoodTime time);
friend CArchive& AFXAPI operator>>(CArchive& ar, CGoodTime& rtime);
#pragma message(" GoodTime.h")
protected:
void SetDays( tm *ptm );
private:
tm m_time;
};
The actual implemenations of these functions throw up the compile errors. Now I have added in a #pragma message command to make sure the correct header is being used, and it is. So the next thing I tried was the compiler /P option to get a copy of the output that goes into the compiler, needless to say with the /P option it compiles without any problems, remove /P and they come back.
Any ideas why this should be so?
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
Roger Allen wrote:
...with the /P option it compiles without any problems, remove /P and they come back. Which is to be expected, as the /P switch does not do any compiling, but just sends the preprocessor output to a file.
I know this does not solve your problem, but I just wanted to clarify in case you were expecting something that was not meant to happen.
|
|
|
|
|
DavidCrow wrote:
the /P switch does not do any compiling, but just sends the preprocessor output to a file.
OK, that explains one thing. The docs don't say that /P stops the compiler form compiling.
Anyway, I have done some more tests here and the project builds on a different PC with teh same VC version etc, so it seems to be down to some local configuration setting.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
Roger Allen wrote:
The docs don't say that /P stops the compiler form compiling.
Actually, the documentation clearly states that this option suppresses compilation.
|
|
|
|
|
DavidCrow wrote:
Actually, the documentation clearly states that this option suppresses compilation.
Well, my docs in this case was not the MSDN, but John Robbins:Debugging applications. I remebered reading about the switch and looked it up there. Needless to say he has a slight cut down version of the info in his book.
Just means I need to check in all the sources available. Anyway, I have tracked the problem down to an include file causing the problem, not sure what part of it yet.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
void CFrameworkDlg::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
switch (nIDEvent) {
case IDC_Timer:
{
KillTimer(IDC_Timer);
if(!SetTimer(IDC_TIMER_CHECKUP_THREAD,50,NULL))
DestroyWindow();
FunctionStart();
break;
}
case IDC_TIMER_CHECKUP_THREAD :
{
if (!FuncEndupTest())
UpdateData(FALSE);
break;
}
}
CDialog::OnTimer(nIDEvent);
}
//----------------------------------------------------------------------------
//Procedure:
// FunctionStart(void)
//Description:
// Entry point for each function
//Input:
// None.
//Output:
// None.
//
void CFuncDlg::FunctionStart()
{
m_hFunThread = CreateThread(NULL,0,
(LPTHREAD_START_ROUTINE)funclist[m_nCurFunc],
m_ptr,0,
NULL);
}
//----------------------------------------------------------------------------
//Procedure:
// FuncEndupTest(void)
//Description:
// Check if function is finished
//Input:
// None.
//Output:
// true or false
//
bool CFuncDlg::FuncEndupTest()
{
DWORD dwExitCode;
while (WaitForSingleObject(m_hFunThread,0)==WAIT_OBJECT_0) //The state of the specified object is signaled.
{
GetExitCodeThread (m_hFunThread,&dwExitCode); //This function retrieves the termination status
//of the specified thread
CloseHandle(m_hFunThread);
m_nCurFunc++; //A abnormal handle section
if(m_bStopOnFristError&&!(dwExitCode&0xff))
{
for(int i=m_nCurFunc;i<m_nfunccount;i++)
="" logresult(stoponfirsterror);
="" sendmessage(m_hptr,="" wm_close,0,="" 0);
="" return="" true;
="" }
="" decide="" whether="" all="" the="" functions="" have="" complished,="" and="" do="" some="" handle="" actions
="" if(m_ncurfunc<m_nfunccount="" )
="" functionstart();
="" else
="" false;
}<="" small="">
|
|
|
|
|
I do not understand your question. However If you want to know how to run the code that you give the problem is that it is not a complete program. It is MFC code but you need the rest of the code and resources to compile it.
John
|
|
|
|
|
By "run the codes" do you mean "how to compile the code?"
|
|
|
|
|
This is a multi-thread programming. I list only the main codes not all.
I want to know the progress of performing.
Sorry, my English is not good.
Thanks.
|
|
|
|
|
The "process of performing" what?
|
|
|
|