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

How to call VC++ dll whiich return char[] data type value in powerbuilder

$
0
0

Hi Everyone,

 

I am using PowerBuilder 11.1 build 8123.

I am calling VC++ DLL in our PowerBuilder application which return char[] data type value.

 

I just declare Global External Function:-

     Function  char getOSSectionName() library "DocServClient.dll" alias for "getOSSectionName;Ansi"

 

And then call this function in window as:-

     Char      ls_section[1] = 'DOCAPPLICATIONS9X'

     ls_section[1]=getOSSectionName()

 

When I check ls_section[1] value in messagebox it display a symbol (please check attached attached image.)

 

 

VC++ function and return variable declaration:-

 

     __declspec(dllexport) char *  __stdcall getOSSectionName()

      {

       char    SectionName[_MAX_PATH];

 

 

 

Please let me know that my code is valid or not.

 

Please help..


Viewing all articles
Browse latest Browse all 2935

Trending Articles



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