473,397 Members | 1,949 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,397 software developers and data experts.

Calling API with OLE_ HANDLE parameter

I have a file with binary data and a dll where I have to pass a
OLE_HANDLE which points to the data in the file.

How do I read the data (i presume as binaryreader) and then pass the
OLE_HANDLE to the function?

Thomas
Nov 20 '05 #1
2 3028
Can you be more specific about which API you are calling? It may be that
just loading the bytes from a FileStream will not work if the service you
are calling expects a handle of some sort.

In searching MSDN, I only find refernces to OLE_HANDLE where it refers to a
GDI handle, like an Icon or a Bitmap from COM-interop interraces such as
IPicture. (Usually, such such handles are passed between COM and .Net as
type System.IntPtr.)

John Rivard, Visual Basic Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: Thomas Schoch <to**********@swissonline.ch>
| Subject: Calling API with OLE_ HANDLE parameter
| Date: Mon, 15 Sep 2003 10:01:58 +0200
| Message-ID: <q8********************************@4ax.com>
| X-Newsreader: Forte Agent 1.9/32.560
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 217.11.39.245
| Lines: 1
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:136897
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| I have a file with binary data and a dll where I have to pass a
| OLE_HANDLE which points to the data in the file.
|
| How do I read the data (i presume as binaryreader) and then pass the
| OLE_HANDLE to the function?
|
| Thomas
|

Nov 20 '05 #2
John
It's a method of an ActiveX control that we are using. It reads it's
own data from the blob which has to be passed in a OLE_HANDLE.

Thomas

On Mon, 15 Sep 2003 19:45:49 GMT, jo****@microsot.com (John Rivard
[MSFT]) wrote:
Can you be more specific about which API you are calling? It may be that
just loading the bytes from a FileStream will not work if the service you
are calling expects a handle of some sort.

In searching MSDN, I only find refernces to OLE_HANDLE where it refers to a
GDI handle, like an Icon or a Bitmap from COM-interop interraces such as
IPicture. (Usually, such such handles are passed between COM and .Net as
type System.IntPtr.)

John Rivard, Visual Basic Team
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| From: Thomas Schoch <to**********@swissonline.ch>
| Subject: Calling API with OLE_ HANDLE parameter
| Date: Mon, 15 Sep 2003 10:01:58 +0200
| Message-ID: <q8********************************@4ax.com>
| X-Newsreader: Forte Agent 1.9/32.560
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 217.11.39.245
| Lines: 1
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP08
phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:136897
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| I have a file with binary data and a dll where I have to pass a
| OLE_HANDLE which points to the data in the file.
|
| How do I read the data (i presume as binaryreader) and then pass the
| OLE_HANDLE to the function?
|
| Thomas
|


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Muthu | last post by:
I've read calling conventions to be the order(reverse or forward) in which the parameters are being read & understood by compilers. For ex. the following function. int Add(int p1, int p2, int...
5
by: Francesco Bochicchio | last post by:
Hi all, anybody knows if there is a (standard, portable) way to dinamically build a list of parameters to call a C function? Something like va_start & co, but to be used on the calling side? ...
3
by: Webdiyer | last post by:
I want to integrate SecurID two-factor authentication system of the RSASecurity.inc into our asp.net application,but I get into trouble when trying to call the API functions of the ACE Agent,I got...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
0
by: Przemys³aw Bana¶ | last post by:
Hello! Can anyone help me with calling Novell function from dll? I think my main problem is in translating C variable types to C# types. Here is the code: using System; using...
2
by: Daniel Lidström | last post by:
I'm using a library called fyba. This library reads and writes files in a format called sosi. fyba uses the following code to determine if the calling process has own methods to handle errors,...
10
by: SQACPP | last post by:
Hi, I try to figure out how to use Callback procedure in a C++ form project The following code *work* perfectly on a console project #include "Windows.h" BOOL CALLBACK...
1
by: obiwanjacobi | last post by:
Hi there, This is probably a really dump question but I'm stuck and need a leg- up with this. I'm writing a C++ interop layer that couples a managed plugin to an unmanaged host (specifically...
6
by: Ole Nielsby | last post by:
VC has a __cdecl specifier which allows functions and methods to be called with varying parameter count. (I understand this is the default for functions in general but in VC, instances use...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.