Type: Posts; User: corcor
Search took 0.01 seconds.
I have following property providing a get/put function for settings an interface:
[propget, id(1)] HRESULT Type([out, retval] IMyType **pVal);
[propput, id(1)] HRESULT Type([in] IMyType...
Thanks for answering so fast !
Yes, I know that (standard) way, but I don't want to "override" all getter - methods, and I also don't want to provide a new method, like
I want derive my class as protected from its baseclass, e.g.
class CMyRect : protected CRect
because nobody should change CRect directly, but I would like to provide a...
I have some member function templates like:
class CMyClass : public CMyBase
template < class T > BOOL Find( std::vector< T > elem );
January 28th, 2004, 01:03 AM
Hi Paul !
Thanks for your answers.
Of course every object has a destructor. I ment that I need no virtual destructor, because my derived class won't need one and it's only for my internal...
January 27th, 2004, 09:52 AM
Hi Paul !
Thanks for your fast answer.
I need no destructor, because I only introduce some new methods, e.g.:
Since I only have pointers in my lists, sets,... and want to access them directly,...
January 27th, 2004, 09:14 AM
deriving from list::iterator and vector::iterator is no problem, but how can I derive from set::iterator ?
template < class T, class Pred = less<T>, class A = allocator< T >...
January 14th, 2004, 05:42 AM
A different approach (and even more advanced) would possibly be more performant:
I create a new type of iterator, which can iterate over different lists (with derived elements), e.g.
January 13th, 2004, 11:00 AM
The first version also doesn't compile in VC6.0 (that's what I've tried in my first attempt), but std::copy is fine !
Thanks a lot !!!!
January 13th, 2004, 09:08 AM
unfortunately not, because each list is used in its own context, but at many circumstances I need a collection of elements from two or more lists.
January 13th, 2004, 08:19 AM
I have lots of STL lists, lets say
list< A* > m_listA;
list< B* > m_listB;
list< C* > m_listC;
where B derives from A, and C from B,….
Many times I have to return two or...
October 24th, 2002, 01:03 AM
Good idea, but I only want to prevent from one single, specific Redo (the one, I generate myself by calling Undo())
October 23rd, 2002, 09:54 AM
When I call CRichEditCtrl's Undo() method; my last change is undone and I get the chance to "Redo" that modification.
Does anybody know, how to prevent from "Redo" ?
In other words: I...
September 27th, 2002, 02:57 AM
Does anybody know how to hook into CRichEditView's Undo / Redo Management (to see, when / what is changed, disable some changes...)
September 27th, 2002, 01:57 AM
September 26th, 2002, 09:53 AM
you are right mamotron:
resizing the array is bad, but we also can take my solution and swap x[i] with the last unused element instead of deleting it :)
September 26th, 2002, 07:44 AM
maybe this helps:
1) create an array (size 400000) and fill it with values from 1 - 400000
2) create a randum number X between 1 and actual array-size
3) return value of array[X] as "real...
September 26th, 2002, 07:35 AM
Yeah, I also can put it in a "not - CWnd derived class" and derive my views from this class and the old base class, like
class CMySpezialView1 :...
September 26th, 2002, 06:14 AM
There's no need to run as a service.
The first client starts the server, when the last client closes, the server is unloaded (you don't have to care about that, everything is handled from (D)COM)
September 26th, 2002, 06:09 AM
I can't use a class "between", because not all my views derive from CView.
E.g. one derives from CRichEditView (which derives from CView)
So where would be "between" ?
September 26th, 2002, 05:56 AM
Maybe you can use a COM Server:
Every Client registers on that server for "listening"
After every database update, the COM Server is informed and fires a corresponding event to all registered...
September 26th, 2002, 05:53 AM
I have some views which handle partly the same commands (e.g. every view has a "OnEditCopy") in the same way.
Thus I want to share that code in a common base class, but my views derive...
September 25th, 2002, 12:52 AM
Please, can you explain how to use LiveConnect ?
I didn't find a description in msdn.
August 1st, 2002, 03:08 AM
I create COM Server using the <OBJECT> tag.
July 18th, 2002, 02:02 AM
Use SMTP (Simple Mail Transfer Protocol) directly !
Look at the sample at codeguru
Click Here to Expand Forum to Full Width