Click here to Skip to main content
15,907,497 members
Home / Discussions / COM
   

COM

 
GeneralRe: Error while Installing Pin
Jeeva Mary Varghese18-Oct-06 20:50
Jeeva Mary Varghese18-Oct-06 20:50 
AnswerRe: Error while Installing Pin
Jonathan [Darka]19-Oct-06 23:38
professionalJonathan [Darka]19-Oct-06 23:38 
QuestionQustions about onLoad event!!!~~~~~thanks Pin
Armor Wei18-Oct-06 0:08
Armor Wei18-Oct-06 0:08 
QuestionUrgent : Regarding the delete w.r.t COM Pin
janadhana16-Oct-06 20:46
janadhana16-Oct-06 20:46 
QuestionRe: Urgent : Regarding the delete w.r.t COM Pin
prasad_som16-Oct-06 21:20
prasad_som16-Oct-06 21:20 
AnswerRe: Urgent : Regarding the delete w.r.t COM Pin
janadhana16-Oct-06 22:24
janadhana16-Oct-06 22:24 
AnswerRe: Urgent : Regarding the delete w.r.t COM Pin
prasad_som16-Oct-06 22:36
prasad_som16-Oct-06 22:36 
GeneralRe: Urgent : Regarding the delete w.r.t COM [modified] Pin
Jörgen Sigvardsson18-Oct-06 9:07
Jörgen Sigvardsson18-Oct-06 9:07 
jana_dhana wrote:
If memory is allocated in the DLL using 'new' can i 'delete' the same in the application outside the dll?

Yes, and no. Yes, if you use the same version of the C/C++ runtime libraries [in .exe and .dll], and if the pointer is passed between DLL and application without going through a marshaled interface (which is next to impossible to determine, given only an interface pointer).

My advice to you is to allocate memory using CoTaskMemAlloc and CoTaskMemFree. This way you don't have to worry about which heap (different runtime libraries use different heaps) the memory was allocated on.


--
Transmitido en Martian en SAP



-- modified at 17:29 Wednesday 18th October, 2006
GeneralRe: Urgent : Regarding the delete w.r.t COM Pin
janadhana23-Oct-06 1:38
janadhana23-Oct-06 1:38 
AnswerRe: Urgent : Regarding the delete w.r.t COM Pin
User 21559716-Oct-06 23:10
User 21559716-Oct-06 23:10 
GeneralRe: Urgent : Regarding the delete w.r.t COM Pin
janadhana23-Oct-06 1:40
janadhana23-Oct-06 1:40 
QuestionConverting exe to com Pin
ashokvishnu16-Oct-06 17:59
ashokvishnu16-Oct-06 17:59 
AnswerRe: Converting exe to com Pin
Mike Dimmick17-Oct-06 0:09
Mike Dimmick17-Oct-06 0:09 
GeneralRe: Converting exe to com Pin
ashokvishnu17-Oct-06 0:58
ashokvishnu17-Oct-06 0:58 
GeneralRe: Converting exe to com Pin
mpk197917-Oct-06 21:22
mpk197917-Oct-06 21:22 
GeneralRe: Converting exe to com Pin
Mike Dimmick18-Oct-06 0:42
Mike Dimmick18-Oct-06 0:42 
GeneralRe: Converting exe to com Pin
mpk197918-Oct-06 20:17
mpk197918-Oct-06 20:17 
GeneralRe: Converting exe to com Pin
Mike Dimmick18-Oct-06 1:02
Mike Dimmick18-Oct-06 1:02 
GeneralRe: Converting exe to com Pin
ashokvishnu18-Oct-06 18:06
ashokvishnu18-Oct-06 18:06 
GeneralRe: Converting exe to com Pin
mpk197922-Oct-06 18:55
mpk197922-Oct-06 18:55 
Questionaccess controls Pin
vtalau16-Oct-06 17:51
vtalau16-Oct-06 17:51 
QuestionHandling events from COM without TypeLIB in C#.NET Pin
Aleksey.Andreev16-Oct-06 4:52
Aleksey.Andreev16-Oct-06 4:52 
GeneralRe: Handling events from COM without TypeLIB in C#.NET Pin
prasad_som16-Oct-06 21:23
prasad_som16-Oct-06 21:23 
QuestionVC++ app crashes unusally when COM functions called Pin
dharani16-Oct-06 3:16
dharani16-Oct-06 3:16 
QuestionRe: VC++ app crashes unusally when COM functions called Pin
prasad_som16-Oct-06 4:48
prasad_som16-Oct-06 4:48 

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.