|
Hi All
How can i get removable drive letter in MFCvc++2005? Plz give some tips..
|
|
|
|
|
You can use GetLogicalDriveStrings() to get a list of availible drives (documentation here), then for each one use GetDriveType() (documentation here) to determine whether it is a removable drive or not.
Hope this helps,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
|
Hi all,
Is this possible to disable CEdit context menu ?
please tell me ?
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Derive a your class from CEdit and handle right button click.
Hope it helps.
Regards,
Sandip.
|
|
|
|
|
Yes, you can do that.
Derive your class from CEdit, and handle the WM_CONTEXTMENU message.
See this[^] MSDN page about WM_CONTEXTMENU.
If you only handle the right mouse message as another posted recommended, your user will still be able to get the context menu via the keyboard.
- Dy
|
|
|
|
|
Thanks For the info..
Regards,
Sandip.
|
|
|
|
|
Hi all,
i want to disable the restore button of any application which is show at thr right corner of application with Minimize and Close button.
if there is no option for disable it,than please tell me how can i stop to restore my application.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
does ModifyStyle(WS_MAXIMIZEBOX,0); help??
Regards,
Sandip.
|
|
|
|
|
Thanks
i m run my application in Maximize mode.
it works but after using this,the application's status bar not show it is hide by Taskbar.
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: after using this,the application's status bar not show it is hide by Taskbar.
I don't think it has anything to do with this problem ..
Regards,
Sandip.
|
|
|
|
|
But i have this problem, how can i solve it.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
If you run your application in maximized mode how come it is getting hidden by Task bar.
Are you changing the window size through code??
Regards,
Sandip.
|
|
|
|
|
i m using this
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style = WS_OVERLAPPEDWINDOW | WS_SYSMENU |WS_MINIMIZEBOX|WS_BORDER;
return CFrameWnd::PreCreateWindow(cs);
}
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
I am downloading some files and it is downloaded into database tables
but in case cancel is pressed in between of downloading ,i want to revert back the changes
that is what ever has been downloaded should not show into the db.It should revert back to its initial state.
how to do this in VC++ code?
abhinay.krs@gmail.com
|
|
|
|
|
can't you just do that within a transaction, and at the end, just do a commit is successful, or do a rollback if failed ?
|
|
|
|
|
how to do it in VC++ code where there is no commit or SQl stat.where to mention this?
|
|
|
|
|
how do you write in database if there is no SQL statements ???
|
|
|
|
|
He's probably using stored procedures. But he has to tell that.
|
|
|
|
|
of course ssql statements are there but i am not familiar with databse programming too much.there are csql.sqlformat() and other functions and there are other functions but i m not able to recognize which one does a commit?plz tell.
|
|
|
|
|
Abhinay Kumar wrote: there are csql.sqlformat() and other functions and there are other functions but i m not able to recognize which one does a commit?
as long as I don't know which class you're using, I cannot tell...
Also, they probably hide such an information in the Class documentation
BTW, for next time you ask something, think about us who try to help you, and who have absolutely no hint about what you're trying to do, what you have, which tools, which classes, which compiler you're using... and "VC++" is not exactly a relevant title for a question. Next time, be more clear.
|
|
|
|
|
what statments in VC++ are used to commit a transaction in database in code?plz tell.
|
|
|
|
|
you didn't answer the question by toxcct.
How do you write to database??
BTW: which database are you using??
Regards,
Sandip.
|
|
|
|
|
C++ knows nothing about databases.
you certainly installed a C++ driver to access your DB, which brings you some classes you can use in your code to query and/or update records.
my first question wasn't clear enough ?
HOW do you write/read to/from your DB ?
|
|
|
|
|
Abhinay Kumar wrote: how to do this in VC++ code?
If a rollback/commit operation is not an option, write to a temporary table instead. If the download is successful, move the contents of the temporary table to a permanent table.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|