- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone from a newbie to this forum.
I would like to use an IVF program to open a browser that can open an input file. I have used the Dujic routine XFTfile.f90 under Compaq Visual Fortran, but I cannot get it to work with IVF under VisualStudio.NET. Just today I downloaded the latest XFT routines and I still get errors of the form:
dBoltz.for(24): Error: There is no matching specific function for this generic function reference. [XGETOPENFILE]
dBoltz.for(24): Error: A logical data type is required in this context. [XGETOPENFILE]
dBoltz.for Compilation Aborted (code 1)
Is anyone here familiar with XFT? I only want to do this one simple function (open a Windows-style browser to open a file for data input). Perhaps my problem is not the source code, but my inept use of VS.NET. Anyway, if someone has sample source code that can do this, I would be eternally (well, at least for a few days) grateful.
Richard
I would like to use an IVF program to open a browser that can open an input file. I have used the Dujic routine XFTfile.f90 under Compaq Visual Fortran, but I cannot get it to work with IVF under VisualStudio.NET. Just today I downloaded the latest XFT routines and I still get errors of the form:
dBoltz.for(24): Error: There is no matching specific function for this generic function reference. [XGETOPENFILE]
dBoltz.for(24): Error: A logical data type is required in this context. [XGETOPENFILE]
dBoltz.for Compilation Aborted (code 1)
Is anyone here familiar with XFT? I only want to do this one simple function (open a Windows-style browser to open a file for data input). Perhaps my problem is not the source code, but my inept use of VS.NET. Anyway, if someone has sample source code that can do this, I would be eternally (well, at least for a few days) grateful.
Richard
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Richard,
As I suggested when you asked this through Intel support, you'll have to modify your program to pass the extra hwnd argument the current XFT routine wants. Jugoslav's web site provides some samples. The first error is because your arguments don't match how the routine is defined. The second error is a consequence of the first.
Once you get the arguments matching, you should be ok.
As I suggested when you asked this through Intel support, you'll have to modify your program to pass the extra hwnd argument the current XFT routine wants. Jugoslav's web site provides some samples. The first error is because your arguments don't match how the routine is defined. The second error is a consequence of the first.
Once you get the arguments matching, you should be ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is F90 sample code showing file routines using Win32 API calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(sentby private e-mail as well)
Hi Richard,
When you use individual XFT modules (XFTFile or XFTGDI), you *have to*
define XLITE either by leaving their first line as:
!DEC$DEFINE XLITE
or by specifying XLITE in Project/Properties/Fortran/Preprocessor/Preprocessor definitions.
Further, the problem with unresolvedreferencesyou encountered can be solved by:
- adding XStrings.f90 to your project as well (I forgot to specify that)
- the missing references like CoTaskMemFree are consequence of the fact
that IVF/VS.NET does not appear to include Ole32.lib in the default
list of libraries.
So, it could just be added either in
Project/Properties/Linker/Input/Additional dependencies
or by inserting
!DEC$OBJCOMMENT LIB: "Ole32.lib"
somewhere in source files (e.g. on top of XFTFile.f90)
Regards
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, everyone. I followed Jugoslav's suggestions and everything worked perfectly.
What a pleasure to get such expert advice so easily!
Richard
What a pleasure to get such expert advice so easily!
Richard

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