Re: C++ in user mode dll

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.





.



Relevant Pages

  • Re: C++ in user mode dll
    ... " Microsoft recommends that developers use the .NET Framework rather than ... I dont understand how COM or .Net help me in place of my C++ class. ... > I use def file for C functions and dont have to use extern C. ...
    (microsoft.public.development.device.drivers)
  • Re: Checking for A Blank String
    ... 'Len' is faster to type and read and I do not consider it less robust than 'String.IsNullOrEmpty'. ... JITter bug here). ... My toolbox contains both the Visual Basic Runtime Library and the .NET Framework Class Library and I do not have a general preference which tools to choose. ... If you worked with software developers for any length of time you will find that what they know varies considerably. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Just PHP will give you nothing unless you upgrade yourself
    ... Sometime developers thinks that learning Only PHP ... Dont learn the CSS from book, ... MySQL becomes very popular by last couple of years becoz of it's ... What people should be learning is the general concepts of programming, ...
    (comp.lang.php)
  • Re: The Register interview Nigel Brown
    ... The VCL is one of the key factors that makes Delphi unique. ... Open sourcing it would probably attract some developers to it, ... competitiveness with the .Net framework. ...
    (borland.public.delphi.non-technical)
  • .NET 3.0 created by the stroke of a pen
    ... Microsoft .NET Framework 3.0. ... available down-level for Windows XP and Windows Server 2003 as planned. ... for BDS developers your guess is as good as mine which is most Delphi ...
    (borland.public.delphi.non-technical)