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.

Code:
#include <litec.h>
#include <com.h>

function run()
{
	
}



This gives:
Code:
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:

Code:
#include <default.c>
#include <litec.h>
#include <com.h>

function run()
{
	
}



This unfortunately gives:
Code:
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:

Code:
#include <litec.h>
#include <com.h>

int run()
{
	
}



Gives:
Code:
Test8 compiling.......
Error 061: Compiled with different version!



How to fix this?

Last edited by trenki2; 01/25/17 18:38.