|
I want to communicate from Laptop to PDA via Bluetooth.
I will create a virtual COM port between both devices to do that.
How can I read from a ComPort in ecv++ 3.0?
(on HP iPAQ 5450)
Any examples?
thx for any hints...
thx, Daniel
|
|
|
|
|
Take a look at my Infrared Communication with your Mobile Phone article. I will use the IrDA port of my Pocket PC to communicate with the Mobile Phone. It works like the two devices are connected with a serial cable!
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
Hi, I am developing an app in CE that sits in the background and takes a certain action on keydown and then another on keyup. This communicates serially with another device and has to do two specific functions-one when the operator hits the button and one on release. The keydown time can vary.
I have tried hotkey and hooks and they look to be deadends unless someone knows how to make those work in CE.
I appreciate any help on this.
John
|
|
|
|
|
Have you tried SHSetAppKeyWndAssoc or RegisterHotKey . May be you can also try GAPI and the GXOpenInput function.
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
Hi
How do I use string class using STL for eMbedded Visual C++?Please give the code snippet.What are the header fiels to be included?I have downloaded the library from http://www.pocketpcdn.com/libraries/stl.html.
Please help.
Rgds,
Venkatesh
|
|
|
|
|
Hi
I have downloaded the stl_eVC.zip from http://www.pocketpcdn.com/libraries/stl.html.
I want to use that to get the functionality of string, istringstream,ostringstream.
Can anyone provide a sample how to include the library and its usage?
I tried to compile my application to use string class, but I am getting compiler errors.Does the library implements ostream and ofstream?
Please help.
Rgds,
Venkatesh
|
|
|
|
|
CPen myPen;
LOGBRUSH logBrush;
logBrush.lbStyle = BS_SOLID;
logBrush.lbColor = RGB(128,128,128);
myPen.CreatePen(PS_DOT|PS_GEOMETRIC|PS_ENDCAP_ROUND,20,&logBrush);
Why EVC always tell me
'PS_DOT' : undeclared identifier
'PS_GEOMETRIC' : undeclared identifier
'PS_ENDCAP_ROUND' : undeclared identifier
Can anyone help me thx ^^
|
|
|
|
|
Windows CE supports only PS_SOLID , PS_DASH and PS_NULL style flags!
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
How can i Create a " PS_ENDCAP_ROUND" style Pen, can u tell me ?
thx a lot ^^
|
|
|
|
|
You will have to write code for that...
Regards,
João Paulo
|
|
|
|
|
... a bewildering number of choices...
It's easy to simulate PS_DOT for vertical or horizontal lines, but for slanted lines, we are talking about something else...
Regards,
João Paulo
|
|
|
|
|
In EVC Draw a Line Always Flat Cap but i want draw a line that is round Cap,
how can i do ? can u tell me about this ? thx a lot ^^
ps. my english not very good i hope u can know what i say
|
|
|
|
|
There is no way to do it unless you do it by yourself (implementing a line drawing algorithm)...
Regards,
João Paulo
|
|
|
|
|
Although,There is no way to do this,I still thx for ur answer ><"
|
|
|
|
|
I made my own button class that can make a button transparent.
MyButton inherits Control, of course, so I overridden the OnPaint() method, I put an image on the button then I use the SetColorKey(...).
Until here, it's ok.
I use MyButton class on a form. I put all the button properties in the form's onstructor after InitializeComponent() method.
Well, the transparency property is valid only after I do some action (push) on the button.
I don't understand...
Anca
|
|
|
|
|
Can any one give me technical details on how to port embedded linux to a new board/processor? what are the steps and things to consider? any website is there??
thanks in advance
regards,
Bhaskar
___________________________
When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
|
|
|
|
|
Pocket PC / Pocket PC 2002 supports "szAutoDialFunc" and "szAutoDialDll" with RASENTRY?
Anybody can help me???
regards
Nathan
|
|
|
|
|
Well, I got my wizard dialog working to a point, but there is a visual glitch.
The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen.
Anybody have a work-around for this? Do I have to overrie some paiting functionality?
I can make a screen shot available if I didn't explain this well enough.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
John Simmons / outlaw programmer wrote:
I can make a screen shot available
Please, do that. If that is what I'm thinking it is, I believe you will have to resize the embedded property page...
Regards,
João Paulo
|
|
|
|
|
http://www.paddedwall.org/wizardshot.jpg[^]
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
My darkest fears have come true (I was right). But it is almost sorted out. Gotta put the kids in the table for dinner and will be back in an hour with the full solution. Sorry for this...
Regards,
João Paulo
|
|
|
|
|
Well, if you are using my code, my apologies. What happens is that the tab control is hidden but the property sheet does not know about it, so it will happily resize the embedded property page as though there was a tab control. I remeber vaguely, when I first wrote the code, that I thought about this possibility...
So, how do we sort this mess out? You only need to do some changes in the CCeWizard class. These will be reflected on the article but here they are, in case you are in a hurry.
CCeWizard.h
class CCeWizard : public CCePropertySheet
{
DECLARE_DYNAMIC(CCeWizard)
public:
CCeWizard(UINT nIDCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);
CCeWizard(LPCTSTR pszCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);
public:
public:
public:
virtual BOOL OnInitDialog();
public:
virtual ~CCeWizard();
protected:
UINT m_idToolBar;
SHACTIVATEINFO m_sai;
void UpdateControls();
void PopulateToolBar();
void ResizePage();
afx_msg void OnBarBack();
afx_msg void OnBarNext();
afx_msg void OnBarOk();
afx_msg void OnBarCancel();
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
DECLARE_MESSAGE_MAP()
};
CCeWizard.cpp
CCeWizard::CCeWizard(UINT nIDCaption, UINT idToolBar, CWnd* pParentWnd)
: CCePropertySheet(nIDCaption, pParentWnd, 0),
m_idToolBar (idToolBar)
{
memset(&m_sai, 0, sizeof(SHACTIVATEINFO));
m_sai.cbSize = sizeof(SHACTIVATEINFO);
}
...
BEGIN_MESSAGE_MAP(CCeWizard, CCePropertySheet)
...
ON_WM_ACTIVATE()
ON_WM_SETTINGCHANGE()
END_MESSAGE_MAP()
...
void CCeWizard::UpdateControls()
{
...
ResizePage();
}
...
void CCeWizard::ResizePage()
{
CPropertyPage* pPage = GetActivePage();
if(pPage)
{
CRect rc;
pPage->GetWindowRect(&rc);
ScreenToClient(&rc);
rc.bottom += 22;
pPage->MoveWindow(&rc);
}
}
...
void CCeWizard::OnSize(UINT nType, int cx, int cy)
{
CCePropertySheet::OnSize(nType, cx, cy);
ResizePage();
}
void CCeWizard::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
HWND hWnd = NULL;
if(pWndOther)
hWnd = *pWndOther;
SHHandleWMActivate(m_hWnd, MAKELPARAM(nState, bMinimized), (LPARAM)hWnd, &m_sai, 0);
}
void CCeWizard::OnSettingChange(UINT uFlags, LPCTSTR lpszSection)
{
SHHandleWMSettingChange(m_hWnd, (WPARAM)uFlags, (LPARAM)lpszSection, &m_sai);
}
That's all...
Regards,
João Paulo
|
|
|
|
|
John,
The article is updated. As you can see from the image, your button problem is solved (I hope you don't mind my using your name on the button - if you do I'll remove it).
A Wizard-like property sheet for the Pocket PC[^]
Thank you for using the code and spotting this problem!
Regards,
João Paulo
|
|
|
|
|
You are GOD! If I can manage to find a sacrificial virgin, I'll send her to you yo do with as you please.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
|