Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Is there a way to Get around "Entry Point Not Found" error??

Reply
Thread Tools

Is there a way to Get around "Entry Point Not Found" error??

 
 
Rymfax
Guest
Posts: n/a
 
      05-22-2007
I have an application that will be used on both XP and Vista. One of
the things this application needs to do is determine the exact
operating system it is on. To get the correct "flavor" of Vista that
might be running, there is a new function in Kernel32.dll called
GetProductInfo(). The problem I'm running into is that if I include
this function in my application, the app errors on XP at start up with
the following message:

The procedure entry point GetProductInfo could not be located in the
dynamic link library KERNERL32.dll

Now I understand that this is happening because the kernel32.dll on XP
does not have that function, but I put an if statement in my code so
that if the MajorVersion of the OS is < 6 (VISTA) then it doesn't call
this function anyway. However that doesn't seem to be sufficient to
keep it from trying to find the entry point anyway. Is there a way
for me go get around this?

TIA,

Rym

 
Reply With Quote
 
 
 
 
Andre Kostur
Guest
Posts: n/a
 
      05-22-2007
Rymfax <> wrote in news:1179857234.224564.70540
@q66g2000hsg.googlegroups.com:

> I have an application that will be used on both XP and Vista. One of
> the things this application needs to do is determine the exact
> operating system it is on. To get the correct "flavor" of Vista that
> might be running, there is a new function in Kernel32.dll called
> GetProductInfo(). The problem I'm running into is that if I include
> this function in my application, the app errors on XP at start up with
> the following message:
>
> The procedure entry point GetProductInfo could not be located in the
> dynamic link library KERNERL32.dll
>
> Now I understand that this is happening because the kernel32.dll on XP
> does not have that function, but I put an if statement in my code so
> that if the MajorVersion of the OS is < 6 (VISTA) then it doesn't call
> this function anyway. However that doesn't seem to be sufficient to
> keep it from trying to find the entry point anyway. Is there a way
> for me go get around this?


You're offtopic. This is a Microsoft specific question, so you should be
asking in a Microsoft-specifc newsgroup.

 
Reply With Quote
 
 
 
 
JussiJ
Guest
Posts: n/a
 
      05-31-2007
On May 23, 4:58 am, Andre Kostur <nntps...@kostur.net> wrote:
> Rymfax <cwal...@bigbangllc.com> wrote in news:1179857234.224564.70540
> @q66g2000hsg.googlegroups.com:
>
> You're offtopic. This is a Microsoft specific question, so
> you should be asking in a Microsoft-specifc newsgroup.


Looks very much on topic to me.

The error is caused by the missing entry point added to the
executable at link time.

So as Robert suggests, the answer is take the entry out of the
executable and use the LoadLibrary and GetProcAddress Win32 API's
to late bind the troublesome Win32 API.

Jussi Jumppanen
Author: Zeus for Windows IDE
http://www.zeusedit.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
IP Route Tables - Point to Point Connection - Only Routing 1 way SallyBridges Cisco 3 12-06-2007 06:06 PM
Scenario 5: IS-IS routing on Frame Relay Multi-point and Point-to-Point David Sudjiman Cisco 0 06-08-2006 09:11 AM
Read all of this to understand how it works. then check around on otherRead all of this to understand how it works. then check around on other thelisa martin Computer Support 2 08-18-2005 06:40 AM
Online site has blocked my computer, is there a way around it? xfactor Computer Support 4 02-19-2005 04:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57