Domanda

I have seen this post stating that managed DLLs cannot be called from classic ASP code in Windows CE, but what about unmanaged?

More specifically, this page explains how to call a DLL from ASP, but the first step is to register the DLL, and I couldn't find a way of doing this in CE.

Is it possible to call an unmanaged dll from classic asp in Windows CE? If so, how can I register and call it?

[Edit] By the way, I'm using Windows CE 2013

È stato utile?

Soluzione

You can't call a "plain" DLL. A DLL that is just exporting some functions. This means that you can't, for example, call any Windows CE API inside your ASP page. However you can create COM objects (using the Server.CreateObject statement) and those object must be implemented in native code and so they can access all the OS APIs. You can use ATL to simplify development of COM objects (I said simplify, not make it simple!). There is no way to invoke objects implemented using .NET since the .NET CF runtime can't be loaded inside a native exe and the HTTP server is running in the contest of a native EXE.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top