- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings,
I have a program which Im porting from compaq to intel visual fortran. So far, I've gotten the program to compile and link by changing all of the references of dfopngl and dfwin to ifopngl and ifwin respectively.
However, once the programs main window is created, fwglCreateContext doesnt seem to work correctly. No error is returned, but the opengl calls simply don't display anything. Any thoughts? Anyone have a working example of an intel visual fortran project that works?
thanks,
matthew
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've attached one that uses fwglCreateContext. I didn't need to make any code changes when doing this port and haven't found any incompatibilities between the two compilers regarding OpenGL applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks.
yeah, i've had quite a bit of trouble getting from cvf to ivf. then again, im pretty new to fortran and the code was written by someone else. for instance, all of the wgl calls were missing until dfopngl was changed. also, none of my resource files would work.
another question though. when i run getdc in my program, many times it returns an integer which is negative? is this within range? also, what type should be used to store the rc and dc identifiers? right now im using integer(4)
thanks again!
matthew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hey steve,
many thanks for the example, the program is working now! turns out that i was missing the save attribute when declaring hrc and hdc.
cheers,
matthew

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page