Home All Groups Group Topic Archive Search About

Handle pointers from delphi client to a vb.net dll

Author
15 Jun 2006 5:22 AM
Dinesh Kumar
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

Author
15 Jun 2006 5:53 AM
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)
---------
Show quoteHide quote
"Dinesh Kumar" <dinesh.ku***@appulse.com> wrote in message
news:ucscUzDkGHA.3816@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
>
>
>
>
Author
15 Jun 2006 6:07 AM
Dinesh Kumar
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
Show quoteHide quote
"CT" <carstent@spammersgoawayintegrasol.dk> wrote in message
news:e8gr%23$DkGHA.4368@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" <dinesh.ku***@appulse.com> wrote in message
> news:ucscUzDkGHA.3816@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
>>
>>
>>
>>
>
>
Author
15 Jun 2006 6:39 AM
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)
---------
Show quoteHide quote
"Dinesh Kumar" <dinesh.ku***@appulse.com> wrote in message
news:eZRaNMEkGHA.3408@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" <carstent@spammersgoawayintegrasol.dk> wrote in message
> news:e8gr%23$DkGHA.4368@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" <dinesh.ku***@appulse.com> wrote in message
>> news:ucscUzDkGHA.3816@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
>>>
>>>
>>>
>>>
>>
>>
>
>
Author
15 Jun 2006 7:52 AM
Dinesh Kumar
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
Show quoteHide quote
"CT" <carstent@spammersgoawayintegrasol.dk> wrote in message
news:eiXewZEkGHA.3440@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" <dinesh.ku***@appulse.com> wrote in message
> news:eZRaNMEkGHA.3408@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" <carstent@spammersgoawayintegrasol.dk> wrote in message
>> news:e8gr%23$DkGHA.4368@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" <dinesh.ku***@appulse.com> wrote in message
>>> news:ucscUzDkGHA.3816@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
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
15 Jun 2006 8:14 AM
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)
---------
Show quoteHide quote
"Dinesh Kumar" <dinesh.ku***@appulse.com> wrote in message
news:%237%2307GFkGHA.4368@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" <carstent@spammersgoawayintegrasol.dk> wrote in message
> news:eiXewZEkGHA.3440@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" <dinesh.ku***@appulse.com> wrote in message
>> news:eZRaNMEkGHA.3408@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" <carstent@spammersgoawayintegrasol.dk> wrote in message
>>> news:e8gr%23$DkGHA.4368@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" <dinesh.ku***@appulse.com> wrote in message
>>>> news:ucscUzDkGHA.3816@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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>