Creating a eVC++ DLL to be used by an ASP

J

Jim King

Greetings,
We are using Windows CE.NET 4.2 and want to be able to Create an
object in an Active Server Page that will use JScript to load data
variables in the page.
For example in the ASP:
<% var SDobject = new ActiveXObject("shdata.sdFunctions") %>
language = <% = SDobject.getSD("ht0125") %>
In this case "ht0125" is the name of a variable that is stored in RAM
in the CE.NET 4.2 OS and I want to set "language" equal to its value
(by calling function getSD).

I created an ActiveX dll (shdata.dll) using VB6.
This works on Windows 2000 will IIS installed, but since compact
framework does not support ActiveX I don't know how to proceed.

Two questions arise:
1. Is this the proper way to create an object in an ASP when using
compact framework?
2. How do I (or should I) create a DLL using eVC++ that will work with
an ASP?

P.S. Does anyone know of a good book on eVC++?

Regards,
Jim King
 
A

Alex Feinman [MVP]

There is essentially no way to use Compact Framework with ASP on CE.NET. You
can only use COM components (and only those implementing IDispatch) in ASP
script, whereas CF does not support neither creating nor using COM objects.
I think you are confusing eVC with Compact Framework. CF is a .Net
environment reduced in size and modified to be usable on mobile devices with
support for C# and VB.NET only. You use Visual Studio (2003) to write CF
applications. eVC is an "old-style" development environment for writing C++
(or C) code to run on mobile devices. eVC is indeed capable of creating COM
objects (via ATL projects or otherwise)
 
J

Jim King

Alex,
My understanding is that the CE.NET 4.2 embedded web server supports ASP
and that a COM object can be created within the page using the
CreateObject() method (ref "Embedded Web Server For Windows CE .NET by
Chris Muench, Sep 2002,
http://www.msdnaa.net/Resources/pfv.aspx?ResID=2159). What I am trying
to do is create an ActiveX DLL using Embedded Visual C++ that can with
the Platform Builder. This ActiveX DLL would contains functions that
would allow me to read and write certain data variables within the OS.
 

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