|
Thank again.
I have tried your method, but it has no effect.
(I am using Win Me.)
Can you help?
Maer
|
|
|
|
|
Sirs,
I wanna download files from a given url and save them to disc by means of an MFC app.
Thanks to this great site the technical part is extremely easy.
However, before downloading it must be figured out which files are of interest.
One way is to check the first file for links and go after them. The other is to download all existing files from a given location, e.g. download all files from www.codeproject.com/internet/
Are there any tricks to figure out number and url of files of a given location?
Thanks for your help in advance.
Bunburry
A subject that is beautiful in itself gives no suggestion to the Artist. It lacks imperfection. (O.Wilde)
|
|
|
|
|
Even though I use MSLU, I have a special need for a FormatMessageW wrapper routine that will convent the parameter list from UNICODE to ASNI to allow FormatMessageA to be invoked.
Has anybody see this out there?
It wouldn't be that hard to write, but why reinvent the wheel.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
I am looking to create a sticky notes program for personal use. I am wondering if anyone has any leads or starts on how I can custom dialogs, kind of like Outlook Notes..... Anything would be great. Thank you.
|
|
|
|
|
Hey guys
I was wondering if anyone new how to add an extra menu on to the right click menu. What i mean is when you right click and put your cursor on the send to text it pops up another message well does anyone know how to do your own ones.
Cheers
Peter
|
|
|
|
|
Not sure if this is what you are asking for.
You want to add your own "Sent To" items for the file explorer?
To do that, just add normal shortcuts to the users profile directory tree in the "SentTo" folder. One of the SH folder routines should help you get the actual directory name for the current and all users.
On my system, the directory is:
"C:\Documents And Settings\Tim Smith\SendTo"
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
In your handler for the right click use TrackPopupMenu.
Below is a piece of code I pinched from one of my applications. You will probably have to play with the value of pt which will determine the position of the to top left of the menu.
CPoint pt;
GetCursorPos(&pt);
CMenu* pM = new CMenu;
pM->CreatePopupMenu();
CString str;
str.LoadString(IDS_EDITIMAGE);
pM->AppendMenu(MF_STRING, IDM_EDITIMAGE, (LPCTSTR)str);
str.LoadString(IDS_DELETE);
pM->AppendMenu(MF_STRING, IDM_DELETE, (LPCTSTR)str);
str.LoadString(IDS_PRINTIMAGE);
pM->AppendMenu(MF_STRING, IDM_PRINTIMAGE, (LPCTSTR)str);
if(GetDocument()->IsMailAvailable())
{
pM->AppendMenu(MF_SEPARATOR);
str.LoadString(IDS_SENDPICTURE);
pM->AppendMenu(MF_STRING, IDM_SENDPICTURE, (LPCTSTR)str);
}
pM->AppendMenu(MF_SEPARATOR);
UINT nID = IsThereExtraFileType( hItem, IDB_NOTES ) ? IDS_EDITNOTES : IDS_ADDNOTES;
str.LoadString( nID );
pM->AppendMenu(MF_STRING, IDM_ADDNOTES, (LPCTSTR)str);
nID = IsThereExtraFileType( hItem, IDB_VOICE ) ? IDS_REPLACEVOICE : IDS_ADDVOICE;
str.LoadString( nID );
pM->AppendMenu(MF_STRING, IDM_ADDVOICE, (LPCTSTR)str);
// if( IsThereExtraFileType( hItem, IDB_VOICE ))
// {
// str.LoadString( IDS_PLAYVOICE );
// pM->AppendMenu(MF_STRING, IDM_PLAYVOICE, (LPCTSTR)str);
// }
pM->AppendMenu(MF_SEPARATOR);
str.LoadString(IDS_PROPERTIES);
pM->AppendMenu(MF_STRING, IDM_PROPERTIES, (LPCTSTR)str);
pM->TrackPopupMenu( TPM_LEFTALIGN|TPM_LEFTBUTTON, pt.x, pt.y, this );
pM->DestroyMenu();
delete pM;
Happy programming!!
|
|
|
|
|
Excuse me that I post question in this forum, but I didn't find an answer for it.
Does anybody know how to connect two PCs with Window 200 via cros-over cable.
10x,
|
|
|
|
|
Hi,
I do know, you need the following:
HW
1. Eithernet card on the two PCs
2. Cross Cable ( make sure that what you have is a cross cable)
SW
1. Create a new LAN Connection on the first PC, and give it a dummy IP address, for example 10.10.0.1.
2. Create a new LAN Connection on the second PC, and give it a dummy IP address, this time you have to use the same presvious IP except the last number, for example 10.10.0.2.
3. Add the same user name and password on both PCs.
4. Share a folder on the PC that you want to access.
Note: You have to restart both PCs after you change the IP addresses, and make sure that you don't login to any domain, you just login to the Local Machine.
Enjoy ,
ShadiK.
Shadi Al-Kahwaji
|
|
|
|
|
Hi there!
I know that this could be done with the DialogBox(...) macro and the DialogBoxParam(...) function. However, does anybody know a solution to make windows created via CreateWindow[Ex](...) modal?
Thanks in advance ...
---------------------------------------------------
- Pipe -
|
|
|
|
|
I believe DoModal is a spinlock internaly, ugly though that may be.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Why do you need 'modality'? Do you want to bypass the main message loop or your goal is just to disable one window when other is active?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
the second one ...
I have an application that at a certain moment could consist of dozens of windows that allow the user to manipulate many things at once. The Dialog is to choose a folder from the local drives to extract some items to. While the user chooses I want all those other windows to be inaccesible. Since the application supports DLL's that are not neccessarily mine I'm not alwas able to say how many windows are to be disabled. Thats why I need a thread-modal Extract-To dialog ... Do you know any workarounds or good solutions to this?
many thanks for incoming advice ...
---------------------------------------------------
- Pipe -
|
|
|
|
|
You basically have two options now:
1) find out all windows (EnumThreadWindows) in the thread and disable them (EnableWindow(hwnd, FALSE)). The only non-disabled window will behave like modal dialog
2) control the thread's message queue. Monitor all input messages (WM_KEYxxx, WM_LBUTTONDOWN, etc) messages and don't dispatch them if they are addressed to window you want to disable.
Personally, I'd try version 1.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hey Pipe:
See MSDN for these two functions:
::RunModalLoop and ::EndModalLoop
MFC uses these two functions to make dialogs modal. You may want to look MFC's implementation in CDialog::DoModal() also.
\\vc98\mfc\src\dlgcore.cpp
// Fazlul
Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
|
Oh, I thought the windows he was playing with were derived from CWnd.
Nevertheless, he can probably copy and paste thse two functions to his project (can be found in \\mfc\src\wincore.cpp.) They are actually not that big and not that difficult to understand either. The ::RunModalLoop() implements an infinite loop that continuously checks windows message queue by calling ::PeekMessage(..). If it finds EndLoop() is called, then it breaks the loop. I believe WTL takes a similar approach to implement Windows modality too.
// Fazlul
Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
hi
I have 2 bitmap images, when they overlap each other the background of that image is erased.
How can i make the image still visible even if it is overlapped ?
I tried changing the mode but it does not work ?
Parag
|
|
|
|
|
The background of which image ? How are they stored ? How are they being shown ? Is it erased on screen, or in memory ? What mode are you changing ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I need to access oracle through my VC++ program
can I use ADO?
if I can is there is any code or tutorial to explain that
or any other ideas
Thanks
MR.Byte
|
|
|
|
|
I'm currently using ADO to access an Oracle database with VC++. Have you used ADO before? What are you trying to do? It is pretty much standard ADO stuff apart from a few gotchas with the Oracle stored procedures.
Michael
|
|
|
|
|
I read about it ,but I didn't realy need it before
thats why I ask for help
MR.Byte
|
|
|
|
|
I access my oracle database via an odbc connection using ADO. A good starting point for ADO is
http://www.codeproject.com/database/caaadoclass1.asp
This is the connection string I use for my oracle ADO connection object.
sConnect = _T(" DRIVER={Microsoft ODBC for Oracle}; SERVER=servername; UID=user; PWD=password");
One additional thing, make sure you've got the latest version of MDAC installed.
hope this helps,
Michael
|
|
|
|
|
Thanks
MR.Byte
|
|
|
|
|
i'm a beginner in visual c++,i would like to know how can i prevent my application from Exiting when Enter Key is pressed at start-up.
|
|
|
|