Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C++/CLI Windows VS2010 DLL , +
My Application is compiled in VS2010 [c++]. Starting the application in Windows2000 Server Sp4 throws error popup saying - "Decodepointer could not be located in kernel32.dll". Google did not help. Have any one seen such problem before. All suggestions are welcome and appreciated.
 
Thanks,
Sajith
Posted 29-Jan-13 5:06am
Edited 29-Jan-13 6:37am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

DecodePointer is a function which comes with Windows XP SP2 and is not supported on Windows 2000 Have you compiled software which is not suited for Windows 2000?
 

http://msdn.microsoft.com/en-us/library/bb432242%28VS.85%29.aspx[^]
  Permalink  
v2
Comments
gssajith87 at 30-Jan-13 1:01am
   
Thanks Vyacheslav. Yes, i too saw the link., and searched for the function DecodePointer in my entire solution but not able to find one., Can you tell me which library or dll will be using DecodePointer call internally in common? (I am suing Md5, AES, BlowFish encryption and decryption algorithm. Have also used LZ4 and Zlib Algorithms included in my proj library.)
 
I have compiled the my solution in VS2010 with Linker->system->Minimum Required Version as 5.0.
 
Previously, i was getting an error saying, Invalid Win32 application which got solved by applying the above Configuration Change in VS2010.
 
Now, i am struck with this error "Procedure entry point for Decode pointer cannot be located in Kernel32.dll". Is there a way i can compile my solution, so that i can skip this error. ?
 
Thanks,
Sajith
Vyacheslav Voronenko at 30-Jan-13 1:36am
   
You need to review version requirements for all the 3rd party libraries you are using. Windows 2000 is quite old system - so it could be not supported in some of the libraries used.
gssajith87 at 30-Jan-13 2:54am
   
Thanks for your time Vyacheslav
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

If you are building an app that needs to run on a down-rev version of windows (or an old version of Internet Explorer) you need to pay attention to the settings of _WIN32_WINNT and _WIN32_IE. These specify to the compiler what minimum OS and IE will be supported on target systems.
 
Here is what I use for minimum support of "Vista":
 
#define _WIN32_WINNT    _WIN32_WINNT_VISTA  // We are Vista
#define _WIN32_IE       _WIN32_IE_IE80      // IE 8.0
 
I'll leave the Windows 2000 setting as an "exercise for the reader." The MS docs should be helpful.
 
These definitions are typically placed in the stdafx.h file, which is (by Microsoft's intention) included in every .cpp file.
 
I think you'll find that if you do this you will get errors saying that "symbol DecodePointer" does not exist, and the message(s) will point to where your code needs to change.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,631
1 Sergey Alexandrovich Kryukov 6,345
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100