|
Ok!
First create a simple eVC++ application to send some AT commands via the serial port.
I think the best method is to create a simple dialog based application with an edit box and a button.
In the edit box you can edit the current AT command at runtime.
When you click on the button just send the command in the edit box via the serial port to the device (don't forget to add '\r' at the end of the string).
As next connect the Pocket PC to the device (fax) and try the AT commands. So you can test the system.
The code to write a AT command via the serial port works as same as via the IrDA port (in my article). The only thing is, that you have to find out at what port (COM1, COM2, ...) your device is connected.
I hope this will help you!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
OK.
I will check this and get back to you.
Here are my questions:
Lets assume that I am having Pokcet PC device with GSM/GPRS enabled(ie.Always connected...)
How to access the FAX device from my eVC++ applciation which is running on the Pocket PC witout using IrDa?
Expecting your reply in this regard.
Thanks,
siva
|
|
|
|
|
OK.
I will check this and get back to you.
Here are my questions:
Lets assume that I am having Pokcet PC device with GSM/GPRS enabled(ie.Always connected...)and Lets assume that the internet was down and I want to send the document to the remote Fax device...from from my eVC++ applciation which is running on the Pocket PC witout using IrDa?
Expecting your reply in this regard.
Thanks,
siva
|
|
|
|
|
Hi,
I will check this and get back to you.
Here are my questions:
Lets assume that I am having Pokcet PC device with GSM/GPRS enabled(ie.Always connected...)and Lets assume that the internet was down and I want to send the document to the remote Fax device...from from my eVC++ applciation which is running on the Pocket PC witout using IrDa?
Expecting your reply in this regard.
Thanks,
siva
|
|
|
|
|
If your Pocket PC have a serial port you can connect it directly to the fax. Maybe, there are also exist some CF Cards with a serial port (RS232) for the Pocket PC. I think there exist also some IRDA to RS232 converter you can connect to the fax.
And of cource there is a very smart way to send the AT commands to the fax, with Bluetooth.
There exists some Bluetooth to RS232 converter you can connect to the fax. For the Pocket PC there are also exist some Bluetooth CF Cards.
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Hi Guys,
I would like to print document from my eVC++ application.
Does any one having sample application ? if so please let me know in detail.
Suggestions are most welcome.
thanks,
aks
|
|
|
|
|
|
Dear Joao Paulo Figuerira,
Thank you for your reply.I would like to access the printer from my eVC++ application.
I am unable to find these information in the NET.
Suggestions are most welcome !!!
Thanks,
siva
|
|
|
|
|
The problem with CE is that it will not support printing as we know it on the desktop. In another post, Daniel S talks about sending AT commands via IR to the printer. This may be one solution. Another one, might be using a third-party software. Check HP[^], they have a free printing tool for iPAQs.
|
|
|
|
|
Hi there,
I'm working on custom designed hardware (a measuring instrument) with a printer attached to the parallel port. (Windows CE v. 2.11)
When I start printing but the printer is out of paper or off line, the system generates an error message that allows me to press 'Retry' or 'Cancel'.
If I correct the problem and press 'Retry' everything works fine, but if I press 'Cancel' the instrument is no longer able to print until after a reboot.
I can see that EndPage returns a negative value but I can't find a way to handle it.
I have tried to Detach, CreateDC and Attach again but it doesn't help.
Any help will be appreciated
Thanks in advance,
Jørgen
|
|
|
|
|
Hi Jorgeon,
I am also facing the same problem.
Got the solution !
If so please let me know.
Thanks,
aks
|
|
|
|
|
Hi,
Do you have any sample application for accessing the PRINTER from eVC++ program.?
If so please let me know in detail.
Thanks,
siva
|
|
|
|
|
Hi Siva,
Basically the access to the printer in CE is the same as in Windows. You can find examples in "Programming Windows" by Charles Petzold, ISBN 1-57231-995-X and/or in "Programming Windows with MFC" by Jeff Prosise, ISBN 1-57231-695-0.
The procedure is almost like:
StartDoc()
StartPage()
.. Do your printing
EndPage()
EndDoc()
An example can be found in the online help in VCC. Search on StartPage
The problem is that these functions apparently don't return an error code on failure as they probably do in Windows? If they do - I can't see them?
If that won't help you, let me know what exactly you do need?
Regards,
Jørgen
|
|
|
|
|
Hi Jørgen,
Thank you !
Yeah it seems working !
I have to find another solution..that Daniel S talks about sending AT commands via IR to the printer.I am in a position to figure out all the posiblities to talk with printer and FAX.
If you have any ideas/suggestion please let me know in detail.
Shall certainly revert back to you if any need arises..
Thanks
siva
|
|
|
|
|
Hi everyone:
This actually my first post and hope to be part of the group... . I have created an updated 2002 .dll using evc++ and placed it in the root of 2002 ppc. for some reason the system doesn't recognize it. When I try the old one, it works. Any help regarding that? Thanks a lot.
Bob, Software Developer;
|
|
|
|
|
I think the system will look first on the \Windows directory. Have you tried to put it there?
|
|
|
|
|
Thanks a lot Joao, Yeah I did. and also I figured out the problem. it was the 'outputfile' in the project settings. before, I put it for 'x86debug' while it needed 'ARM debug'.
Tell the truth, I don't know what the difference is...!! I would like to know though. I think it depends on the cpu type of the deveice. However, if that's corrrect, how would we know which for which. JUST A FOLLOW UP THOUGHT AFTER THE BIG HEADACH I GOT FROM THIS TINY DIFFERENT SETTING.
Thanks again for your answer.
Software Developer
|
|
|
|
|
You are right about the CPU type. As a matter of fact, you can produce executables for ARM (StrongARM) and the emulator. When you choose the emulator on your project setting, all the compiler's output (.obj, .dll, .exe) goes to the x86debug or x86release (or whatever they are named in your setup). Before generating any output, make sure you have selected the correct target. Don't worry too much about this mistake: from my experience everybody does that, especially when targetting multiple platforms, or when transitioning from the debug to the shipping version of the product (it happended to me just yesterday).
Regards,
João
|
|
|
|
|
hi,
i'm looking for a possebility to read the serial-no. form a IPAQ pocket pc with a evc++ program and send this information to the serial device or ethernet. does anybody knows were to find this information and how to read it.
best regards
DasWeasel
|
|
|
|
|
|
hi,
this looks good. i'll try it out...thanx in advance!
DasWeasel
|
|
|
|
|
I am still using Windows 98. I know that eVC++ will work with Windows 98. Is the an emulator that will work?
Thanks
|
|
|
|
|
Heed these words of caution, from someone already charred by tough experience: don't think about it! The emulator is not very stable in Windows 2000, so don't expect it to work on the nimble 98... My experience with the emulator on an updated W2K is one of sudden and unexpected reboots, not even blue screens!
Beware of the wild emulator!
|
|
|
|
|
Hi out there,
I'm looking for a way to create a transparent CBrush under WinCE so I can draw a polygon filled with lines. The background of the polygon have to be visible. I tried some things but nothing I've tried had a transparent background.
Thanx for help
\SOLMAN
|
|
|
|
|
What you need is a null brush. Use this:
LOGBRUSH logBrush;
CBrush nullBrush;
CBrush* pOldBrush;
logBrush.lbStyle = BS_NULL;
if(nullBrush.CreateBrushIndirect(&logBrush))
{
pOldBrush = dc.SelectObject(&nullBrush);
dc.SelectObject(pOldBrush);
}
Enjoy!
|
|
|
|