Solved

Base Address 0x00400000 Visual studio 2008

Posted on 2009-07-10
7
479 Views
Last Modified: 2013-11-27
i want to use 0x00400000 this base address , in visual studio 2008 what i need to write for this base address ?? I am writing  &H00400000 but when i am checking base address looking like 00cf0000. ? &H?????????.
0
Comment
Question by:Gknrsy
  • 3
  • 2
  • 2
7 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 24830167
if you try to load more than 1 DLL at this address, 1 will be moved. Do you have something else at this address?
0
 

Author Comment

by:Gknrsy
ID: 24830493
i just want to load 1 dll not more than 1 dll.
0
 
LVL 8

Expert Comment

by:dericstone
ID: 24831740
How are you trying to set the base address? What language? It looks like you can use the project settings, compiler command-line options or specify in code. If using the project settings in C#, write the address as 0x00400000.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:Gknrsy
ID: 24833231
i am trying in vb2008 , where project properties > compile > advanced compile options > dll base address

but here i cannot write 0x00400000 because they accept just like &H00400000 , when i write this base address , when i start the file  base address look like 00cf0000

That's my problem :)
0
 
LVL 8

Accepted Solution

by:
dericstone earned 250 total points
ID: 24833562
Sounds like you are specifying it correctly, but remember that this is only a "preferred" address, and only gives a hint as to where to load. If the address you enter is unavailable for any reason, the system will load it somewhere else. My guess is that Windows is already using the address that you want to use.

You can try to debug this by, for example, set the address to 0x00cf0000 and see if stays there. Then move to 00d00000 and see if it moves there. Keep moving around until you find where the limit is.
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 250 total points
ID: 24834104
>>i just want to load 1 dll not more than 1 dll.

There maybe another DLL that is already loaded at that address that prevent you to load there.
0
 

Author Comment

by:Gknrsy
ID: 24837047
ok i see :) before this dll working another dll with same base address :) thank you very much :)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question