Jump to content

Recommended Posts

  • Administrators
Posted

Here you will find first uniGUI build with C++ Builder support.

 

Installation instructions are similar to Delphi with some exceptions:

 

  1. You must open group project in RAD Studio IDE.
  2. Before doing anything, for each package go to Options->Linker and Select/Set Generate all C++Builder Files.
  3. Now build all packages.
  4. Install all design time packages.
  5. Now you must be able to see uniGUI for C++ Builder in File->New->Other...
  6. After starting a new C++ project you must disable Linker->Dynamic RTL
  7. For unknown reasons building with Run Time Packages doesn't work properly. You must statically link all libs and create a single EXE. (Simply unselect Build with runtime packages option.)
  8. New C++ projects are created without a resource (.RES) file. As a result project has no default Icon. I will try to fix this in new releases.
  9. Currently there are no demos for C++ Builder.
  10. uniGUI C++ Projects are only tested with C++ Builder 2007 and 2009, but logically you must be able to install uniGUI and create C++ projects in all C++ Builder versions up to XE2.
  11. Combo VCL/ISAPI projects are not supported for C++ Builder.

Please report all bugs and issues specific to C++ Builder here in this thread.

 

Thanks

Posted

In RAD Studio XE2:

1.You must open group project in RAD Studio IDE.

Yes.

2.Before doing anything, for each package go to Options->Linker and Select/Set Generate all C++Builder Files.

Yes.

3.Now build all packages.

Yes.

4.Install all design time packages.

Yes.

5.Now you must be able to see uniGUI for C++ Builder in File->New->Other...

See picture. uniGUI only for Delphi...

post-32-0-26067400-1328438359_thumb.jpg

Posted
Completely uninstall previous version. Install build 940 (download from same link). It should work with all versions.

Thank you.

 

 

 

I am reinstalling uniGUI. Add path and directories to hpp files.

Start new project in C++ Builder XE2 and try to Run:

[BCC32 Error] Main.cpp(9): E2177 Redeclaration of #pragma package with different arguments

 

Here:

//---------------------------------------------------------------------------
#include <vcl.h>
#include <UniGUIVars.hpp>
#pragma hdrstop

#include "Main.h"
#include "MainModule.cpp"
//---------------------------------------------------------------------------
#pragma package(smart_init)//<---------------HERE
#pragma resource "*.dfm"
//---------------------------------------------------------------------------
TMainForm *MainForm(void)
{
  return( (TMainForm *)UniMainModule()->GetFormInstance(__classid(TMainForm)));
}
//---------------------------------------------------------------------------
__fastcall TMainForm::TMainForm(TComponent* Owner)
	: TUniForm(Owner)
{
}
//---------------------------------------------------------------------------
void __RegisterMainFormClass() {
 Uniguivars::RegisterMainFormClass(__classid(TMainForm));
}

#pragma startup __RegisterMainFormClass

  • Administrators
Posted
I am reinstalling uniGUI. Add path and directories to hpp files.

Installer should automatically add all required paths to IDE.

 

 

Start new project in C++ Builder XE2 and try to Run:

[BCC32 Error] Main.cpp(9): E2177 Redeclaration of #pragma package with different arguments

 

Here:

//---------------------------------------------------------------------------
#include <vcl.h>
#include <UniGUIVars.hpp>
#pragma hdrstop

#include "Main.h"
#include "MainModule.cpp"
//---------------------------------------------------------------------------
#pragma package(smart_init)//<---------------HERE

 

Does it compile if you remove the above line?

Posted
Installer should automatically add all required paths to IDE.

I add manually because IDE can’t find UniGUIVars.hpp and UniGUIVars.obj

 

#include "MainModule.h"

After change project start but I got:

---------------------------

Project Project2uni.exe raised exception class $C0000005 with message 'access violation at 0x00664197: read of address 0x00000000'.

---------------------------

 

I will try tomorrow in C++ Builder 2009.

  • Administrators
Posted

I add manually because IDE can’t find UniGUIVars.hpp and UniGUIVars.obj

 

 

After change project start but I got:

---------------------------

Project Project2uni.exe raised exception class $C0000005 with message 'access violation at 0x00664197: read of address 0x00000000'.

---------------------------

 

I will try tomorrow in C++ Builder 2009.

 

Have you modified this?

 

After starting a new C++ project you must disable Linker->Dynamic RTL
  • Administrators
Posted

and this:

 

For unknown reasons building with Run Time Packages doesn't work properly. You must statically link all libs and create a single EXE. (Simply unselect Build with runtime packages option.)
Posted
Have you modified this?

 

Linker->Dynamic RTL = false.

 

---------------------------

Project Project2uni.exe raised exception class $C0000005 with message 'access violation at 0x00694197: read of address 0x00000000'.

---------------------------

Posted
Simply unselect Build with runtime packages option.

 

Bingo! Project start. I see main form.

Thank you very much!

Posted
What paths you needed to add?

All of required paths should be already there.

 

The problem is that uniGUI install by default here:

C:\Documents and Settings\All Users\Документы\FMSoft\Framework

 

 

But in Russian Windows IDE C++ Builder can’t find this path because Cyrillic alphabets -> Документы

I must reinstall in other path and copy hpp folder in other place and add new paths in IDE.

Library path:

C:\Framework\uniGUI\Dcu

Include path:

C:\Framework\uniGUI\Dcu\hpp

***

 

This no problem uniGUI. The problem in Cyrillic alphabets. :)

  • 1 month later...
Posted

I install new version 0.88.1.943 in C++ Builder XE2 Update 4. Thank you for the new version.

 

P.S.

I have the same problem with paths because my Windows folder Documents is not English.

  • 4 weeks later...
Posted

We install _0.89.0.950. Thank you very much!

Please add in the future one demo for C++ Builder (eg. FishFacts). We need an officially example for our C++ students who plan to study web projects with uniGUI framework.

  • Administrators
Posted

I install new version 0.88.1.943 in C++ Builder XE2 Update 4. Thank you for the new version.

 

P.S.

I have the same problem with paths because my Windows folder Documents is not English.

 

I really don't know why there is a path problem in Russian Windows.

 

Regardless of the language, uniGUI path should be this:

 

C:\Users\Public\Documents\FMSoft\Framework

 

Which I believe should be same for all languages.

 

BTW, What is your OS? Maybe XP uses a different scheme.

  • Administrators
Posted

We install _0.89.0.950. Thank you very much!

Please add in the future one demo for C++ Builder (eg. FishFacts). We need an officially example for our C++ students who plan to study web projects with uniGUI framework.

 

I'm planning to port some of our demos to C++.

Posted
Maybe XP uses a different scheme.

 

Yes in Russian Windows XP:

C:\Documents and Settings\All Users\Документы\FMSoft\Framework

 

In Russian W7:

C:\Users\Public\Documents\

  • Administrators
Posted

Yes in Russian Windows XP:

C:\Documents and Settings\All Users\Документы\FMSoft\Framework

 

In Russian W7:

C:\Users\Public\Documents\

 

In next build everything will be installed under "\program files" folder.

×
×
  • Create New...