|
If you begin with a bitset class, you can use bitset::to_ulong and then cast the ulong as a char for display.
|
|
|
|
|
Thanks for replying. Your suggestion worked very well.
Thanks!
William
Fortes in fide et opere!
|
|
|
|
|
Hi,
there is a function called to_ulong() defined in the bitset header file which is the counterfunction to to_string() which turns a string into a binary value.
Hope it helps.
Regards.
Alex
|
|
|
|
|
Thanks for replying.
An earlier response has already pointed me in the right direction which wasn't too far from what your suggestion offered.
I knew of "to_ulong()" and have used it several times before, but it only seemed to take the binary representation and return its numeric equivalent, not an alphabetic value if the binary representation it was given, were for such a value.
Thanks anyway for replying. I appreciate it.
William
Fortes in fide et opere!
|
|
|
|
|
Hi
I have a modeless Dialog in my MDI App and now when you click on a button, the modeless dialog should give the view value. but that didnt work.
how can I realize this?
thx
|
|
|
|
|
I wrote an application that directly communicates with external equipment via RS-232 and the like. It also communicates to the sound card as well. Originally the program was written in VB/VC++. I just finished porting the major sections of the program to C# and now it's slow as slow can be.
The calls to the external equipment are made using PInvoke to directly call the Win32API. In an effort to speed things up, I'm removing the PInvoke code and replacing it with MC++.
However, when I try to call regular C-style DLL files I get a linker error LINK2001 with a mangled version of the original function.
The top of the header file has EXTERN "C."
My question is: what else can cause this? I'm pretty sure it's a simple fix, but don't know if the MC++ settings are significantly different than the VC++ 6.0.
|
|
|
|
|
Is there any way to get SpinBox Up state?
Thanks in Advanced
Shin
|
|
|
|
|
I was talking the ButtonUp Event for SpinBox.
Shin
|
|
|
|
|
Assuming you want to know when the Up part of the spin box control has been clicked, the control sends a WM_NOTIFY message with the UDN_DELTAPOS code to its parent window.
|
|
|
|
|
I have an Dialog based project and if I try to add a windows messgaehandler for WM_GETMINMAXINFO, I have to change the filter from dialog to window in order to have that message available in the list. Is this ok? What is the reason for this?
Thanks,
ns
|
|
|
|
|
Hi ns,
You're doing fine. This filter is just an Visual Studio UI thing designed to minimize the number of handlers the programmer is exposed to, so that only the most commonly used are displayed. Sometimes it happens (as in your case) that you go nuts looking for that handler and it appears nowhere. IMHO the filter thing does more harm than good, and it's badly implemented (it appears in a different tab than where its effect is apparent.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Good to hear from you again!! Appreciate the quick response.
Thanks,
ns
|
|
|
|
|
Hi,
the reason is that the WM_GETMINMAXINFO is usually only avaiable for Windows. The Visual C++ help index says that this handler fills an array with information of the window. However, since dialogs are considered as a window this seems to be corrected.
Kindly yours.
Alex
|
|
|
|
|
Hi,
My app minimises to the tray using a kind CP person class. It all works really good but my icon is 256 colors and in the tray it looks like it is 16 colours and does not look very good. Can I show it in 256 colors in the system tray or not?
Thank you.
|
|
|
|
|
Be sure you don't have a 16 color icon as well.
"It is better to remain silent and be thought a fool than to open one's mouth and remove all doubt." - Abraham Lincoln
|
|
|
|
|
I definitely have not. I have two 256 color icons. I have just now put a 16 color icon in to see if it will use the 16 color one I made which does not look as bad as the one it displays in the tray. I think that perhaps the tray icons are not even 4 bit (16)color.
I can not find anything in MSDN about this problem.
|
|
|
|
|
To avoid icon distortion, be aware that notification area icons have different levels of support under different versions of Microsoft Windows. Windows 95, Windows 98, and Microsoft Windows NT 4.0 support icons of up to 4 bits per pixel (BPP). Windows Millennium Edition (Windows Me) and Windows 2000 support icons of a color depth up to the current display mode. Windows XP supports icons of up to 32 BPP.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/structures/notifyicondata.asp[^]
"It is better to remain silent and be thought a fool than to open one's mouth and remove all doubt." - Abraham Lincoln
|
|
|
|
|
Thank you.
I have read it and what it says about Windows 2000 is strange because I am running Windows 2000 and I get icon distortion. My icons are definite 256 colors and my display mode is definite 32 bit mode.
I wonder what is happening?
|
|
|
|
|
I have a CEdit control mapped to a large size text field. When the Read Only box was unchecked, all lines were showing up fine when I scrolled up and down the control. But I have to set the box to Read Only. Once Read Only was checked, when I scrolled up and down using the scrollbar, all text in the edit box was over written by other text. I looked into help but unfortunately was not able to find any information on this problem.
Eilzabeth
|
|
|
|
|
Sound like an error in Comctl32.dll. Try to get the latest version from MS. (I don't have a link - it can be done with MS's download utility)
|
|
|
|
|
Hi,
the same phenomenon occurs from time to time in Word. Don't know what causes this problem. Are you using the TRANSPARENT property anywhere in your code???
Regards.
Alex
|
|
|
|
|
Yes, I have to use TRANSPARENT property to set static labels background while setting background color to the form.
Eilzabeth
|
|
|
|
|
The only download I saw was for Window95, too old. Can you send me the link?
Eilzabeth
|
|
|
|
|
Use the download utility - the one with the the little hard drives on it.
J.
----------------------------
I got this "baby on board" sign - Now people will stop intentionally ramming our car.
|
|
|
|
|
Can not find it. A url would be greatly appreciated.
Eilzabeth
|
|
|
|