fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

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

How can I add a .xsproj to my project (in XIDE)? 9 months 5 days ago #6305

  Intexso's Avatar Topic Author Intexso Offline Posts: 67
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.

How can I add a .xsproj to my project (in XIDE)? 9 months 5 days ago #6306

  Chris's Avatar Chris Away Posts: 1181
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.

How can I add a .xsproj to my project (in XIDE)? 9 months 5 days ago #6308

  Chris's Avatar Chris Away Posts: 1181
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:

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

How can I add a .xsproj to my project (in XIDE)? 9 months 4 days ago #6312

  Intexso's Avatar Topic Author Intexso Offline Posts: 67
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.

How can I add a .xsproj to my project (in XIDE)? 9 months 4 days ago #6313

  Chris's Avatar Chris Away Posts: 1181
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.

How can I add a .xsproj to my project (in XIDE)? 9 months 4 days ago #6314

  Intexso's Avatar Topic Author Intexso Offline Posts: 67
Thanks again Chris!

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

How can I add a .xsproj to my project (in XIDE)? 9 months 4 days ago #6315

  Intexso's Avatar Topic Author Intexso Offline Posts: 67
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.

How can I add a .xsproj to my project (in XIDE)? 9 months 4 days ago #6316

  wriedmann's Avatar wriedmann Away Posts: 1573
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
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

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

How can I add a .xsproj to my project (in XIDE)? 9 months 4 days ago #6317

  Intexso's Avatar Topic Author Intexso Offline Posts: 67
Hi Wolfgang,
Thanks. This works.
Eric

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

  • Page:
  • 1