PC Review


Reply
Thread Tools Rate Thread

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

 
 
Jim King
Guest
Posts: n/a
 
      11th Nov 2003
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
 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      11th Nov 2003
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)

"Jim King" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
Jim King
Guest
Posts: n/a
 
      12th Nov 2003

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.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      12th Nov 2003
That's fine. It just has nothing to do with Compact Framework.

"Jim King" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with creating query or creating report Need Help Microsoft Access Database Table Design 0 29th Apr 2008 02:22 AM
Creating VBA Functions When Creating Spreadsheet Via VBA? PeteCresswell Microsoft Excel Programming 6 18th Jun 2007 12:38 PM
creating PDF from msword - I get error while creating bookmarks =?Utf-8?B?bWFyay1uZWVkcy1oZWxw?= Microsoft Word Document Management 1 1st Nov 2005 05:48 AM
Auto creating text fields when creating new slide. =?Utf-8?B?amFtZXM=?= Microsoft Powerpoint 1 16th Jun 2005 04:02 PM
Walkthrough: Creating a Dist. App. - problems creating project =?Utf-8?B?R2FyeURvdE5ldA==?= Microsoft Dot NET 1 12th Aug 2004 03:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.