The error's are like this:
Code: Select all
IO.tlb stray '\255' in program
http://support.microsoft.com/kb/828736
Here's my code I'm compiling into a type library:
Code: Select all
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace IO
{
public class ReaderWriter : IReaderWriter
{
public int GetInt32(string path, int offset)
{
BinaryReader br = new BinaryReader(new FileStream(path, FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite));
if ((br.BaseStream.Length - 4) >= offset)
{
br.BaseStream.Position = offset;
int ret = br.ReadInt32();
br.Close();
return ret;
}
return -1;
}
};
public interface IReaderWriter
{
int GetInt32(string path, int offset);
};
}