PC Review


Reply
Thread Tools Rate Thread

API Compatible pointer to a memory stream ...

 
 
Christopher Kurtis Koeber
Guest
Posts: n/a
 
      14th Nov 2004
Dear All,
I would like to pass a pointer to a C/C++ DLL to a System.IO.Stream. I
saw this information somewhere but I didn't bookmark it. Any help would be
appreciated. Thank you for your time and consideration in this matter.
Sincerely,
Christopher Koeber


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th Nov 2004
"Christopher Kurtis Koeber" <(E-Mail Removed)> schrieb;
> I would like to pass a pointer to a C/C++ DLL to
> a System.IO.Stream. I saw this information somewhere but
> I didn't bookmark it.


What exactly does the C/C++ DLL expect? Can you post the function's
signature?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 
Reply With Quote
 
Christopher Kurtis Koeber
Guest
Posts: n/a
 
      14th Nov 2004
Here is the function from the FreeImage Library. This is a c++ DLL.

DLL_API Long *DLL_CALLCONV FreeImage_LoadFromMemory(FREE_IMAGE_FORMAT fif,
Long *stream, int flags FI_DEFAULT(0));

Thank you very much for your help!

Christopher Koeber

"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Christopher Kurtis Koeber" <(E-Mail Removed)> schrieb;
>> I would like to pass a pointer to a C/C++ DLL to
>> a System.IO.Stream. I saw this information somewhere but
>> I didn't bookmark it.

>
> What exactly does the C/C++ DLL expect? Can you post the function's
> signature?
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create word doc from a memory stream NO file stream used Nitin Mahajan Microsoft C# .NET 5 29th Jul 2008 03:49 PM
how to get a pointer to a Stream? Assido Microsoft VB .NET 4 31st May 2008 11:38 PM
how to get a pointer to a stream? Assido Microsoft C# .NET 1 31st May 2008 11:00 AM
Stream To Memory Stream Error rh1200la@gmail.com Microsoft Dot NET 6 25th Oct 2006 10:03 PM
MEmory stream, file stream Pums Microsoft C# .NET 4 11th Dec 2003 11:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:10 PM.