Click here to Skip to main content
15,795,233 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why won't VS2015 let me compile? Pin
Richard Andrew x6423-Apr-22 4:47
professionalRichard Andrew x6423-Apr-22 4:47 
GeneralRe: Why won't VS2015 let me compile? Pin
charlieg25-Apr-22 3:31
charlieg25-Apr-22 3:31 
QuestionMoving a STL container around Pin
Calin Negru15-Apr-22 23:16
Calin Negru15-Apr-22 23:16 
AnswerRe: Moving a STL container around Pin
Richard MacCutchan16-Apr-22 0:15
mveRichard MacCutchan16-Apr-22 0:15 
GeneralRe: Moving a STL container around Pin
Calin Negru16-Apr-22 1:18
Calin Negru16-Apr-22 1:18 
GeneralRe: Moving a STL container around Pin
Greg Utas16-Apr-22 2:00
mveGreg Utas16-Apr-22 2:00 
GeneralRe: Moving a STL container around Pin
Calin Negru16-Apr-22 4:01
Calin Negru16-Apr-22 4:01 
GeneralRe: Moving a STL container around Pin
Richard MacCutchan16-Apr-22 6:59
mveRichard MacCutchan16-Apr-22 6:59 
CalinNegru wrote:
when you add a class object, the vector doesn`t make a copy of the object, it creates a pointer to the object being added.
No, the vector copies whatever type you have declared it with. For example:
C++
std::vector<std::string> myVec;
std::string newstr = "A string";
myVec.push_back(newstr); // myVec now contains a copy of the string, not a pointer.

CalinNegru wrote:
A linked list deals with pointers not objects.
Well sometimes it does; but what has that to do with this question?
GeneralRe: Moving a STL container around Pin
Calin Negru16-Apr-22 10:34
Calin Negru16-Apr-22 10:34 
QuestionMessage Closed Pin
5-Apr-22 17:02
Member 149687715-Apr-22 17:02 
AnswerRe: macro usage error Pin
Victor Nijegorodov5-Apr-22 21:35
Victor Nijegorodov5-Apr-22 21:35 
AnswerRe: macro usage error Pin
Richard MacCutchan5-Apr-22 22:24
mveRichard MacCutchan5-Apr-22 22:24 
Questionmain.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
Nagavarapu Pavan4-Apr-22 21:23
Nagavarapu Pavan4-Apr-22 21:23 
AnswerRe: main.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
CPallini4-Apr-22 22:47
mveCPallini4-Apr-22 22:47 
GeneralRe: main.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
Nagavarapu Pavan4-Apr-22 22:56
Nagavarapu Pavan4-Apr-22 22:56 
GeneralRe: main.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
CPallini4-Apr-22 23:46
mveCPallini4-Apr-22 23:46 
QuestionCan not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 11:17
Alex Banar1-Apr-22 11:17 
AnswerRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Victor Nijegorodov1-Apr-22 21:42
Victor Nijegorodov1-Apr-22 21:42 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar2-Apr-22 3:01
Alex Banar2-Apr-22 3:01 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Victor Nijegorodov2-Apr-22 3:55
Victor Nijegorodov2-Apr-22 3:55 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar2-Apr-22 11:08
Alex Banar2-Apr-22 11:08 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan4-Apr-22 0:12
mveRichard MacCutchan4-Apr-22 0:12 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard Andrew x644-Apr-22 7:49
professionalRichard Andrew x644-Apr-22 7:49 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Dave Kreskowiak2-Apr-22 5:46
mveDave Kreskowiak2-Apr-22 5:46 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar2-Apr-22 11:08
Alex Banar2-Apr-22 11:08 

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.