How to use Visual Studio Code Wizards To add Simple ATL COM Object to Project to demonstrate DCOM features

  • Thread starter Thread starter siegfried_
  • Start date Start date
S

siegfried_

Guest
I am still struggling with this same question (see title) I asked here: Same question I posted in 2017

More specifically:

How can I use Visual Studio to generate and old fashioned ATL COM object in an executable that can be invoked from a simple command line client that will return the date and time and computer name? (I figure I can run the client on a VM and see it return a different computer name to prove that the IPC feature is working properly).

I remember complaining (in 2017 perhaps?) on some MSDN forum that the ATL COM wizards were broken and someone confirmed this and encouraged me to submit a bug and I did. I can no longer find those posts.

I found some documentation here and it does not seem to match what I am seeing in Visual Studio Community Edition 16.5

Adding an ATL Simple Object

The directions say to click on Add Class (I do) and in the Templates pane (there is no such pane) click ATL Simple Object. There is no such option.

I used to do this frequently in the 5 day seminars I taught back in 1999 when ATL was brand new (and buggy) and now I am completely flustered. I just updated to Visual Studio 16.5.2 and that did not help.

1571168.png



There is also a class wizard I can invoke to add methods, but we need to add an ATL object first for these new methods.


Thanks

Siegfried




siegfried heintze

Continue reading...
 
Back
Top