|
Iain Clarke wrote: you: It comes from the front left tire, and goes all the way to the read bumper.
I love having a read bumper in my car. They are awesome.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
It's not a typo, I'm too perfect for that.
From the Iain dictionary:
Read bumper:
A rear bumper with interesting bumper stickers.
Unread bumper:
A rear bumper with boring bumper stickers.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
i showed my data examlpe in first post of this time, i thought you have seen it already, so that is why i dun meationed any more, i am sorry for that and thanks for your reply.
gentleguy
|
|
|
|
|
Iain Clarke wrote: Now, where does your data come from. Are you reading it line by line from a text file? Are you typing it in manually? Is it in some binary format?
Does this help?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
gentleguy wrote: how to calculate each column amount 6...
The answer you need is here. Simply change 255 to 6.
gentleguy wrote: ...and then save it into .txt file as a array. thanks
Work on the counting first before trying to tackle this.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
When I try to call CopyFile API on Vista machine where destination is C drive (OS drive), I get "Access denied" error.
Can anyone suggest how to resolve that.
Thanks,
Mushq
|
|
|
|
|
The app must be run with elevated (administrator) privileges as you are trying to write something into the Windows directory.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
Nice Articles.
Thanks.
Regards,
Mushq
|
|
|
|
|
i have a ListView with Report style, an imageList is attached to it. I want to avoid image for a single item in the row. I tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Thanks & Regards
|
|
|
|
|
nitin3 wrote: tried to insert the item with out specifying LVIF_IMAGE flag, when i do so the item displays the first image in the image list.
Instead, specify the LVIF_IMAGE flag and set the value of iImage as -1;
|
|
|
|
|
i allready tried by setting iImage as -1, it displays the same image at index 0.
Is this a known issue or a problem in my code ?
Thanks & Regards
|
|
|
|
|
nitin3 wrote: i allready tried by setting iImage as -1, it displays the same image at index 0.
I hope you have set the LVIF_IMAGE flag to also.
nitin3 wrote: Is this a known issue or a problem in my code ?
Possibly. Can you show the code?
|
|
|
|
|
Use default image (a white image)
If images than all.
Greetings from Germany
|
|
|
|
|
IMO, iIt would be probably shown as a blank space then, just before the text.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
If we didn't set the image but set an image list, then also it will show a blank space.
|
|
|
|
|
Hi,,,,
I have one GUI i.e,SDI application which is inherited from Form view
I want to add Key maaping to that GUI.
For that when i press 'a' i have to focus on One button
when i am press 'A' then i have to focus on another button.
//There is a problem in KEYDOWN MessageMap related to my application.
So,I use PreTranslate message to handle key events.but when i press 'a'it will treat that as 'A'.
so,please help me in this Regard.
|
|
|
|
|
I think if u handle WM_CHAR instead of WM_KEYDOWN, you can identify 'a' and 'A'.
|
|
|
|
|
Thanks for the Reply...
But i have some problem when using WM_CHAR and WM_KEYDOWN message maps.
So,Can i Handle it in "PreTranslateMessage"..
any suggestions.......
|
|
|
|
|
|
You may use GetKeyState(VK_SHIFT) [^] to distinguish between lower case and upper case keys in PreTranslateMessage .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: You may use GetKeyState(VK_SHIFT) [^] to distinguish between lower case and upper case
And when caps Lock Key is on?
|
|
|
|
|
Make a try before arguing
(i.e. CAPS LOCK key down makes GetKeyState(VK_SHIFT) returning the same value it returns whenever SHIFT key is held down)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Make a try before arguing
But I tried now. GetKeyState(VK_SHIFT) is not giving the same value when shift key is down and when CAPS LOCK key is on.
Did you actually check like this..?
if( GetKeyState(VK_SHIFT)&0x8000 )
|
|
|
|
|
Well, actually it is not the same value, but bit 0 contains the meaningful info in both cases, hence GetKeyState(VK_SHIFT) & 0x0001 should do the trick.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|