delphi-prism

Doing XNA in Delphi Prism

I have installed Delphi Prism and XNA Game Studio 3.0. I have managed to translate to Delphi Prism XNA Tutorial 1 "Displaying a 3D Model on the Screen" (http://msdn.microsoft.com/en-us/library/bb197293.aspx). Project compiles fine, but I cannot load a model. It looks like there is a new "contentproj" type in XNA that is not in Delphi Pr...

Delphi Prism and LINQ to SQL / Entity Framework

I have found many posts and examples of using LINQ-syntax in Delphi Prism (Oxygene), but I have never found anything on LINQ to SQL or Entity Framework. Is it possible to use LINQ to SQL or Entity Framework together with Prism? Where can I found such an example? Update: Olaf is giving an answer through his blog The question is now if...

Free IDE for Delphi Prism

Hi, I've the Delphi Prism command line compiler... is there a free IDE that I can use? Must have intellisense etc just a plain editor no drag-drop required. ...

Seeking Example Delphi Prism ASP.Net Application using SQL Server

Hi I'm an ASP.NET virgin and want to try creating an ASP.Net Application using SQL Server at the back end. I can't locate a single example application or code for doing this. Anyone have any pointers? TIA ...

Where can I define Conditional compilation constants for Delphi Prism?

I've just ported a Web service from Delphi.NET 2006 to Delphi Prism 2009 (running in the Visual Studio 2008 IDE). But I can't find where I'm supposed to set (or unset) the conditional compilation constants! Am I blind, has this option been left out, or is it just not supported in VS? [edit: thanks to Mohammed Nasman for the link] MSDN...

Delphi Prism / VS 2008: Switching from code to design with one key?

I've used several Versions of the Delphi IDE for many years. When i'm using Delphi Prism, i have to deal with Visual Studio - in my case especially VS 2008. One of the most annoying things to me is that i have to right-click on my form to switch to the code editor and vice versa. In Delphi, one could simply press the F12 key to switch be...

How to consume and re-expose a Win32 type library using Delphi Prism

I currently have a Win32 type library created in Delphi which I need to consume, implement and re-expose via .NET. What are the steps necessary to bring the TLB into Prism so the interface can be implemented? ...

C# to Delphi Prism code converter

I know CodeGear made BabelCode that uses the Code DOM to convert C# to Delphi for .NET. I am curious if there are any other similar tools to convert C# to Delphi Prism? If not, what is involved in using the Code DOM to create one (yeah, that is open ended!) Update: This is now built into Delphi Prism. Just paste or import your C# and...

Exposing functionality via Prism & Com Interop

How does one go about exposing a class written in Prism via COM Interop? For example, given the following interface: TYPE IFoo = public interface property bar: string; read; end; FooImpl = class( IFoo ) private function GetBar : string; public property bar: string; read GetBar; end; In this example, assume I...

Class Type Expected error on TableAdapter constructor

I am using Delphi Prism to connect to an Advantage Database Server. I created a connection using the server explorer to the database. I added a dataset object to my project and added a table to the dataset. Everything works fine in the IDE, however, I get an error in the generated designer code on the table adapter constructor. The erro...

Why is Self assignable in Delphi?

This code in a GUI application compiles and runs: procedure TForm1.Button1Click(Sender: TObject); begin Self := TForm1.Create(Owner); end; (tested with Delphi 6 and 2009) why is Self writable and not read-only? in which situations could this be useful? Edit: is this also possible in Delphi Prism? (I think yes it is, see here) ...

How to generate Pascal code from an XML schema in Delphi Prism?

I need to import some XML schemas. In Delphi, I would use the the XML Data Binding Wizard to generate the Pascal code from the schemas. Is there something like that in Delphi Prism to avoid writing all this boilerplate code? ...

Delphi Prism Cirrus accessing and setting the Result of a function

Background This question relates to the new Cirrus infrastructure for Aspect Oriented Programming in Delphi Prism. I currently have an aspect which I am Auto-Injecting into a class and am attempting to modify the target code using aMethod.SetBody function. I have structured my code thus far using the Logging example code found on the C...

create a plugin in Delphi Prism using Hydra (Remobjects)

Hi, I have to create a plugin in Delphi Prism for Application that is already in Delphi. I have read all about Hydra 3.0 in www.remobjects.com and have some queries. Can you please give me an example how to create custom Interfaces for communication between Delphi Host and .Net Plugin.(either in C# or Delphi Prism) what is the role ...

Plugin for VS 2008 - With Structural Highlighting - Support Syntax Delphi Prism

Hello, Anybody know any plugin for Visual Studio 2008 that has the ability to "Structural Highlighting" and Syntax support for Delphi-Prism. Currently use Castalia and CnPack, but just work on Rad Studio. I've also used Codekana, but does not support the syntax of Delphi Prism. Bye. ...

Replacement for TStringList in Delphi Prism.

Hello, I am migrating an application written in Delphi 2007 .Net to Delphi Prism, which is the best option to replace the TStringList and TStrings class? Thanks in advance. Bye. ...

Replacement for TList in Delphi Prism.

Hello, I am migrating an application written in Delphi 2007 to Delphi Prism, which is the best option to replace the TList class? Thanks in advance. Bye. ...

How i can declare a global method in delphi prism

Hello, How i can declare a global method in delphi prism using the __Global class? And It is recommended to use global methods? unfortunately I have not found any example. Thanks in advance. Bye. ...

Delphi -> Delphi prism, how to use array of records?

Hi there. I'm learning Delphi Prism, and i don't find how to write the following code with it : type TRapportItem = record Label : String; Value : Int16; AnomalieComment : String; end; type TRapportCategorie = record Label : String; CategoriesItems : Array of TRapportItem; end; type TRapportContent = reco...

DLL example in Delphi Prism 2010

Can somebody tell me where to find an example in how to make an DLL (WindowsControlLibrary) in prism? In the old Delphi, you make an export section. ...