Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- From: Pucca <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Apr 2006 14:43:02 -0700
Thanks Alex, I'll adjust my to 0x180000000. I think that'll work.
Also, I keep getting the .exe output when I compile in the VC7. I did set
the General Configuration Type to be .dll in the Project Property. What else
am I missing that I'm not getting my dll output but instaed I'm getting the
..exe output?
--
Thanks.
"Alexander Nickolov" wrote:
It's not an easy question to answer. On one hand you want not.
to confilct with other DLLs, on the other you don't want to
fragment the available addresses for heap memory too much.
Thus numbers close above 0x01000000, but not too close so
as not to accidentally overlap a large DLL loaded at the default
address are good. Another good range is in the upper end, but
before the range used by Microsoft DLLs - e.g. in the range
0x60000000-0x6FFFFFFF (and make sure your entire DLL
fits into this range!). This is where most third party DLLs are
located. Of course you are never guaranteed to avoid collisions
no matter what address you choose, so you should not hardcode
it anywhere in your source and treat your code as relocateable...
Your chosen address is ok range-wise, but considering it comes
from a sample, I'd advise to adjust it a bit...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DD2BD210-649C-48DD-8161-C48C3CCE8573@xxxxxxxxxxxxxxxx
Aah, yes, I had hundreds of compile error earlier but I have clear then
all.
But now when I attach it to the AD it doesn't break and your answer had
just
arrived in time. I need to register with the newly compiled version.
Maybe
that'll work.
A different question for you. How do one decide what to enter for the
Base
address of a COM dll in the compile option. I now have 1300000, which the
example from the Windows SDK. Should I change that number? I look up the
net and all it says is to have it above 1000000.
--
Thanks.
"Alexander Nickolov" wrote:
Compile it in VC 7.1 and register/use the new version :)
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F6F756E3-2F21-42FA-AD18-C69437243996@xxxxxxxxxxxxxxxx
Thanks Alex. I put all my cpp, .h and sr files into the
"Solution"folder,
after I crated the project. I then attached to Active Directory with
some
break points but it's not stopping at those breaks. I don't know what
I'm
missing.
--
Thanks.
"Alexander Nickolov" wrote:
Well, I assumed basic familiarity with VC... You can create a folder
in the project by right-clicking on the project itself in the solution
explorer window. These are immaterial as far as compilation
goes and serve to help you better organize your files. In fact
I rarely use the default folders (delete them right away) and
instead create my own folders for file grouping...
Your project consists of C++ files - most common extensions
are: .CPP, .H, .HPP. If you have resources, you'd need those
as well. You certainly want to avoid project and workspace
related files - avoid the following extensions: .NCB, .VCPROJ,
..SLN (list may be incomplete as I don't remember all off the
top of my head...)
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F279F78B-98BD-4D28-A34A-8A81B61C783A@xxxxxxxxxxxxxxxx
Hi Alex, No I'm not using ATL. After I create a proejct in vs2003,
Under
the
Solution name of my proejct it only has one folder of "Solution
Items".
In
my 2003, I have 3 separate folders for my .h, cpp and source files.
How
do I
add these folders? If I can't add these folders then do I just put
everyting
under this one folder? Do I only need to copy all the files
(excluding
the
dll) from my project folder and not the sub-folders under it?
--
Thank you.
"Alexander Nickolov" wrote:
You'll have to recreate the project in VC 7.1, then import
you existing code files and recompile. I hope you are not
using attributed ATL...
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C18A9FBF-F311-4A53-AEF4-489152D9D930@xxxxxxxxxxxxxxxx
I can't get the pageheap to give me any information on why my com
project
for
AD property page is crashing at the end. I have a Rational
Purify
software
that I can run in VS 2003 but my project is compiled in 2005.
How
can
I
open
this in vs2003 ?
--
Thanks.
- References:
- Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- From: Alexander Nickolov
- Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- From: Alexander Nickolov
- Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- From: Pucca
- Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- From: Alexander Nickolov
- Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- From: Pucca
- Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- From: Alexander Nickolov
- Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- Prev by Date: Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- Next by Date: Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- Previous by thread: Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- Next by thread: Re: HOW CAN I OPEN A COM PROJECT COMPILED IN VS2005, IN VS2003?
- Index(es):
Relevant Pages
|