For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2006 > fatal error RC1015: cannot open include file 'winver.h'









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fatal error RC1015: cannot open include file 'winver.h'
Norman Diamond

2006-01-13, 4:00 am

eMbedded Visual C++ 4.0 SP4, Windows Mobile 2003 Smartphone SDK.

New workspace, new Smartphone project, "Hello World" project. I did not
edit anything in it. I don't recall if I set the target to WCE emulator
(debug) or if it was already that way by default.

eVC++4 SP4 can't even compile its own Hello World project.
C:\Documents and Settings\ndiamond\My Documents\
Embedded Visual Studio Projects\TestSDK\newres.h(32) :
fatal error RC1015: cannot open include file 'winver.h'.

Here are lines 31 and 32 of newres.h:
#include "winuser.h" // extract from windows header
#include "winver.h"
So the compiler successfully read winver.h but couldn't read winver.h?

Looking in directory
C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Include\Emulator
here are three of the files in alphabetical order:
winuser.h
winuserm.h
winver.h

Notepad can open winver.h just fine so I don't think any of the installers
put funny permissions on that file.

Also the reason I looked in that directory was that eVC++'s Tools -
Options - Directories panel, with Platform SMARTPHONE 2003 and CPU Win32
(WCE emulator) told me to. It looks like the default option there was
impeccable.

Momentarily I had an intuitive hunch that the English language version of
eMbedded Visual C++ 4.0 SP4 maybe couldn't cope with being installed on the
Japanese version of Windows XP SP2, but that doesn't explain how the
compiler successfully read winuser.h and only croaked on winver.h.

So what is this thing doing in order to accomplish this failure, and how can
I fix it?

riki

2006-01-20, 9:57 pm

Norman Diamond wrote:
> eMbedded Visual C++ 4.0 SP4, Windows Mobile 2003 Smartphone SDK.
>
> New workspace, new Smartphone project, "Hello World" project. I did not
> edit anything in it. I don't recall if I set the target to WCE emulator
> (debug) or if it was already that way by default.
>
> eVC++4 SP4 can't even compile its own Hello World project.
> C:\Documents and Settings\ndiamond\My Documents\
> Embedded Visual Studio Projects\TestSDK\newres.h(32) :
> fatal error RC1015: cannot open include file 'winver.h'.
>
> Here are lines 31 and 32 of newres.h:
> #include "winuser.h" // extract from windows header
> #include "winver.h"
> So the compiler successfully read winver.h but couldn't read winver.h?
>
> Looking in directory
> C:\Program Files\Windows CE Tools\wce420\SMARTPHONE 2003\Include\Emulator
> here are three of the files in alphabetical order:
> winuser.h
> winuserm.h
> winver.h
>
> Notepad can open winver.h just fine so I don't think any of the installers
> put funny permissions on that file.
>
> Also the reason I looked in that directory was that eVC++'s Tools -
> Options - Directories panel, with Platform SMARTPHONE 2003 and CPU Win32
> (WCE emulator) told me to. It looks like the default option there was
> impeccable.
>
> Momentarily I had an intuitive hunch that the English language version of
> eMbedded Visual C++ 4.0 SP4 maybe couldn't cope with being installed on the
> Japanese version of Windows XP SP2, but that doesn't explain how the
> compiler successfully read winuser.h and only croaked on winver.h.
>
> So what is this thing doing in order to accomplish this failure, and how
> can
> I fix it?
>


thats very weird
Try
Project->Settings->Resources
make sure the 'Ignore standard include paths' is not ticked. then try
adding the path to the file to the 'additional includes' box.

riki


If you can't say something nice, say something surreal.
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
Norman Diamond

2006-01-22, 10:00 pm

"riki" <see_my_home@page> wrote in message
news:%23t3EFzjHGHA.3120@TK2MSFTNGP10.phx.gbl...
> Norman Diamond wrote:

It was that way by default. Reproduced today with a new project.
[color=darkred]
>
> thats very weird


100% reproducibly weird, so far. How does everyone else avoid it?

> Try
> Project->Settings->Resources
> make sure the 'Ignore standard include paths' is not ticked.


Yup, that is not ticked. So I didn't touch it.

> then try adding the path to the file to the 'additional includes' box.


"the" path? Try adding what path? The path that is already there by
default? The path which it set for itself to enable itself to read file
winuser.h?

> If you can't say something nice, say something surreal.


OK, here goes.
eMbedded Visual C++ 4 SP4.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com