Hi,
I want to develop a dll in Visual Fortran that it use wxWindows to show a basic window and write text on it (as a console). What would be the procedure?
Thanks
Calling wxwindows from Visual Fortran dll
-
- In need of some credit
- Posts: 4
- Joined: Thu Sep 16, 2004 10:38 am
-
- In need of some credit
- Posts: 4
- Joined: Thu Sep 16, 2004 10:38 am
Calling wxwindows from Visual Fortran dll
Thank you cg for answering me.
I understand that it is not possible to do what I want.
My fortran dll does extensive calculations that use a lot of time and I would wish information to appear such and since they are calculated.
I understand that it is not possible to do what I want.
My fortran dll does extensive calculations that use a lot of time and I would wish information to appear such and since they are calculated.
Consider using multi-threading
For what you want specifically, the best option would be to use multi-threading, you keep one GUI thread reading a global data structure, as the other threads perform the calculations and update it - either by using your Fortran dll or internally.
Yes, sockets are also possible, but somewhat messier - if you use sockets you'll have implement your own "mutexes" yourself to protect the data, and worry about synchronizing the communications timing with the calculation process.
But your suggestion makes me think about the pros/cons of both methods for this specific kind of problem - when speed is crucial.
But your suggestion makes me think about the pros/cons of both methods for this specific kind of problem - when speed is crucial.