|
There are 3 pie-chart controls here[^] but unfortunately the only angle they provide is a 90° overhead view.
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib@ravib.com
|
|
|
|
|
hi,
can any one plz tell me how to add menu's in win32 console application in Visual C++.
Thanx in advance.
|
|
|
|
|
With a console application, what would you be adding the menu to?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I think i understand what you are talking about, if you have ever seen the program Edit in MS-DOS you would see a menu, but honestly i dont know how to make one,
|
|
|
|
|
Archer282 wrote:
...if you have ever seen the program Edit in MS-DOS you would see a menu...
Yep, remember it well. What most folks don't know is that the editor was actually qbasic.exe. Edit.com was used to call qbasic.exe and remove any programming-specific menu items.
As far as how to do it, output to a console window using printf() . It's been over a decade since I've done any "console graphics" (e.g., colors, shadows, blocks, 'windows', x/y coordinates) but I'm sure there are still plenty of examples that can be Googled for.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi there.
I am currently working on a project to identify users using their typing dynamics. I want to use the intervals
between keystrokes on the keyboard as a user type in their passwords, to identify the users.
I am using Windows XP and Visual Studio C++ 2003 to develope a MFC application project. I want to use a dialog with an edit box
to allow the user to enter his/her username and password.
I cannot process the WM_KEYDOWN and WM_KEYUP messages because when you type in the edit box, the keyboard focus is
on the edit box and not on the dialog.
Will a keyboard hook help me in my mission or will I have to use something else. Something else that is easier to use will also work.
If you could help me I would appreciate it alot.
Thank You.
Ben
|
|
|
|
|
If you subclass the edit box, you can pick up the WM_KEYDOWN and WM_KEYUP messages (or indeed any other message), and process them. This article[^] shows how to capture key strokes to create a numeric-only edit box, but it shows how to capture the messages, process them, and then pass them on to the parent window, which is what you'll need to do, I would think.
|
|
|
|
|
Hello Friends
Can any one suggest good websites for STL for study purpose
Hoping for a reply
|
|
|
|
|
|
|
Hai..
I have unicode text in Clipboard. I want to get that data. When i use GetClipboardData(CF_UNICODETEXT), i am not getting any data. Please let me know, how to solve this problem.
e.veera raghavendra
|
|
|
|
|
What does GetLastError() tell you?
Are you sure that the data in the clipboard is CF_UNICODETEXT ? Try calling IsClipboardFormatAvailable(CF_UNICODETEXT) before calling GetClipboardData .
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
ya i have checked IsClipboardFormatAvailable(CF_UNICODETEXT)
it's working
e.veera raghavendra
|
|
|
|
|
Veera Raghavendra wrote:
When i use GetClipboardData(CF_UNICODETEXT), i am not getting any data.
So what does GetClipboardData() return? If NULL , what does GetLastError() return?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
locoone wrote:
is there something im missing?
That's hard to say without seeing the relevant code.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
this is copyed from the class word for word
//Base destructor
CTextFileBase::~CTextFileBase()
{
Close();
}
//Close file
void CTextFileBase::Close()
{
if(IsOpen())
{
#if PEK_TX_TECHLEVEL == 0
m_file.close();
#elif PEK_TX_TECHLEVEL == 1
::CloseHandle(m_hFile);
m_hFile = INVALID_HANDLE_VALUE;
#else
if(m_closeAndDeleteFile)
{
m_file->Close();
}
#endif
}
#if PEK_TX_TECHLEVEL == 2
if(m_closeAndDeleteFile)
{
delete m_file;
m_file = NULL;
}
#endif
}
CTextFileWrite::~CTextFileWrite()
{
Close();
}
//Write and empty buffer
void CTextFileWrite::Flush()
{
#if PEK_TX_TECHLEVEL==0
m_file.write(m_buf, m_buffpos+1);
#elif PEK_TX_TECHLEVEL==1
DWORD nWritten;
if (!::WriteFile(m_hFile, m_buf, m_buffpos+1, &nWritten, NULL))
{
//Something bad has happend! Close file
CTextFileBase::Close();
//Throw exception
throw CTextFileException(GetLastError());
}
#else
m_file->Write(m_buf, m_buffpos+1);
#endif
m_buffpos = -1;
}
when i tryed to debug it had a yellow arrow pointing to this line m_file->Write(m_buf, m_buffpos+1);
PEK_TX_TECHLEVEL = 2 for me incase ya need to know
|
|
|
|
|
For starters I would not even begin to debug this. It looks to be way too convulated with all of the preprocessor statements. A well-designed class should be an entity that knows all about itself. When the file-related object is constructed, it should at that point know how it will later be closed.
Have you single-stepped through each statement and noted the value of the variables along the way?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
i figured out the problem
but thanks anyway
|
|
|
|
|
I came across a custom control in an example Project here at The Code Project. I want to use that custom control in another application. How can you use a custom control from one application to another without retyping all the code over again? I tried copying the .cpp and .h files and adding them to my new project but could not get the control classes to be recognized....
Thanks.
|
|
|
|
|
You can remake the .dsw file .
The steps is in the following :
1 Delete the old .dsw file in your project's directory
2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it .
Above is all.
Try it
AntonlioX
|
|
|
|
|
AntonlioX wrote:
1 Delete the old .dsw file in your project's directory
2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it .
How can you do step 2 if you delete the dsw file? Once I delete this file, I cant open the project in VC6?
|
|
|
|
|
Do not believe everything you read on the internet. The file that you are to delete is the .clw (class wizard) file, not the .dsw (project workspace) file.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
I figured this out when after deleting the .dsw file the project was gone!
Thanks.
|
|
|
|
|
Sorry for my carelessness ,I typed the .clw as .dsw .
AntonlioX
|
|
|
|
|
No problem. It got me thinking along the right track and eventually led to a solution. Thanks for your input.
|
|
|
|