Howto: C/C++ DCOM-Remote access from your own native Win32/Win64 Program

This section contains user-submitted tutorials.
Post Reply
User avatar
Dravion
Senior user
Senior user
Posts: 1411
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Howto: C/C++ DCOM-Remote access from your own native Win32/Win64 Program

Post by Dravion » 2017-07-24 20:18

Accessing hMaillServer's DCOM-OutOfProc server from native code is by far the most complex scenario, but to save
time and headache, here is a working example how to do it the native way (not the only possible way, but a good
starting point).

Notice: We need the same prequesites as for the VB.NET and C# Sharp Tutorials, so you should study the C#
and linked Guides to fullfill the needed requirements: viewtopic.php?f=21&t=31507

If everything works as expected, you should see a new Console Window which looks like this
c++_native_hms.jpg
A working, native C/C++ Visual Studio 2017 Project with compiled Exe is avaiable as attachement.
The compiled Exe requires the IP adress: 192.168.203.89 to find your remote hMailServer, but you can
change and replace it with your ip or hostname.
Attachments
ConsoleDCOM.7z
(56.55 KiB) Downloaded 149 times

Post Reply