Click here to Skip to main content

C / C++ / MFC

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: NMAKE can't find include file in subfolder PinmvpRichard MacCutchan2:38 23 Feb '12  
GeneralRe: NMAKE can't find include file in subfolder Pinmemberbjorn_ht5:15 23 Feb '12  
GeneralRe: NMAKE can't find include file in subfolder PinmvpRichard MacCutchan6:24 23 Feb '12  
GeneralRe: NMAKE can't find include file in subfolder Pinmemberbjorn_ht9:44 23 Feb '12  
GeneralRe: NMAKE can't find include file in subfolder PinmemberAlan Balkany5:37 24 Feb '12  
Questions it safe to pass CComVariant declared locally ot other function Pinmemberptr_Electron3:55 22 Feb '12  
AnswerRe: s it safe to pass CComVariant declared locally ot other function PinmemberJochen Arndt4:39 22 Feb '12  
ptr_Electron wrote:
1. Can I pass the CommVariant to other function, when not created using new ?

Yes.
 
ptr_Electron wrote:
2. Should I free it/delete expecitly some where ?

No, when not allocated on the heap. When using new, it must be of course freed using delete. Everything else is done by the destructor.
ptr_Electron wrote:
3. Is it safe ? any precauions ?


It is safe. But you must take care when assigning data (type and data must match).
QuestionHow to check CComVariant.boolval is valid and extract bool value from it Pinmemberptr_Electron3:51 22 Feb '12  
AnswerRe: How to check CComVariant.boolval is valid and extract bool value from it Pinmemberbjorn_ht4:44 22 Feb '12  
AnswerRe: How to check CComVariant.boolval is valid and extract bool value from it PinmemberJochen Arndt4:48 22 Feb '12  
Questionstandard c_str() problem in C++ PinmemberAnitesh Kumar17:45 21 Feb '12  
AnswerRe: standard c_str() problem in C++ [modified] PinPopularmemberEmilio Garavaglia20:10 21 Feb '12  
GeneralRe: standard c_str() problem in C++ PinmvpCPallini0:18 22 Feb '12  
GeneralRe: standard c_str() problem in C++ PinmemberVuNic0:52 22 Feb '12  
QuestionBest way to check if a thread is still active c++ win32 Pinmemberjkirkerx11:35 21 Feb '12  
QuestionRe: Best way to check if a thread is still active c++ win32 Pinmember Randor 14:27 21 Feb '12  
AnswerRe: Best way to check if a thread is still active c++ win32 Pinmemberjkirkerx15:18 21 Feb '12  
GeneralRe: Best way to check if a thread is still active c++ win32 Pinmember Randor 16:55 21 Feb '12  
GeneralRe: Best way to check if a thread is still active c++ win32 Pinmemberjkirkerx17:05 21 Feb '12  
AnswerRe: Best way to check if a thread is still active c++ win32 PinmemberChuck O'Toole14:29 21 Feb '12  
GeneralRe: Best way to check if a thread is still active c++ win32 Pinmemberjkirkerx15:28 21 Feb '12  
AnswerRe: Best way to check if a thread is still active c++ win32 PinmemberChuck O'Toole16:12 21 Feb '12  
AnswerComplete code for CreateProcess and loop Pinmemberjkirkerx15:26 21 Feb '12  
AnswerRe: Complete code for CreateProcess and loop PinmemberChuck O'Toole16:22 21 Feb '12  
AnswerRe: Complete code for CreateProcess and loop PinmemberChuck O'Toole16:34 21 Feb '12  

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

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


Advertise | Privacy | Mobile
Beta | 2.5.120517.1 | Last Updated 23 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid