If ExitProcess is a function without a return value, then the return statement you write in the example below is not valid. So the compile error is justified.
Or am I missing something ? Danny On Mon, 2009-05-18 at 10:39 +0200, Johnny Willemsen wrote: > Hi, > > Btw, WinCE ships with ExitProcess, see > http://msdn.microsoft.com/en-us/library/ms885217.aspx > > Johnny > > > We have a compile problem when trying to use ExitProcess. Using it > > without > > return works (see the example with value 3), but using it with return > > results in a compile error (see 4). I think the ExitProcess should be > > an > > inline function instead of a define. > > > > Johnny > > > > #include <windows.h> > > > > int main (int argc, char*[]) > > { > > ExitProcess (3); > > return ::ExitProcess (4); > > } > > ~ > > > > > > ----------------------------------------------------------------------- > > ------- > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables > > unlimited royalty-free distribution of the report engine > > for externally facing server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > Cegcc-devel mailing list > > Cegcc-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/cegcc-devel > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Cegcc-devel mailing list > Cegcc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cegcc-devel > -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel