locked
Calling a CE Compiled DLL from a Desktop Application RRS feed

  • Question

  •  I'm customizing an ERP program that uses the Visual Studio IDE to allow customization. The ERP is a desktop application and I'm trying to integrate the customer's scanners with the ERP program. The scanners are Motorola MC92 and they use Windows 7 Embedded Compact. The customization that I'm using requires that I use a dll from Motorola that was compiled with .NET Compact Framework. So when I run the customization now with my code calling their dll, I get a Unable to load CoreDLL.dll file on load. 

    Is there any way to use this dll that references the compact framework in my desktop application, which I can't recompile the any references. Is there a way to reference a .NET compact framework dll during runtime and have the manufacturer's dll point to that? 


    MCTS

    Friday, November 15, 2013 6:46 PM

Answers

  • Hi Mike,

    Windows and Windows CE are two different platforms, working on different CPU, so I think you could not mix the use of their assemblies. The below page shows that the differences of loading assemblies between Windows and CE. It provides some workarounds, you could try it for your app.

    http://support.microsoft.com/kb/326163.

    Hope useful to you.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 18, 2013 5:23 AM
  • Hetro is correct. There is a Windows CE forum:  http://social.msdn.microsoft.com/Forums/en-US/category/windowsembeddedcompact. The forum answers there can help with Windows CE questions.   More explanation is needed on how the desktop and the scanners interact with one another.


    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

    Monday, November 18, 2013 5:21 PM

All replies

  • Hi Mike,

    Windows and Windows CE are two different platforms, working on different CPU, so I think you could not mix the use of their assemblies. The below page shows that the differences of loading assemblies between Windows and CE. It provides some workarounds, you could try it for your app.

    http://support.microsoft.com/kb/326163.

    Hope useful to you.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 18, 2013 5:23 AM
  • Hetro is correct. There is a Windows CE forum:  http://social.msdn.microsoft.com/Forums/en-US/category/windowsembeddedcompact. The forum answers there can help with Windows CE questions.   More explanation is needed on how the desktop and the scanners interact with one another.


    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

    Monday, November 18, 2013 5:21 PM