How do I create a C++ Class Library?

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!
 
P

Paul G. Tobey [eMVP]

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.
 
G

Guest

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
 
P

Paul G. Tobey [eMVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top