|
Hi...this is my first entry in a messageboard..dont kno de costims here
i'm doing a project using WH_JOURNALRECORD hook. using this hook i was trying to catch keyboard messages.for the top-level keys (volume cotrol keys bowser key etc..) the system becomes stuck..for all other keys it works fine..
i tried my best to solve this.. please anybody help..i'll be gratfull to you.
Thank you.
|
|
|
|
|
joe.cet wrote: dont kno de costims here
"Don't know the customs" is the the custom here.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
Link2006 wrote:Let's take it outside of CP
Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
|
|
|
|
|
Hi All,
I need to add the carriage return and line feed to a string to simulate the new line '\n' before writing it to a binary file.
what is the function I can give the ASCII Code and it returns the equivalant character.
What I need is a function that is similar to chr in Visual Basic
-- modified at 8:17 Thursday 21st September, 2006
|
|
|
|
|
Just write "\r\n" to the file (at the end of each line)
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Mohsen Saad wrote: Re: How to convert ASCII code to character
int i=10;
char *str=new char[3];
sprintf(str,"%c",i);
cout<<str;
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Mohsen Saad wrote: what is the function I can give the ASCII Code and it returns the equivalant character.
There is no need for that in C++. The ASCII code IS the character. That is:
char c1 = '\n';
char c2 = '\r';
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Hi All,
How can I find the current users "Application Data" directory ie C:\Documents and Settings\<currentuser>\Application Data\ in VC++ 6.0. I cannot use .NET functions.
Currently I am able to get the same using 'AppData' environment variable like getenv("APPDATA"); but I am looking for any direct functions or other work around for the same.
Thanks,
|
|
|
|
|
Does this helps you ?
char szAppDataFolderPath[MAX_PATH];
memset(szAppDataFolderPath,0,MAX_PATH)
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szAppDataFolderPath);
|
|
|
|
|
Great.. I am looking for some thing like this; but the problem I am facing is the SHGetFolderPath and CSIDL_COMMON_APPDATA are mentioned in the MSDN library as being part of shlobj.h and my shlobj.h contains neither of these declarations. Is it the part of Platform SDK?
|
|
|
|
|
Use this.
SHGetSpecialFolderPath(NULL, szPath,CSIDL_APPDATA, 0);
|
|
|
|
|
How Can i Do Windows Services program?. So that my application starts when system turns "ON".
-- modified at 8:03 Thursday 21st September, 2006
|
|
|
|
|
Sakthiu wrote: I have developed a dialog based applicaion. I want to change this dialog into windows service. So that my dialog program will start when system comes to "ON".
Why you wanted to do this ? Service is supposed to start in back ground and work silently.
See if
this[^] article helps you.
|
|
|
|
|
Use XYNTService. Just search for it here at CP.
Works as a charm (even) for GUI apps!
Here[^]
And Here[^]
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Mr Sakthiu,
what's the problem with your sig ?
can't you just edit it to avoid these dozens of empty lines ?
you're breaking the forums buddy ! do something, fast !
|
|
|
|
|
Sig means "Signature"...
Modify here[^]
also, why did you delete your question ? because you got the answers you were looking for ? that's selfish bobby ! you are on a forum, not a chat... people come here to share. what if you come here one day, and search the board for something that you won't find because it's been deleted ?
|
|
|
|
|
Ok. Fine
I resolved that problem (Signature Space). HereAfter This will not repeat.
okey.
|
|
|
|
|
good ! welcome to CP then
|
|
|
|
|
Sakthiu wrote: How Can i Do Windows Services program?. So that my application starts when system turns "ON".
You do not have to create a service to accomplish this goal.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I made a dialog application that draws text into the window using the device context:
CDC* pCD = GetDC();
pCD->TextOut(x, y, "some text I want to print");
I also made an option in which you can change the font. But you choose the print preview it is all messed up. Depending on what font size you choose it shows the letters overlapping each other or too far away from each other in the print preview.
Anyway to fix this?
This is how it looks like in the print preview depending on font size chosen:
http://www3.shrani.si/o.php?printpre951564.jpg
|
|
|
|
|
It seems I need some sort of ratio conversion between logical and physical pixel inside OnPrepareDC. I just can't figure out how to do this. Can anyone help me please?
|
|
|
|
|
Hi,
I am doing an sdi application with different views .In one of the form view i placed a list control.How can i color the list control header.
Thanks,
Radhika.
|
|
|
|
|
radhika28 wrote: I am doing an sdi application with different views .In one of the form view i placed a list control.How can i color the list control header.
You can ownerdraw the header control. But before that you must subclass the header control.
First get the header control and subclass it. Use CListCtrl::GetHeaderCtrl() for this purpose.
Read this[^] for more info.
|
|
|
|
|
Create customized HeaderCtrl class Say MyHeaderCtrl then create a member variable of this is in class of Listcontrol ,Then override the InsertColumn(...) there do the following code
InsertColumn(...)
{
CListCtrl::InsertColumn(...)
CHeaderCtrl *pHeaderCtrl = GetHeaderCtrl();
if(( 0 != pHeaderCtrl ) && ( FALSE != IsWindow( pHeaderCtrl->GetSafeHwnd())))
{
HeaderCtrl.SubclassWindow( pHeaderCtrl->GetSafeHwnd()); // HeaderCtrl is the member variable of type MyHeaderCtrl
}
........
}
|
|
|
|
|
How can i get HPALLETE from CPalette Object?
Best Regards.
MJM.
|
|
|
|
|
CPalette::GetSafeHandle();
nave
|
|
|
|