MsiProcessMessage

Alex Smotritsky <[email protected]> Thu, 30 Nov 2006 19:31:43 -0700
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <002a01c714f0$d7ac2c40$9a09a8c0@animal>
I'm trying to execute MsiProcessMessage in a visual c++ 6 custom action as
in examples from msdn:



      MsiProcessMessage(hInstall,
INSTALLMESSAGE(INSTALLMESSAGE_ERROR|MB_ABORTRETRYIGNORE|MB_ICONWARNING),
hRecord);



I'm getting this error:



error C2664: 'MsiProcessMessage' : cannot convert parameter 2 from 'enum
tagINSTALLMESSAGE' to 'enum tagMSIMESSAGE'

        Conversion to enumeration type requires an explicit cast
(static_cast, C-style cast or function-style cast)

Error executing cl.exe.



The code will compile if I use MSIMESSAGE instead of INSTALLMESSAGE but in
that case no messagebox is displayed.



Any ideas?






===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com