|
WideCharToMultiByte converts to DBCS, not UTF-8.
--Mike--
"I'd rather you just give me a fish today, because even if you teach me how to fish, I won't do it. I'm lazy." -- Nish
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I have a grid that you can set a color for each cell. When multiple selection is on and i select cells with a background color in it the selection color over rides the original cell background color.
I would like to blend these 2 colors to show that it is selected and show the original cell background color.
when drawing i have the 2 COLORREF values. Is there a function to blend these or something along those lines.
Similar to how excel handles selection and background colors.
thanks
|
|
|
|
|
If it's just two values, blend them yourself. Or use GDI+, which has transparency, or AlphaBlt ( I think ), which is in Windows 98 upwards. Or go to the WDJ site and download the code for my article on doing alphablending for Windows 95.
Christian
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Rblend = (R1 + R2) / 2
Gblend = (G1 + G2) / 2
Bblend = (B1 + B2) / 2
-c
Alcohol is the anesthesia by which we endure the operation of life.
-- George Bernard Shaw
|
|
|
|
|
COLORREF CList::Transform2SelColor(COLORREF clr)
{
return RGB(
abs( ((DWORD)clr&0xFF) - (255 - ((DWORD)m_clrSelection&0xFF)) ),
abs( (((DWORD)clr>>8)&0xFF) - (255 -(((DWORD)m_clrSelection>>8)&0xFF)) ),
abs( (((DWORD)clr>>16)&0xFF) - (255 - (((DWORD)m_clrSelection>>16)&0xFF)) ));
}
where clr is the slection color
take the absolute value of (R value of the selection color - the inverse of the background color)
|
|
|
|
|
Hi,
I need to delete files that are in use.
I can´t restart my computer or neither exit programs that are using them. Any suggestions? Need to work on NT/2000 server.
/Ola Carlsson
|
|
|
|
|
|
SHFileOperation, I think it can do that ...
Max.
|
|
|
|
|
That reminds me of a question:
How can one determine the process(es) by which
the file is in use? It's be nice to have a little
utility that reports who has what files open.
|
|
|
|
|
Scott H. Settlemier wrote:
How can one determine the process(es) by which
the file is in use?
http://www.sysinternals.com/[^]
Has just such a utility
|
|
|
|
|
Dear all,
I need to use INetCfg COM interface.
so I import it's dll in my project
#import <netcfgx.dll>
but got the following error:
/////////////////
fatal error C1083: Cannot open type library file: 'netcfgx.dll': Error loading type library/DLL.
////////////////////
I can find this netcfgx.dll under the WINNT/system32/
Need Help!
Laura
|
|
|
|
|
Try with #import "C:\\WINNT\\system32\\netcfgx.dll" .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
still doen't work
any other idea?
|
|
|
|
|
Here are some other examples. Not sure what you need exactly.
#import "EventSrc\Debug\EventSrc.dll" no_namespace named_guids
#import "..\Bin\SystemCPU.dll" raw_interfaces_only, raw_native_types, no_namespace, named_guids
#import "C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\MSO97.DLL" raw_interfaces_only
#import "..\DemoCallback\debug\DemoCallback.dll" named_guids raw_interfaces_only
#import "..\Server\ES.tlb" no_namespace, named_guids, raw_interfaces_only, raw_native_types
#import "c:\Program Files\Common Files\System\ADO\msado15.dll" no_namespace rename("EOF", "EndOfFile")
Todd Smith
|
|
|
|
|
It is not the attributes but the dll itself cannot be opened.
( I tried differenct attributes, still doesn't work)
|
|
|
|
|
If i write this:
char *szFileNameOnly[999];
will all the char pointers be initialized to zero or do i have to do that myself?
Thanks
|
|
|
|
|
you will have to do that yourself. C/C++ doesn't initialize anything for you (unless it has a constructor, or if you're in debug mode using MSVC's compiler).
-c
Alcohol is the anesthesia by which we endure the operation of life.
-- George Bernard Shaw
|
|
|
|
|
Gosh, you typed faster than me
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Alcohol is the anesthesia by which we endure the operation of life.
-- George Bernard Shaw
|
|
|
|
|
|
Come on, add to my frustation
PS: Excellent strings tutorial.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You have to do it yourself.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You should always initialize variables when declaring them.
Max.
|
|
|
|
|
C++ doesn't automatically do it for you, but it does have easy ways for you to do it. This statement will cause all the pointers to be initialized to zero:
char *szFileNameOnly[999] = {0};
Chris Richardson
|
|
|
|
|
Thanks for you advice. Can this also be done when the variable has already been declared? If so, how? Cause I'm getting an error when trying to do it.
|
|
|
|