cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

hello sir/madma

         may i ask question about C/C++ build a api for powerbuilder to consume,i'd like write dll which powerbuilder could call in function which is defined int myfun(string ls_param1,ref string  ls_param2) "mydll.dll;Ansil" ,i just cant figure out the ls_param2 in C++,if should write as

int myfun(char * theparm1,char** ls_param2) ?

do i have to use char ** in the second parameter?

thanks

regards

Ken

0 Likes
View Entire Topic
Former Member
0 Likes

Hi Ken,

The responses from Bruce and Roy in this post should help you out.

Http://codeverge.com/sybase.powerbuilder.objects/calling-c++-function-in-pb/891348

Hth,

Mark

Former Member
0 Likes

hello mark, thanks,i have checked the link,but i still confused that char ** means string array or refrenece a string pararmeter in POWERBUILDER,what do you think?

it sounds like i should use char ** as parameter in C++ if i'd like to reference the string In Powerbuilder to cosume the C++ dll

regards

Ken

Former Member
0 Likes

now im not confusing,i knew i should using the char *,it will reference the string from powerbuilder,not the char **,thanks