Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Help! How to use an external library?
Topic Summary:
Created On: 8-Mar-2007 10:36
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 8-Mar-2007 10:36
User is offline View Users Profile Print this message


Jim Spriggs

Posts: 16
Joined: 13-Dec-2006

Hi Guys,

It's n00bie time again...

Rhp 7M2 under Windows XP

I have a DLL (built with VC6) which exports some simple functions (using C conventions), and the matching header file.

What's the recommended way to make those functions available to the app I'm developing with Rhp?

(1) Fix up some IncludePath and LibPath properties by hand?
(2) Reverse-engineer the header?
(3) Something else?

For (2) I have not found the User's Guide very helpful at all :confused: , but maybe I'm not reading the right section(s): where should I look?

Thanks!

-------------------------
--
jim
Report this to a Moderator Report this to a Moderator
 4-Apr-2007 11:40
User is offline View Users Profile Print this message


Jens Konnertz

Posts: 10
Joined: 21-Feb-2007

Hi,

I do have a quiet similiar problem, see my post above.

Did you worked a solution for that. I would propose to reverse engineer the header file of that library. So that you are able to use the types and functions.

But the problem is automatic generation of #includes.

Best regards
Jens
Report this to a Moderator Report this to a Moderator
 4-Apr-2007 15:12
User is offline View Users Profile Print this message


Ian Turner

Posts: 25
Joined: 3-Feb-2006

Hi Guys,

The reverse engineering function is so that code can be brought in to Rhapsody for update within the model.

Instead, try creating classes/files, in your Rhapsody model, with the same names as your external code and set the CG::Class::UseAsExternal property to true. Rhapsody will then treat the files as external and will always pick up the latest changes to them. Be sure to add the folder name in the include path so Rhapsody knows where your external library is.

Regards,

Ian
Report this to a Moderator Report this to a Moderator
 17-Apr-2007 13:21
User is offline View Users Profile Print this message


Jim Spriggs

Posts: 16
Joined: 13-Dec-2006

[QUOTE=iturner@ferranti-technologies.co.uk]
Be sure to add the folder name in the include path so Rhapsody knows where your external library is.
[/QUOTE]

Hi Ian,

Many thanks for your reply, but which include path would that be? There are so many to choose from...

I'm confused about the relationship between the I.P.'s in the Components and those in the Configurations, and the User Manual seems rather opaque on the subject (to me, at least).

Any and all clues gratefully received...
--
jim

-------------------------
--
jim
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.