Announcements and discussion for PInvoke


Postby marsantej » Fri Dec 07, 2007 11:24 am

Hello. I'm trying to use a .dll (c++ written) which would help me in my job of treating mpeg2 files, but I've got some problems when I try to use it.

My problems resides in this function:

DLLExport(pbyte) GetMPEG2Frame();

I'm not sure how to define it in my c# code. I've tried many things:

public static extern string GetMPEG2Frame();
public static extern StringBuilder GetMPEG2Frame();
public static extern IntPtr GetMPEG2Frame();

but I always get an AccessViolationException.

Could somebody help me????

Thank you very much and sorry for my bad English.
Posts: 1
Joined: Fri Dec 07, 2007 11:16 am

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests