Article View: borland.public.csharpbuilder.ide.general
Article #122compiling C# library
From: Mark Heschl
Date: Wed, 10 May 2006 21:00
Date: Wed, 10 May 2006 21:00
33 lines
2313 bytes
2313 bytes
Hi, I am trying to compile a C# dll so that I can use the functionality in a Delphi (win32) app. The reason for this is because Crystal Reports XI does not work 100% in Delphi or Delphi.NET. The steps I take when it doesn't work are: 1) Compile through BDS2006 and compile as an assembly (application type) 2) From the command line, run "regasm name.dll /tlb" to generate the tlb file 3) From the Win32 environment, go to Component | Import Component and then select Import .NET Assembly. When I get to the last screen, no classes are listed and no class declarations are evident in the generated name_tlb.pas file However, in order to get it to work: 1) From the command line, compile using "csc /t:library name.cs" 2) From the command line, run "regasm name.dll /tlb" to generate the tlb file 3) From the Win32 environment, go to Component | Import Component and then select Import .NET Assembly. When I get to the last screen, the classes are present and the generated name_tlb.pas file has the class declarations and I can access the procedures that I want. My question is, how do I get the BDS2006 C# flavor IDE to compile the project as if it were compiling witt the "/t:library" switch? Thanks Mark
Technical Details
Message-ID:
<44625449$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!amsnews11.chello.com!newsfeed01.chello.at!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 165859,bc89b6b8138bbd5c,start X-Google-Attributes: gid165859,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mark Heschl" <mark@no.spam.com> Newsgroups: borland.public.csharpbuilder.ide.general Subject: compiling C# library Date: Wed, 10 May 2006 15:00:25 -0600 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 NNTP-Posting-Host: 205.233.109.211 Message-ID: <44625449$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1147294793 205.233.109.211 (10 May 2006 13:59:53 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!amsnews11.chello.com!newsfeed01.chello.at!newsfeed.inode.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail