Re: UniCode Resouce (RC) file crashes WinXP Driver build.



I have a strange problem with my rc file.

fatal error compiling Myapi.rc RC1106: invalid option: -3

I got a work around for this problem.

I am compiling resource file(Myapi.rc to Myapi.res) separately using
rc.exe. Since DDK also uses same tool, it should not cause any issue
here(?).

After generating .res file separately, copy it to

\Myproject\dll\MyAllapi\objchk_w2K_x86. Then build the workspace. It
works fine.

I dont understand when I try to build it from "sources" it wont
compile. I have to compile it separately, generate .res and copy it to
intermediate files directory.

Any comments or hints ? I am using perforce source control system. I am
not sure if this has anything to do.

I am worried now if I cant trust my source control fully 100%

Thanks,
Raj

S. Mark Courter wrote:
> Maxim,
> You are Exactly Right!!
> I did further investigation and VSS 6 altered the original Unicode file.
> It does not handle end of line /cr /lf correctly.
>
> In Unicode end of lines are: 0x000D 0x000A
> In VSS it changes to: 0x0D0A00 0x0D0A00
>
> I changed this in my RC file and it compiled in WinXP correctly.
> It worked in Win2000 because I had not done a get from VSS but was
> using the original file.
>
> Thanks again!
> Mark C.
>
>
> "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx> wrote in message
> news:O1RomQX5FHA.1000@xxxxxxxxxxxxxxxxxxxxxxx
> > Note: not all source control systems can keep Unicode text files.
> > SourceOffSite cannot, for instance (and I believe SourceSafe too, at least
> the
> > older version).
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@xxxxxxxxxxxxxxxx
> > http://www.storagecraft.com
> >
> > "S. Mark Courter" <smcourter@xxxxxxxxxxx> wrote in message
> > news:OHmYY$V5FHA.2092@xxxxxxxxxxxxxxxxxxxxxxx
> > > Dear All,
> > > I have a virtual printer driver project that produces a UI dll and a GR
> dll.
> > > The UI dll uses an RC file for the printer settings dialog.
> > > I have a string table section to ease porting to different languages.
> > > When I create a Unicode RC file in order to build a Japanese version,
> > > the WinXP DDK Build freezes when it gets to this file.
> > >
> > > On a Win2000 machine using a W2K Build environment, everything
> > > works fine and I get a print driver that displays Japanese in the Print
> > > Setting
> > > dialog.
> > >
> > > Any ideas?
> > >
> > > I'm using:
> > > Built with DDK 3790.1830 on WinXP. Build V. 4.23.3790
> > > Built with DDK 2134 on Win2000. Build V. 4.03.2134
> > >
> > > Thank You
> > > Mark C.
> > >
> > >
> >
> >

.



Relevant Pages

  • Re: Conversion from System::String^ to LPCTSTR
    ... Source code can be usable for both unicode and ansi/multibyte, ... compiling. ... It is a dll. ... "Ben Voigt" wrote: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: When CString doesnt work
    ... Microsoft-supplied header. ... > you have so many issues of portability that the issue of character ... narrow chars depending on the existence of the UNICODE macro but the ... building it on a linux system with gcc, sometimes it means compiling on ...
    (microsoft.public.vc.mfc)
  • Re: Mixed Language Text in a List Control
    ... using resource only dlls. ... How do you know if the application is compiling for Unicode? ...
    (microsoft.public.vc.mfc)
  • Multi-threaded DLL (/MD)
    ... I have a strange problem and maybe somebody can help me: ... Debug DLL " ... Now compiling ends up with some problems: ...
    (microsoft.public.vc.language)
  • PKG_CONFIG_PATH problem
    ... I have a strange problem here. ... gtk+-2.0` for compiling my code. ... Everything worked fine untill I had to add libgnomecanvas path to the ...
    (GNOME)

Loading