|
Hi,
Remote File Viewer comes with Embedded VC++ 4.0 ,
you can find it in Tools menu.
Thanks
TusharM.
|
|
|
|
|
I have to write a routine where i have to compact a local database in the middle of an application.
I have created a Cdatasource object and CSession object at the time of start of the application.
In the middle of the PPC application say on a button click,
i called the close method of these 2 objects, ran the command for compacting the database and opening the datasource and session again.
In the routine for compacting the database we are creating a com object.
i.e
HRESULT hr = CoCreateInstance(CLSID_Engine, NULL, CLSCTX_INPROC_SERVER, IID_ISSCEEngine, (void**)&ssceEngine);
This returned false.So it could not create the engine object,
Can any one tell me why this happened,
When i call this function in the start as soon creating a sdf file it works, but from the middle of application it doesnt,
Pls help !!!!!!!!!
|
|
|
|
|
Did you call CoInitializeEx?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
This is what i wrote:
ISSCEEngine* ssceEngine = NULL;
bool retVal = false;
m_strLocalStorageFile = _T("C:\Tmp1");
HRESULT hr = CoCreateInstance(CLSID_Engine, NULL, CLSCTX_INPROC_SERVER, IID_ISSCEEngine, (void**)&ssceEngine);
if (SUCCEEDED(hr) && (ssceEngine != NULL))
{
CString strDestStorageFile = _T("C:\Temp");
CString strSource = _T("Data Source=");
strSource += m_strLocalStorageFile;
strSource += _T(";SSCE:Database Password=xxxx;SSCE:Encrypt Database=TRUE");
CString strDest = _T("Data Source=");
strDest += strDestStorageFile;
strDest += _T(";SSCE:Database Password=xxxx;SSCE:Encrypt Database=TRUE");
BSTR sourceFile = strSource.AllocSysString();
BSTR destFile = strDest.AllocSysString();
hr = ssceEngine->CompactDatabase(sourceFile, destFile);
}
if (retVal)
{
if (::DeleteFile(m_strLocalStorageFile))
{
// rename the file
::MoveFile(strDestStorageFile,m_strLocalStorageFile);
}
}
This code works from fine in one module but doesnt seem to work when called from another module.
The module from where it works is where the sdf file is created.
before calling the above lines of code im just closing the connection the datasource and session and opening it after running the compact routine.
I also tried calling coInitialixeEX but didnt wrk
Pls help !
|
|
|
|
|
exactly, so why don't u try paint that comes with all microsoft OS to draw larger icons?
|
|
|
|
|
How to custom draw big icons in CListViewCtrl which type is LVS_ICON?
I know how to custom draw in CListViewCtrl typs is LVS_REPORT, but can't draw
icon when type is LVS_ICON by the same method!
I use embedded vc 4.0 ,and wtl 7.0, sdk is smartphone 2003
Please help me.
Thanks .
lee
|
|
|
|
|
Did you try drawing big icons in some drawing software like Paint, Visio etc?
HTH
|
|
|
|
|
oh,sorry.
I use embedded vc 4.0 ,and wtl 7.0, sdk is smartphone 2003
|
|
|
|
|
how video can transffer to mobile from pc
hussain
|
|
|
|
|
either via active sync or by simple file sharing
|
|
|
|
|
Do Anyone know how to install WinCE on SetTopBox ? I copy all file from a boot floppy disk to Set Top Box (STB)'s harddisk, after that i used SYS command for that harkdisk, and copy NK.bin to that harddisk. And i turn STB on to boot. That is ok. WinCE run in a short time after not run.
I use Platform Builder to create NK.bin. But i dn't know config for all devices as mouse, keyboard, or update driver.
Help me. Thanks.
--------------------------
ERP VN: www.erpvn.net
|
|
|
|
|
If your device is iPaq,it has Widcomm Stack so you can't using MS function,
but you can use CreateFile() with COM8 and it will open your BlueTooth manager to do the pairing.
If you has MS stack,you can use MS function(WSALookupServiceBegin() etc.).
Regards,
jon
|
|
|
|
|
I have a set top box device having winCE 4.2
installed.
This device allow us to install and use webcam.
But i want to communicate with webcam by programming
in this enviroment as we used to do on PC by DirectX. A
problem i have that this DirectX verion on WinCE 4.2
does not support us functions or librarys to do this.
So, can anybody give me a suggestion?
---------------------------------------
My site: www.erpvn.net
|
|
|
|
|
I've been toying with ATL com objects and I have a problem.
once I create the com object and load to the emulator, it works fine once,
then I get a hard error and the com can not be used again.
Does anybody have any idea of what I'm doing wrong!!!
thanks for the help!
sun.lcr
|
|
|
|
|
don't do the hard error, instread try soft error.
HTH
|
|
|
|
|
Hi HTH,
Thanks for comment.
I'm not doing any erroring at all. Instead when i do something like this:
dim o as new my atlObject
textBox1 = o.foo 'returns a string
textBox1 = o.foo 'fails in here ..... and I get the error message....
sun.lcr
|
|
|
|
|
Hi,
I am running my embedded C++ program on a Standard SDK emulator on my PC. If I want to create a file with my program, is it possible to create the file on my PC harddisk. When i create the file in the emulator, where is the location of the file?
|
|
|
|
|
the file will be created inside the emulator. the files in CE start at the root
the root is the windows directory
\windows\folder\file
use the file explorer in the emulator by going to start\programs\file explorer
sun.lcr
|
|
|
|
|
Hi,
Thanks for replying. Is the anyway to make a copy of the file onto my PC harddisk? As the file will be gone everytime i close emulator rite?
|
|
|
|
|
I'm in the same quest!
I've gotten as far as creating the file in the emulator and browising it with the file explorer.
I've a similar need but backwards, I need to load a bitmap template file that I can reuse many times, however I have not been able to figure out how to copy a file to the emulator workarea so that it gets loaded everytime I deploy the app to the device and the doc is very skimpy or my eyesight is looking at the wrong docs...
anywho: sorry but that's as far as I am for now....
sun.lcr
|
|
|
|
|
after reviewing my answer, I did some more research and found out that if you want the file to be copied to the handheld everytime you use the emulator all you have to do is copy the file into the project and then right click on the file at the solution explorer and select the build /content which is the default, i believe....
anywho, after that your file will always be loaded into the emulator whenever you want to test your program....
sun.lcr
|
|
|
|
|
Hi,
I'm trying to establish a serial port between my iPaq and a Bluetooth
device.
When i call to CreateFile() with COM8(this is the only port which let me to choose the remote device i want to connect to,with the Bluetooth manager),
the connection i get is ActiveSync connection and not generic serial connection.
How can i get a generic serial connection?
My code is:
//===========================================================================
bool PDA_BlueTooth::OutputPortOpening()
{
DWORD dwError;
DCB PortDCB;
COMMTIMEOUTS CommTimeouts;
// Open the serial port.
hOUTPUT = CreateFile(TEXT("COM8:"),GENERIC_READ |
GENERIC_WRITE,0,NULL,CREATE_ALWAYS,0,NULL);
// if it fails to open the port, return FALSE.
if ( hOUTPUT == INVALID_HANDLE_VALUE )
{
// Could not open the port.
AfxMessageBox (TEXT("Unable to open BlueTooth Output Port!!!"));
dwError = GetLastError ();
return false;
}
::SetupComm(hOUTPUT,4000, 2048);
PortDCB.DCBlength = sizeof (DCB);
// Get the default port setting information.
GetCommState (hOUTPUT, &PortDCB);
// Change the DCB structure settings.
PortDCB.BaudRate = 115200; // CANgine Baudrate
PortDCB.fBinary = TRUE; // Binary mode; no EOF check
PortDCB.fParity = FALSE; // Disable parity checking
PortDCB.fOutxCtsFlow = FALSE; // No CTS output flow control
PortDCB.fOutxDsrFlow = FALSE; // No DSR output flow control
PortDCB.fDtrControl = DTR_CONTROL_ENABLE;
// DTR flow control type
PortDCB.fDsrSensitivity = FALSE; // DSR sensitivity
PortDCB.fTXContinueOnXoff = TRUE; // XOFF continues Tx
PortDCB.fOutX = FALSE; // No XON/XOFF out flow control
PortDCB.fInX = FALSE; // No XON/XOFF in flow control
PortDCB.fErrorChar = FALSE; // Disable error replacement
PortDCB.fNull = FALSE; // Disable null stripping
PortDCB.fRtsControl = RTS_CONTROL_ENABLE;
// RTS flow control
PortDCB.fAbortOnError = FALSE; // Do not abort reads/writes on
// error
PortDCB.ByteSize = 8; // Number of bits/byte, 4-8
PortDCB.Parity = NOPARITY; // 0-4=no,odd,even,mark,space
PortDCB.StopBits = ONESTOPBIT; // 0,1,2 = 1, 1.5, 2
// Configure the port according to the specifications of the DCB
// structure.
if (!SetCommState (hOUTPUT, &PortDCB))
{
// Could not create the read thread.
AfxMessageBox (TEXT("Unable to configure BlueTooth Output Port"));
dwError = GetLastError ();
return false;
}
// Retrieve the time-out parameters for all read and write operations
// on the port.
GetCommTimeouts (hOUTPUT, &CommTimeouts);
// Change the COMMTIMEOUTS structure settings.
CommTimeouts.ReadIntervalTimeout = MAXDWORD;
CommTimeouts.ReadTotalTimeoutMultiplier = 0;
CommTimeouts.ReadTotalTimeoutConstant = 0;
CommTimeouts.WriteTotalTimeoutMultiplier = 10;
CommTimeouts.WriteTotalTimeoutConstant = 1000;
// Set the time-out parameters for all read and write operations
// on the port.
if (!SetCommTimeouts (hOUTPUT, &CommTimeouts))
{
// Could not create the read thread.
AfxMessageBox(TEXT("Unable to set the time-out parameters\n for
BlueTooth Output Port"));
dwError = GetLastError ();
return false;
}
AfxMessageBox(TEXT("Output Port is open"));
return true;
}
//===========================================================================
Please help me....
Best Regards,
Eli
|
|
|
|
|
all,
i want to synchronize data to my Pocket PC(phone edition) from my Nokia mobile phone(syncML compliant) using SyncML via bluetooh. i don't know how to start this.
any body tell me in detail, how to work on this and what are all the steps that i need to take to work on this to sync my address book, phone book, and other details to my pcoket pc.
suggestions or any ideas are most welcome.
regards,
aks
|
|
|
|
|
Hi,
I'm trying to write a VB application using VB.net that runs on hand held devices that runs Windows CE. The objective of the application is to retrieve general performance counter from the OS and transfers it over a central server through the network. On a regular XP or Windows 2000 Professional it's very easy to retrieve performance data by using WMI. I haven't figured out what APIs or other ways to gather performance data from Windows CE. Does anyone have any ideas?
Thank you in advance.
|
|
|
|
|
yes, i think i have very good idea.
|
|
|
|