mfc >> Syntax error : identifier 'LONG_PTR' on using mshtml

by Julia Weber » Mon, 26 Apr 2004 18:39:07 GMT

I was trying to use IHTMLInputElement. After I compile my
code, the compiler showed some error:

"error C2065: 'IHTMLInputElement' : undeclared
identifier".


So I downloaded and installed all the latest platform SDKs
from
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/.

Ater I included the new include path (C:\PROGRAM
FILES\MICROSOFT SDK\INCLUDE) to Tools->Options-
>Directories->Include Files and tried to re-compile again,
I get the following error:

"c:\program files\microsoft sdk\include\mshtml.h(40510) :
error C2061: syntax error : identifier 'LONG_PTR'"

Can anyone help me? Thanks!

Julia


P.S.: I am using IE 6.0

mfc >> Syntax error : identifier 'LONG_PTR' on using mshtml

by Julia Weber » Mon, 26 Apr 2004 19:08:39 GMT


I just tried to clean-ip everything and re-build, now I
get the following error:

"error LNK2001: unresolved external symbol
_IID_IHTMLInputElement
fatal error LNK1120: 1 unresolved externals"

Which libraries do I have to include?


SDKs
.
again,

mfc >> Syntax error : identifier 'LONG_PTR' on using mshtml

by Frank Hickman » Mon, 26 Apr 2004 22:35:43 GMT

I don't know if it will fix your problem but you need to set the lib path to
the Platform SDK as well and for debugging purposes, you should set the
source code path.

Similar Threads

1. error c2061: syntax error : identifier 'identifier'

2. error C2146: syntax error : missing ';' before identifier 'Length'

I have a VC++.net Win32 console application, however when I compile , I get 
this error 

error C2146: syntax error : missing ';' before identifier 'Length'

Explain...

Location pointed is

typedef struct _LIST
{
    LPLINK      Tail;                       //... List Tail pointer.
    LPLINK      Head;                       //... List Head pointer.
    DWORD       Length;                     //... List Length.
} LIST;

typedef LIST *LPLIST;
in List.h

Thanks,
a.a.cpp


3. error C2061: syntax error : identifier 'ref' - CSharp/C#