|
I do not know what to think. I managed to reinstall windows on the system that crashed and worked my program again on it for a long time and nothing happened. It has not restarted at all. So I am totally confused. The program has to work on the clients system...
Fortitudine Vincimus!
|
|
|
|
|
You would have to be doing something awfully odd to crash a properly configured XP system by anything you're doing. On the other hand, this is MS; if there is a way to 'tard something up they'll find it.
What exactly did you have to change on your system? Do these systems that are crashing crash under heavy load from other apps? Do you have spyware / trojans / viruses on these machines?
|
|
|
|
|
earl wrote: Do these systems that are crashing crash under heavy load from other apps? Do you have spyware / trojans / viruses on these machines?
No. The sysems are properly protected.
earl wrote: You would have to be doing something awfully odd to crash a properly configured XP system by anything you're doing. On the other hand, this is MS; if there is a way to 'tard something up they'll find it.
That is exacly what I thought too. And my program uses all the usual very simple dialog boxes, some calculation, no registry used, no dll's, no multiple threds, no internet connection....
I have added
AfxGetModuleState()->m_dwVersion = 0x0601;
at the begining to connect to dao360.
The best part is that on two other system no restarting has happened.
But of course, the client is going to blame my program if his system crashes.
Fortitudine Vincimus!
|
|
|
|
|
To use Cmutex Object , Any headerfile have to include ?
I have not include Header file .
I'm geating error :
----------------------------------------------------------------------
lets : CMutex g_m;
- - - - - - - - - - - - - - - - - - - - - -
E:\Project-MFC\UiThread1\UiThread1Dlg.cpp(17) : error C2146: syntax error : missing ';' before identifier 'g_m'
E:\Project-MFC\UiThread1\UiThread1Dlg.cpp(17) : error C2501: 'CMutex' : missing storage-class or type specifiers
E:\Project-MFC\UiThread1\UiThread1Dlg.cpp(17) : fatal error C1004: unexpected end of file found
------------------------------------------------------------------------
Thanks to all.
-- modified at 6:02 Monday 10th July, 2006
|
|
|
|
|
#include <afxmt.h>
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
Yes it is working. Thanks a lot.
|
|
|
|
|
Hey all,
In my application, I need to turn on the timer once the Pc sends a packet to the serial device. the serial device should respond immediately to teh PC's request. The Pc should get response from the serial device within "m" secs. the Pc will wait for response from serial device and check for the timer. if elapsed, will resend the packet again.
in brief,
On_send(wparam,lparam)
{
//packet sent to serial device
//timer has to be triggered on here
}
On_rx(wparam,lparam)
{
//checks for packet received
//if no packet received from serial device, then
{
//check for timer
while(timer has elapsed)
{
//resend the packet to MPU
post_message(WM_RESEND,null)
}
}
}
On_resend(wparam,lparam)
{
//send same packet to PC
here, I have to restart the timer again to see if the
serial device responded within particular time as in On_rx.
}
this is the idea i have in mind. but i dont know how to implement. Can I use WM_TIMER...? I know there are various timers like multimedai timers, etc., But dont know which one suits my need as I am still in the learning curve of MFC.
I would appreciate if anyone can help me with this.
Thanks in advance.
|
|
|
|
|
WM_TIMER would be best bet.. if you are beginner in MFC
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Check out SetTimer() .
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All,
I have a typical windows application that requires many dll's to work properly. One of the dll's generated during build process is actually a dummy dll (functions simply returns). This dll is supposed to be replaced by a third party dll with same function signatures.
Now the issue is
1. The Dll generated by the build process is a Win32 console dll, where as the third party dll I have is win32 GUI subsystem.
2. Even though the subsystems are different but actually the dll has simple C methods, nowhere using GUI stuff at all, so by simply replacing the dummy dll with the 3rd party dll should the things work.
Thanks and Regards.
|
|
|
|
|
As long as the functions in the dummy dll are declared in exactly the same way as the third party dll, then replacing the two dlls will work fine.
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
plz tell me about the websites which help me in finding code and other problems in c++,vc++
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: plz tell me about the websites which help me in finding code and other problems in c++,vc++
you are already on that site!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
thanks for your reply sir
but i want to know much more
plz tell me
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: thanks for your reply sir
but i want to know much more
PlanetSourceCode for Beginner level programmer..
[ot] so where do your work in Noida!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
i am not working yet but trying to find job
thats why i wnat to know about c++,vc++ helps
Ashish Dogra
MCA
Noida
|
|
|
|
|
How can I change the tooltip text for a Slider?
Moreno
|
|
|
|
|
you can set the tooltip for the slidecontrol using
void SetToolTips( CToolTipCtrl* pWndTip );
Once set u can change the text using:-
CToolTipCtrl::UpdateTipText
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
What is LPCTSTR lpszText? how can i set it?
and how can i found out the:
ID of the string resource that contains the text for the tool
(I'm trying to reset the tooltip text for a slider)
thanks
Moreno
|
|
|
|
|
Help me please i need to write function that reversing string, based on description :
str * revers(char * source)
Thanks in advance !
|
|
|
|
|
there's already a function
_tcsrev
nave
|
|
|
|
|
Thanks but i need to Write function , do not use exsting one ..
|
|
|
|
|
this will do....
char* revers(char * source)
{
int nCount = strlen( source);
char *pRev = new char[ nCount + 1 ];
for( int nIdx = 0;nIdx < nCount + 1;nIdx++)
{
pRev[ nIdx ] = source[ nCount - 1 - nIdx ];
}
return pRev;
}
nave
|
|
|
|
|
Assuming you're using the MS compiler, why not just view the CRT library source?
|
|
|
|
|
Or even better yet, why not do your homework yourself?
earl
|
|
|
|