Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to hide a column of a listctrl Pin
haha_c7-Jan-13 0:55
haha_c7-Jan-13 0:55 
AnswerRe: how to hide a column of a listctrl Pin
Pete O'Hanlon7-Jan-13 1:16
mvePete O'Hanlon7-Jan-13 1:16 
QuestionCreating Non-Rectangular Forms Pin
Luca D'Amico6-Jan-13 11:38
Luca D'Amico6-Jan-13 11:38 
SuggestionRe: Creating Non-Rectangular Forms Pin
David Crow6-Jan-13 17:25
David Crow6-Jan-13 17:25 
AnswerRe: Creating Non-Rectangular Forms Pin
«_Superman_»6-Jan-13 17:56
professional«_Superman_»6-Jan-13 17:56 
AnswerRe: Creating Non-Rectangular Forms Pin
Richard MacCutchan6-Jan-13 22:13
mveRichard MacCutchan6-Jan-13 22:13 
GeneralRe: Creating Non-Rectangular Forms Pin
Luca D'Amico7-Jan-13 13:05
Luca D'Amico7-Jan-13 13:05 
Questionstd::vector problem Pin
Super Lloyd6-Jan-13 1:21
Super Lloyd6-Jan-13 1:21 
I have a function which return an std::vector<T>
it is quite big and moved around a lot and kept for a long time, so I put it into a
std::shared_ptr<std::vector<T>>

Now I need to access the vector as an array
with
std::vector<T> a;
I can write
T* pa = &a[0];

But this doesn't work with a std::shared_ptr<std::vector<T>>

What can I do?

Remark
Why don't I just pass it by reference around?
Well, it is created in a function, and then it is captured by a lambda that is spawn regularly into a task (i.e. in another thread) which would be the only reference left.
And I want to avoid copying the vector (it is big) and destructing when it goes out of scope, I want to create it only once and reuse it / keep it alive!...
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

AnswerRe: std::vector problem Pin
CPallini6-Jan-13 7:14
mveCPallini6-Jan-13 7:14 
GeneralRe: std::vector problem Pin
Super Lloyd6-Jan-13 11:53
Super Lloyd6-Jan-13 11:53 
QuestionStatic link to ATL alwayas fail Pin
Falconapollo4-Jan-13 23:19
Falconapollo4-Jan-13 23:19 
AnswerRe: Static link to ATL alwayas fail Pin
Richard MacCutchan5-Jan-13 1:28
mveRichard MacCutchan5-Jan-13 1:28 
Questionhow to use a work thread write file and the main thread show a carton Pin
haha_c4-Jan-13 22:12
haha_c4-Jan-13 22:12 
SuggestionRe: how to use a work thread write file and the main thread show a carton Pin
David Crow5-Jan-13 11:41
David Crow5-Jan-13 11:41 
AnswerRe: how to use a work thread write file and the main thread show a carton Pin
Albert Holguin6-Jan-13 6:14
professionalAlbert Holguin6-Jan-13 6:14 
GeneralRe: how to use a work thread write file and the main thread show a carton Pin
haha_c6-Jan-13 14:58
haha_c6-Jan-13 14:58 
AnswerRe: how to use a work thread write file and the main thread show a carton Pin
Randor 6-Jan-13 17:39
professional Randor 6-Jan-13 17:39 
QuestioncapDriverConnect displays captured frame in CView Pin
Vaclav_4-Jan-13 16:15
Vaclav_4-Jan-13 16:15 
QuestionWhat is the merit to rewrite memcpy? Pin
econy4-Jan-13 7:31
econy4-Jan-13 7:31 
AnswerRe: What is the merit to rewrite memcpy? Pin
Richard MacCutchan4-Jan-13 9:19
mveRichard MacCutchan4-Jan-13 9:19 
GeneralRe: What is the merit to rewrite memcpy? Pin
econy4-Jan-13 10:31
econy4-Jan-13 10:31 
GeneralRe: What is the merit to rewrite memcpy? Pin
jeron14-Jan-13 10:49
jeron14-Jan-13 10:49 
GeneralRe: What is the merit to rewrite memcpy? Pin
Richard MacCutchan5-Jan-13 1:20
mveRichard MacCutchan5-Jan-13 1:20 
AnswerRe: What is the merit to rewrite memcpy? Pin
jschell6-Jan-13 5:02
jschell6-Jan-13 5:02 
AnswerRe: What is the merit to rewrite memcpy? Pin
Joe Woodbury7-Jan-13 10:15
professionalJoe Woodbury7-Jan-13 10:15 

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.