Click here to Skip to main content
14,931,409 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC Programming Pin
Member 1399372921-Sep-18 22:29
MemberMember 1399372921-Sep-18 22:29 
AnswerRe: C Programming Pin
Victor Nijegorodov21-Sep-18 23:35
MemberVictor Nijegorodov21-Sep-18 23:35 
AnswerRe: C Programming Pin
CPallini23-Sep-18 21:44
mveCPallini23-Sep-18 21:44 
QuestionHow to deallocate memory allocated to a class instance Pin
meerokh21-Sep-18 5:58
Membermeerokh21-Sep-18 5:58 
AnswerRe: How to deallocate memory allocated to a class instance Pin
Victor Nijegorodov21-Sep-18 8:30
MemberVictor Nijegorodov21-Sep-18 8:30 
GeneralRe: How to deallocate memory allocated to a class instance Pin
meerokh21-Sep-18 11:27
Membermeerokh21-Sep-18 11:27 
AnswerRe: How to deallocate memory allocated to a class instance Pin
Richard MacCutchan21-Sep-18 21:35
mveRichard MacCutchan21-Sep-18 21:35 
AnswerRe: How to deallocate memory allocated to a class instance Pin
«_Superman_»23-Sep-18 22:16
professional«_Superman_»23-Sep-18 22:16 
Will need to look at the destructor code.
Since you're returning temporary objects, you could try changing the function signature to WorkPackage&& PackageQueue::GetWorkPackage
«_Superman 
I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++) (October 2009 - September 2013)

Polymorphism in C

GeneralRe: How to deallocate memory allocated to a class instance Pin
meerokh26-Sep-18 1:45
Membermeerokh26-Sep-18 1:45 
AnswerRe: What are Destructors in Object-Oriented Programming Pin
David Crow21-Sep-18 2:39
MemberDavid Crow21-Sep-18 2:39 
QuestionWant to learn C. Newbie. Where to start? Pin
Quickbeam121316-Sep-18 19:40
MemberQuickbeam121316-Sep-18 19:40 
AnswerRe: Want to learn C. Newbie. Where to start? Pin
Richard MacCutchan16-Sep-18 22:01
mveRichard MacCutchan16-Sep-18 22:01 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Quickbeam121316-Sep-18 22:14
MemberQuickbeam121316-Sep-18 22:14 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Richard MacCutchan16-Sep-18 23:00
mveRichard MacCutchan16-Sep-18 23:00 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Quickbeam121317-Sep-18 5:23
MemberQuickbeam121317-Sep-18 5:23 
AnswerRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 1:42
Memberleon de boer17-Sep-18 1:42 
AnswerRe: Want to learn C. Newbie. Where to start? Pin
CPallini17-Sep-18 5:27
mveCPallini17-Sep-18 5:27 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 5:34
Memberleon de boer17-Sep-18 5:34 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
CPallini17-Sep-18 5:56
mveCPallini17-Sep-18 5:56 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 6:09
Memberleon de boer17-Sep-18 6:09 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
CPallini17-Sep-18 8:05
mveCPallini17-Sep-18 8:05 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 18:36
Memberleon de boer17-Sep-18 18:36 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Dave Kreskowiak17-Sep-18 10:48
mveDave Kreskowiak17-Sep-18 10:48 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 17:24
Memberleon de boer17-Sep-18 17:24 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Dave Kreskowiak18-Sep-18 3:00
mveDave Kreskowiak18-Sep-18 3:00 

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.