Red Gate forums :: View topic - pbyte???
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

pbyte???

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
marsantej



Joined: 07 Dec 2007
Posts: 1

PostPosted: Fri Dec 07, 2007 12:24 pm    Post subject: pbyte??? Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group