|
mr2003 wrote:
what is the code to reopen the file?
FILE *fopen( const char *filename, const char *mode ); ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
How can I ROUND double to int, please?
Love is the law, love under will.
|
|
|
|
|
try
floor(dValue + 0.5)
for positive values
|
|
|
|
|
Hello,
maybe it will be useful for you to know a little bit more about this:
double val1 = floor( 2.3 + 0.5 );
double val2 = floor( -2.3 + 0.5 );
double val3 = ceil( 2.3 + 0.5 );
double val4 = ceil( -2.3 + 0.5 );
printf( "%f, %f, %f, %f\r\n", val1, val2, val3, val4 );
will give you:
2.000000, -2.000000, 3.000000, -1.000000
Cheers,
Marcello
|
|
|
|
|
I am trying to localize a Property Sheet Wizard for a Japanese version of the software. However when I do include Japanese resources, the wizard seems to retain the size of the English version of the dialogs. Both resources actually have the same size in dialog units, but the Japanese version uses a different font which causes it to be slightly wider. However it appears cutoff in the wizard.
Anybody seen this before and better yet know any fix for this?
Thanks
If you start a fire for a man, he will be warm for a day. If you start that same man on fire, he will be warm for the rest of his life.
|
|
|
|
|
Hi all:
Could somebody tell me how can i convert from CString to CTime?
Thanks in advance.
|
|
|
|
|
I'm assuming you have a date expression to be converted as in:
"January 12, 2004".
I do not know of any direct method, but you could use the COleDateTime::ParseDateTime() member function to parse and validate your string expression. Then you could construct your CTime variable from that.
I Dream of Absolute Zero
|
|
|
|
|
Please explain the format of the time present in CString.
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
I already got it. The way i do is as following:
CTime m_Date;
int year,month,day;
CString str = m_Date.Format("%Y");
year = atoi(str);
str = itr->m_Date.Format("%m");
month = atoi(str);
str = itr->m_Date.Format("%d");
day = atoi(str);
CTime t(year,month,day,0,0,0,-1);//CTime constructor
Cheers.;)
|
|
|
|
|
Anyone knows any face facial detection software that is available free on the website?
Becos I am doing a project on analysis of facial expression and I need to place trackers on the face and output coordinate values
Anyone who can help me pls reply me
I am most grateful
|
|
|
|
|
We recently moved from VC++ 7.0 to 7.1 and now are getting these
strange warnings whenever we compile on a Windows 2000 machine
WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server)
This warning does not show up on Windows XP compiles.
Obviously it's the wrong answer since it should be 0x0500 for Windows 2000
right?
please cc victor.volkman@ugsplm.com with answer
|
|
|
|
|
In Stdafx.h, define WINVER to a valid value.
While at it, define _WIN32_WINNT, _WIN32_WINDOWS and _WIN32_IE to the the values that reflect your target OS.
(And yes, 0x0500 is used for Windows 2000. For _WIN32_IE, decide what the minimal version of IE support you need--even if you don't use IE directly, you may use common controls which depended on IE for installation.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
void CFacedetectApp::RCobj_learnFaceOrientation(int orientationID)
{
if (orientation_classifier!=NULL)
orientation_classifier->teach(orientationID);
}
return 0;
Why i still have error msg :
C:\ahbeng\fyp\facedetectDLL_expressions\Develop\facedetect\facedetect.cpp(957) : error C2143: syntax error : missing ';' before 'return'
Error executing cl.exe.
The above is part of the programme and the error msg..anyone can tell me why there is still error when the return 0 has ; after it already?
thx alot
|
|
|
|
|
The return is supposed to be inside the function
|
|
|
|
|
sorrie i dont get u
then how should i write it?
|
|
|
|
|
Remove the return 0; - it isn't needed (void functions don't return anything). It is also after the closing } so it is outside the function and therefore an error is generated.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
thx alot it is solved
now i get another error
LINK : fatal error LNK1181: cannot open input file "fltk.lib"
how should i go about solving this?
|
|
|
|
|
You had specified a "fltk.lib" library in the link options of the project settings. Its specified in
Project->Settings->Link tab-> object/library modules textbox.
But the compiler can't find the file. Its the problem. The solutions are.
1. If its an unnecessery library, remove it from the link options.
2. If its needed, then first find the location of the file using Windows File Search. Then take, Tools->Options->Directories tab, then add the path to the library path list.
Simple, Isn't it ?
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
Has anyone wrote some piece of code to decode the concatenation header of a splitted long SMS or knows if there's an example of how to do it. In case could you please let me know how to do this?
|
|
|
|
|
hello everyone,
As I used CreateProcess() to run chkdsk.exe under winxp, chkdsk quits straight away..
whereas using ShellExecute() kept it running ...
here's the code for createprocess();
------------------------------------------
STARTUPINFO sInfo;
PROCESS_INFORMATION procInfo;
sInfo.cb = sizeof(STARTUPINFO);
sInfo.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
sInfo.wShowWindow = SW_HIDE;
Success = CreateProcess(
"C:\\Windows\\System32\\chkdsk.exe",NULL,NULL,NULL,TRUE,0,NULL,NULL,&sInfo,&procInfo);
-------------------------------------------
can someone explain this please?
Thanks in advance.
©¿©"
|
|
|
|
|
You're specifying the STARTF_USESTDHANDLES flag, but not assigning a value to the hStdInput , hStdOutput , and hStdError members of the STARTUPINFO structure.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
hello DavidCrow,
Thanks for you reply.
I have actually specified these...just didn't bother to post it..im sorry
I have assigned the handle of hWritePipe to hStdOutput and hStdError, and NULL to hStdInput.
What im trying to do is shell chkdsk.exe and retrieve the content in the console window and display it in an edit box..so im using pipes to read data from console..
thanks again for your reply!
|
|
|
|
|
Jay++ wrote:
I have actually specified these...just didn't bother to post it..im sorry
It's usually helps to supply all pertinent information up front so as not to create an unnecessarily long thread.
Jay++ wrote:
What im trying to do is shell chkdsk.exe and retrieve the content in the console window and display it in an edit box..so im using pipes to read data from console..
I gathered that much. I assume you have read through the MSDN article Q190351, and the one titled "Creating a Child Process with Redirected Input and Output".
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Any one have codes/samples to load large TIFF image > 3 GB
and drag it around.
Any ideas how could I implement it using MFC/VC++ 6.0
Thank you.
|
|
|
|
|
how can I Append an AVI file in C++ ?
I can make interleaving of two video file but I can not append one in the other, can someone help ???
|
|
|
|