I wanted to try out COM interop and unfortunately ran into some problems/bugs when including the needed headers. This is with my Zorro S 1.50.6.
#include <litec.h>
#include <com.h>
function run()
{
}
This gives:
Error in 'line 4:
'function' undeclared identifier
< function run()
>.
Since when uses any headers one has to manually include default.c, so I did that too:
#include <default.c>
#include <litec.h>
#include <com.h>
function run()
{
}
This unfortunately gives:
Error in 'windows.h' line 6610:
syntax error
< VOID WINAPI FillMemory(long Destination,DWORD Length,char Fill);
>.
I tried changing function run() to int run(). Then I also got a strange error message:
#include <litec.h>
#include <com.h>
int run()
{
}
Gives:
Test8 compiling.......
Error 061: Compiled with different version!
How to fix this?