Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

calling .net reference from PB Classic

$
0
0

Hi all,

 

I have a problem with calling the class of the .NET from PowerBuilder 12.5 classic.

My actions:

 

1)  I have created a project .NET Windows Forms

2) Add a reference to .NET library FileNet.Api.dll

3) I have created a nonvisual object nvo_filenet

4) Add a method of this object of_connect ( string as_password , string  as_userName, string as_uri  )

 

#if defined PBDOTNET then

 

  FileNet.Api.Authentication.UsernameCredentials luo_creds

  FileNet.Api.Util.ClientContext luo_Context

  FileNet.Api.Core.IConnection luo_Connection

 

  luo_creds = CREATE FileNet.Api.Authentication.UsernameCredentials

 

luo_creds.Password = as_password

luo_creds.Username = as_userName

 

 

FileNet.Api.Util.ClientContext.SetProcessCredentials( luo_creds )

luo_Connection = FileNet.Api.Core.Factory.Connection.GetConnection( as_uri )

i_isCredentialsEstablished = true

 

#end if

 

But to build my application was not occur, an error message - "Cannot find executable file"

 

How to call .net classes from external libraries ?


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>