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

COM

 
AnswerRe: .olb and .tlb Pin
Rory Solley10-Jan-07 22:57
Rory Solley10-Jan-07 22:57 
QuestionEvent Calendar Pin
unwind_now5-Jan-07 4:06
unwind_now5-Jan-07 4:06 
QuestionCompile error says: "file not found: ..\lib\ScriptHost.tlb" Pin
nsurendran4-Jan-07 19:36
nsurendran4-Jan-07 19:36 
AnswerRe: Compile error says: "file not found: ..\lib\ScriptHost.tlb" Pin
User 2155975-Jan-07 0:26
User 2155975-Jan-07 0:26 
AnswerRe: Compile error says: "file not found: ..\lib\ScriptHost.tlb" Pin
Garth J Lancaster7-Jan-07 15:46
professionalGarth J Lancaster7-Jan-07 15:46 
QuestionGive me a simple MS COM object which raises events Pin
JoeRip4-Jan-07 17:23
JoeRip4-Jan-07 17:23 
AnswerRe: Give me a simple MS COM object which raises events Pin
User 2155975-Jan-07 0:20
User 2155975-Jan-07 0:20 
GeneralRe: Give me a simple MS COM object which raises events Pin
JoeRip5-Jan-07 0:45
JoeRip5-Jan-07 0:45 
That would have worked nicely, thanks.

However, I was able to fix my bug (you can see the thread over on C# if you are interested). Turns out that my event handlers for the COM object were not executing on the same thread as my form, and I was getting odd UI behavior as a result.

I needed to check .InvokeRequired, and call Invoke() if necessary. I fixed this, and every last little bit of the bug just disappeared!

I still don't know why .NET wasn't throwing "wrong thread" exceptions, but that was definitely the problem.

You can see the thread and a very nice explanation of the problem here:

http://www.codeproject.com/script/comments/forums.asp?forumid=1649&fr=26


GeneralRe: Give me a simple MS COM object which raises events Pin
User 2155975-Jan-07 3:36
User 2155975-Jan-07 3:36 
GeneralRe: Give me a simple MS COM object which raises events Pin
Mike Dimmick5-Jan-07 5:23
Mike Dimmick5-Jan-07 5:23 
GeneralRe: Give me a simple MS COM object which raises events Pin
JoeRip5-Jan-07 11:03
JoeRip5-Jan-07 11:03 
QuestionSinking HTMLWindowEvents2::OnUnload Pin
A_L4-Jan-07 15:34
A_L4-Jan-07 15:34 
Questionmatlab help ??? please Pin
ersincakir4-Jan-07 15:24
ersincakir4-Jan-07 15:24 
QuestionC# and COM - exporting enum-s Pin
Vitaly Tomilov4-Jan-07 0:42
Vitaly Tomilov4-Jan-07 0:42 
AnswerRe: C# and COM - exporting enum-s Pin
Pete O'Hanlon4-Jan-07 2:53
mvePete O'Hanlon4-Jan-07 2:53 
GeneralRe: C# and COM - exporting enum-s Pin
Vitaly Tomilov4-Jan-07 3:11
Vitaly Tomilov4-Jan-07 3:11 
GeneralRe: C# and COM - exporting enum-s Pin
Pete O'Hanlon5-Jan-07 3:30
mvePete O'Hanlon5-Jan-07 3:30 
Questionattaching com component to window (CWnd) Pin
praveen kumar agarwal3-Jan-07 20:38
praveen kumar agarwal3-Jan-07 20:38 
AnswerRe: attaching com component to window (CWnd) Pin
Aamir Butt3-Jan-07 20:45
Aamir Butt3-Jan-07 20:45 
Questionsend data with com port Pin
omidcomputer2-Jan-07 20:40
omidcomputer2-Jan-07 20:40 
AnswerRe: send data with com port Pin
CPallini2-Jan-07 21:12
mveCPallini2-Jan-07 21:12 
GeneralRe: send data with com port Pin
omidcomputer9-Jan-07 19:17
omidcomputer9-Jan-07 19:17 
GeneralRe: send data with com port Pin
CPallini9-Jan-07 20:42
mveCPallini9-Jan-07 20:42 
QuestionMy DLL is a normal API without any COM interface Pin
stellvia2-Jan-07 19:49
stellvia2-Jan-07 19:49 
AnswerRe: My DLL is a normal API without any COM interface Pin
CPallini2-Jan-07 21:14
mveCPallini2-Jan-07 21:14 

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.