By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

API Compatible pointer to a memory stream ...

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Christopher Kurtis Koeber" <c_******@myrealbox.com> 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/>
Nov 21 '05 #2

P: n/a
"Christopher Kurtis Koeber" <c_******@myrealbox.com> 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/>
Nov 21 '05 #3

P: n/a
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]" <hi***************@gmx.at> wrote in message
news:O1**************@TK2MSFTNGP12.phx.gbl...
"Christopher Kurtis Koeber" <c_******@myrealbox.com> 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/>

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.