Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Paasing file name from Python to Fortran DLL

Reply
Thread Tools

Paasing file name from Python to Fortran DLL

 
 
avinrosh avinrosh is offline
Junior Member
Join Date: Oct 2007
Posts: 1
 
      10-10-2007
Hello;

I am using ctypes module in Python to access functions defined in one Fortran DLL file.The functions inside DLL take file names as parameters. Since in Fortran we assign files with unit numbers and that is being passed. In python there is no unit number but the file name. So when the function is being called from Python how the file has to be passed as parameter.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing an array from FORTRAN to C then passing it within C andReturning it to FORTRAN deadpickle C Programming 1 11-07-2010 02:38 PM
Paasing 70-562 before 70-536 antar MCTS 1 12-15-2009 04:41 PM
Many Fortran code! How to call Fortran code from C/C++? Luna Moon C++ 9 09-04-2007 03:49 PM
Paasing values to javascript from asp.net Priya ASP .Net 5 02-19-2007 03:52 AM
Paasing global variables to functions ankisharma@gmail.com C Programming 10 07-29-2005 02:53 PM



Advertisments