pbyte???

Announcements and discussion for PInvoke

Moderators: Luke Jefferson, Robert

pbyte???

Postby marsantej » Fri Dec 07, 2007 12:24 pm

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.
marsantej
 
Posts: 1
Joined: Fri Dec 07, 2007 12:16 pm

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests