|
I've examined XP's behaviour and it seems as if it adds the 'A:' entry to the sendto menu manually, unlike all the other entries which are picked up from "\docs and setts\user\sendto..."...
Can someone elaborate on this ?
Do they store this somewhere in the registry ?
Do they add any other commands to the menu ?
p.s. they do check if an 'A:' exists before adding, i'll give you that, but still...
thanks
|
|
|
|
|
After a quick search of the registry, this seems to be in-built into the Microsoft SendTo Service, and thus is in-built for each OS that uses it. Removing this possibility seems impossible. Why it is implemented, I don't know. Perhaps to ensure that a malign virus cannot completely remove the possibility of moving files away from the computer ?
The default behaviour does not seem to add other commands to the menu, except from the 'A:' target.
If someone has more in-depth knowledge, it is appreciated.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Does this interest you as well ?
Do you know if it happens only in XP, or in other Oss' as well (doesn't happen in Windows-2000)...
|
|
|
|
|
I place interest on everything that happens in the Windows OS. I, however, do not know for sure if it is a built-in feature. You should try asking Microsoft directly, I'm sure they can provide a sure answer.
And no, I have not tried if this behaviour is repeatable on other Windows OS revisions.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Many programs are now showing a standard file selection dialogue box with the favourites control down the left hand side. How can one add this into a Visual C++ 6 application?
Thanks.
Andrew
|
|
|
|
|
You'll need to use GetOpenFileName() without a hook procedure.
andrew/truckle@atkinsglobal.com wrote:
Many programs are now showing a standard file selection dialogue box with the favourites control down the left hand side.
Office does this (see the HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common\Open Find\Places\StandardPlaces\Favorites registry value), but do you have another example?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I have tried this code below, and it does indeed show a control on the left. But for some reason it still doesn't list "Favourites" as one of the choices.
Also, it means I loose all the benfits that were in the CFileDialog class. It seems like I am trying to re-invent the wheel here..
Appreciate any advice.
Andrew
void CTestdlgDlg::OnButton1() <br />
{<br />
OPENFILENAME ofn;<br />
TCHAR szFile[_MAX_PATH]=_T("");<br />
ZeroMemory(&ofn, sizeof(OPENFILENAME));<br />
ofn.lStructSize = sizeof(OPENFILENAME);<br />
ofn.hwndOwner = GetSafeHwnd();<br />
ofn.lpstrFile = szFile;<br />
ofn.nMaxFile = sizeof(szFile);<br />
ofn.lpstrFilter = "All\0*.*\0Text\0*.TXT\0";<br />
ofn.nFilterIndex = 1;<br />
ofn.lpstrFileTitle = NULL;<br />
ofn.nMaxFileTitle = 0;<br />
ofn.lpstrInitialDir = NULL;<br />
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;<br />
<br />
GetOpenFileName(&ofn);<br />
}
|
|
|
|
|
andrew.truckle@atkinsglobal.com wrote:
I have tried this code below, and it does indeed show a control on the left. But for some reason it still doesn't list "Favourites" as one of the choices.
Does the Places Bar normally contain the Favorites folder? A little research indicates it's not normally there, but it can be added with a registry tweak. In the following registry key, which doesn't exist by default:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ComDlg32\PlacesBar
you can specify up to five folders. Each folder is identified by an entry called Place0, Place1, and so forth, up to Place4. The value of these entries can be either a fully qualified path name or a CSIDL value that identifies a special folder independent of the particular machine. If you want to specify an absolute file system path, create a REG_SZ, or REG_EXPAND_SZ, entry. If you plan to use a CSIDL, then a REG_DWORD entry is mandatory. CSIDL values are defined in shlobj.h. Make sure you get the one that ships with the latest Platform SDK if you want the new IDs specific to Windows 2000.
andrew.truckle@atkinsglobal.com wrote:
Also, it means I loose all the benfits that were in the CFileDialog class. It seems like I am trying to re-invent the wheel here..
This is a "bug" with CFileDialog in that it uses a hook, thus preventing the Places Bar from showing up. It's a well documented issue.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
It is a whole new concept in programming. I have not heard of a "Places Bar" or anything, let alone the bug fix. I have been trying to find how to do it on msdn and all that, to no avail.
You are the first person to atleast offer a solution. I suppose i was surprised because the person who wanted this, has been using autocad 2004, and its file dialogue shows the vary same control on the left but with the bar...
can you inform me of the "bug" articles?
Andrew
|
|
|
|
|
andrew.truckle@atkinsglobal.com wrote:
can you inform me of the "bug" articles?
Yep. See here and here.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I have build an i/o device. The devices are plugged with PC
over a serial cable. Now I want to replace the cable by a bluetooth
connection. I built in a bluetooth serial adapter in the devices and
installed an USB-Bluetooth-Adapter with the widcomm software on PC. My
application sends to the virtuell com port generated by the widcomm
software. But we have some problems with the widcomm software and I hope anyone
can help me.
When your device is out of range, the connection will break down. When the device is in range again, the widcomm bluetooth software does not reconnect. So my solution: I close and open the com port in a loop until the device is in range again and then a new connection is established.
But first the opening of the port needs a lot of time (10s -20s). Second the widcomm software hangs up after com port is closed and opened for a few times.
Best re
|
|
|
|
|
Hi
I'm having big problems trying to úse the GetCalendarInfo function with VC++ 2003 and seemingly no matter what I do, I get the error shown below
error C3861: 'GetCalendarInfo': identifier not found, even with argument-dependent lookup
I'm trying to the the locale version of the shortdate and the code I try to compile is like this
<br />
#include <windows.h><br />
#include <winnls.h><br />
LPTSTR calinfo2 = new TCHAR[81];<br />
GetCalendarInfo(LOCALE_SSHORTDATE,CAL_GREGORIAN,CAL_SSHORTDATE,calinfo2,81);<br />
Can anyone help me out, please
Thomas
|
|
|
|
|
The include for winnls.h is not necessary as Windows.h includes it.
Also have you tried ::GetCalendarInfo?
Ant.
|
|
|
|
|
You need to define WINVER >= 0x040A
The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
|
|
|
|
|
Thanks..
I had tried ::GetCalendarInfo, but with no luck.. The define WINVER >= 0x040A did the trick however
Thanks,
Thomas
|
|
|
|
|
Hi,
I want to build an additional special keypad with 16 keys. This keys should send scan codes to the keyboard driver and the keyboard driver should translate these scan codes in virtual key codes and send them to the system.
In Windows I want to map these scan codes to spezial functions. For these I need scan codes and virtual key codes which are processed by the keyboard driver, but which are not available on a common keyboard and which cannot generated by a key combination of a common keyboard.
Can anyone help me?
Julius
---
|
|
|
|
|
Where is your keypad connecting to ?
If you're using the PS/2 adapter or the USB bus, you need to rewrite the keyboard driver and/or filter driver to support the signals sent by your keypad.
If your extra-device connects to a serial port, you've got an easier path: just load a program that supports serial device connection, and is capable of intrepreting the signals sent by the keypad.
If you connect it to the printer port, you're in for an even more easier ride, as the pareller port supports up to 7 simultaneous data bits, and you can create each of the 16 key codes by using different bit patterns. Then just make a software that can understand your input and translate it into commands that can be executed by the system.
From all these options, if you want to have the best possible performance for your device, I suggest familiarizing yourself with Windows Driver Development. That is a LONG path to trek, but certainly a worthwhile one, as it offers lots of insight on the world of Windows OS.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I use the USB bus. But I use a standard keyboard controler, so I haven't to write the driver. For windows it seems, that there are two keyboards. So there is no problem.
But what scancodes can I use, that are not used by a standard key board, but interpreted by the keyboard driver.
Julius
|
|
|
|
|
You could try this list, provided by Microsoft: http://download.microsoft.com/download/whistler/hwdev3/1.0/WXP/EN-US/scancode.exe[^]
Yeah, I know it's an executable, but I've downloaded it myself, readed it through, and it seems like a virus-free self-extracting zip archive. It contains a big (2 Mb) document describing the scan codes of Windows OS. Especial interest can be placed on the 101/102 standard keyboard scan codes list starting from page 16. There seems to be a collection of free scan codes that are not generatable by a standard keyboard. Note, though that these scan codes might be in use by an extended-key keyboard, such as Logitech Internet Navigator SE keyboard.
Also, the USB key code list on page 30 might prove interesting. I suggest you read the entire document with thought. Then, after choosing the scan codes, write a system-wide keyboard hook that can trap WM_KEYDOWN codes, and see what virtual keys Windows assigns (the standard keyboard driver supports the scan codes listed there)
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hi folks!
I have a problem with the recordset.
i would like to check a database field whether
a field is null or not (straight with CRecordset ).
the function isfieldnull only works if you derived form a
CRecordset class (DataFieldExcahnge).
Is there another way to check a field directly with a CRecordset
(CRecordset::Open(...,"select field from table")).
I mean microsft implemented the IsFieldNull function, so i guess it should be a possibility to implement without IsFieldNull.
Thanks...
|
|
|
|
|
Hi All,
I have a CMDIChildWnd application where each child window loads a FormView.FormView contains some edit controls,comboxes etc.
when i double click on any edit box to select the contents,the focus is always going to first control in the tab order.
Please some one tell me what might may be the possible reason.
Thanks in advance...
|
|
|
|
|
Anybody knows a simple way to remove the *.* option in the Save as type combobox in the File Save dialog? Sridhar Rao has written an article that precisely covers this issue, but it seems a wee complicated.
Regards, Haakon S.
A sure cure for seasickness is to sit under a tree.
Spike Milligan
|
|
|
|
|
CFileDialog dlg (false, _T ("txt"), _T ("*.txt"),OFN_FILEMUSTEXIST|OFN_HIDEREADONLY, "");
dlg.DoModal();
greatest thing is to do wot others think you cant suhredayan@omniquad.com>
messenger :suhredayan@hotmail.com
|
|
|
|
|
Hello !
I've added an ActiveX in my project via the Project -> Add to Project -> Components and Controls dialog. I want now to remove this activeX (so not only the files but also the icon that appears in the controls for the resources.
Is it possible to do such a thing ?
Thank you
|
|
|
|
|
I am planning to control my new model railway layout from my laptop using purpose built software. I have had a quick look at the hardware section on the board and got some good 'pointers'.
When I get it up and going I will start with RPC kits from MERG (www.merg.co.uk) and Graham Plowmans software (www.gppsoftware.com) but I want to move to my own software and probably build my own track circuits and point/turnout control boards.
Do any of you have any experience or directions on where I might find good foundation algorithms?
Ger
|
|
|
|