Base Address 0x00400000 Visual studio 2008

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?????????.
GknrsyAsked:
Who is Participating?
 
dericstoneCommented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
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
 
GknrsyAuthor Commented:
i just want to load 1 dll not more than 1 dll.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
dericstoneCommented:
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
 
GknrsyAuthor Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
>>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
 
GknrsyAuthor Commented:
ok i see :) before this dll working another dll with same base address :) thank you very much :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.