Files
2026-05-06 07:47:36 +02:00
..
2026-05-06 07:47:36 +02:00
2026-05-06 07:47:36 +02:00
2026-05-06 07:47:36 +02:00

drpfTest - Sample code for calling the DinkeyRemote Module in C
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This project is written in Visual Studio 2008 but will work in more recent
versions of Visual Studio (they will upgrade the Project to the latest version).

The main source files in the project are:

drpf.h - the source file contains declarations of our API.
                  
drpftest.c - this is the sample code giving an example on how you can call our API.
             It contains 2 functions. Just use which ever functions are most appropriate
             and customise in your own way. 

Note that the source paths of this project are structured to minimise files. If you
want to move this project the references to these files will probably be no longer valid.

The solutions have been modified to link in the correct library file (DinkeyRemote32.lib,
DinkeyRemote64.lib) depending on whether the output is 32-bit or 64-bit. They have also
been modified to assume Unicode characters are not the default (this sample uses ascii
characters because that is what the Dinkey dongle SDK requires).

Note - you will not be able to debug your program after the DinkeyRemote Module has been
called. Our strong anti-debug code will cause the debugger to throw an exception.
There are no debug modules for DinkeyRemote so you will have to find other ways of
debugging your code (for example taking out the call altogether).

Note - If you are using Visual Studio 2012 or higher then you may get the linker error
"LNK2026: module unsafe for SAFESEH image". To stop this please turn off SAFESEH by
going to your project properties > Linker > Advanced and setting
"Image Has Safe Exception Handlers" to "No".