Sei que é um forum de clipper, mas a partir daqui pude fazer as implementações no visual studio 2010 vb.net
So que to com alguns problemas.
Consegui implementar para o vb.net, o programa manda a instrução para o emulador so que ocorre o seguinte erro:
<DllImport("sat.dll")>
Public Shared Function ConsultarSAT(ByVal nSessionRandom As Integer) As String
End Function
Public Shared Function fConsultarSAT(ByVal nSessionRandom As Integer) As Array
Dim cString As String = ""
Try
cString = sat.ConsultarSAT(nSessionRandom).ToString
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Return Split(cString, "|")
End Function
t_retorno = bibliotecasat.fConsultarSAT(t_sessao)
A call to PInvoke function 'balcao!retaguarda.sat::ConsultarSAT' has unbalanced the stack.
This is likely because the managed PInvoke signature does not match the unmanaged target signature.
Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Alguem saberia me dizer o que pode ser ou ate mesmo dar uma luz por onde devo prosseguir agradeço...