Re: dumb question...
From: Carl Daniel [VC++ MVP] (cpdaniel_remove_this_and_nospam_at_mvps.org.nospam)
Date: 05/20/04
- Next message: Bob Rock: "What does ME C++ stand for???"
- Previous message: William DePalo [MVP VC++]: "Re: re:Starting a process and reading it's output while running"
- In reply to: Need Help: "Re: dumb question..."
- Next in thread: Need Help: "Re: dumb question..."
- Reply: Need Help: "Re: dumb question..."
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Bob Rock: "What does ME C++ stand for???"
- Previous message: William DePalo [MVP VC++]: "Re: re:Starting a process and reading it's output while running"
- In reply to: Need Help: "Re: dumb question..."
- Next in thread: Need Help: "Re: dumb question..."
- Reply: Need Help: "Re: dumb question..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|