Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29262 Discussions

updated to Visual Studio 2005 - two trivial questions

lstiburek
Beginner
742 Views

Hello, I have updated to Intel Fortran Compiler Integration for Microsoft Visual Studio 2005, Version 9.1.3192.2005. I ambuilding aQuickWin application. I have got two trivial questions: (1) is there a very simple way to append a single html file to my program,which would be accessible from theapplication'shelp menu- it would include manual to the program users; (2) will the release version work on any windows computer or is it necessary to distribute some supporting files?

Thank you very much for your response.

0 Kudos
4 Replies
Jugoslav_Dujic
Valued Contributor II
742 Views
1) The simplest way to "execute" a html file (launch the default browser) is to use ShellExecute API. There's a more elaborate sample which uses .chm files (including also popup help) on my home page.

2) The release version will work on any Windows computer if it's built with "Static" (non-dll) run-time libraries. I think it's the default -- the setting is located in Project/Properties/Fortran/Libraries/Run-time library. Otherwise, you have to redistribute IVF run-time dll, libifcorert.dll.
0 Kudos
anthonyrichards
New Contributor III
742 Views
In my version of CVF which uses Developer Studio, the Resource editor offers the option of insertingvarious resources, including one labelled HTML, and giving the resource a unique ID, such as IDR_HTML1. From within your execeutable,I believe you can then find the resource using FindResource(hModule, MAKELONG(IDR_HTML1,0) , RT_HTML). Although how you then use the resource handleI am not clear.
0 Kudos
lstiburek
Beginner
742 Views

Thank you very much for your response. With regards to 1)

dummy = ShellExecute(NULL,NULL, "http://www.microsoft.com", NULL, NULL, SW_SHOWNORMAL)

works fine. I need to replace the webpage with theactualpath tothe htmlfile in the directory on user's computer. I use:

dir = file$curdrive

fname = TRIM(dir)//'/manual.html'

dummy = ShellExecute(NULL,NULL, fname, NULL, NULL, SW_SHOWNORMAL)

which does not work, the function returns a value 2.

Thanks for any suggestion, Milan

0 Kudos
Steven_L_Intel1
Employee
742 Views
Use:

fname = TRIM(dir)//'/manual.html'C


0 Kudos
Reply