From: The Star King on 19 Jul 2010 11:13 This issue hasn't been mentioned for a while so I hope you don't mind me bringing it up again. Has there been any progress made on writing windows api programs using one of the free compilers (g95 or gfortran)? I remember there was some discussion about "decorating" function names and stdcall calling convention.. but it all seemed to come to nothing. Currently I can program windows apps in Intel Fortran or in gcc (using C language) but not in gfortran. Also, is it possible to call OpenGL or DirectX from fortran (Intel or gfortran/gcc?). I'd like to do some 3D graphics eventually. Thanks for your help with this.
From: steve on 19 Jul 2010 11:35 On Jul 19, 8:13 am, The Star King <j...(a)npl.co.uk> wrote: > This issue hasn't been mentioned for a while so I hope you don't mind > me bringing it up again. Has there been any progress made on writing > windows api programs using one of the free compilers (g95 or > gfortran)? I remember there was some discussion about "decorating" > function names and stdcall calling convention.. but it all seemed to > come to nothing. Have you checked the gfortran wiki? -- steve
From: The Star King on 19 Jul 2010 11:57 On Jul 19, 4:35 pm, steve <kar...(a)comcast.net> wrote: > On Jul 19, 8:13 am, The Star King <j...(a)npl.co.uk> wrote: > > > This issue hasn't been mentioned for a while so I hope you don't mind > > me bringing it up again. Has there been any progress made on writing > > windows api programs using one of the free compilers (g95 or > > gfortran)? I remember there was some discussion about "decorating" > > function names and stdcall calling convention.. but it all seemed to > > come to nothing. > > Have you checked the gfortran wiki? > > -- > steve Yes, can't find any mention of Windows API programming there. Am I missing something?
From: James Van Buskirk on 19 Jul 2010 12:36 "The Star King" <jfb(a)npl.co.uk> wrote in message news:631eeb7e-fcef-4c40-9e1f-c51a4650200a(a)e5g2000yqn.googlegroups.com... > This issue hasn't been mentioned for a while so I hope you don't mind > me bringing it up again. Has there been any progress made on writing > windows api programs using one of the free compilers (g95 or > gfortran)? I remember there was some discussion about "decorating" > function names and stdcall calling convention.. but it all seemed to > come to nothing. > Currently I can program windows apps in Intel Fortran or in gcc (using > C language) but not in gfortran. > Also, is it possible to call OpenGL or DirectX from fortran (Intel or > gfortran/gcc?). I'd like to do some 3D graphics eventually. > Thanks for your help with this. I posted an example just a couple of days ago: http://groups.google.com/group/comp.lang.fortran/msg/fd9d74e75d8fcb23?hl=en OK, so it was a couple of weeks ago. If all you need to work with is 64-bit Windows, it's easy with standard f03 in any compiler that implements ISO_C_BINDING. The example quoted above shows that gfortran only needs one extra extension statement per interface block to also work with 32-bit Windows. It's pretty easy to convert OpenGL or DirectX C header files to Fortran modules as long as you're only trying to do it for the couple of functions that you need and not everything at once. -- write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, & 6.0134700243160014d-154/),(/'x'/)); end
From: Steve Lionel on 19 Jul 2010 12:58 On 7/19/2010 11:13 AM, The Star King wrote: > Also, is it possible to call OpenGL or DirectX from fortran (Intel or > gfortran/gcc?). Intel Fortran supports OpenGL calls using the IFOPNGL module. There's also f90gl (http://math.nist.gov/f90gl/) though I don't see a build script for gfortran on Windows there. (There is one for Linux.) Intel Fortran doesn't provide DirectX interfaces, but it should be possible to construct your own. -- Steve Lionel Developer Products Division Intel Corporation Nashua, NH For email address, replace "invalid" with "com" User communities for Intel Software Development Products http://software.intel.com/en-us/forums/ Intel Software Development Products Support http://software.intel.com/sites/support/ My Fortran blog http://www.intel.com/software/drfortran
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Excell calling dll with 100% CPU usage Next: Simple Hack TO Get $1500 To Your PayPal Account. |