In C++ perhaps :)... Seems to be a language problem.
<rowali@yahoo.com> wrote in message
news:1151066280.599322.304480@b68g2000cwa.googlegroups.com
I get you,
when if through COM then its run with /embedding switch
But then the dialog is in method of some interface.
What should be the switch and code configuration when I want to
display dialog right away if I run atl exe itself.
If I run like that with dialog in interface method, it doesnt show up.
So in WinMain, you check whether or not /Embedding switch is present. If
it is, then you are run as a COM server and you do _not_ show the dialog
right away. If the switch is not there, then you are being run manually by
the user and you show the dialog immediately. I don't know how I can
possibly make it any clearer.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925