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

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 2176
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**********@appulse.com> wrote in message
news:uc**************@TK2MSFTNGP02.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******@spammersgoawayintegrasol.dk> wrote in message
news:e8****************@TK2MSFTNGP03.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**********@appulse.com> wrote in message
news:uc**************@TK2MSFTNGP02.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**********@appulse.com> wrote in message
news:eZ**************@TK2MSFTNGP05.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******@spammersgoawayintegrasol.dk> wrote in message
news:e8****************@TK2MSFTNGP03.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**********@appulse.com> wrote in message
news:uc**************@TK2MSFTNGP02.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******@spammersgoawayintegrasol.dk> wrote in message
news:ei**************@TK2MSFTNGP02.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**********@appulse.com> wrote in message
news:eZ**************@TK2MSFTNGP05.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******@spammersgoawayintegrasol.dk> wrote in message
news:e8****************@TK2MSFTNGP03.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**********@appulse.com> wrote in message
news:uc**************@TK2MSFTNGP02.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**********@appulse.com> wrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
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******@spammersgoawayintegrasol.dk> wrote in message
news:ei**************@TK2MSFTNGP02.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**********@appulse.com> wrote in message
news:eZ**************@TK2MSFTNGP05.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******@spammersgoawayintegrasol.dk> wrote in message
news:e8****************@TK2MSFTNGP03.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**********@appulse.com> wrote in message
news:uc**************@TK2MSFTNGP02.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
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...
5
by: nick | last post by:
I have the following code: var ocevent = function(v) { alert('javascript event: u clicked '+v); return false; };
14
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...
2
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...
16
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...
2
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...
0
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...
0
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.