|
How did you create the date/time control ?
|
|
|
|
|
I placed the DateTimeCtrl on the dialog box.
|
|
|
|
|
Sanjay K wrote: ...the same is crashing (Debug assertion failure)
in 'Debug' mode.
When does this "crash" occur? What line of what file is asserting?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
HI all,
How can remove this error?
fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: The system cannot find the path specified.
What can do?
Thanks.
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: What can do?
Provide the correct path, perhaps.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Hi I have done a Client Server Program using MPI. While calling one of the API MPI_Open_port() in server side iam getting an error "Fatal error in MPI_Open_port: Other MPI error".. Can any body tell why this happens and solution for that.. Iam attaching the code snippet for that
#include <mpi.h>
#include <string.h>
#include <stdio.h>
#include <windows.h>
#include <iostream.h>
#pragma comment( lib, "msmpi.lib" )
int main( int argc, char* argv[] )
{
MPI_Status Status;
char Buffer;
char Message;
int NumProcess, Rank;
int SendRecStatus;
char myport[MPI_MAX_PORT_NAME]={0};
MPI_Request Request;
MPI_Comm intercomm;
// Initialize the MPI execution environment
MPI_Init( &argc, &argv );
// Determines the size of the group associated with a communicator
MPI_Comm_size( MPI_COMM_WORLD, &NumProcess );
// Determines the rank of the calling process in the communicator
MPI_Open_port(MPI_INFO_NULL, myport);
printf("port name is: %s\n", myport);
MPI_Comm_accept( "10.1.27.64:3210", MPI_INFO_NULL, 0, MPI_COMM_WORLD, &intercomm);
printf("client connected\n");
MPI_Recv( &Message, 5, MPI_CHAR, MPI_ANY_SOURCE, MPI_ANY_TAG, intercomm, &Status);
cout<<Message;
MPI_Comm_free(&intercomm);
MPI_Close_port("10.1.27.64");
// Terminates MPI execution environment
SendRecStatus = MPI_Finalize();
return 0;
}
Thanks
|
|
|
|
|
It could be a bug. It depends on the position that GDI+ initializes.
Based on experience, initilize GDI+ after LoadFrame seems ok.
Still not know why.
=========================
By deleting ddeexec in the register, no error.
Or else, it'll reports an error when open a file by double clicking it, said "Windows cannot find 'somefile path'...". However, the file is opened correctly, and the error message seems senseless.
If I drag the data file onto the app file, it's all right, no such an error message.
I also use GetCommandLine to check the command line in both cases above, they are the same.
It seems the problem of the explore.
How to make it correct?
system
modified on Thursday, July 24, 2008 3:51 AM
|
|
|
|
|
Hi!
I've developed a VC++ project. In this project I've displayed a message to the console Window ising the folowing code:
LOG_INFO("The Character is collided with something");
The application closes without any notice. I've to see whether this message is dsiplayed to the console window or not. I've tried this with the following codes:
(i)
LOG_INFO("The Character is collided with something");
system("PAUSE");
(ii)
printf("The Character is collided with something");
getchar();
Both of these codes didn't work. How do I check whether the message is displayed to the console window before the application closes?
|
|
|
|
|
T.RATHA KRISHNAN wrote: The application closes without any notice.
If the application crashes, nothing will be able to show the console window (your code won't be executed because your application crashed). Instead, try to debug your application using the debugger, it is much more powerfull than what you could print in the console.
|
|
|
|
|
Sorry!
I don't know how to find at which point the crash occurs? Can u please explain?
|
|
|
|
|
What about a look at documentation [^].
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]
|
|
|
|
|
|
Cedric Moonen wrote: If the application crashes...
What crash?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
That's why I said if . That was a guess from the symptoms if was describing: the application closes without notice and even puttin a system("pause") doesn't stop the windo to close. Sounds very close to a crash to me.
Anyway, using the debugger for such purpose (even if the application doesn't crash) brings much more info than trying to output text on the console trying to guess what is happening.
|
|
|
|
|
Cedric Moonen wrote: ...and even puttin a system("pause") doesn't stop the windo to close.
Most likely because LOG_INFO() and the subsequent call to system() are operating on two different command prompt windows. I don't see any way for the OP's current design to work.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
T.RATHA KRISHNAN wrote: system("PAUSE");
Why do you have to call system("pause") ? It is a very resource expensive call and is still not the fastest thing in the world. Can't you just use getch() or something else similar?
|
|
|
|
|
Rajesh R Subramanian wrote: Can't you just use getch() or something else similar?
I've used getchar(). But i didn't get the result. i.e I could not see my console's contents.(It doesn't pause). What else to do?
|
|
|
|
|
Is it C or C++? If it is C++, how about std::cin.get() ?
|
|
|
|
|
Rajesh R Subramanian wrote: If it is C++, how about std::cin.get()?
It's C++ only. I've just tested with this also(std::cin.get()). But I didn't get the result. Moreover, the output window displays "Native' has exited with code 3 (0x3)". Not the first time. When I try to use "system("PAUSE");", it displays the same message.
|
|
|
|
|
We're diggin' a deep hole. Let me ask you, What does "didn't get the result" mean? What are you expecting to achieve with system("pause") ?
|
|
|
|
|
Rajesh R Subramanian wrote: What are you expecting to achieve with system("pause")?
My application is running and it closes with out any notice. I want to display one message to the console before it closes. So I used system("PAUSE") command. It didn't work. What else to do?
|
|
|
|
|
As I already told you, if your application crashes you can't display anything in the console anymore. Why don't you learn to use your debugger properly ? It will save you a lot of time and headaches in the future and it is not very difficult to use.
To begin, simply press F5 to start your debugger. Normally, it will already point you to the crash location. You can still put breakpoints in your code (F9) to see the evolution.
Why not just experiment a bit with it ? It won't kill your PC and you will learn much more doing that than asking questions in a forum.
|
|
|
|
|
At first, the system("pause") caught my attention and therefore I replied. Now, you simply cannot output something "after" your program has crashed, because it is already dead. No matter what you do.
Please use the debugger, as Cedric already said.
|
|
|
|
|
Try executing this code from outside of the IDE, with a command prompt window already open.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|