Re: Writing a library for .NET ?
From: Marc Rohloff (marcrohloff_ng_at_bigfoot.com)
Date: 08/26/04
- Next message: Marc Rohloff: "Re: How to use a dot net library ?"
- Previous message: J French: "Re: Ordering Items stored in a database table in a tListbox"
- In reply to: Skybuck Flying: "Writing a library for .NET ?"
- Next in thread: Skybuck Flying: "Re: Writing a library for .NET ?"
- Reply: Skybuck Flying: "Re: Writing a library for .NET ?"
- Reply: Skybuck Flying: "Re: Writing a library for .NET ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Aug 2004 06:10:48 -0700
"Skybuck Flying" <nospam@hotmail.com> wrote in message news:<cgj8oa$m3t$1@news3.tilbu1.nb.home.nl>...
> [Error] LibraryTest.dpr(66): Procedure definition must be ILCODE calling
> convention
> No where in the help does it say how to do that ?
No the documentation is still catching up. Either leave the calling
convention off or specify ilcode instead of stdcall.
> If I remove stdcall it says this:
> [Error] LibraryTest.dpr(81): Unsafe procedure only allowed if compiling with
> {$UNSAFECODE ON}
Creating DLL exports functions from a .NET library is inherintly
unsafe and discouraged by Microsoft. The compiler is just forcing you
to acknowledge this.
The real point of libraries is to make whole classes available. If you
do this then you will not need to mark your code as unsafe.
Marc Rohloff
--TeamB
- Next message: Marc Rohloff: "Re: How to use a dot net library ?"
- Previous message: J French: "Re: Ordering Items stored in a database table in a tListbox"
- In reply to: Skybuck Flying: "Writing a library for .NET ?"
- Next in thread: Skybuck Flying: "Re: Writing a library for .NET ?"
- Reply: Skybuck Flying: "Re: Writing a library for .NET ?"
- Reply: Skybuck Flying: "Re: Writing a library for .NET ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|