|
Ever looked in your windows event log for this error?
Greetings
Covean
|
|
|
|
|
Use the debugger.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
|
Thanks for your help but it is still showing that message Box.
|
|
|
|
|
Is it a normal exe or MFC ? can u detail more about what debugging techniques are yu using .. have u seen event viewer of your computer to see if an exception was thrown by ur aplication ??
|
|
|
|
|
Actually,we are using a third party exe.So I cant debug and nothing.I just want to run it on my machine and it is running there with third party.
|
|
|
|
|
Check ur file system and the filesystem n their machine normally this happens if there are filesystem differences FAT or NTFS . Or check with which Service pack they are running and what is you service pack of OS. also might be the case it requires Dotnet framework which you machhine doesnot have. Please see your event log and let me know cause of crash in your application .
|
|
|
|
|
yogeshs wrote: Actually,we are using a third party exe
In your original post you said you created the .exe. 
|
|
|
|
|
|
Did you try using depends.exe to see if all the required files are present in the machine you are trying to run this application?
modified on Thursday, July 8, 2010 11:58 PM
|
|
|
|
|
I tried that too but no success.
|
|
|
|
|
|
Hi,
khomeyni wrote: indeed i want to use member virtualization .does c++ has something like virtual member?
Virtualization (see, for instance [^]) has nothing to do with C++ virtual member functions.
And yes, using C++ language, you may define virtual member functions: surprisingly enough, you may find this info in the documentation [^] (and in every C++ book).
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]
|
|
|
|
|
thanks
but i know that there is a virtual member function but i dont want function i want member virtualization as
virtual int x;
in a class ,please see the link that i said.
valhamdolelah.
|
|
|
|
|
khomeyni wrote: virtual int x;
You know, that make no sense.
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 TCP/IP (socket) has completed, but the client/server have some problem from CSocket, I may change from CSocket to raw win32 socket.
Before doing changes, I need your comments:
1. my develop OS is win2k, but MSDN says server functions (i.e. listen and accept) need OS-server to support, must I change my OS by OS-server for using server-functions?
2. Is it no good if I keep CSocket for server side and use raw socket for client side? - because server side has no problem.
|
|
|
|
|
includeh10 wrote: 1. my develop OS is win2k, but MSDN says server functions (i.e. listen and accept) need OS-server to support, must I change my OS by OS-server for using server-functions?
No. I have successfully used Winsock in Windows XP. Haven't used them in win2k though. But It should not be a problem.
includeh10 wrote: 2. Is it no good if I keep CSocket for server side and use raw socket for client side? - because server side has no problem.
If CSocket is badly designed as you said earlier, then remove it and use raw socket for both of them; it will be consistent too.
|
|
|
|
|
includeh10 wrote:
1. my develop OS is win2k, but MSDN says server functions (i.e. listen and accept) need OS-server to support, must I change my OS by OS-server for using server-functions?
I can't believe that. Where did you find it? I cannot find myself inside the page you linked.
includeh10 wrote: 2. Is it no good if I keep CSocket for server side and use raw socket for client side? - because server side has no problem.
No problems (of course) other than poor developer having to deal with two different API s.
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]
|
|
|
|
|
includeh10 wrote: 1. my develop OS is win2k, but MSDN says server functions (i.e. listen and accept) need OS-server to support, must I change my OS by OS-server for using server-functions?
I think you misread something, this has never been a requirement. If it was then most Windows PCs would not work.
includeh10 wrote: 2. Is it no good if I keep CSocket for server side and use raw socket for client side? - because server side has no problem.
CSocket is just an MFC wrapper around raw sockets, It is much more likely that there is a bug in your code rather than something wrong with CSocket.
|
|
|
|
|
So MFC's CSocket caused problems in your code and you want to go to raw sockets. Why? Wouldn't it be quicker to fix your code or use one of the many existing wrapper classes. There are blocking and event based socket classes out there, in alphabetical order:
* Alhem
* Boost
* SharkEngine
* QT
* and many others...
It seems to be a C++ world stigma... instead of putting development effort into low-level coding, how about using a stable, documented library and improve the application with the extra time? I think it is not trivial to write a stable, flexible, efficient networking core. Perhaps you require at a later point HTTP proxy support, session handling, encryption or something else that a library would already provide. To be honest, other languages like Java or Python offer a better collection of reusable functionality, but at least for networking there are some good choices for C++ too.
Hope it helps!
|
|
|
|
|
Hi all,
I now using Visual C++ (Visual Studio 2005) for my project. i face some problem in set the maximum length for my edit control(text box).
i have 3 edit control in the same dialog. i want set the maximum length for each edit control = 5.
following are the 3 ID of edit control in same dialog:
IDC_EDIT_MCNO
IDC_EDIT_MCSERIALNO
IDC_EDIT_LOCATION
The dialog ID is: IDD_MACHINE
Please guide me for set max length.
Thanks very for your help. i will very appreciate.
Regards:
Alice 
|
|
|
|
|
What do you mean by maximum length of edit control?
Is it the number of characters or the width of the edit control?
|
|
|
|
|
hi, thanks for reply o^^
ya, i need to set the number of characters of the edit control o..
the maximum characters can enter for the edit control only 5.
Can you show me some guide?
thanks alot ^^
regards:
alice 
|
|
|
|
|
Have you tried sending the control a EM_LIMITTEXT message.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
If you're using MFC, look at the DDV_MaxChars[^] macro.
Actually, the Add Variable wizard in MFC can do this for you.
Right click on the edit control and select Add Variable.
The wizard will tell you what to do.
modified on Thursday, November 5, 2009 12:33 AM
|
|
|
|