NO

Author Topic: big problem include <exdisp.h> for Windows XP  (Read 3807 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.

Offline JohnF

  • Member
  • *
  • Posts: 1114
    • http://www.johnfindlay.plus.com/
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

Offline JohnF

  • Member
  • *
  • Posts: 1114
    • http://www.johnfindlay.plus.com/
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