Re: web server.how to use adoce3.1 in asp in web server of windows
- From: "John Spaith [MS]" <jspaith@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Nov 2005 12:46:03 -0800
>From your original code snippet, it looks like you're using VBScript. The
new ActiveX object is a JScript construct only. There's something similar
for VBscript but I don't remember the exact syntax.
--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation
Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.
"soul" <soul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4FC9E435-9779-4835-91D3-E27706D88725@xxxxxxxxxxxxxxxx
> Hi John.
> May i have some code for how to use ADOCE3.1 object in asp in web server
> of
> windows ce4.2??(the adoce3.1 have register)
> because i use below .it can not work
> <%
> conn = new ActiveXObject("ADOCE.Connection.3.1")
> conn.Open "Provider=Microsoft.SQLSERVER.OLEDB.CE.1.0;data
> source=\sample.sdf"
> %>
> thanks
> Peter Ma
>
>
> "John Spaith [MS]" wrote:
>
>> There is no server.CreateObject() in Windows CE ASP. You'll need to use
>> the
>> VBScript or JScript equivalent functions to create new ActiveX objects --
>> i.e. 'newActiveXObject("ADOCE.Connection.3.1")' in jscript or whatever
>> the
>> syntax is.
>>
>> IIS had to have the Server.CreateObject() for some reason I've long since
>> forgotten, but CE didn't need it and hence we didn't implement it.
>>
>> --
>> John Spaith
>> Software Design Engineer, Windows CE
>> Microsoft Corporation
>>
>> Check out the new CE Networking Team Blog at
>> http://blogs.msdn.com/cenet/.
>>
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> You assume all risk for your use. © 2003 Microsoft Corporation. All
>> rights
>> reserved.
>>
>> "soul" <soul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:9A5A6709-994E-4298-98C4-10B1B76F5A80@xxxxxxxxxxxxxxxx
>> > how to use adoce3.1 in asp in web server of windows ce4.2
>> > example
>> > <%
>> > Set cnMobileSales = server.CreateObject("ADOCE.Connection.3.1")
>> > %>
>> > but i can not work. anyone can tell me how to do by right way.
>>
>>
>>
.
- References:
- Re: web server.how to use adoce3.1 in asp in web server of windows ce4
- From: John Spaith [MS]
- Re: web server.how to use adoce3.1 in asp in web server of windows ce4
- Prev by Date: Re: Visual Studio 2005 C++ Express
- Next by Date: Re: Problem with keybd_event()
- Previous by thread: Re: web server.how to use adoce3.1 in asp in web server of windows ce4
- Next by thread: Re: Detect when suspended
- Index(es):
Relevant Pages
|