Excellent! That worked! Thanks very much Phil.
...
> Make sure the order of includes and libs in your build has the Platform
SDK
> settings before the VS folders.
> --
> Phil Wilson
> [MVP Windows Installer]
> "Alero" <ale
...@magnum-bank.com> wrote in message
>
news:OUm02mjiEHA.556@tk2msftngp13.phx.gbl...
> > Thanks Phil, but that doesnt work either. Its almost as if all the
> > declarations have changed since the Platform SDK 2003 release. Do you
know
> > if there's a later release?
> > Thanks
> > "Phil Wilson" <Phil.Wil...@unisys.spamcom> wrote in message
> > news:%23$ZppPgiEHA.2992@TK2MSFTNGP12.phx.gbl...
> > > Try including <msiquery.h> - this contains an include of msi.h so you
> > don't
> > > need both.
> > > --
> > > Phil Wilson [MVP Windows Installer]
> > > ----
> > > "Alero" <ale...@magnum-bank.com> wrote in message
> > > news:OJRXyldiEHA.3536@TK2MSFTNGP12.phx.gbl...
> > > > Thanks. But any time I try to use any of the MSI API calls in code I
> get
> > > > compiler erors.
> > > > eg I try
> > > > MsiProcessMessage(hInstall, INSTALLMESSAGE(INSTALLMESSAGE_INFO),
> > > newHandle);
> > > > ...and I get
> > > > 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)
> > > > I've already installed the MSI SDK/ Platform SDK (Feb 2003), and
> > > > added the \include\ and \lib\ directories to the Visual Studio
path,
> > but
> > > no
> > > > joy.
> > > > Thanks
> > > > "Phil Wilson" <pdjwil...@nospam.cox.net> wrote in message
> > > > news:eLfqcrXiEHA.1644@tk2msftngp13.phx.gbl...
> > > > > Coding example here:
> > > > > http://support.microsoft.com/default.aspx?scid=kb;en-us;253683
> > > > > --
> > > > > Phil Wilson
> > > > > [MVP Windows Installer]
> > > > > Definitive Guide to Windows Installer