Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Libreria dll VB import delphi (https://www.clubdelphi.com/foros/showthread.php?t=91277)

tec 17-12-2016 09:40:20

Libreria dll VB import delphi
 
es compatible una dll realizada en visual basic con delphi ??

siempre da error al llamar a la función.

function cobrar(decTotalAmount :real; UserName,ServerIpAddress, ServerName, TicketNumber,outInsertedDetail: string;outInsertedAmount:integer;outChangeDetail:string;outChangeAmount:integer):string; stdcall external 'PayStation.dll' name 'cobrar';

en VB

Public Function iniciar(ByVal decTotalAmount As Decimal,
ByVal UserName As String,
ByVal ServerIpAddress As String,
ByVal ServerName As String,
ByVal TicketNumber As String,
ByRef outInsertedDetail As String,
ByRef outInsertedAmount As Integer,
ByRef outChangeDetail As String,
ByRef outChangeAmount As Integer) As DialogResult

Imports PayStation

Dim f As New PayStation.Cobrar
Dim result As DialogResult = f.iniciar(Me.txtresult.Text, "PayStation", ip, My.Computer.Name, numOperacion.ToString, outInsertedDetail, outInsertedAmount, outChangeDetail, outChangeAmount)

Muchas gracias por vuestros comentarios

Casimiro Notevi 17-12-2016 13:15:54

Cita:

Empezado por tec (Mensaje 511846)
...

Bienvenido a clubdelphi, como siempre aconsejamos a los nuevos, no olvides leer nuestra guía de estilo, gracias por tu colaboración :)

Recuerda poner los tags al código fuente, ejemplo:



Gracias :)

tec 17-12-2016 13:49:46

de acuerdo, muchas gracias.

Casimiro Notevi 17-12-2016 13:54:45

Echa un vistazo a estos enlaces:
http://www.delphibasics.info/home/de...ngdllsindelphi
http://www.tek-tips.com/viewthread.cfm?qid=572723
Espero que te sirvan.


La franja horaria es GMT +2. Ahora son las 17:50:41.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi