|
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
|
|
|
|
|
I would like to implement a rectangle tracker with some desired properties over a loaded image window ? How can I implement this and is there already implemented code like this ?
Good days
|
|
|
|
|
When I try to run the dynamically creating Pen comman it returns NULL pointer, What can be the reason ?
Pen* mypen = new Pen(Color::Gold, 3.0f);
|
|
|
|
|
It seems that either you have run out of memory, or the GDI+ isn't supported on the platform you are running on!
Supported platforms (from MSDN)
Windows 98/Me, Windows XP, Windows 2000, Windows NT 4.0 SP6
Ant.
|
|
|
|
|
Either options seem to be not possible, I can not understand this kind wierd behaviours of Visual C++ !
|
|
|
|
|
Hi...
Can somebody pls tell me what these codes do?
==============================================
int size = 5;
vector<int> ** abc; //Create 2d vector???!!!
abc = new vector[int] * [size];
abc[0] = new vector<int> [size * size]
for (int i=1; i<size; i++)
{
abc[i] = abc[0] + i * size;
}
for (int i=0; i<size; i++)
{
for (int j= 0; j<size; j++)
{
abc[i][j].pushback(0);
}
}
================================================
And in the end...how big is the abc array and what is d size of abc[0][0]? Is the code correct in creating a 2d array of 5x5 matrix?
Pls suggest anythg...I'd appreciate it very much...
Thank you...
|
|
|
|
|
You want a two-dimensional array of int s?
You can declare it as vector < vector < int> > abc;
You can subsequently access the elements as abc[i] [j] ,
with i running from 0 to size(abc)-1 and j running from 0 to size(abc[i])-1 .
As a general rule, just remember that abc is one dimension, and the oter dimensions are abc[0], abc[1] and so on. They are independent from each other, epecially can they have a varying lenght.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Use boost::multi_array . It provides a lot of procedures to manage multidimensional arrays and it's safer than vector of vectors, vector with size*size length etd.
See Boost home page.
Robert-Antonio
"CRAY is the only computer, which runs an endless loop in just 4 hours"
|
|
|
|
|
Anybody know how to type unicode characters like arabic, chinese, korean etc directly into an edit box.
I am using windows XP with unicode languages support. I want to paste the unicode text i copied from character map to an edit conrol. But the edit control show junk.

|
|
|
|
|
You should be able to enable your OS IME (Input Method Editor) from the regional settings in the control panel. This allows you to input foreign characters by providing the appropriate input interface for the given language.
I Dream of Absolute Zero
|
|
|
|
|
yes... i have done it already...
but if i copy/paste those arabic or chinese text to a windows standard edit control it only shows junks ("?_?") not the real text...

|
|
|
|
|
Manikandan wrote:
only shows junks ("?_?") not the real text...
Ok.
Then I think the problem is making sure you are using a font that can correctly display the appropriate unicode characters.
For example: Courier will not show asian character types (you will just see either a bunch of square blocks, or question marks). However if you display the same using Tahoma, and you have the language packs installed, it should show up correctly.
Not all fonts cater for unicode characters, you may have to experiment to see which ones do.
I Dream of Absolute Zero
|
|
|
|
|
Hi,
since i was programming in VC++ 2 years ago, i tried some other languages like Delphi,C#,and a lot of web programming so i lost my C++ knowledge a little (maybe to much )
anyway, one of the most important question i need to know is : Where/how do u know if u have to use pointer instead of simple class declaration ? ex:
when do i need to choose between : CFile pFile; or CFile* pFile;
Thanks
Jonathan
|
|
|
|
|
one obvious reason is when you want to allocate ur object in heap you have to use pointer
greatest thing is to do wot others think you cant suhredayan@omniquad.com>
messenger :suhredayan@hotmail.com
|
|
|
|