Hello,
I have an DLL (unmanaged C++) and the application (C#) worked well on Desktop. Now i want to make it work on PocketPC.
I could not debug into the DLL (unmanaged C++) from my Smart Device Application (C#). My project was built in the following way: New Project--->C#-->Smart Device (Pocket PC 2003) --> Device Application
The project to build the DLL for PocketPC is created as: in VS2005 New Project--->VC++-->Smart Device --> Win32 Smart Device Project (Platforms choose "Pocket PC 2003" and Application Settings choose "DLL") and the DLL was successfully built.
When i tried to debug from the application to the unmanaged DLL, i need to set: "Enable Unmanaged Debugging" to "True". But for my Smart device application project, i cannot find such a setting in the project properties. Please tell me how i can call from the smart device application to a function in the DLL (this DLL is built for smart device also). Thanks, Vic

Can't call MyFunction in MyDLL(C++) from PocketPC application (C#)
Bliszek
This is currently not supported for Smart Projects.
Smart Device Projects do only support one debugger (either the managed or the native debugger) attached to a process.
There are two options to enable debugging of a native dll.
1) Write a Native C++ Program to to debug the DLL.
2) In the Native DLL project settings under Configuration Properties->Debugging specify your managed application as "Remote Executable" to launch.
Select <Native DLL>->Debug->start new instance to start a native debugging session.
Let me know if this helps.
Michael
Dr. eX
Thank you very much for your helpful info.
So currently, we can use either the managed debugger (like for C#) or the native debugger (like for C++), but not both for Smart Devices or the Smart Device emulators.
I think your 1st suggestion will work, in which case we only have one debugger need to be used.
For your 2nd suggestion, i checked my DLL project settings, and found that the "Configuration Properties"->"Debugging" is already set as "Remote Executable", and the DLL's location and name are specified: %CSIDL_PROGRAM_FILES%\MyDLL\MyDLL.dll
In VS2005, the C# application is "Set as the StartUp Project". I clicked MyDLL project in the Solution Explorer in the right side of VS2005, the "Solution Conigurations" is show as "Debug" and the "Solution Platforms" is set as "Pocket PC 2003 (ARMV4)". I click the small green play button ("Start Debugging (F5)") on the left sode of Debug, and i can start my debugging in my C# application, but still cannot debug into the DLL.
If what i did is not what you told me in the 2nd suggestion, please let me know.
Thanks again for your help!
Vic