- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please post your project (all significant files *.vfproj, resources, source code)
Jakub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jakub...it's very simple as I'm a novice...my source file (Source1.f90):
PROGRAM PLAYRUS
implicit none
INTEGER lret
IF(lret) THEN
CALL ENVIRON
END IF
END
SUBROUTINE ENVIRON
!DEC$ IF DEFINED(_X86_)
!DEC$ ATTRIBUTES STDCALL, ALIAS : '_ENVIRON@16' :: ENVIRON
!DEC$ ELSE
!DEC$ ATTRIBUTES STDCALL, ALIAS : 'ENVIRON' :: ENVIRON
!DEC$ ENDIF
use user32
use kernel32
use iflogm
use ifwinty
implicit none
integer(SINT) nCmdShow
integer(BOOL) bret
include 'resource.fd'
type (dialog) gdlg
type (T_MSG) mesg
LOGICAL lret
lret = DLGINIT(DrillCmd, gdlg)
lret = DlgModeless(gdlg, nCmdShow)
PAUSE
END SUBROUTINE ENVIRON
....my resource.h:
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Resource1.rc
//
#define IDD_DIALOG1 101
#define DrillCmd 101
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
...my resource.fd
!
! resource.fd generated from resource.h
!
integer, parameter :: IDD_DIALOG1 = 101
integer, parameter :: $_WIN32 = 1
integer, parameter :: DrillCmd = 101
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not know how you created your resource files but there are only definitions of constants not dialog itself (resource.rc).
I do not use intel build in dialog routines and did not found any example in samples of intel fortran, but you can try to look to samples (in directory)
"c:\Program Files (x86)\Intel\Compiler\11.1\060\Samples\en_US\Fortran\Dialog.zip"
I have found some example in old CVF compiler and prepared project to you, look at it and learn how to do.
Jakub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, Jakub, I'll look the samples over..... - - Kevin

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