Siemens SIMpad SL4
Problem for Siemens SIMpad SL4

HPC 2000 ( Siemens SIMpad SL4 ) and ADOCE problems




By Beresford - usenet poster

" "
I am having a huge problem trying to connect to a database (.sdf) in
an HPC 2000 machine - Siemens SIMpad SL4.

I have an application developed in eVC and i am trying to access the
database (.sdf) using the standard code (Connection, recorset...)
but the piece of code op_res = CoCreateInstance(...) return me a value
that is different from the 3
possible(S_OK,REGDB_E_CLASSNOT­REG,CLASS_E_NOAGGREGATION).

So i cannot create the instance... and cannot open the connection and
acces the database.

Can anyone implemented this in the Siemens or in any other HPC 2000
with a Arm processor?

Can anyone give me some information of what are the necessary steps to
put this working ?( ADOCE 31 DLL's, how to register them in the
device,etc)

Thanks in advance
Joao Patrao

Solution #1

posted on Aug 08, 2005
Somewhat Helpful)

Melissa

Rank: Apprentice 
Rating: 0%, 0 votes
Joao,

I don't know the exact solution for your problem, but I believe that you
need to use 'ADOCE.Connection.3.1' instead of  'ADOCE.Connection.3.0' to get
a correct class ID (I'm not sure about ADOCE 3 connected to SSCE provider,
but with ADOCE 3.1 I'm sure). And more: you need to install/register ADOCE
3.1 runtimes (dlls) first.

Baccarin.

"Joao Patrao" <joao_pat @yahoo.com> escreveu na mensagem



    //debug ------------------------------­------------------------------­----
//----------------------------­------------------------------­-------------
< >...
Was this helpful?
Yes
No

Solution #2

posted on Aug 08, 2005
Not Rated)

Brad

Rank: Apprentice 
Rating: 0%, 0 votes
Code samples can be found in the Books On Line for SQLCE or in the eVC
samples in your installation Samples directory. Load up the eVC sample.

Brad
bra @microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights.

< >...
Was this helpful?
Yes
No

Solution #3

posted on Aug 08, 2005
Not Rated)

Duke

Rank: Apprentice 
Rating: 0%, 0 votes
Hi Joao,

ADOCE is not supported with eVC. Only OLEDB is supported with eVC. You can
use ADOCE with eVB.

Brad
bra @microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights.
Was this helpful?
Yes
No

Solution #4

posted on Aug 08, 2005
Not Rated)

Reynolds

Rank: Apprentice 
Rating: 0%, 0 votes
Brad,
this is the piece of code that fails, in the CoCreateInstance...

(...)
  //debug
   HRESULT hr;
   CLSID  g_ClsID;  
   hr = CLSIDFromProgID(TEXT("ADOCE.Co­nnection.3.0"), &g_ClsID);    

   op_res = CoCreateInstance( g_ClsID /*CLSID_ADOCEConnection*/, NULL,
  CLSCTX_INPROC_SERVER, IID_IADOCEConnection, (void **)&m_conn);
   if (FAILED(op_res)) {
        //debug ------------------------------­-------------------------
                MessageBox(NULL,_T("OTGConnect­ion_Open failed to create
instance!"),_T("OTGDLL"),NULL)­;
        //----------------------------­------------------------------­---
    return FALSE;
  }

  _stprintf(conn_str,
_T("Provider=Microsoft.SQLServ­er.OLEDB.CE.1.0;Data Source=%s"),
pDBFile);
  op_res = m_conn->Open(conn_str, _T(""), _T(""),0);
  if (FAILED(op_res)) {
     //debug ------------------------------­------------------------------­----
        MessageBox(NULL,_T("OTGConnect­ion_Open failed to create data
source!"),_T("DLL"),NULL);
    //----------------------------­------------------------------­-------------

(...)

Can anyone provide me with one example code that i can try?
Thanks in advance
Joao

"Brad Syputa - MS" <bra @Foo.Microsoft.com> wrote in message < >...
Was this helpful?
Yes
No

Solution #5

posted on Aug 08, 2005
Not Rated)

Rachel007

Rank: Apprentice 
Rating: 0%, 0 votes
Hi Brad

How can i use OLEDB with eVC and HPC2000 ?

Where can i find some code example that shows me how to connect to a
database ( sdf file) and populate a recordset with the result of the
query?

Thanks for your help
Joao

"Brad Syputa - MS" <bra @Foo.Microsoft.com> wrote in message < >...
Was this helpful?
Yes
No

Popular Solutions for Siemens SIMpad SL4


Questions and Unsolved Problems for Siemens SIMpad SL4


Do you recommend Siemens SIMpad SL4?
Answer

Answer
imate jama 201 only blue screen

Answer
old Compaq PDA will not hold a charge. Could be the stand or battery. P/N SPS Model 3870 Does anyone... (More)

Answer
i m using htc p3400i.2day i ws nt able 2 access my storage card...memory ws occupied bt files were... (More)

Answer
why the volume is too low in the incoming and outgoing calls in my htc shadow?

Answer
touchscreen not working on my siemans simpad sl4


Didn't find what you were looking for?

Describe your PDAs problem:




Ask our Experts

 

Solve Your Problem Now!
Chat Live with an Expert
Chat Now
Top PDA Experts



Top Computer & Laptop Repairmen

(513) 874-3306
We fix and repair laptop motherboard no video, no...
LaptopOnCall Inc.

(877) 934-6198
Send your laptop to us and we will diagnose the...
A+ Rated Oceanside Computer Sales & Service, LLC


       
Solve Your Problem Now!
Chat Live with an Expert
Chat Now

Insert Link
Insert Image
Insert You-Tube clip
Insert List
Insert List
Spell Check

What is this?



Select