Search:

Type: Posts; User: cristinuccia

Search: Search took 0.04 seconds.

  1. Re: Passing Array of Strings Between ViB and C

    Many thanks Olaf as usual for your reply. No, I have not any constraint on performance, so I looked for a working solution even if slow.

    Thanks a lot again, :-)

    Cri
  2. Replies
    2
    Views
    1,682

    [SOLVED] Re: SysAllocString

    Finally, I solved as follows:



    string str="Hello World";
    int wslen = ::MultiByteToWideChar(CP_ACP, 0 /* no flags */,
    str.data(), str.length(),
    ...
  3. Replies
    2
    Views
    1,682

    [RESOLVED] SysAllocString

    Hi all,



    BSTR tmp = SysAllocString(L"Hello world");


    It works! But
  4. Re: Passing Array of Strings Between ViB and C

    Dear Schmidt,

    Many many thanks for your help. I've tried your code and it works! Thanks a lot!

    Of course, I have adapted it for my purposes and I've still a small problem. In your sample code...
  5. Re: Passing Array of Strings Between ViB and C

    Actually, I want to develop a function in which one of its output parameters is an array of strings. Based on this I thought to pass it an array of empty strings and make the function fill up these...
  6. Re: Passing Array of Strings Between ViB and C

    Thanks Niya for your quick reply. The problem with your code is that you are manipulating stings already allocated in memory. In your example you are using strupr that does not allocate new memory as...
  7. Re: Passing Array of Strings Between ViB and C

    Many thanks Niya and Bonnie. It works!

    I would like to take advantage of your courtesy for another small question. Now suppose that the C function wants to return an array of string. For instance:...
  8. Re: Passing Array of Strings Between ViB and C

    Many thanks guys for your quick reply!

    I will try and I keep you posted.

    Thanks again,

    Cri
  9. Passing Array of Strings Between ViB and C

    Hi all,

    I would be very gratefull if you could help me in solving the following problem.

    I've developed a C library which exports a function which use as input parameter an array of strings. I...
Results 1 to 9 of 9



Click Here to Expand Forum to Full Width