How do I create a C++ Class Library?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some C++ Class libraies I'm trying to port to PPC. It's not obvious
how. None of the supplied templates seem to create one. If I create a CLR
class library, I get Win32 and cannot seem to add the PPC platform (or it is
not obvious how). If I create an MFC / ATL dll, I cannot seem to add managed
extension support.

Before I spend time losing my hair, I figured I'd ask if anyone has done
this and has a template somewhere...

Thanks greatly!
 
Yes, you don't want a .NET library if you're working in C++. Managed C++ is
not supported on Windows CE-based devices, including Windows Mobile. You
didn't tell us what development system you're using, but, if it's VS2005,
the new project entry for Smart Device Application under C++ has a Win32
Smart Device Project. The wizard will allow you to select a suitable
project type after you've done that...

Paul T.
 
Thanks Paul,

Yeah, I have VS2005, all the latest updates. I do want the libraries to be
compiled for computation efficiency. So I created an ATL library. Then I
should use COM interop to call it for the .NET GUI?

Note in Win32 I can create a C++ .NET class library.

Thanks,
Bob


--
Regards,
Bob Binns
http://www.binnsware.com
 
You'll have to answer that question. You could put a non-object wrapper on
your C++ code and call it like you do the Win32 API when P/Invoking it. Or,
yes, you could use COM interop.

The .NET Compact Framework run-time doesn't support managed C++. I think
this was the right decision.

Paul T.
 
Back
Top