473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

API Compatible pointer to a memory stream ...

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
3 2248
"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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
1
by: Bill | last post by:
Can someone tell me how to get the below code working please. System::Byte * enced = new byte; ///.. copy data in to array. (omitted)... //Now pass to memory stream constructor MemoryStream *...
0
by: Christopher Kurtis Koeber | last post by:
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...
5
by: max | last post by:
Dear all, I did the following analysis to conclude that the following pointer types are not compatible. Please let me know If my analysis and interpretation of the C standard are correct: ...
3
by: Rennie deGraaf | last post by:
Let's say that I want to read a method pointer in from a stream. (I'm not saying that this is a good design idea, or that I actually have a reason to do this.) If I wanted to read in a function...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
7
by: Maciej Oszutowski | last post by:
Hi, I'm going to port my PE manipulation library (written in C) to managed c++ class library. I would like to have opportunity to read content not only from files, but also from memory, for...
1
by: =?Utf-8?B?QXNzaWRv?= | last post by:
Hello @all, can someone tell me how to get a pointer to a stream? I need to pass the pointeraddress to an API-Functioncall. Thanks for any help!
41
by: simonl | last post by:
Hi, I've been given the job of sorting out a crash in our product for which we have the crash information and an avi of the event (which can't possibly match but more of that later...) (btw this...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.