|
|
|
How we can draw over the scrollbar of a CListBox control.
-Sarath
|
|
|
|
|
Sarath C wrote: over the scrollbar of a CListBox control
If you mean overwrite it, then you need to subclass the control (derive your own control from CListBox ) and customize the drawing-
~RaGE();
|
|
|
|
|
Hi
I have code for playing Flash files.but,it gives some problem when i want to load the hand cursor when the cursor moves on the flash file.please help.
|
|
|
|
|
Do you use the flash activex control? what error it throws?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
Any way to save/get MSDN favorite items ??
Is this save in a file? Or where it get saved?
|
|
|
|
|
That information is (I think) stored in the ...\microsoft\html help\hh.dat file.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Hi to all, I'm currently an undergraduate in Nanyang Technological University, School of Electrical and Electronics Engineering. My team mates and I are designing to use Logitech gamepad to control a robot's movement. We have decoded the the string codes for every button on the gamepad. However, we have software difficulties in linking these string codes to the GUI application. I would like to seek help in these. My email address is: HEAH0001@ntu.edu.sg
Thank you very much
Yours Sincerely,
Gary
|
|
|
|
|
Your question is too vague. If you'd like help, post a specific question.
|
|
|
|
|
Hi to all! My team used WinDriver software to diagnose the gamepad of Logitech. This diagnosis software creates multiple C++ source code which gives us the character string of each button found on the gamepad. We would like to use these codes to be linked with the GUI application and then to the ADAM system. My team has been trying hard to link the C++ source code files created by WinDriver to the GUI application. The GUI application is also written in C++ source code. The ultimate objective is to use the gamepad to control the robots movement. If these C++ source code files cannot be linked to the GUI application, is there any other ways to do it?
|
|
|
|
|
And the specific Visual C++ programming problem is? Have you tried using DirectInput? Can your gamepad produce WM_CHAR, WM_KEYDOWN, WM_KEYUP messages?
|
|
|
|
|
please explain . What are the different types of polymorphism?
|
|
|
|
|
How much marks does this question carry ?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
1.Run time polymorphism
-Virtual functions
2.Compile time polymorphism
-Function and operator overloading
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
|
NiLeSh KoRpE wrote: What are the different types of polymorphism?
i believe two, Function Overloading and Operator Overloading[ I was Wrong]. anyways Mr Nilesh answer to these question can be find easily by reading book, why are you posting here for same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 5:22 Thursday 18th May, 2006
|
|
|
|
|
i used random shuffle function in MFC application it doesnt working i dont know why...anyone knows the reason...
<code>void CConeverterDlg::OnEnter()
{
// TODO: Add your control notification handler code here
CString str;
// char str[13];
//cEdit.GetWindowText (str);
//AfxMessageBox(myStr);
//tmStart = time(0);
CTime time=CTime::GetCurrentTime ();
CString strttime= time.Format ("%Y%m%D%H%M%S");
// cEdit2.SetWindowText (strttime+"\n");//;(str)
//cEdit2.SetWindowText (strttime+"\n");
string line(str);
//line.c_str (),100);
//fin.open("data.txt");
// cout << str<<endl;
for (int i=0; i<500; ++i)
{
random_shuffle(line.begin(), line.end());
// File << "Randomised: " << line << endl;
// File << " : " << line << endl;
// File << " : " << line << endl;
// File << " : " << line << endl;
// File << " "<< endl;
// File << "Single Row: " << s << " " << s << " " << s <<" " << s << endl;
// File << " "<< endl;
CString cStr(line.c_str ());
cEdit2.SetWindowText ( cStr + "\n");
cEdit2.SetWindowText ("Randomised: "+ cStr + "\n");
//tmEnd = time(0);
}
CTime time1=CTime::GetCurrentTime ();
CString strtti= time1.Format ("%Y%m%D%H%M%S");
cEdit1.SetWindowText (str);
cEdit1.SetWindowText (strtti+"\n");
//cout << tmEnd-tmStart << " seconds " << endl;
}
</code>
|
|
|
|
|
makaveli_07 wrote: it doesnt working i dont know why
Which kind of failure it falls into?
1) The code compiles with no error and you get the EXE,
2) There is / are some compilation error(s).
Maxwell Chen
|
|
|
|
|
no compilation error the exe can run...but the random shuufle result cannot be shown in the programe.
|
|
|
|
|
Are you sure the function OnEnter( ) is invoked?
Maxwell Chen
|
|
|
|
|
yes..its working..but i think sumthing wrong with calling the string..but i cant solve it..or maybe sumthing else wrong on it...but i alrady incoke the function OnEnter()..
|
|
|
|
|
Oh I got your problem! You are doing random_shuffle on an empty string. See below quotes ...
makaveli_07 wrote: //cEdit.GetWindowText (str);
makaveli_07 wrote: string line(str);
makaveli_07 wrote: random_shuffle(line.begin(), line.end());
Maxwell Chen
|
|
|
|
|
|
but 500 results must be listed down...but i only getting one randomised shuffle result...
|
|
|
|