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.