|
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!
|
|
|
|
|
Isn't this a polygon with no filling?? I need somthimg like:
+-----------------+
|/////////////////|
|/////////////////|
|/////////////////|
+-----------------+
The square is the polygon and the lines are the fillings (my english isn't the best)
|
|
|
|
|
Sorry! I think I did not understand your question. Is that a hatched brush? Maybe you need CBrush::CreateDIBPatternBrush . Take a look in the documentation, they have a sample (I've never used it...)
|
|
|
|
|
All right. Let me tell you what tried so far.
I want to draw a bitmap on the screen of the device and mark an area in the bitmap. Let's say the user loads an image with a building in the front and some surrounding things. And now I draw a polygon with the shape of the building. But I like the building to stay visible. I thought of a polygon with a transparent hatched filling. In this way the area is marked but I can still see the background.
I looked in the MS help for the LOGBRUSH structure. They write of many brush styles. e.g. BS_HATCHED but when I use this define the error message "error C2065: 'BS_HATCHED' : undeclared identifier" is displayed while compiling. So I looked into WINGDI.h and found only the following brush styles
#define BS_SOLID 0
#define BS_NULL 1
#define BS_HOLLOW BS_NULL
#define BS_DIBPATTERNPT 6
The only way to create a transparent hatched brush is to work with BS_DIBPATTERNPT but there is the next problem. How can I create a transparent DIB. I'm relativly new to Windows progamming.
Greetings
\SOLMAN
|
|
|
|
|
I'm a bit in the cold with that issue. Maybe you want to take a look at the bitmaps section here in CP.
Good luck!
|
|
|
|
|
Can anyone recommend "friendly" books for newbies to eVC++?
|
|
|
|
|
I don't know of any books, however, d/l either eVC++ 3.0/4.0 from msdn and the documentation with it will get you well on your way. There are also many examples in the SDK, depending on what platform your developing on.
Also, depending on what you chose to program with, ie. MFC,WIN32, you can still get a book that isn't necessarily for embedded, but Windows itself. Like Programming Windows MFC - J.Prosise helps me learn MFC, which helps me program eVC++4.0 with MFC.
Alot, maybe 90% of Windows programming can apply to embedded Windows programming.
Good luck!
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
I would like to create an application for the pocket PC (iPAQ) using eVC++ that when you start the app it plays a MP3 file for 5 mins and continues to play until it reaches the end of a current section of music. The music is in sound bits of 20 - 40 sec. When it is done playing and found the silent section, the app will close. It was suggested that I look at the Windows Media Player for Pocket PC SDK documentation. I have looked at the documentation but I need some more basic understanding how MP3 files are layed down and some palce I can read how to interface through C++. An additional bit of information: I will be creating the MP3 files from audio cassette tapes. Any suggestions will be greatly appreciated. Thanks
|
|
|
|
|
Did you look at DirectPlay , do a search on it with google.com.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Soliant,
Thank you for the suggestion. To be honest, I do not understand how to use a API. I will look at the documentation but can you give some additional help how I would use?
Thank you
|
|
|
|
|