|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Handle pointers from delphi client to a vb.net dllHi 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 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? -- Show quoteHide quoteCarsten 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 > > > > 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 >> >> >> >> > > 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? -- Show quoteHide quoteCarsten 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 >>> >>> >>> >>> >> >> > > 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 >>>> >>>> >>>> >>>> >>> >>> >> >> > > 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 -- Show quoteHide quoteCarsten 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:%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 >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
changing the date format in vb.net
Datasets - use 1 or many? Assigning the result of a '/' division to an integer type causes rounding last ditch attempt to try and get this working Calling a batch file from vb.net with parameters Dealing with NULL values in Integer fields Mulples threads and impersonation What's the Best Startup Scenario for Unattended Server Execution? identity /autonumber drives me nuts From Delphi to VB |
|||||||||||||||||||||||