fbpx

How can I add a .xsproj to my project (in XIDE)?

More
4 months 1 day ago #1 by Eric Boomsma
Hello,

I downloaded the fabxszip from fabtoys.net. Now I try to embed this in my application.

There are some folders with .prg, .dll, en .xsproj files. I am using XIDE.

How can I best add/import this tools in my application? (The files with this extensions can't be added/imported as project or as application. Am I missing something?

Thanks in advance for your answer.

Eric

Please Log in or Create an account to join the conversation.

More
4 months 1 day ago #2 by Chris Pyrgas
Replied by Chris Pyrgas on topic How can I add a .xsproj to my project (in XIDE)?
Hi Eric,

This is a VS only solution, but it's also a perfect example to demonstrate how to share the same code form both VS and XIDE. Will send you a XIDE project file in a moment.

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
4 months 1 day ago #3 by Chris Pyrgas
Replied by Chris Pyrgas on topic How can I add a .xsproj to my project (in XIDE)?
Here's the XIDE equivalent project file for FabXSZip. Please unzip the file and put the FabXSZip.viproj in the base folder (where also FabXSZip.sln is located) and the Form1.resources inside the FabXSZip_Test folder (where also Form1.resx is located).

Now you can either select "Add" in the opening XIDE project selection string to add the project to the list (by selecting the FabXSZip.viproj file), or you can simply double click on that file, tell Windows to open this type of files with XIDE.exe and the project will now open, you can normally compile and run it.

XIDE will be now using the same exact code files as VS is also using. Only issue is the form that is included is designed in VS and you cannot open it in the designer in XIDE. It is not difficult to port that so that it opens in the XIDE designer instead, but then it will not open in the VS designer, this is a choice that has to be made.

Chris

XSharp Development Team
chris(at)xsharp.eu
Attachments:
The following user(s) said Thank You: Eric Boomsma

Please Log in or Create an account to join the conversation.

More
4 months 1 day ago #4 by Eric Boomsma
Replied by Eric Boomsma on topic How can I add a .xsproj to my project (in XIDE)?
Hi Chris,

Now FabXSZip is on my XIDE :-)

I hardly dare to ask, but could you also make a XIDE project for FabPaintLib?

Or is there a description somewhere how I can do it myself?

Eric

Please Log in or Create an account to join the conversation.

More
4 months 1 day ago #5 by Chris Pyrgas
Replied by Chris Pyrgas on topic How can I add a .xsproj to my project (in XIDE)?
Hi Eric,

Here it is! The .viproj file goes again in the same folder as the .sln, the .resources file must go in the folder \VN_PaintLib_Test. Also you need to open the project once in XIDE, and when you do it, it will generate a \Bin\ folder in the base directory. Please copy in \Bin\Debug\ the files FreeImage.dll and FreeImageNET.dll that you will find in \VN_PaintLib_Test\Debug.

In order to create this, the steps were:
- Create a new project, with the same name as the solution and select the solution folder for the XIDE project folder
- For each library:
- - Create a new library in XIDE, specifying the same name and folder as the VS library
- - Select from the Project context menu Add Existing->Add Files and select all the files of the app folder
- - Add references to the library, the same references the library is using in VS
- - Set the same compiler options as well, it's more or less all VO compatibility options enabled for those libs

then it might need some micro adjustments, but basically that's it. Of course it would had been much easier if there was an option to do all that automatically, will try to implement that soon.

Chris

XSharp Development Team
chris(at)xsharp.eu
Attachments:

Please Log in or Create an account to join the conversation.

More
4 months 17 hours ago #6 by Eric Boomsma
Replied by Eric Boomsma on topic How can I add a .xsproj to my project (in XIDE)?
Thanks again Chris!

Please Log in or Create an account to join the conversation.

More
4 months 16 hours ago #7 by Eric Boomsma
Replied by Eric Boomsma on topic How can I add a .xsproj to my project (in XIDE)?
Hello Chris,

In this project includes are used, like

#include "VOSystemLibrary.vh"
#include "VOWin32APILibrary.vh"


where can I find these files?

Eric

Please Log in or Create an account to join the conversation.

More
4 months 16 hours ago #8 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic How can I add a .xsproj to my project (in XIDE)?
Hi Eric,

you shoud be able to remove them if you have added the sdk_defines.dll to your project.

This library contains them all.

You can see here docs.xsharp.it/doku.php?id=vulcan:defines a bit of background information.

Wolfgang

Please Log in or Create an account to join the conversation.

More
4 months 13 hours ago #9 by Eric Boomsma
Replied by Eric Boomsma on topic How can I add a .xsproj to my project (in XIDE)?
Hi Wolfgang,
Thanks. This works.
Eric

Please Log in or Create an account to join the conversation.