On 8/2/07, José Wagner da Rocha Cardoso <[EMAIL PROTECTED]> wrote: > > > > > Mas então como faço para utilizar a dll .net no meu projeto em Delphi for > .net? Na boa Jose', mas tu estas pisando na bola. Eu tenho pouca experiencia com Delphi, mas uma simples procura no Google me deu boas dicas do que precisa ser feito.
Todo compilador que tem como alvo .NET cria CLI assemblies. Eu imagino que o Delphi com suport a .NET saiba como utilizar os simbolos exportados por esses assemblies. De fato, de uma olhada aqui http://dn.codegear.com/article/28972 "The Delphi for .NET compiler treats CLR assemblies like Delphi packages. The compiler supports direct symbol importing from metadata. Header file translations are no longer needed. Symbols can be imported from any Common Language Specification (CLS) compliant .NET assembly, produced by any .NET language tool. Conceptually, every .NET assembly contains the equivalent of a DCP (which is a collection of DCUs) and a BPL, all lumped into one file." "The compiler supports the -lu<name> switch to specify which assemblies to link with or allow access to. These assemblies do not have to be Delphi assemblies. Any CLR assembly can be used directly with Delphi for .NET, with no translations or conversions. Just as you use -lu for Delphi packages, you can use -lu for any CLR assembly." Pelo que eu entendi do artigo, bast usar "using foo.seila.postgresql.driver" para ter acesso ao driver do PG em .NET. -Roberto _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
