Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29294 Discussions

Can't access GetMenuInfo function from USER32.f90

Russell_G_
Beginner
773 Views

 

I'm using Intel Visual Fortran 2013, with MSVS 2010.  I want to access the GetMenuInfo function which is in the USER32.f90 library.

However I'm not able to access this function.   I've tried to create a minimal test case:

 

SUBROUTINE updatemenu(hWnd)
  USE IFWINTY
  USE USER32
IMPLICIT NONE
  INTEGER(HANDLE)  :: hWnd
  INTEGER(HANDLE)  :: ghMenu
  INTEGER(HANDLE)  :: submenu
  INTEGER(DWORD)   :: ignor
  TYPE(T_MENUINFO) :: minfo

  ghMenu  = GetMenu(hWnd)
  submenu = GetSubMenu(ghMenu, 1)
  ignor   = getMenuInfo(submenu, minfo)
      
END SUBROUTINE updatemenu

 

When I attempt to compile this, I get the following error:

error #6404: This name does not have a type, and must have an explicit type.   [GETMENUINFO]

What's going on here?

 

Thanks

0 Kudos
1 Reply
Steven_L_Intel1
Employee
773 Views

Because the source for USER32 has inappropriate conditionalization. This is being fixed. Use the attached file as a temporary solution - just add it to your project.

447614

0 Kudos
Reply