Click here to Skip to main content
15,904,024 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerSymmetric-key - Initialization Vector Pin
jkirkerx16-Dec-11 18:04
professionaljkirkerx16-Dec-11 18:04 
GeneralRe: Symmetric-key - Initialization Vector Pin
Chris Losinger17-Dec-11 9:38
professionalChris Losinger17-Dec-11 9:38 
QuestionInterview Preparation Pin
pix_programmer15-Dec-11 18:23
pix_programmer15-Dec-11 18:23 
AnswerRe: Interview Preparation Pin
Chandrasekharan P15-Dec-11 22:07
Chandrasekharan P15-Dec-11 22:07 
Questionmemory leaking in playing video using DirectShow. Pin
Le@rner14-Dec-11 23:48
Le@rner14-Dec-11 23:48 
QuestionRe: memory leaking in playing video using DirectShow. Pin
CPallini15-Dec-11 1:39
mveCPallini15-Dec-11 1:39 
AnswerRe: memory leaking in playing video using DirectShow. Pin
Le@rner15-Dec-11 17:47
Le@rner15-Dec-11 17:47 
QuestionConnecting to SQL CE from MFC Pocket PC 2003 Pin
Vieru Dorin14-Dec-11 21:10
Vieru Dorin14-Dec-11 21:10 
I wrote an application in Visual C++ language, mfc apllication (Dialog Based, MFC in static library), PocketPC 2003 SDK to connect to *.sdf file saved in my PocketPC device.
The same code, for Windows works. The SQL querries from my mfc-Windows affetcs *.sdf file witch is savd on My Computer. But if I wrote the same code for Pocket PC to affect a file witch is saved on device it has no effect.

The code is this:
// ADOWin7Dlg.cpp : implementation file
//

#include "stdafx.h"
#include "ADOWin7.h"
#include "ADOWin7Dlg.h"



#import <<c:\\program files\\common="" files\\system\\ado\\msado15.dll="">> rename( "EOF", "AdoNSEOF")

_bstr_t bstrConnect = "Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=C:\\MyDatabase1.sdf;";


#ifdef _DEBUG
#define new DEBUG_NEW
#endif

-------------ussualy code generated by Visual Sdudio------------------

C#
void CADOWin7Dlg::OnBnClickedButton1()
{
    ADODB::_ConnectionPtr pConn;

    pConn.CreateInstance(__uuidof(ADODB::Connection));

    pConn->Open(bstrConnect, "", "", 0);

    pConn->Execute("INSERT INTO Table1 (Nume) Values ('Arad')", NULL, NULL);
    pConn->Close();

}


I cann not understand why the code works on PC and the same code does not work on Pocket PC. If I run the *.exe file on Pocket PC does not appears any error or message. If I run Query Analyzer 3.5 what is installed on Pocket PC, and make an SQL querry from it, it affects my *sdf file from device. The SQL Compact Edition is installed on device.
Maybe is an ADO connection problem. I don't know.

Thanks for help.

modified 19-Dec-11 11:42am.

AnswerRe: Connecting to SQL CE from MFC Pocket PC 2003 Pin
Richard MacCutchan14-Dec-11 22:20
mveRichard MacCutchan14-Dec-11 22:20 
QuestionLibrary to solve optimization matrix Pin
qwerty_201114-Dec-11 16:49
qwerty_201114-Dec-11 16:49 
AnswerRe: Library to solve optimization matrix Pin
Stefan_Lang14-Dec-11 22:34
Stefan_Lang14-Dec-11 22:34 
GeneralRe: Library to solve optimization matrix Pin
qwerty_201115-Dec-11 16:30
qwerty_201115-Dec-11 16:30 
GeneralRe: Library to solve optimization matrix Pin
Stefan_Lang15-Dec-11 22:31
Stefan_Lang15-Dec-11 22:31 
QuestionUse the environment provided by the application instead from system environment. Pin
Member 848801414-Dec-11 16:12
Member 848801414-Dec-11 16:12 
AnswerRe: Use the environment provided by the application instead from system environment. Pin
kakan15-Dec-11 0:05
professionalkakan15-Dec-11 0:05 
AnswerRe: Use the environment provided by the application instead from system environment. Pin
Randor 15-Dec-11 5:46
professional Randor 15-Dec-11 5:46 
GeneralRe: Use the environment provided by the application instead from system environment. Pin
Member 848801418-Dec-11 21:25
Member 848801418-Dec-11 21:25 
GeneralRe: Use the environment provided by the application instead from system environment. Pin
Randor 19-Dec-11 6:38
professional Randor 19-Dec-11 6:38 
QuestionTAPI Call program Pin
Hadi Dayvary14-Dec-11 4:52
professionalHadi Dayvary14-Dec-11 4:52 
AnswerRe: TAPI Call program Pin
rahul.kulshreshtha15-Dec-11 19:24
rahul.kulshreshtha15-Dec-11 19:24 
GeneralRe: TAPI Call program Pin
Hadi Dayvary16-Dec-11 20:17
professionalHadi Dayvary16-Dec-11 20:17 
GeneralRe: TAPI Call program Pin
rahul.kulshreshtha17-Dec-11 3:11
rahul.kulshreshtha17-Dec-11 3:11 
GeneralRe: TAPI Call program Pin
Hadi Dayvary17-Dec-11 4:02
professionalHadi Dayvary17-Dec-11 4:02 
QuestionPrevent Windows From Entering Hibernate Mode Pin
Rishav Prabhakar13-Dec-11 21:29
Rishav Prabhakar13-Dec-11 21:29 
AnswerRe: Prevent Windows From Entering Hibernate Mode Pin
Alan Balkany14-Dec-11 4:28
Alan Balkany14-Dec-11 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.