Click here to Skip to main content
15,889,867 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionQueryInterface in managed code Pin
lafleon26-Sep-06 15:16
lafleon26-Sep-06 15:16 
AnswerRe: QueryInterface in managed code Pin
User 58385226-Sep-06 16:38
User 58385226-Sep-06 16:38 
GeneralRe: QueryInterface in managed code Pin
lafleon26-Sep-06 17:43
lafleon26-Sep-06 17:43 
GeneralRe: QueryInterface in managed code Pin
User 58385226-Sep-06 17:48
User 58385226-Sep-06 17:48 
QuestionString.Split not functioning correctly? Pin
jmlsteele26-Sep-06 9:14
jmlsteele26-Sep-06 9:14 
AnswerRe: String.Split not functioning correctly? Pin
led mike26-Sep-06 10:11
led mike26-Sep-06 10:11 
GeneralRe: String.Split not functioning correctly? Pin
jmlsteele26-Sep-06 12:05
jmlsteele26-Sep-06 12:05 
QuestionMarshal COM interface in C++ .NET multithreaded application Pin
lafleon26-Sep-06 9:00
lafleon26-Sep-06 9:00 
Hello,

I need to use COM server in VC++ .NET 2003 managed application. Tlbimp.exe was used to generate runtime callable wrapper. After that I was able to use this com server in single threaded VC++.NET managed code. What do I need to do to use it in secondary thread? How to pass a pointer to COM interface in to the second thread?
In regular unmanaged code I need to have IStream* and call CoMarshalInterThreadInterfaceInStream(…) in the main thread and CoGetInterfaceAndReleaseStream(…) in the second thread.
What do I need to do to marshal wrapper for this COM interface from one thread to another in managed C++ before this code:

pThreadDelegate = new ThreadStart(0, &ThreadWork::DoSomething);
pThread = new Thread(pThreadDelegate);
pThread->Start();

and inside method DoSomething() of ThreadWork class?


Please help!!!!!!!!!!!!

Regards,
Leonid

QuestionRecord File Pin
Rahul.RK25-Sep-06 21:28
Rahul.RK25-Sep-06 21:28 
QuestionDatabase Import/Export Pin
sbsrazor25-Sep-06 15:13
sbsrazor25-Sep-06 15:13 
QuestionDatabase connectivity Pin
amaneet24-Sep-06 22:46
amaneet24-Sep-06 22:46 
AnswerRe: Database connectivity Pin
Christian Graus24-Sep-06 23:36
protectorChristian Graus24-Sep-06 23:36 
QuestionRe: Database connectivity in CLI Pin
amaneet25-Sep-06 6:20
amaneet25-Sep-06 6:20 
AnswerRe: Database connectivity in CLI Pin
Christian Graus25-Sep-06 10:17
protectorChristian Graus25-Sep-06 10:17 
Questiontemplates Pin
User 58385224-Sep-06 21:28
User 58385224-Sep-06 21:28 
AnswerRe: templates Pin
led mike25-Sep-06 5:05
led mike25-Sep-06 5:05 
GeneralRe: templates Pin
User 58385225-Sep-06 12:57
User 58385225-Sep-06 12:57 
GeneralRe: templates WTF? Pin
led mike26-Sep-06 8:55
led mike26-Sep-06 8:55 
GeneralRe: templates WTF? Pin
User 58385226-Sep-06 12:21
User 58385226-Sep-06 12:21 
GeneralRe: templates WTF? Pin
led mike27-Sep-06 8:06
led mike27-Sep-06 8:06 
GeneralRe: templates WTF? Pin
User 58385227-Sep-06 12:51
User 58385227-Sep-06 12:51 
QuestionHow CreateDIBSection To Work??? Pin
javad_200524-Sep-06 9:36
javad_200524-Sep-06 9:36 
AnswerRe: How CreateDIBSection To Work??? Pin
Christian Graus24-Sep-06 11:23
protectorChristian Graus24-Sep-06 11:23 
QuestionHelp about C++/CLI Pin
kcynic23-Sep-06 16:03
kcynic23-Sep-06 16:03 
AnswerRe: Help about C++/CLI Pin
Judah Gabriel Himango23-Sep-06 16:54
sponsorJudah Gabriel Himango23-Sep-06 16:54 

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.