|
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.
|
|
|
|
|
Hi Patu,
Could you give me some information regarding your idea? Thanks
|
|
|
|
|
|
Hi,
On my application I use a Dialog that cuts the task bar and fits the screen the code to do that is:
void FitIt(HWND Form)
{
CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);
SHFullScreen(Form, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON );
#define MENU_HEIGHT 26
CRect rect;
GetWindowRect(Form,&rect);
rect.top -= MENU_HEIGHT;
MoveWindow(Form,rect.left, rect.top,rect.Width(), rect.Height(), TRUE);
}
(I call this function in the end of the OnInitDialog())
The problem is: when an extern Message appears(such as the one that advises me that I'm connecting or disconnecting to the pc) , when this Message disappears the Dialog is redrawn
"over" the other, but starting from the point under the first
taskbar, with the result that all the form seems to be moved down and I get double "mytaskbar".
I'm asking: what event exactly happens when an extern Message comes over my dialog? where can I write the code to build again my dialog when a Message appears?
|
|
|
|
|
names...names...
Windows Mobile is only a Microsoft marketing "branding" of Pocket PC and Smartphone products..only words used by marketing to define the products like SmarthPhone and PPC. About Windows CE...
www.opennetcfg.org/Forums/topic.asp?TOPIC_ID=317
|
|
|
|
|
Salve,
I'm a developer and I write applications in visual c++ (using eVc++ 4.0) for a Dolphin 9500 . In order to scan barcodes I need to use the functions waConnect(), waDefaultSymbology(), waDisableSymbology(), waEnableSymbology(), waWaitForDecode() and waDisconnect().
I had to include in my project the external dependencies engnapi.h and wadecodece.lib and everything seems to work.
The problem comes out when I try to compile for Debug: the compiler asks for two files: HHPSCANINTERFACE.DLL and WADECODECE.DLL. Both this files are unfoundable for me.
I often need to debug my program, and I really need to solve this problem, have you got any suggestion? Where can I find these files?
(Note: I cannot use ScanWedge to scan my barcodes, so I HAVE TO use the functions written above)
|
|
|
|
|
dear all,
i wanted to develop an application for my pcoket pc. Application should understand all the phone models and sync data between the BT paired mobile phones.
I am new to this Bluetooth technology. Any body tell me how to start and develop application using bluetooh technology ?
What are all the bluetooh standards to syncronize data like address book, phon book info and also accept and reject calls from my pcoket pc to control my mobile phone.
any ideas, resources and suggestions are most welcome.
regards,
aks
|
|
|
|
|
Hi,
What is your target device?
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,
Eli
|
|
|
|
|
hi,
i have not decided yet.i will tell you as soon as identified the target device.
how to sync data(call list, sim - phone book, address book and etc.,) from mobile phone to pocket pc over bluetooh connection
(1) what are all the standards to sync data to win ce device from other cellular phones ?
(2) do you know any standards ?
(3) do you have any idea about OBEX / SyncML ?
please do let me know if you have any valid information!
regards,
siva
|
|
|
|
|
hi,
i have BT enabled pocket pc and i have BT enabled nokie mobile phone.
i want to sync data(address book, phone book, call list ) to my pocket pc.
is there any way to do it ? standards are there to sync data ?
any idea ..?
regards,
aks
|
|
|
|
|
hi,
thanks for your reply. i want to develop application using eVC++ 4.0 for windows ce 5.0 device. Actually, i want to get the phoone book data(such as call hsitory list, outgoing, received calls, missed calls, address book, sms message list ) from nokia phone to my pocket pc over bluetooh conenction.
i am able to establish BT connection between two device.
what profile do i need to use for getting the phone data ?
do i need to use AT command over serial profile, or object push profile or syncML or IrMC standard ?
please do let me know if you have any idea about it.
please suggest me in detail.
regards,
aks
|
|
|
|
|
Hi,
Is there any way to use the EditBox And Label on a Vertical position instead
of Horizonal position(i need to develope application where the PDA is in vertical position).
Regards,
Eli
|
|
|
|
|
Hi All,
I have created COM Server(EXE)using Embedded VC++ 4 and able to Register it on WinCE emulator.
Now my client is on Desktop ,but when i call CoCreateInstance and try to create Instance of Component,it fails the HRESULT returned is
"CXX0033:error in OMF type Information"
I need to instantiate the component from Desktop,is it possible?
Thanks
TusharM.
|
|
|
|
|
hi all,
i am a newbie to pocket pc programming. i am using eMbedded VC++ 4.0. i have a simple WCE Pocket Pc application that has a dialog box. inside this dialog box i have 2 edit boxes (name and age) and one combo box (sex). there are 2 buttons in this dialog box submit and cancel. what the user is expected to do is enter his/her name, age and select either male or female from the combo box and then press submit. when the submit button is pressed the contents should be entered in a text file.
i dont know what is the code to enter/populate the comboxbox and enter the selected data (male or female) into the text file. I want this to be done in WIN32API. could anybody please help me out?
thanks!!!
cheers
|
|
|
|
|
hi,
I'm new to C++ programming and i have to create a WIndows CE version of Hopper which is a user input stress simulator. i was wondering if anyone could give me a starting point on any articles or examples of source code which could be useful to me?
thanks heaps
|
|
|
|
|