Re: _vsnwprintf Entry Point Not Found in Windows 2000

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Robert Stankey wrote:
> I have simple little user-mode application compiled under the Windows
> 2003 DDK environment (checked or free) that uses the String-Safe
> handling functions. If I try to run the executable on Windows 2000 I
> get a nasty "entry point not found" message.
>
> Can something tell me if its possible to have an application compiled
> for W2K3 run under W2K without getting the annoy Entry Point message?
> If so I haven't figured out which library to link in.

Well, first of all the DDK is aimed at building drivers, not user-mode apps.
I would use the latest SDK + the free VC comand line compiler to build a
user mode app...

Next, _vsnwprintf is a CRT function, so :
- either you link statically with the CRT (use /ML, /MLd, /MT or MTd
compiler switch) and the function will be in your exe.
- either you link dynamically with the CRT (use /MD or /MDd compiler switch)
and you need to redistribute the CRT with your app (msvcr71.dll and possibly
msvcp71.dll - check with Dependency Walker what your actual dependencies
are).

I disagree with Jochen, in that I would advise to use the 2nd solution as
soon as there are several modules (exe and dlls) in your app : it makes
ressource management accross modules boundaries *much* simplier. Now,
distribution requirements for your app may prevent you from depending on
these DLLs, it's up to you...

Arnaud
MVP - VC


.



Relevant Pages

  • Re: Why is dynamic polymorphism so useful?
    ... At some point in a program we assign to ref_var a reference to some ... Say we start this app and while app is already running, ... The already running app has to be flexible enough to enable an object ... Perhaps because creators of Java decided compiler doesn’t have to know ...
    (comp.lang.java.programmer)
  • Re: What programming language for Future
    ... >> anyways, I was not talking about portability, but rebuilding crap at ... > consequence of a *much* tighter and more portable language specification, ... presumably work fine together since they use both the same compiler and the ... one links in object files compiled by the other compiler, the resultant app ...
    (comp.lang.misc)
  • Re: What programming language for Future
    ... usually when apps come with scripts, those scripts are for that version ... version of the app. ... Which is exactly the same as when the compiler is shipped with the app. ... for the sole reason that they can't rebuild a working dll. ...
    (comp.lang.misc)
  • Re: object system...
    ... in a statically compiled app, all of the type information is known at ... compiler starts integrating itself with the outside world, ... produces the result, the type or interface. ... optimizations the ...
    (comp.object)
  • Re: Shared Data Segment
    ... > that VB uses (c2 and link in the VB install directory). ... > tools are modified versions of the VC6 compiler so if you can play with ... what I seem to be finding is that the hook "breaks" as soon as Windows ... works if I activate another app and then go back to the original app. ...
    (microsoft.public.win32.programmer.kernel)