Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

.Net classes with no CREATE function

$
0
0

Hi!

 

 

I'm trying to copy files from my werbservice server to another thru my webservice.

 

I found this example

 

c# - Copy file to remote computer using remote admin credentials - Stack Overflow

 

and I was translating this to PB .Net, when I found that:

 

 

System.IntPtr lintptr_duptoken

Security.Principal.WindowsIdentity luo_winIdGral

.

.

.

luo_winIdGral = createSystem.Security.Principal.WindowsIdentity(lintptr_duptoken)

 

can't compile, I'm getting an error that says THERE'S NO SUITABLE CONSTRUCTOR FOR CREATE STATEMENT: WINDOWSIDENTITY

 

And I believe that's because there's no CREATE function on that class, as for example on XMLReader.

 

Why is this? and how can I workaround it?


Viewing all articles
Browse latest Browse all 2935

Trending Articles



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