Problem: How to include DLL when I compiled my windows mobile project?
-
Hello all, I have created a DLL (smart device -> win32 application -> DLL) in Visual Studio 2005 and it can be compiled successfully using the Windows Mobile 6 SDK. I try going to test my DLL by creating a new project (c#->device application -> wm6 application) and add the DLL to it. I tried dragging the DLL into application it works, but it doesnt work when I tried to add reference to it However, whenever I try building the project on simulator, it says it cannot find the DLL. Funny enough, when I directly put the application exe and the dll to my device, it works. But I observe that my DLL library is not performing what it should be. What is the problem with it ? Assistance of any forms will be highly appreciated. Thanks, Leslie
-
Hello all, I have created a DLL (smart device -> win32 application -> DLL) in Visual Studio 2005 and it can be compiled successfully using the Windows Mobile 6 SDK. I try going to test my DLL by creating a new project (c#->device application -> wm6 application) and add the DLL to it. I tried dragging the DLL into application it works, but it doesnt work when I tried to add reference to it However, whenever I try building the project on simulator, it says it cannot find the DLL. Funny enough, when I directly put the application exe and the dll to my device, it works. But I observe that my DLL library is not performing what it should be. What is the problem with it ? Assistance of any forms will be highly appreciated. Thanks, Leslie
It sounds like the DLL isn't being copied over to the device when you are testing. What exactly do you mean by
leslie wu wrote:
I tried dragging the DLL into application it works, but it doesnt work when I tried to add reference to it
If there isn't a reference to the DLL in the project, I doubt VS will know to copy it over when testing. Edit : Also, what sort of DLL is it (is it, for example, a .Net Assembly)?
My Blog: This Blog
-
It sounds like the DLL isn't being copied over to the device when you are testing. What exactly do you mean by
leslie wu wrote:
I tried dragging the DLL into application it works, but it doesnt work when I tried to add reference to it
If there isn't a reference to the DLL in the project, I doubt VS will know to copy it over when testing. Edit : Also, what sort of DLL is it (is it, for example, a .Net Assembly)?
My Blog: This Blog
Hi Tony, Thank you for your reply. What I mean by that is if I drag my compiled DLL from windows explorer directly into the the solution explorer space, I can see the DLL copied into the project. However, if I try adding by clicking: my project -->"add reference" and add my DLL,it says " A reference to mydll could not be added. What is the problem with it ? What should be the proper way in adding my DLL ? And to my second problem concerning my dll function is not working properly, any clue ? Thanks, Leslie
-
Hi Tony, Thank you for your reply. What I mean by that is if I drag my compiled DLL from windows explorer directly into the the solution explorer space, I can see the DLL copied into the project. However, if I try adding by clicking: my project -->"add reference" and add my DLL,it says " A reference to mydll could not be added. What is the problem with it ? What should be the proper way in adding my DLL ? And to my second problem concerning my dll function is not working properly, any clue ? Thanks, Leslie
-
To be precise, I got the following error: An unhandled exception of type 'System.MissingMethodException' occurred in DeviceApplication2.exe Additional information: Can't find PInvoke DLL 'smartdevicedll.dll'.
That is a versioning error, usually.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego. -
That is a versioning error, usually.
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.