ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

read Data queue from c# program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • read Data queue from c# program

    Hello Guys, I'm trying to read messages from Dataqueue, using c#, I have the dll cwbx.dll in my references, the connection is great.
    I have a DataQueue object:

    DataQueue mydataqueue = new DataQueue();
    ....
    ....
    //When I try to read, I get an exception
    object oReturned;
    var oo = mydataqueue.Read(-1, out oReturned); //In this line, I got the exception.

    ....
    The exception says: "The second parameter of the function cwbDQ_OpenEx is not correct" , sombody knows what does it mean? why this is happening?
    Thank you.

  • #2
    Any chance you can show a little more relevant code? Doesn't seem anywhere close to enough to connect to a data queue.
    Tom

    There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

    Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

    Comment

    Working...
    X