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

Managed C++/CLI

 
GeneralRe: how to link .lib file to my project (managed C++) in .Net Pin
mikanu10-Oct-05 5:50
mikanu10-Oct-05 5:50 
GeneralRe: how to link .lib file to my project (managed C++) in .Net Pin
vic1200011-Oct-05 19:01
vic1200011-Oct-05 19:01 
QuestionNeed help Base36 encoding large number (~45 digits) Pin
Suresh C T6-Oct-05 7:21
sussSuresh C T6-Oct-05 7:21 
AnswerRe: Need help Base36 encoding large number (~45 digits) Pin
Anonymous6-Oct-05 21:34
Anonymous6-Oct-05 21:34 
GeneralRe: Need help Base36 encoding large number (~45 digits) Pin
Anonymous9-Oct-05 21:36
Anonymous9-Oct-05 21:36 
QuestionConvert String to LPSTR ? Pin
Phernando6-Oct-05 6:53
Phernando6-Oct-05 6:53 
AnswerRe: Convert String to LPSTR ? Pin
Sheng Jiang 蒋晟7-Oct-05 12:56
Sheng Jiang 蒋晟7-Oct-05 12:56 
QuestionWindows Message disappearing Pin
mav.northwind5-Oct-05 22:28
mav.northwind5-Oct-05 22:28 
Hi Folks!

For an interface to another application I had to develop a C++ dll implementing a given interface. For testing purposes I had a VB6 emulator to try out my dll.
Everything worked well, but now that the dll is loaded into the real program, a windows message I send to fire an event from a different thread gets lost (i.e. is not received by the window I send it to).

The dll is a mixed mode dll. I'm registering a managed event handler for an event of a managed remoting server and this event handler is called without problems.
In order to signal the event back to the host program I have to transfer it to the original thread the dll was loaded in.
In order to achieve this I create an MFC window in the original thread and send a registered windows message to this window from the event handler.

This does work flawlessly in the test program, but when the dll is loaded into the real host application, the window doesn't receive the message.

Has anyone experienced something similar or can give me any hints on why this could be?

Thanks in advance,

mav
AnswerRe: Windows Message disappearing Pin
mav.northwind6-Oct-05 5:26
mav.northwind6-Oct-05 5:26 
QuestionWindows Services Pin
Laji594-Oct-05 18:02
Laji594-Oct-05 18:02 
AnswerRe: Windows Services Pin
sunit58-Oct-05 2:15
sunit58-Oct-05 2:15 
GeneralRe: Windows Services Pin
Laji598-Oct-05 20:57
Laji598-Oct-05 20:57 
AnswerRe: Windows Services Pin
sunit58-Oct-05 2:16
sunit58-Oct-05 2:16 
AnswerRe: Windows Services Pin
Nemanja Trifunovic8-Oct-05 5:04
Nemanja Trifunovic8-Oct-05 5:04 
GeneralRe: Windows Services Pin
Laji598-Oct-05 21:47
Laji598-Oct-05 21:47 
GeneralRe: Windows Services Pin
Nemanja Trifunovic9-Oct-05 3:46
Nemanja Trifunovic9-Oct-05 3:46 
QuestionAnyway to force vs.net to compile uncalled header files? Pin
FocusedWolf4-Oct-05 16:58
FocusedWolf4-Oct-05 16:58 
AnswerRe: Anyway to force vs.net to compile uncalled header files? Pin
Anonymous6-Oct-05 21:31
Anonymous6-Oct-05 21:31 
QuestionReading all lines of a file Pin
Alex Cutovoi4-Oct-05 8:05
Alex Cutovoi4-Oct-05 8:05 
AnswerRe: Reading all lines of a file Pin
gecool5-Oct-05 21:13
gecool5-Oct-05 21:13 
GeneralRe: Reading all lines of a file Pin
Anonymous6-Oct-05 21:28
Anonymous6-Oct-05 21:28 
GeneralRe: Reading all lines of a file Pin
Anonymous9-Oct-05 20:08
Anonymous9-Oct-05 20:08 
QuestionClient/server .... please HELP Pin
Member 23297074-Oct-05 7:21
Member 23297074-Oct-05 7:21 
AnswerRe: Client/server .... please HELP Pin
Member 19471947-Oct-05 10:53
Member 19471947-Oct-05 10:53 
QuestionC++ Problems... Pin
AndrewVos3-Oct-05 16:33
AndrewVos3-Oct-05 16:33 

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.