PDA

View Full Version : Need to create QStringList and QVector in FORTRAN



praveen
3rd April 2008, 15:53
Hi friends, :)

I have a new problem today.

I'm developing wrappers (C) for C++ lib.
FORTRAN client uses this C wrapper to call C++ lib features.

My problem now is, I need to pass instance of QStringList and QVector to the wrapper to get my work done.

How to go about? :confused:

Any idea?
Thanks in advance.

ChristianEhrlicher
3rd April 2008, 16:01
I don't know what's the Qt-Problem here. You have to figure out how / if Fortran handles such structures and convert them into the correct form.

praveen
3rd April 2008, 16:13
I don't know what's the Qt-Problem here. You have to figure out how / if Fortran handles such structures and convert them into the correct form.
Sorry I didn't explain my problem completely.

I need to create an instance of QStringList in FORTRAN (will this support?).
Thanks for replying.

ChristianEhrlicher
3rd April 2008, 16:15
That's not possible. You have to pass the strings as char* and then create your QStringList inside Qt.

praveen
3rd April 2008, 16:20
That's not possible. You have to pass the strings as char* and then create your QStringList inside Qt.
Thanks for your reply.

I'll try out your idea.
Have a nice day.
Bye