C++ memset to C# AllocHGlobal ( ? )
Posted on 2004-03-23
I've got this code that exists as such ..
memset(&JobInfo, 0, sizeof(JobInfo));
I believe this declares the reference to JobInfo ( which is a type of TOCRJOBINFO structure, defined below ) to the right memory size. I need to figure out the equivalent to this in C#.
typedef struct tagTOCRJobInfo
My C# Declaration of the TOCRJobInfo structure is as follows...
public struct TOCRJobInfo
public int StructId;
public int JobType;
public String InputFile;
public int PageNo;
public TOCRProcessOptions ProcessOptions;