Questions tagged [delphi-prism]

Delphi Prism is a rapid application development tool for the Microsoft .NET Framework and Mono, developed by RemObjects Software and distributed by Embarcadero Technologies. It is based on the Oxygene language and compiler, integrated within the Microsoft Visual Studio and MonoDevelop IDEs.

Delphi Prism is a rapid application development tool for the Microsoft .NET Framework and Mono, developed by RemObjects Software and distributed by Embarcadero Technologies. It is based on the Oxygene language and compiler, integrated within the Microsoft Visual Studio IDE.

185 questions
4
votes
1 answer

Access Delphi Prism Class Library from Delphi XE

I need to access in Delphi XE the method "Auth" from this Delphi Prism class library: namespace ClassLibrary1; interface uses System, System.IO, System.Security.Cryptography, System.Runtime.InteropServices, …
ioan ghip
  • 1,202
  • 2
  • 16
  • 27
4
votes
1 answer

Cast int to Enum in Delphi Prism

Basically the same as this question, but in Delphi Prism: Cast int to enum in C# I manage to do it from a string: YourEnum := Enum.Parse(TypeOf(YourEnum), "mystr") as YourEnum But I tried the following, and get a type mismatch error: YourEnum := 3…
Robo
  • 4,588
  • 7
  • 40
  • 48
4
votes
2 answers

Can a suspended thread be aborted?

I created a thread and that thread can be suspended. So, how do I kill or terminate a suspended thread? I tried to ABORT the thread and I got a runtime error message saying that the thread is suspended and it can't be aborted. I've looked for…
ThN
  • 3,235
  • 3
  • 57
  • 115
4
votes
3 answers

Replacement for TStringList in Delphi Prism.

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.
Salvador
  • 16,132
  • 33
  • 143
  • 245
3
votes
3 answers

How to hide the mainform and still run the program?

I want to run my program with the icon showing in the system tray but without the mainform showing from the start. Edit: lMainForm := new MainForm; lMainForm.ShowInTaskbar := true; Application.Run(lMainForm); Didn't work. As soon as…
ThN
  • 3,235
  • 3
  • 57
  • 115
3
votes
3 answers

How to assign Objects from ListBox to ArrayList in a single statement?

In Delphi Prism, I need to assign objectcollection from ListBox to an ArrayList in a single statement. So far I have not found any solution. In Delphi, this is how I did it. theUser.Groups.Assign(ListBox1.Items); Groups is a TList in Delphi and…
ThN
  • 3,235
  • 3
  • 57
  • 115
3
votes
1 answer

Replacement for CharInSet function in Delphi Prism

Is there a similar function as CharInSet in Delphi Prism? If not, how would you do it? I looked online and on StackOverflow, but they speak in terms of Delphi not Delphi Prism for .NET. I also found out that the include method for setting an element…
ThN
  • 3,235
  • 3
  • 57
  • 115
3
votes
1 answer

How can i convert my Delphi.NET project to Delphi Prism?

There's a project of mine wrotten in Delphi.NET, and i want it to be run in Linux (which will be Ubuntu, or RedHat), and i have to convert it to Delphi Prism. So how can i convert it from Delphi.NET to Delphi Prism without doing lots of grunt work?…
Leo.W
  • 299
  • 1
  • 7
  • 21
3
votes
1 answer

Roll populating a Dictionary into a LINQ of For expression

I have a data object Data = class public s: string; i: Integer; end; with many of them in a list (or some collection): var ol : List := new List; ol.Add(new Data(s := 'One', i := 1)); ol.Add(new Data(s := 'Two', i :=…
Jim McKeeth
  • 38,225
  • 23
  • 120
  • 194
3
votes
5 answers

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…
pglowack
  • 291
  • 4
  • 9
3
votes
1 answer

Using MbUnit with Delphi Prism

I have created below simple testcase in Delphi Prism. When I run the testcase using Gallio Icarus, it returns a This test is not supported by any available test framework. I can think of only two reasons why this might be happening I am missing…
Lieven Keersmaekers
  • 57,207
  • 13
  • 112
  • 146
3
votes
3 answers

How to make Delphi Prism indexed properties visible to C# when properties are not default

I have several Delphi Prism classes with indexed properties that I use a lot on my C# web applications (we are migrating a big Delphi Win32 system to ASP.Net). My problem is that it seems that C# can't see the indexed properties if they aren't the…
Arcturus
  • 65
  • 3
3
votes
2 answers

How to programmatically press toolstripbutton down?

I want to push toolstripbutton down in my code and I can't seem to be able to do that. I know on Delphi RAD Studio or XE, you can do the following and cause the button to be pressed. ToolStripButton1.Down := true; The only ToolStripButton property…
ThN
  • 3,235
  • 3
  • 57
  • 115
3
votes
1 answer

How to create dynamic array of DateTime?

I need to create a dynamic array of DateTime, but I don't know before hand how many dates I will have to add. I did experiment with ArrayList, but it doesn't help. So, how do you create dynamic array of DateTime in Delphi Prism? Is this how you do…
ThN
  • 3,235
  • 3
  • 57
  • 115
3
votes
1 answer

How to prevent Closing and Disposing of a winform in the FormClosing event?

This question may seem like a duplicate, but I just ran in to this issue while I was testing my program and I am kind of confused as to how you solve it. I have a winform and it has a form closing event. In the event, I pop open a messagebox asking…
ThN
  • 3,235
  • 3
  • 57
  • 115
1
2
3
12 13