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

C / C++ / MFC

 
GeneralRe: Problem loading non-default wab Pin
Member 86892612-Jan-13 4:06
Member 86892612-Jan-13 4:06 
GeneralRe: Problem loading non-default wab Pin
Richard MacCutchan12-Jan-13 4:20
mveRichard MacCutchan12-Jan-13 4:20 
QuestionHow do you get the file size for an open file? Pin
Member 41945938-Jan-13 3:29
Member 41945938-Jan-13 3:29 
AnswerRe: How do you get the file size for an open file? Pin
Jochen Arndt8-Jan-13 4:14
professionalJochen Arndt8-Jan-13 4:14 
GeneralRe: How do you get the file size for an open file? Pin
Member 41945938-Jan-13 10:27
Member 41945938-Jan-13 10:27 
GeneralRe: How do you get the file size for an open file? Pin
Member 41945938-Jan-13 12:24
Member 41945938-Jan-13 12:24 
QuestionWhile launching a winapp as ole server some time OnFIleNew() failed Pin
vermaashish_mca8-Jan-13 1:36
vermaashish_mca8-Jan-13 1:36 
AnswerRe: While launching a winapp as ole server some time OnFIleNew() failed Pin
Jochen Arndt8-Jan-13 2:51
professionalJochen Arndt8-Jan-13 2:51 
QuestionIcon/Bitmap missing in 1st control (MFC dialog) Pin
_jg_7-Jan-13 22:52
_jg_7-Jan-13 22:52 
QuestionThe task runtime question of RTOS. Pin
econy7-Jan-13 5:22
econy7-Jan-13 5:22 
AnswerRe: The task runtime question of RTOS. Pin
jeron17-Jan-13 5:35
jeron17-Jan-13 5:35 
AnswerRe: The task runtime question of RTOS. Pin
Joe Woodbury7-Jan-13 10:28
professionalJoe Woodbury7-Jan-13 10:28 
GeneralTreeview After Select Event Pin
Varun Pandey7-Jan-13 2:49
Varun Pandey7-Jan-13 2:49 
GeneralRe: Treeview After Select Event Pin
jeron17-Jan-13 5:08
jeron17-Jan-13 5:08 
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 

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.