Re: dumb question...

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Carl Daniel [VC++ MVP] (cpdaniel_remove_this_and_nospam_at_mvps.org.nospam)
Date: 05/20/04


Date: Thu, 20 May 2004 16:05:48 -0700

No, the compiler knows nothing about who is and isn't an administrator, so
that can't be it (which doesn't mean that it won't work on your boss'
machine).

Can you post a complete example that doesn't compile for you? (Something
small - not your entire app. Frequently attempting to make a small program
that reproduces the problem will lead you to discover what's really wrong).

-cd

Need Help wrote:
> Here's the error I got:
> error C2065: 'OpenPrinter' : undeclared identifier
>
> My boss suggested it might have something to do with the fact that
> I'm not an administrator on the machine, and that perhaps this API
> tries to do something with the registry that I don't have access to.
> He's going compiling it on his and see if it works there. Thanks!
>
> ----- Carl Daniel [VC++ MVP] wrote: -----
>
> Need Help wrote:
> > Yes, windows.h was included. There isn't anything other than
> that I > should have to include to get OpenPrinter, right?
>
> Nope. The following compiles:
>
> // Code
> #include <Windows.h>
>
> int main()
> {
> HANDLE hPrinter;
> OpenPrinter("",&hPrinter,NULL);
> }
> // End of code
>
> Exactly what error(s) are you getting?
>
> -cd



Relevant Pages

  • Re: Registry is written at compile time
    ... It does appear to happen during registering the app. ... All you observed was that after a build there were Registry keys. ... compiler do error detection? ... paste in the details of the error message and the sample code. ...
    (microsoft.public.vc.mfc)
  • Re: CLSID_WMDRMDeviceApp - linker error
    ... >> are simply introducing the initialized symbol you need ... It's not the system registry. ... Compiler and linker couldn't ... > had a reason to use IWMDMDevice2 instead of IWMDMDevice. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Installing MinGW and testing it out I have a problem.
    ... compiler which is not to be used, ... Windows registry for its configuration, ... This is free software; see the source for copying conditions. ... PARTICULAR PURPOSE. ...
    (comp.lang.ada)
  • Re: Registry is written at compile time
    ... to the Registry at compile time. ... It does appear to happen during registering the app. ... compiler do error detection? ... paste in the details of the error message and the sample code. ...
    (microsoft.public.vc.mfc)
  • Re: PicBasic vs. C
    ... We currently use PicBasic Pro, ... > own the PicBasic Pro compiler, it will be extremely difficult talking him ... > to approach my boss with this somewhat delicate situation? ...
    (comp.arch.embedded)