Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Searching PDF with C# Pin
Craig Suthers2-Mar-04 20:17
Craig Suthers2-Mar-04 20:17 
GeneralRe: Searching PDF with C# Pin
Heath Stewart3-Mar-04 3:40
protectorHeath Stewart3-Mar-04 3:40 
GeneralRe: Searching PDF with C# Pin
Philip Fitzsimons3-Mar-04 5:29
Philip Fitzsimons3-Mar-04 5:29 
QuestionHow marshall byte* ? Pin
Alexsander Antunes2-Mar-04 14:18
professionalAlexsander Antunes2-Mar-04 14:18 
AnswerRe: How marshall byte* ? Pin
Matthew Hazlett2-Mar-04 16:25
Matthew Hazlett2-Mar-04 16:25 
GeneralRe: How marshall byte* ? Pin
Alexsander Antunes3-Mar-04 0:59
professionalAlexsander Antunes3-Mar-04 0:59 
GeneralRe: How marshall byte* ? Pin
Matthew Hazlett3-Mar-04 3:18
Matthew Hazlett3-Mar-04 3:18 
GeneralRe: How marshall byte* ? Pin
Alexsander Antunes3-Mar-04 3:47
professionalAlexsander Antunes3-Mar-04 3:47 
OK!
<br />
[DllImport("fplib.dll", EntryPoint="FPMGetImage", <br />
SetLastError=true, <br />
CharSet=CharSet.Ansi, <br />
ExactSpelling=true,<br />
CallingConvention=CallingConvention.StdCall)]<br />
public static extern int FPMGetImage([In, Out] byte[] buffer);<br />


This code run perfectly! THANKS FOR ALL!!

Matthew Hazlett wrote:
I asked somthing like this the other day, heres what Heath Stewert told me:

>Instead of passing byte* as the parameter, declare your parameter using either ref or out
>for value types (like a Byte). This is the most common method.
>
>For instance, if the C functions is declared like so:void SomeFunc(byte* b);
>...declare your method like so:[DllImport("...")]private static extern void SomeFunc(ref byte b);

>Microsoft MVP, Visual C#
>My Articles

Matthew Hazlett
Windows 2000/2003 MCSE
Never got an MCSD, go figure...




Alexsander "Axia" Antunes
QuestionDynamic Casting? Pin
Kelemvor2k2-Mar-04 13:07
sussKelemvor2k2-Mar-04 13:07 
AnswerRe: Dynamic Casting? Pin
I#3-Mar-04 1:49
I#3-Mar-04 1:49 
AnswerRe: Dynamic Casting? Pin
HAHAHA_NEXT3-Mar-04 4:19
HAHAHA_NEXT3-Mar-04 4:19 
GeneralRe: Dynamic Casting? Pin
leppie3-Mar-04 6:10
leppie3-Mar-04 6:10 
GeneralRe: Dynamic Casting? Pin
HAHAHA_NEXT3-Mar-04 6:15
HAHAHA_NEXT3-Mar-04 6:15 
QuestionIs there a difference? Pin
sps-itsec462-Mar-04 11:48
sps-itsec462-Mar-04 11:48 
AnswerRe: Is there a difference? Pin
RNEELY2-Mar-04 11:58
RNEELY2-Mar-04 11:58 
AnswerRe: Is there a difference? Pin
Heath Stewart2-Mar-04 12:26
protectorHeath Stewart2-Mar-04 12:26 
AnswerRe: Is there a difference? Pin
Colin Angus Mackay2-Mar-04 12:28
Colin Angus Mackay2-Mar-04 12:28 
GeneralRe: Is there a difference? Pin
boogs2-Mar-04 13:08
boogs2-Mar-04 13:08 
GeneralRe: Is there a difference? Pin
boogs2-Mar-04 13:13
boogs2-Mar-04 13:13 
GeneralRe: Is there a difference? Pin
Dave Kreskowiak2-Mar-04 13:33
mveDave Kreskowiak2-Mar-04 13:33 
GeneralRe: Is there a difference? Pin
Colin Angus Mackay2-Mar-04 13:38
Colin Angus Mackay2-Mar-04 13:38 
AnswerRe: Is there a difference? Pin
Meysam Mahfouzi2-Mar-04 17:55
Meysam Mahfouzi2-Mar-04 17:55 
GeneralRe: Is there a difference? Pin
sps-itsec463-Mar-04 8:48
sps-itsec463-Mar-04 8:48 
GeneralRe: Is there a difference? Pin
Meysam Mahfouzi3-Mar-04 17:27
Meysam Mahfouzi3-Mar-04 17:27 
GeneralHELP with Code Access Security! Pin
Throckmorton2-Mar-04 11:10
Throckmorton2-Mar-04 11:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.