NO

Author Topic: big problem include <exdisp.h> for Windows XP  (Read 7764 times)

serge59

  • Guest
big problem include <exdisp.h> for Windows XP
« on: September 07, 2007, 04:03:22 PM »
Good morning,

I am French and I have used Pelles C for a few months.

I decided to use the functions IWebBrowser include <exdisp.h>

at the time of compiling, I have the following errors:

C:\Program Files\PellesC\Include\Win\exdisp.h(15): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\exdisp.h(15): error #2001: Syntax error: found 'IWebBrowser' - expecting ';'.
C:\Program Files\PellesC\Include\Win\exdisp.h(15): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\exdisp.h(15): error #2001: Syntax error: found 'IWebBrowser' - expecting ';'.
C:\Program Files\PellesC\Include\Win\exdisp.h(15): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\exdisp.h(20): error #2001: Syntax error: found 'DWebBrowserEvents' - expecting ';'.
C:\Program Files\PellesC\Include\Win\exdisp.h(20): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\exdisp.h(20): error #2120: Redeclaration of 'DWebBrowserEvents' previously declared at C:\Program Files\PellesC\Include\Win\exdisp.h(20): found 'int' expected 'int'.
C:\Program Files\PellesC\Include\Win\exdisp.h(25): error #2001: Syntax error: found 'IWebBrowserApp' - expecting ';'.
C:\Program Files\PellesC\Include\Win\exdisp.h(25): warning #2099: Missing type specifier.
C:\Program Files\PellesC\Include\Win\exdisp.h(25): error #2120: Redeclaration of 'IWebBrowserApp' previously declared at C:\Program Files\PellesC\Include\Win\exdisp.h(25): found 'int' expected 'int'.
C:\Program Files\PellesC\Include\Win\exdisp.h(30): error #2001: Syntax error: found 'IWebBrowser2' - expecting ';'.
C:\Program Files\PellesC\Include\Win\exdisp.h(30): warning #2099: Missing type specifier.

....  For all 100 errors.

 :-\

The beginning of the program is the following:

#define WIN32_LEAN_AND_MEAN
/* #define NOCRYPT */
/* #define NOSERVICE */
/* #define NOMCX */
/* #define NOIME */

#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <tchar.h>
#include <exdisp.h>

#include "main.h"

#define NELEMS(a)  (sizeof(a) / sizeof((a)[0]))

IWebBrowser2   *pIWeb;

....


could somebody help me?

Thank you

best regards

Serge.

JohnF

  • Guest
Re: big problem include <exdisp.h> for Windows XP
« Reply #1 on: September 07, 2007, 04:22:14 PM »
Take out this line

#define WIN32_LEAN_AND_MEAN

John

serge59

  • Guest
Re: big problem include <exdisp.h> for Windows XP
« Reply #2 on: September 07, 2007, 04:30:10 PM »
 :D :D :D

Good Morning,

Thank you very much, John

Best Regards,

Serge

JohnF

  • Guest
Re: big problem include <exdisp.h> for Windows XP
« Reply #3 on: September 07, 2007, 05:14:05 PM »
Good afternoon surely! :)

Btw, you should not really have posted your query to the bugs section.

John