|
No need to be rude, she was just answering your question.
A wParam is a 32 bit value, just like an UINT.
Griffith
Everything you say will be misquoted, ripped out of context and used against you.
|
|
|
|
|
If you read her post you see that SHE STARTED IT I know I know. I am sorry for being rude. It just bugged me when she said, did you even look it up? Jeesh, oh well. Sorry to all! I had a bad night :'(
Darroll
Not one person lives in the present. Only the past. I can prove it.
|
|
|
|
|
hey guys,
i need to place a bitmap on a CDialog using StretchBlt() functon.
someone give me an example.i would appreciate it ...
Regards,
Kapil
|
|
|
|
|
|
Mike, I agree with you. It must be because it's sunday.
if you start putting in too manay features, it no longer remains useful for beginners
quote in a CP article comment, shiraz baig
|
|
|
|
|
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" biz stuff about me
|
|
|
|
|
StephaneRodriguez wrote:
Mike, I agree with you. It must be because it's sunday.
Meaning; if it was monday there would be no way in h*ll you'd agree with me?
|
|
|
|
|
dear friends:
i need help about create a Authentication Packages.
In msdn,i hnow something about this,but is too little.
very thanks
|
|
|
|
|
|
Don't tell me that you're trying to raise your membership status by leaving sketches of messages here and there. Don't waste other's times if you don't have the answer or don't know.
Linkin Park
|
|
|
|
|
i'm so sorry if what i do make you think so.
i really means is:
in msdn,it says create a custom Authentication Package must wraps MSV1_0.
but i don't hnow how to do so.
so much people ask this question about it.
and sorry my english is not good.
thinks
|
|
|
|
|
|
no,it's a question about Logon Authentication.
|
|
|
|
|
Ah, gotcha. That sounds like Paula Tomlinson's dept.
She runs a great series of articles "Understanding NT"
on just such subjects in Windows Developer. I'd look
into reviewing her articles for help.
|
|
|
|
|
o,thanks!
and can you tell me how can i go to the "windows developer".
is it in msdn?
|
|
|
|
|
|
thanks very much.
|
|
|
|
|
Hi,
I'm trying to set a value to a new key I created, and I get an ERROR_ACCESS_DENIED error when I use RegSetValueEx. Here's some code:
lRes = RegCreateKeyEx( HKEY_CURRENT_USER,
LoadStringEx( IDS_REG_FOLDER ),
0, "", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS , NULL, &hkSub, &dwDisposition);
if( RegOpenKeyEx( HKEY_CURRENT_USER, LoadStringEx( IDS_REG_FOLDER ), 0, KEY_QUERY_VALUE, &hKey ) == ERROR_SUCCESS )
{
// Store ID
lRes = RegSetValueEx( hKey, LoadStringEx( IDS_REG_Q_STOREID ), 0, REG_EXPAND_SZ, (BYTE*)strStoreID.m_str, strStoreID.Length()+1 );
// Entry ID
lRes = RegSetValueEx( hKey, LoadStringEx( IDS_REG_Q_ENTRYID ), 0, REG_EXPAND_SZ, (BYTE*)strEntryID.m_str, strEntryID.Length()+1 );
}
What am I doing wrong???
Thanks!
---------------
Concentrating on Ideas
http://www.edovia.com
|
|
|
|
|
Two things: Your RegOpenKeyEx() is redundant. Use the HKEY returned by RegCreateKeyEx() .
And never use KEY_ALL_ACCESS . It will fail on NT for non-admin users. Only ask for the access you need.
--Mike--
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
|
|
|
|
|
And never use KEY_ALL_ACCESS. It will fail on NT for non-admin users. Only ask for the access you need.
It will fail even though the root key was HKEY_CURRENT_USER? (which was the case in the original poster's code).
|
|
|
|
|
Yes, it can fail because of policies created by the domain admin.
KEY_ALL_ACCESS include WRITE_DAC and WRITE_OWNER and domain admins can be quite sensitive about them.
"In an organization, each person rises to the level of his own incompetence." Peter's Principle
|
|
|
|
|
i have a printer , the printer only can print the ascii character
but cant print chinese.the print can print bitmap usering its own
printing command.now i choose this method in win2k:
i want to TextOut some chinese characters in the memory then generate
the bitmap in memory ,deal the memory bitmap ,get the pixels then get
the print data
for example:
......*******.........
......*******.........
......*******.........
......*******.........
this is a bitmap .now i get the per pixel and generate data
;;0x80 represent white pixel
;;ox81 represent black pixel
0x80 0x04 0x81 0x07 0x80 0x04
0x80 0x04 0x81 0x07 0x80 0x04
0x80 0x04 0x81 0x07 0x80 0x04
0x80 0x04 0x81 0x07 0x80 0x04
but how can i generate this data from a bitmap in the memeory?
who can help me?
-----------------------------
Mr.Whelk
-----------------------------
Zhuhai City ,Guangdong ,China
|
|
|
|
|
Try creating a black-and-white bitmap. Select it into some DC. Blit the source DC's bitmap into this bitmap, and then it's up to you to read the bits of that bitmap (hint: GetDIBits).
Wasn't there a mountain of examples for writing Windows 3.1 printer drivers, including a complete printer driver devkit?
Search MSDN and you'll find.
|
|
|
|
|
sometimes i can built a printer driver ,this cause the installation of the application is complex.i want to realize it in my application then this is
good to customer.
-----------------------------
Mr.Whelk
-----------------------------
Zhuhai City ,Guangdong ,China
|
|
|
|
|
I'm not 100% sure I understand you, but it seems you are trying to output something on a printer that is not (currently) supported by windows.
It also seems you only want to 1) get the bits (in B/W) from the source bitmap, and 2) somehow output them to that printer, bypassing the printer driver.
For the latter, I suggest you just CreateFile() or even fopen() "LPT1:". If that's not an option, have a look at the GDI API function Escape().
For the former, I suggest you follow my earlier suggestion.
From these two suggestions you should be able to produce the output (since it seems you know what the printer needs).
++luck;
|
|
|
|