473,792 Members | 3,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Handle pointers from delphi client to a vb.net dll

Hi all

I am using VB.NET for a Connector dll in Delphi client and some webservice .

can you tell me how to handle pointers in Vb.net which are passed by delphi
client as parameters in function

all the information is returned on the basis of reference or pointers in
functions. I can not change the client APIS so i have to handle then in
VB.net dll

Best Regards
Dinesh Kumar


Jun 15 '06 #1
5 2201
CT
Dinesh,

I am not sure if I understand you correctly, but VB .NET does not work with
pointers. Can you perhaps give an example of what it is you want to do? Are
you calling into the Delphi DLL from VB .NET and the information (pointers?)
is returned from one or more functions/methods in the Delphi DLL?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:uc******** ******@TK2MSFTN GP02.phx.gbl...
Hi all

I am using VB.NET for a Connector dll in Delphi client and some webservice
.

can you tell me how to handle pointers in Vb.net which are passed by
delphi
client as parameters in function

all the information is returned on the basis of reference or pointers in
functions. I can not change the client APIS so i have to handle then in
VB.net dll

Best Regards
Dinesh Kumar

Jun 15 '06 #2
Thanx for reply

The client is in delphi and i have to write dll in vb.net which will take
info from webservice.

The delphi client is passing info by ref and i have to handle that in vb.net

u know by ref parameters can be changed with in the function. So new value
get stored on the same ref parameters.and delphi client gets the value back

Rgds
Dinesh
"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:e8******** ********@TK2MSF TNGP03.phx.gbl. ..
Dinesh,

I am not sure if I understand you correctly, but VB .NET does not work
with pointers. Can you perhaps give an example of what it is you want to
do? Are you calling into the Delphi DLL from VB .NET and the information
(pointers?) is returned from one or more functions/methods in the Delphi
DLL?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work
but they try anyway, and which sometimes actually work, such as
recompiling everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:uc******** ******@TK2MSFTN GP02.phx.gbl...
Hi all

I am using VB.NET for a Connector dll in Delphi client and some
webservice .

can you tell me how to handle pointers in Vb.net which are passed by
delphi
client as parameters in function

all the information is returned on the basis of reference or pointers in
functions. I can not change the client APIS so i have to handle then in
VB.net dll

Best Regards
Dinesh Kumar


Jun 15 '06 #3
CT
Okay, just to make sure that I totally understand your scenario.

You have a Web service which should be called from your VB .NET DLL
assembly, when it is itself called from your Deplhi client, right? Does your
Delphi client "speak" .NET or COM?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:eZ******** ******@TK2MSFTN GP05.phx.gbl...
Thanx for reply

The client is in delphi and i have to write dll in vb.net which will take
info from webservice.

The delphi client is passing info by ref and i have to handle that in
vb.net

u know by ref parameters can be changed with in the function. So new value
get stored on the same ref parameters.and delphi client gets the value
back

Rgds
Dinesh
"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:e8******** ********@TK2MSF TNGP03.phx.gbl. ..
Dinesh,

I am not sure if I understand you correctly, but VB .NET does not work
with pointers. Can you perhaps give an example of what it is you want to
do? Are you calling into the Delphi DLL from VB .NET and the information
(pointers?) is returned from one or more functions/methods in the Delphi
DLL?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work
but they try anyway, and which sometimes actually work, such as
recompiling everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:uc******** ******@TK2MSFTN GP02.phx.gbl...
Hi all

I am using VB.NET for a Connector dll in Delphi client and some
webservice .

can you tell me how to handle pointers in Vb.net which are passed by
delphi
client as parameters in function

all the information is returned on the basis of reference or pointers in
functions. I can not change the client APIS so i have to handle then in
VB.net dll

Best Regards
Dinesh Kumar



Jun 15 '06 #4
it understands COM.
I have one dll written in vc++ which uses pointers to handle those
references
the same i have to write in VB.net
"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:ei******** ******@TK2MSFTN GP02.phx.gbl...
Okay, just to make sure that I totally understand your scenario.

You have a Web service which should be called from your VB .NET DLL
assembly, when it is itself called from your Deplhi client, right? Does
your Delphi client "speak" .NET or COM?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work
but they try anyway, and which sometimes actually work, such as
recompiling everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:eZ******** ******@TK2MSFTN GP05.phx.gbl...
Thanx for reply

The client is in delphi and i have to write dll in vb.net which will take
info from webservice.

The delphi client is passing info by ref and i have to handle that in
vb.net

u know by ref parameters can be changed with in the function. So new
value get stored on the same ref parameters.and delphi client gets the
value back

Rgds
Dinesh
"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:e8******** ********@TK2MSF TNGP03.phx.gbl. ..
Dinesh,

I am not sure if I understand you correctly, but VB .NET does not work
with pointers. Can you perhaps give an example of what it is you want to
do? Are you calling into the Delphi DLL from VB .NET and the information
(pointers?) is returned from one or more functions/methods in the Delphi
DLL?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work
but they try anyway, and which sometimes actually work, such as
recompiling everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:uc******** ******@TK2MSFTN GP02.phx.gbl...
Hi all

I am using VB.NET for a Connector dll in Delphi client and some
webservice .

can you tell me how to handle pointers in Vb.net which are passed by
delphi
client as parameters in function

all the information is returned on the basis of reference or pointers
in
functions. I can not change the client APIS so i have to handle then
in
VB.net dll

Best Regards
Dinesh Kumar




Jun 15 '06 #5
CT
You then need to create a .NET Class Library project from which the output
is a DLL assembly and make it "appear" as a COM component using COM Interop,
look here:

http://support.microsoft.com/?kbid=817248
--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:%2******** **********@TK2M SFTNGP03.phx.gb l...
it understands COM.
I have one dll written in vc++ which uses pointers to handle those
references
the same i have to write in VB.net
"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:ei******** ******@TK2MSFTN GP02.phx.gbl...
Okay, just to make sure that I totally understand your scenario.

You have a Web service which should be called from your VB .NET DLL
assembly, when it is itself called from your Deplhi client, right? Does
your Delphi client "speak" .NET or COM?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work
but they try anyway, and which sometimes actually work, such as
recompiling everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:eZ******** ******@TK2MSFTN GP05.phx.gbl...
Thanx for reply

The client is in delphi and i have to write dll in vb.net which will
take info from webservice.

The delphi client is passing info by ref and i have to handle that in
vb.net

u know by ref parameters can be changed with in the function. So new
value get stored on the same ref parameters.and delphi client gets the
value back

Rgds
Dinesh
"CT" <ca******@spamm ersgoawayintegr asol.dk> wrote in message
news:e8******** ********@TK2MSF TNGP03.phx.gbl. ..
Dinesh,

I am not sure if I understand you correctly, but VB .NET does not work
with pointers. Can you perhaps give an example of what it is you want
to do? Are you calling into the Delphi DLL from VB .NET and the
information (pointers?) is returned from one or more functions/methods
in the Delphi DLL?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work
but they try anyway, and which sometimes actually work, such as
recompiling everything. (Karl Lehenbauer)
---------
"Dinesh Kumar" <di**********@a ppulse.com> wrote in message
news:uc******** ******@TK2MSFTN GP02.phx.gbl...
> Hi all
>
> I am using VB.NET for a Connector dll in Delphi client and some
> webservice .
>
> can you tell me how to handle pointers in Vb.net which are passed by
> delphi
> client as parameters in function
>
> all the information is returned on the basis of reference or pointers
> in
> functions. I can not change the client APIS so i have to handle then
> in
> VB.net dll
>
> Best Regards
> Dinesh Kumar
>
>
>
>



Jun 15 '06 #6

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

Similar topics

0
1386
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong Li (likong@email.com)
5
2034
by: nick | last post by:
I have the following code: var ocevent = function(v) { alert('javascript event: u clicked '+v); return false; };
14
2735
by: Howard | last post by:
Hi, I recently had a problem where I decided to store objects in a vector. (Previously, I had always stored pointers in vectors). Well, naturally, when storing an object in a vector, using push_back, the object I had in hand was getting copied (twice, in fact). That led to a problem, in that my object contained a "handle" to another object, and when the object being pushed went out of scope and was destroyed, the referenced object was...
2
4014
by: kim d | last post by:
Hi, I know already this is a really stupid question but how do you obtain a handle to an application or a window in C#. Formerly I used Application.Handle in Delphi so I'm looking for the equivalent in C# TIA kim
16
3065
by: glenn | last post by:
I've gotten a COM server written in C# and I can call it from a VBScript just fine and it works perfectly. However, I import it into Delphi 6 or Delphi 2005 and I can not get access to any of the functions that are in the server. Is there something specific that I need to do in order to get Delphi to see the functions that are a part of the server? Thanks, glenn
2
14547
by: | last post by:
Hi, we are planning to rewrite an extisting C++ image processing application/library in C#. Now several question arouse where I hope you can help me: So far we allocated a block of memory as image buffer, handed this to a driver dll and got raw image data back in this buffer. We then handed this buffer by reference to another C++ dll to do base image processing on it. Alternativly we copy an area of the whole image to a newly...
0
5243
by: Tomek | last post by:
Welcome. I`m trying to prepere some project that shows how to use Corba technology i heterogenic systems.I`d like to create CORBA server with Borland Delphi (or C#.NET) and few client applications taht comunicate with serwer: J2ME client for WindowsCE 5.0, c# or Delphi from WindowsXP, some Web application using Java and maybe something for Linux system. For few days i`m looking for some examples in internet but most of them using only...
0
968
by: Dinesh Kumar | last post by:
Hi all I am using VB.NET for a Connector dll in Delphi client and some webservice . can you tell me how to handle pointers in Vb.net which are passed by delphi client as parameters in function all the information is returned on the basis of reference or pointers in functions. I can not change the client APIS so i have to handle then in VB.net dll
2
35625
weaknessforcats
by: weaknessforcats | last post by:
Handle Classes Handle classes, also called Envelope or Cheshire Cat classes, are part of the Bridge design pattern. The objective of the Bridge pattern is to separate the abstraction from the implementation so the two can vary independently. Handle classes usually contain a pointer to the object implementation. The Handle object is used rather than the implemented object. This leaves the implemented object free to change without affecting...
0
9670
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9033
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2917
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.