Results 1 to 20 of 121

Thread: dynamicCall and QByteArray - strange characters

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    692
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default dynamicCall and QByteArray - strange characters

    Hi to all,
    doing some test with a com object seems that a com routine that I call with dynamicCall returns a QByteArray or a QString.
    Looking at examples of call of such routine seems that it returns an array of bytes where every element is a pointer to a string

    I did some tests as this:

    QByteArray array = obj->dynamicCall("routine(QString)", "value").toByteArray();
    Debugging with visual studio and doing some cout ( qDebug() << array.data() ) I can see very strange characters like this "‰*" in both case, using QByteArray and QString.
    The routine called with dymanicCall comunicate with a chinese fingerprint reader. Maybe this is the reason I get such strange characters?

    Looking at doc and visual basic example the value returned should be an array of bytes -> returned_value[value1,value2,value3, value4..];

    and

    value1 = value2 = value3 = should points to a string.

    How can I get the value of every value without getting these strange characters?
    I hope to get help wysota where are you?

    Regards
    Last edited by franco.amato; 17th April 2010 at 18:03.
    Franco Amato

Similar Threads

  1. Replies: 0
    Last Post: 16th April 2010, 23:21
  2. Regarding qbytearray
    By mohanakrishnan in forum Qt Programming
    Replies: 7
    Last Post: 19th November 2009, 13:38
  3. Replies: 9
    Last Post: 25th July 2009, 13:27
  4. Replies: 1
    Last Post: 28th May 2008, 16:52
  5. QByteArray in Qt3
    By joseph in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2007, 06:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.