Re: C++ in user mode dll
- From: Raj <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 18 Jun 2006 04:04:03 GMT
I dont know what COM is. When I was trying to learn COM, I came across this
statement
" Microsoft recommends that developers use the .NET Framework rather than
COM for new development ".
I dont understand how COM or .Net help me in place of my C++ class.
"Raj" wrote:
I use def file for C functions and dont have to use extern C. I use "WINAPI ".
though and it compiles and links with App and executes properly.
I am trying to export a class or class member function. I am searching for
example to use in def file.
"Peter Wieland [MSFT]" wrote:
if you use the .def then you also need to add extern "C" to the declarations
of the functions you're going to export. Otherwise you'll have unresolved
symbol errors when linking
-p
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx> wrote in message
news:OuxyEf4PFHA.1500@xxxxxxxxxxxxxxxxxxxxxxx
Try
TARGETTYPE=DYNLINK
.DEF file is also a very good idea. It will allow unmangled export
names,
so not only C++, but C code too will be able to work with the DLL.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
"Raj" <Raj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:438F6233-CE7A-472A-8116-F34C63EA0D95@xxxxxxxxxxxxxxxx
Can I build a C++ user mode dll in DDK 3790 build window. I want to have
my
user mode dll in C++ and driver in C. I want to build both in DDK and use
as
one software project.
- Follow-Ups:
- Re: C++ in user mode dll
- From: Maxim S. Shatskih
- Re: C++ in user mode dll
- References:
- C++ in user mode dll
- From: Raj
- Re: C++ in user mode dll
- From: Maxim S. Shatskih
- Re: C++ in user mode dll
- From: Peter Wieland [MSFT]
- Re: C++ in user mode dll
- From: Raj
- C++ in user mode dll
- Prev by Date: Re: LNK2019 errors w/ Visual Studio 2003 & DDK 3790
- Next by Date: Re: C++ in user mode dll
- Previous by thread: Re: C++ in user mode dll
- Next by thread: Re: C++ in user mode dll
- Index(es):
Relevant Pages
|