|
Hey folks. Anyone know how to go about closing all browser windows through Visual C++?
|
|
|
|
|
One rather "arbitrary" solution comes to mind, do a window ennumeration via the EnumWindows() API fn, and for each window, get its caption via GetWindowText(), then just look for the "Microsoft Internet Explorer" string insinde the window´s title, if found, send it a WM_CLOSE msg or something like that.
HTH.
|
|
|
|
|
Hm. Now there's a good idea. I'll have to look into how to do that. Thanks a ton, you've sent me in the right direction.
|
|
|
|
|
Hi,
I would like to know if its possible to write to an already closed output file.
I am actually using a .CSV file.
Thanks
Ehsan Behboudi
|
|
|
|
|
not unless you re-open it first.
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
what is the code to reopen the file?
Ehsan Behboudi
|
|
|
|
|
The term "reopen" implies that you have previously opened the file. Can you not use the same method again?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
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.
|
|
|
|