|
|
can anyone teach me how to get string input and display it in the blackbox?
fe8her
|
|
|
|
|
Prinz Ryoiji wrote: it in the blackbox?
Is this a Console Application?
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
yupe..
win32 console application..
|
|
|
|
|
That blackbox is called console.
Well I wrote an example for you and then I lost the whole thing (Page cannot be displayed).
Well CG has done that for you...
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
owh..ok..
thanks...
|
|
|
|
|
Nibu thomas wrote: That blackbox is called console.
Also called "DOS-Box" in some books ...
Maxwell Chen
|
|
|
|
|
owh..ok..
thanks a lot!
|
|
|
|
|
You can change the black box to green box...
Just add this line of code
system("color 2f"); :->
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: change the black box to green box...
Maxwell Chen
|
|
|
|
|
|
Nibu thomas wrote: Color 2f
Yeah, I know. I was trying to show you a green face. ;P
Maxwell Chen
|
|
|
|
|
|
The readme says: The first nibble for the BK color, and the second nibble for the foreground color.
Value F = Bright White.
But when I issue color FF , it resets to system color!
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: But when I issue color FF, it resets to system color!
Both BG and FG cannot be the same. Try FA or 2F and then FF . Nothing happens.
Use Color without any parameters to restore to default.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: and then FF. Nothing happens.
You're right!
Maxwell Chen
|
|
|
|
|
#include <string>
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
using std::string;
int main()
{
string s;
cout << "Enter your name: ";
cin >> s;
cout << endl << "Your name is " << s << endl;
cout << "Press enter to end this wonderful journey";
cin >> s;
}
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
I'm after C++ examples of how to allow the user to record mouse and keyboard events inside an application. The recorded events can then be saved to a file so that they can be play-back at a later date. A macro facility in other words. Can anyone help me with this? I'm using Visual C++ 6. .
Thanks lots.
Choppa
|
|
|
|
|
Chopper Dang wrote: I'm after C++ examples of how to allow the user to record mouse and keyboard events inside an application.
It's a long story. Take a look at WH_JOURNALRECORD and WH_JOURNALPLAYBACK . Kyle Marsh has written an interesting article on Hooks . Look up that in MSDN .
Chopper Dang wrote: then be saved to a file so that they can be play-back at a later date
Well I am not sure about saving it to file!
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Thanks for your reply Nibu. I'm actually looking for events within my own application (very much like in MS Office apps). WH_JOURNALRECORD and WH_JOURNALPLAYBACK seem to record every event that happen within the system, and I dont know how to filter them out.
|
|
|
|
|
Chopper Dang wrote: I'm actually looking for events within my own application (very much like in MS Office apps).
Maybe you can tweak them a bit to suit your needs.
Or try these functions to find out what's happening and log these into a file and later through code play them back...
GetCurrentMessage
PeekMessage
GetQueueStatus
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
I have a CFormView (IDC_FORM_VIEW) and I have a CStatic resource
which I call m_boundingFrame.
I have a screen full of information in a dialog resource (IDC_CONTENT1).
How can I make that dialog resource appear in the boundingFrame of
the CFormView?
I can do this if its a propertysheet and then put in propertypages,
but I just have a single dialog resource which I want to display
in that boundingFrame. Im stumped on getting it to actually work.
My code for the propertysheet is below, but I cant figure out to
modify that code to work with the dialog resource that I have.
CWnd* pwndPropSheetHolder = GetDlgItem(IDC_PLACEHOLDER);
m_pPropertySheet = new CView10PropertySheet(pwndPropSheetHolder);
if (!m_pPropertySheet->Create(pwndPropSheetHolder, WS_CHILD | WS_VISIBLE, 0))
{
delete m_pPropertySheet;
m_pPropertySheet = NULL;
return;
}
// fit the property sheet into the place holder window, and show it
CRect rectPropSheet;
pwndPropSheetHolder->GetWindowRect(rectPropSheet);
m_pPropertySheet->SetWindowPos(NULL, 0, 0,
rectPropSheet.Width(), rectPropSheet.Height(),
SWP_NOZORDER | SWP_NOACTIVATE);
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
DanYELL wrote: I have a screen full of information in a dialog resource (IDC_CONTENT1).
How can I make that dialog resource appear in the boundingFrame of
the CFormView?
Well you can load the dialog resource using the CDialog class or a subclass of CDialog and set this dialog as a child of the CFormView . Remove the caption bar , system menu and make it look like a group box. Don't make it a popup but a simple child window.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
OK, My boss wants me to do this thing where I find a specific browser window and then force it to load a new web page.
Is this possible?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>
|
|
|
|