|
The basic difference between a class and struct is with respect to scope.
The class members are default private and struct members are public.
In addition to this a struct should be used the way it is done in c and use class where you need attributes and behaviours.
|
|
|
|
|
so if i start giving always public,private and protected modifier then i can do everything what ever am doing in class and i can replace the class with structure where ever am explicitly specifying the acess modifiers .... is it???
Thanks
vikas da
|
|
|
|
|
|
Oke. Thanks Mahesh i will try this at home...
vikas da
|
|
|
|
|
C Mahesh wrote: In addition to this a struct should be used the way it is done in c and use class where you need attributes and behaviours.
Hi can you please make bit clear about this.
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
C Mahesh wrote: struct a : public b{
You don't even need the public keyword there - with struct inheritance is public by default.
|
|
|
|
|
If you have worked with classes then replace class with struct.
Ex:
struct a{ } ;
struct b : public a{ };
|
|
|
|
|
Please ignore this, as my browser had some problem.
thanks
Mahesh
|
|
|
|
|
wat functionality is needed to convert midi to wave using MFC ???
|
|
|
|
|
See this[^] thread does helpful?
|
|
|
|
|
mozilla is not supporting --
document.form1.text1.focus.
&
text1.value
where text1 ia an input type..can any one tell me the alternate plzzz
hiiiiii
|
|
|
|
|
Does this a c++ question?
|
|
|
|
|
I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App, I see on web that I need to use functions:
BOOL SetClipboardText(LPCTSTR pszText)<br />
int GetClipboardText(LPTSTR pszBuf, int nLength)
but I can I get the selected text of a textbox or a selected object?
Thanks
|
|
|
|
|
|
If you are using MFC, use CEdit::Copy(), CEdit::Paste().
But I'm still wondering where have you found SetClipboardText(). There is no such windows API
rrrado
|
|
|
|
|
CDRAIN wrote: I need to implement Copy,Cut & Paste to and from Windows Clipboard functionality on my C++ App
For edit controls, this is "on" by default.
CDRAIN wrote: ...can I get the selected text of a textbox or a selected object?
Are you looking for GetWindowText() ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi CDRAIN,
try GetClipboardData and SetClipboardData functions. Maybe this is what you're looking for.
cheers!
|
|
|
|
|
I want to develop a video player of my own with my own specifications but i am not sure from where should I start for, I am totally new to window programming. Can you please direct me that what can I use for this purpose?
|
|
|
|
|
First, look at an open source player such as Videolan[^].
It's a very large task unless you simply want to embed WMP.
Elaine
|
|
|
|
|
Refer "DirectShow Framework". And It was deprecated in Vista where Media Foundation, it replaces.
-- modified at 5:41 Friday 22nd June, 2007
|
|
|
|
|
|
I am creating installer for my vc++ application by compiling Windows Installer(Visual Studio Deployment) project together with my vc++ application.
When the install finish there is an icon for exe in Start Button --> All Programs menu --> Application Name. I would like to add uninstall facility also to the same place. How to do this.
Any help would be greatly appreciable.
Best Regards,
Suman
|
|
|
|
|
Hi,
You need to keep you application specific data in the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Observe the keys already there in this registry path.
Hope that helps.
Kiran.
|
|
|
|
|
Hello everybody,
i need to add a new functionnality to my application.
To drag and drop a row of a grid into a opened/existing Word document.
Before i start, is it possible to do that in MFC?
If i start the drag with the mouse and i leave the mouse-button ( the drop ) on another
application, is it possible to determine in my application on which application i made the "drop" ?
Big thanks for your help
|
|
|
|
|
baerten wrote: Before i start, is it possible to do that in MFC?
Yes. MFC integrates fine with Drag'n'Drop and the Clipboard.
baerten wrote: If i start the drag with the mouse and i leave the mouse-button ( the drop ) on another
application, is it possible to determine in my application on which application i made the "drop" ?
Not usually and if you didn't write the other app it's probably not a good idea to try anyway. If you want specific content for Word then you'll have to supply that data to the Clipboard in a Word specific format.
I'm afraid I don't have quick access to any examples/samples at this moment but it's the Clipboard that mediates this kind of task so you need the works on Clipboard formats and Clipboard programming. That's how the target application actually get data from you and it will select which of the formats you make available it wants to take from the Clipboard. Office apps will take their own private formats ahead of shared/generic ones. I don't know about Word but when I last looked at this Excel supported 21 Clipboard formats
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|