Discussions related to Visual Prolog
mdosnov2016
VIP Member
Posts: 73
Joined: 19 Nov 2016 7:58

string, file5x, and platformSupport5x

Unread post by mdosnov2016 »

can anybody tell me how to make concat work,
since it doesn't recognise class string?

Code: Select all

State_name = string::concat("state_", State_num_str), ...
the same problem (the classes are not visible) with file5x and platformSupport5x.

any useful #include for example?...

many thanks in advance,
Dr Michael Dossis
PrologUser
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

In a "normal" project necessary include statements will normally be inserted automatically.

But if your project is for example a migrated vip5 project (which I happen to know it is), then the IDE may not know where to insert the statement (due to a bad/unusual project structure).

The necessary include statement looks like this:

Code: Select all

#include @"pfc\string\string.ph"
I will suggest to create a little test project to see how a normal project is structured into with pack, ph, i, cl and pro files.
Regards Thomas Linder Puls
PDC
mdosnov2016
VIP Member
Posts: 73
Joined: 19 Nov 2016 7:58

Unread post by mdosnov2016 »

Thank you Thomas,
and what include for file5x and platformSupport5x ?

Michael
PrologUser
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Code: Select all

#include @"pfc\5xVIP\5xFile\5xFile.ph"

Code: Select all

#include @"pfc\5xVIP\5xPlatformSupport\5xPlatformSupport.ph"
Regards Thomas Linder Puls
PDC
Post Reply