After much downloading, installing, repairing, reinstalling, rerepairing, and manual configuration...I have the exact snippet that I posted above working in a project now.
MultiSync not only works fine, but it is seamless to integrate into the project directory, too. Very impressive, Benjamin!
I did change the default setting for Character Set...the template does not set it, so that's a big problem at the start. I set it to Multi-Byte Character Set in the project settings. MultiSync does not have any debug libraries, but...that is not a limitation, imo.
Another thing that the templates do that is problematic is that they create too many levels of project directory, which can be confusing, too. That is likely related to the structure of a solution in VS, and I think I can make the template not do that...I will try it and let you know.
To use MultiSync, download the rar file, and extract it. If you are using it with DBPro and GDK, I think you should extract it where it recommends...but, to use it in GDK...you should copy the files from the folder Other Languages into the project directory...I mean the second level, where your source files are.
Study this if that doesn't make sense to you:
Another (!) thing that the wizard does that is not helpful is generate this line, which starts the whole thing off on a bad note:
#include "DarkGDK.h"
Change that to this:
#include <DarkGDK.h>
Then add this:
#include "multisync.h"
The reason for that is this...DarkGDK.h starts including the include files for GDK, which all use the literal include. The first line changes it to start looking in the include path for VS, which already has the proper location included, so the relative method works fine if you begin in the correct folder. It is a problem if you don't.
Next, you have put multisync.h into the project directory....the one that is the current directory when the file main.cpp gets compiled, so use the literal for that one. That include file already takes care of its library dependency, so you need to copy the .lib, .exp, and .dll files into the same directory. When you make a final exe, you would include your executable, and multisyncdll.dll. Remember that multisyncdll.dll must be in the same directory as the executable. If, for example, you decide to run your executable from the Release directory...you must also have multisyncdll.dll in that directory. To fix that permanently, you can copy it to one of the three directories that Windows will search for DLLs.
After getting that to work, the first problem that you will encounter with this code is your firewall. Answer the error message correctly by allowing MultiSync to access the TCP/IP stack so that it can do its job.
The next time you run the program, you should see this from your code: