Click here to Skip to main content
15,910,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Search algorithm Pin
Nemanja Trifunovic12-Jun-03 6:23
Nemanja Trifunovic12-Jun-03 6:23 
GeneralRe: Search algorithm Pin
Madmaximus12-Jun-03 6:56
Madmaximus12-Jun-03 6:56 
GeneralRe: Search algorithm Pin
Nick Parker12-Jun-03 7:55
protectorNick Parker12-Jun-03 7:55 
GeneralRe: Search algorithm Pin
basementman12-Jun-03 11:21
basementman12-Jun-03 11:21 
GeneralSet proxy in IE Pin
Vlkk12-Jun-03 5:28
sussVlkk12-Jun-03 5:28 
GeneralRe: Set proxy in IE Pin
Vlkk12-Jun-03 6:56
sussVlkk12-Jun-03 6:56 
GeneralRe: Set proxy in IE Pin
geo_m13-Jun-03 0:18
geo_m13-Jun-03 0:18 
GeneralInitializing references. Pin
Chris Meech12-Jun-03 5:08
Chris Meech12-Jun-03 5:08 
I'm working with a third party library and have run into a C++ difficulty that is hopefully really obvious on how to solve. One of the classes in the library has no public constructor, nor assignment operator, nor copy-constructor. All are private. In order to instantiate an object of this class, one uses a method from another class, which has been declared a friend class. This 'special' method though returns a reference to the object, not a pointer to the object. As a result it seems to me that I can only do the following;
AClass& OneA = OneB.create(..);

Thus all my instantiations/initializations of AClass have to be local to a method, or static to a class. Neither of which works for me, since I want to have as a member variable, either a vector<aclass*> (a vector or AClass pointers) or a vector<aclass> (a vector of AClass objects). Short of trying to change the library to return a pointer, an ideas? Thanks.


Chris Meech

"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.

"And when you need to hire a programmer to do mostly VB programming, it's not good enough to hire a VB programmer, because they will get completely stuck in tar every time the VB abstraction leaks." Joel on Software Nov 11, 2002.
GeneralRe: Initializing references. Pin
valikac12-Jun-03 5:57
valikac12-Jun-03 5:57 
GeneralRe: Initializing references. Pin
Chris Meech12-Jun-03 6:10
Chris Meech12-Jun-03 6:10 
QuestionMemory leak CString ? Pin
Brian van der Beek12-Jun-03 4:41
Brian van der Beek12-Jun-03 4:41 
AnswerRe: Memory leak CString ? Pin
John M. Drescher12-Jun-03 4:55
John M. Drescher12-Jun-03 4:55 
GeneralRe: Memory leak CString ? Pin
Brian van der Beek12-Jun-03 5:04
Brian van der Beek12-Jun-03 5:04 
GeneralRe: Memory leak CString ? Pin
John M. Drescher12-Jun-03 5:10
John M. Drescher12-Jun-03 5:10 
GeneralRe: Memory leak CString ? Pin
Brian van der Beek12-Jun-03 5:22
Brian van der Beek12-Jun-03 5:22 
GeneralRe: Memory leak CString ? Pin
John M. Drescher12-Jun-03 5:51
John M. Drescher12-Jun-03 5:51 
GeneralRe: Memory leak CString ? Pin
includeh1012-Jun-03 7:27
includeh1012-Jun-03 7:27 
GeneralRe: Memory leak CString ? Pin
David Crow12-Jun-03 7:35
David Crow12-Jun-03 7:35 
GeneralRe: Memory leak CString ? Pin
John M. Drescher12-Jun-03 7:55
John M. Drescher12-Jun-03 7:55 
GeneralRe: Memory leak CString ? Pin
Peter Weyzen12-Jun-03 20:53
Peter Weyzen12-Jun-03 20:53 
GeneralVisual Studio Add-In --&gt;IApplicationEvents Pin
Amir Harel12-Jun-03 4:26
Amir Harel12-Jun-03 4:26 
GeneralLogging off users Pin
siqbal12-Jun-03 3:59
siqbal12-Jun-03 3:59 
GeneralAborting a socket accept() after X seconds Pin
justin22312-Jun-03 3:35
justin22312-Jun-03 3:35 
GeneralRe: Aborting a socket accept() after X seconds Pin
Ryan Binns12-Jun-03 4:32
Ryan Binns12-Jun-03 4:32 
GeneralRe: Aborting a socket accept() after X seconds Pin
jgauffin12-Jun-03 20:41
jgauffin12-Jun-03 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.