1. Eric Freudenberg
  2. PowerBuilder
  3. Monday, 25 February 2019 08:14 AM UTC

Hello Communty,

is there a way to use ORCA in a .Net project (preferably C#) without writing a c++ wrapper?
I have tried several ways, but find no solution:
- PBORC170.DLL is not COM visible, so not possible using via COM interface
- directly import of PBORC170.DLL not possible
- import via [DLLIMPORT] function not possible because, DLL is written in C++, so a unmanaged language, and C# is a managed language (C# can not handle unmanaged types)

Is there perhaps a library I overlooked or exist a special .Net API?

Many thanks for your answers.

 

Greetings Eric

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 25 February 2019 18:20 PM UTC
  2. PowerBuilder
  3. # Permalink

This project uses ORCA from C#:

https://github.com/devbar/PB-DotNet

 

Comment
  1. Eric Freudenberg
  2. Wednesday, 27 February 2019 07:27 AM UTC
Hi Roland,



many thanks for your answer. I checked your suggestion. The dev(s) in this project call the DLLImport function as unsafe and marshal the unmanaged C++ types. This is a way, but i think not a good one. Currently i experimenting using orca via cmd-calls and svn cmd-call for scc interactions, it works but its like the other one i think its not a good way.



More as these three ways, writing a c++ wrapper, using unsafe dllimport or call via the cmdline, i found no better solution yet. So I think i will choose one of this ways.
  1. Helpful
  1. Roland Smith
  2. Wednesday, 27 February 2019 16:01 PM UTC
There isn't a .Net version of ORCA.
  1. Helpful
There are no comments made yet.
Phil Wallingford Accepted Answer Pending Moderation
  1. Thursday, 28 February 2019 18:59 PM UTC
  2. PowerBuilder
  3. # 1

Eric,

What is that you're trying to do with ORCA?  There may be solutions already?

Phil

Comment
  1. Eric Freudenberg
  2. Friday, 1 March 2019 06:48 AM UTC
Hi Phil,

we want to do / to get the following commands / informations:

- get list of pbl's in target

- modify pbl list (add / remove)

- get list of objects in pbl

- build project

- remove object from pbl

- scc: get list of locked svn objects

- scc: get list of objects in pbl that not in svn

- scc: check in objects

- scc: add object to scc

- scc: get svn informations about objects (lock user, lock date, ...)

- scc: get latest version of target / pbl / object
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.