Hi all, I'm attempting to write my first IJW wrapper for a old syle C
library that I have inherited. mylib.h contains the definitions of the
library calls used within myFunction(). Unfortunately, trying to run this
causes my compiler to throw back a huge number of syntax errors from the
header file. Is this normal? Should I attempt to re-write this header in ms
c++? Or is there something stupid that I am missing? The C library already
exists as a .dll with .lib and .exp so I'm not sure if I should be using
these!
Here is a code snippet, if its useful.
// This is the main DLL file
#include "stdafx.h"
#using <mscorlib.dll>
#include "mylib.h"
namespace myWrapper
{
public __gc class myClass
{
public long myFunction()
{
//Implementation
}
}
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.776 / Virus Database: 523 - Release Date: 13/10/2004