|
I am not so sure of other way(s).
About the html/applet support, I have never tried those. I hope someone else can help you with that.
this is this.
|
|
|
|
|
I have a statusbar that I have subclassed and it displays progress bars, icons etc.
Now I would like to display tooltips for each pane of the statusbar.
How to display tooltip for statusbar panes.
Owner drawn
Jesus Loves
|
|
|
|
|
|
Does it display a tooltip?
I was going through that. But don't think there is a tooltip.
Owner drawn
Jesus Loves
|
|
|
|
|
|
Nope. I am searching for one. Even the one you said hasn't got a tooltip.
Owner drawn
Jesus Loves
|
|
|
|
|
|
hi...all
I want handle the exception created due to CFile::write.Here i have used try and catch blocks..but not able catch the exception which has generated in try block.plz help me....
thanx in advance
birajendu
CyberG India
Delhi
India
|
|
|
|
|
How are you trying to catch the exception?
If you can catch the exception using a catch all (catch(...) ), then you are likely not catching the MFC exception correctly.
Remember that MFC exceptions are caught by pointer, not by reference or value. And you must call Delete() off of the caught exception pointer if you do not re-throw it.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hello,
I have a problem, I have lost my database (ODBC with Access database) connection in my MFC program. Using which option, I can regain it? My recordset pointer is showing 0, please help.
Software Developer
Sanjay Khapre
-- modified at 8:26 Monday 13th February, 2006
|
|
|
|
|
How to add lib file in ur program other than project->setting->link,like what one does for header file(#include <stdio.h>)
Pls help me.Thanx in advance
never say die
|
|
|
|
|
|
thanx a lot
never say die
|
|
|
|
|
# pragma directive is one of best way to include the lib file.. but you can also add to you rpoject by just adding libaray file same way you add .cpp and .h file
"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
|
|
|
|
|
I want to execute an internal command in my program.
e.g. ren a.txt b.txt
winexec and ShellExecute do not execute internal commands.
system() executes it;
system("ren a.txt b.txt");
it wors fine; but shows consol window which i donot want to show.
Is there a way to execute the internal command without showing the consol window?
Thanks in advance
|
|
|
|
|
|
|
In addition to the above responses, you could also try: (I know WinExec is old but since it works still)
WinExec("cmd /c ren c:\\a.txt b.txt", SW_HIDE);
It is the /C switch which causes cmd.exe to terminate after executing the command. And the second parameter to WinExec : SW_HIDE causes the window not to be shown.
If the program should run on Win9X also, then make it command.com instead of cmd.exe .
this is this.
|
|
|
|
|
pc_dev wrote: system("ren a.txt b.txt");
why not you use direct api for that.. as there is atleast one api for each internal command.. e.g. for ren - rename
"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
|
|
|
|
|
Hi everyone,
Does anybody know what caused the 'bad file number' error? How to resolve that problem? And, is there a way to set the file number manually?
Thanks!
|
|
|
|
|
What 'file number error'? I don't know what you are talking about (maybe somebody does but not me ). When does this error occur ? Be more explicit.
|
|
|
|
|
Hi, thanks for responding.
There was a problem with my program that it always return file pointer = NULL on the second (and further) attemps of openning file. So I tried to print out what error occured by using this command:
String error = strerror(errno) ;
The 'bad file number' was the message that I got in the string error.
Any idea?
-- modified at 6:01 Monday 13th February, 2006
|
|
|
|
|
Are you trying to open it when it hasn't been closed ? Maybe the problem is there.
|
|
|
|
|
I think I have closed it. Below is the function, probably you can find some errors there:
void afunct(AnsiString filename)
{
const char *file = filename.c_str();
FILE *fileptr = fopen(file, "rt");
if(fileptr == NULL)
{
perror("Unable to open file for reading");
String error = strerror(errno) ;
MessageBox(NULL,"Error",NULL,0);
exit(0);
}
else
{
//do something
}
fclose(fileptr);
}
|
|
|
|
|
Hi All,
I have customized File Open Dialog for my application (added a checkbox to it) and also overrode some of the default functionality.
I find that File Name Combo is not getting updated when the user selects a file from the list view.
Can anyone indicate where the problem could be?
Thanks and Regards,
Anil
|
|
|
|