Importar DLL feito no Delphi no C Sharp
22/11/2012
0
Pessoal, estou tentando importar uma DLL feita em Delphi porém está dando erro.
Na segunda linha ele não está reconhecendo o void e string está dando o segundo erro
Expected class, delegate, enum, interface, or struct
using System.Runtime.InteropServices; [DllImport(@"D:\Projetos\DAL\bin\W01.dll", CallingConvention=CallingConvention.StdCall, CharSet=CharSet.Ansi)] static extern void ChamaErro([MarshalAs(UnmanagedType.AnsiBStr)]string Erro);
Na segunda linha ele não está reconhecendo o void e string está dando o segundo erro
Expected class, delegate, enum, interface, or struct
Thiago Garcez
Curtir tópico
+ 0
Responder
Posts
23/11/2012
Joel Rodrigues
Valeu por compartilhar com a galera, Thiago.
Um abraço.
Estou encerrando o tópico.
Um abraço.
Estou encerrando o tópico.
Responder
Clique aqui para fazer login e interagir na Comunidade :)