problem getting native dll to work in CF

G

Guest

When creating a native DLL for CF, do you make it the same as making it for a
desktop CF? That is, Create Project / Other Languages / C++ / Win32? Then
do you make it static or dynamic?

I created a dynamic DLL that works with my desktop .net, but not when I try
to access it from my pocketpc app.

Thanks for any help.
 
P

Paul G. Tobey [eMVP]

That depends on what version of VS.NET you are using. *Only* VS.NET 2005
can build native code projects for Smart Devices. You cannot use VS.NET
2003 for that task; in that case, you must use eVC 4.0. In *no*
configuration is use of Managed C++ supported by Microsoft.

Paul T.
 
G

Guest

I am using VS.NET 2005. When I choose New Project, what template should I
use? When I use the one mentioned below (Create Project / Other Languages /
C++ / Win32) my dll seems not to work.

thanks for the reply. -
--
Peter Kellner
http://peterkellner.net


Paul G. Tobey said:
That depends on what version of VS.NET you are using. *Only* VS.NET 2005
can build native code projects for Smart Devices. You cannot use VS.NET
2003 for that task; in that case, you must use eVC 4.0. In *no*
configuration is use of Managed C++ supported by Microsoft.

Paul T.
 
C

Chris Tacke, eMVP

You need to choose "Smart Device" as a project template

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


pkellner said:
I am using VS.NET 2005. When I choose New Project, what template should I
use? When I use the one mentioned below (Create Project / Other Languages
/
C++ / Win32) my dll seems not to work.

thanks for the reply. -
 
G

Guest

I figured it out. The project type to create is

File/New/Project/Other Languages/VC++/Smart Device/Win32 Smart Device
Project/DLL

(with vs2005 of course)

--
Peter Kellner
http://peterkellner.net


pkellner said:
I am using VS.NET 2005. When I choose New Project, what template should I
use? When I use the one mentioned below (Create Project / Other Languages /
C++ / Win32) my dll seems not to work.

thanks for the reply. -
 

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