Click here to Skip to main content
15,900,254 members
Home / Discussions / COM
   

COM

 
GeneralRe: using matlab code in vb environment Pin
Vibhash Jha5-May-06 4:57
Vibhash Jha5-May-06 4:57 
GeneralRe: using matlab code in vb environment Pin
freesun5-May-06 6:29
freesun5-May-06 6:29 
QuestionWorking with the Shell and an object in a virtual folder Pin
DeepT25-Apr-06 8:23
DeepT25-Apr-06 8:23 
QuestionCOM interface as a wrapper for MFC SDI Pin
kirannarik25-Apr-06 2:55
kirannarik25-Apr-06 2:55 
QuestionCOM Events Pin
HakunaMatada24-Apr-06 19:46
HakunaMatada24-Apr-06 19:46 
AnswerRe: COM Events Pin
Roger Stoltz24-Apr-06 22:24
Roger Stoltz24-Apr-06 22:24 
GeneralRe: COM Events Pin
HakunaMatada25-Apr-06 0:26
HakunaMatada25-Apr-06 0:26 
AnswerRe: COM Events Pin
Roger Stoltz25-Apr-06 1:45
Roger Stoltz25-Apr-06 1:45 
As I stated in my previous post I would have the person who asked the original question to elaborate on the subject since as I understood the problem there is a more intuitive solution with preprocessor directives.
If the preprocessor directive solution is, for some strange reason, not applicable I would have used messages since the COM object already is, or could be developed to be, multithreaded.
In the original question a second problem is described briefly about how he/she was unable to use a message based solution. I don't know whether this is due to incompetence, poor design or something else since there's simply not enough information in the post.
Perhaps a solution like this[^] would do the trick.


LazyKancha wrote:
So how in your would you exactly solve the problem?


As you might have guessed by now I cannot suggest a solution to the problem since I don't have enough information and since you are not the original poster I cannot get more information. What I meant was the suggested solution to be somewhat far-fetched since there is an obvious solution that is simpler and if that one isn't applicable there could be more to it than creating a abstract base class.
It was also a hint to you that there could be more to it than meets the eye and if you're having a problem you should post a question regarding your own problem. There is a possibility that the person that replied to the original post has misunderstood the question. There's also a possibility that you have misunderstood the question and hence cannot understand the answer. Even I may have misunderstood the original question and that's why I think it's important to be able to ask questions back to the person that sent the originial question.

However, I suspect that I would have tried to make the COM object class declaration visible to the dialog class since it would the simplest thing to do. But this requires some trade-offs such as the call has to be made from the same thread that created the COM server, i.e. it cannot be called from a worker thread inside the dialog class.

Hope this helps
--
Roger


It's suppose to be hard, otherwise anybody could do it!
GeneralRe: COM Events Pin
HakunaMatada25-Apr-06 2:05
HakunaMatada25-Apr-06 2:05 
AnswerRe: COM Events Pin
Roger Stoltz25-Apr-06 3:20
Roger Stoltz25-Apr-06 3:20 
GeneralRe: COM Events Pin
HakunaMatada25-Apr-06 3:27
HakunaMatada25-Apr-06 3:27 
QuestionDouble-click on lnk file Pin
Samsung24-Apr-06 9:25
Samsung24-Apr-06 9:25 
Questionllo,Double-click on lnk file Pin
Samsung24-Apr-06 9:20
Samsung24-Apr-06 9:20 
QuestionCOM's Event! Pin
huangdingjun23-Apr-06 3:34
huangdingjun23-Apr-06 3:34 
AnswerRe: COM's Event! Pin
Stephen Hewitt23-Apr-06 13:39
Stephen Hewitt23-Apr-06 13:39 
GeneralRe: COM's Event! Pin
hdj831123-Apr-06 15:12
hdj831123-Apr-06 15:12 
GeneralRe: COM's Event! Pin
Stephen Hewitt23-Apr-06 16:08
Stephen Hewitt23-Apr-06 16:08 
GeneralRe: COM's Event! Pin
hdj831123-Apr-06 19:21
hdj831123-Apr-06 19:21 
Questionproblem with com events Pin
kk_mfc21-Apr-06 19:27
kk_mfc21-Apr-06 19:27 
AnswerRe: problem with com events Pin
Lim Bio Liong23-Apr-06 2:00
Lim Bio Liong23-Apr-06 2:00 
QuestionExceptions in CoUninitialize Pin
softwaremonkey21-Apr-06 0:05
softwaremonkey21-Apr-06 0:05 
AnswerRe: Exceptions in CoUninitialize Pin
Mike Dimmick21-Apr-06 0:40
Mike Dimmick21-Apr-06 0:40 
GeneralRe: Exceptions in CoUninitialize Pin
softwaremonkey21-Apr-06 2:04
softwaremonkey21-Apr-06 2:04 
AnswerRe: Exceptions in CoUninitialize Pin
User 21559721-Apr-06 0:47
User 21559721-Apr-06 0:47 
GeneralRe: Exceptions in CoUninitialize Pin
softwaremonkey21-Apr-06 1:59
softwaremonkey21-Apr-06 1:59 

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.