|
Hello All,
I am writing a program in Embedded VC++or communication via a bluetooth gateway.Is there any status word for teh Bluetooth Manager which can be checked in the program before opening and writing to the COM7 port?I wnat to make sure the bluetooth manager has established the connection with a WaveCan generator before opening the port.
Thanking you for your co-operation and time,
Deepa Gopal.
|
|
|
|
|
Hi~
I want to use DirectSound in the PocketPC 2003.
Is it possible?
If it possible, how can I use the DirectSound API?
If it impossible, how can I control audio input volumn?
Normally, we can use a mixer to control audio.
But I can't use Mixer using WaveForm Audio API in PDA.
Have a nice day~
|
|
|
|
|
Dear all,
I had tried to use List Control in Virtual List mode using eVC 3.0.
But I met a problem that I cannot solve.
The problem is when I click on the list item of the List (my program run in the Pocket PC Emulator), I got an error message "Assertion failed. TestProg: File winctrl2.cpp, Line 479"
But with that program, I run it on a Pocket PC, nothing happen when I click on List item.
Please tell me what I did wrong.
Thank you very much in advance.
|
|
|
|
|
Bui Huy Kien wrote:
Please tell me what I did wrong.
You forgot to set the LVS_OWNERDATA window style.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
No, I do insert the LVS_OWNERDATA style when creating the List Control.
Here is the code:
if(m_wndList.Create(WS_CHILD|WS_VISIBLE|LVS_OWNERDATA|LVS_SINGLESEL|LVS_REPORT|LVS_NOCOLUMNHEADER|LVS_NOSORTHEADER,CRect(0,0,243,224), this, MAIN_LIST)) {<br />
DWORD dwStyle = m_wndList.GetExtendedStyle();<br />
dwStyle |= LVS_EX_FULLROWSELECT;<br />
m_wndList.SetExtendedStyle(dwStyle);<br />
<br />
}<br />
<br />
<br />
void CChildView::OnGetdispinfoList(NMHDR* pNMHDR, LRESULT* pResult) <br />
{ <br />
LV_DISPINFO* pDispInfo = (LV_DISPINFO*)pNMHDR;<br />
<br />
LV_ITEM* pItem= &(pDispInfo)->item;<br />
<br />
int iItemIndx = pItem->iItem;<br />
<br />
switch (g_nWorkingMode) {<br />
case 0: <br />
case 4: {<br />
CTimeRegItem *pListItem;<br />
pListItem = (CTimeRegItem*) m_arrayElements[iItemIndx];<br />
<br />
if (pItem->mask & LVIF_TEXT)
{<br />
switch (pItem->iSubItem) {<br />
case 0:
lstrcpy(pItem->pszText, pListItem->m_strID);<br />
break;<br />
case 1:
lstrcpy(pItem->pszText, pListItem->m_strDate);<br />
break;<br />
case 2:
lstrcpy(pItem->pszText, pListItem->m_strDescription);<br />
break;<br />
case 3:
lstrcpy(pItem->pszText, pListItem->m_strDuration);<br />
break;<br />
}<br />
} else if (pItem->mask & LVIF_IMAGE) {<br />
pItem->iImage = pListItem->m_nImage;<br />
}<br />
}<br />
break;<br />
case 1: <br />
{<br />
COtherListItem *pListItem;<br />
pListItem = (COtherListItem*) m_arrayElements[iItemIndx];<br />
<br />
if (pItem->mask & LVIF_TEXT)
{<br />
switch (pItem->iSubItem) {<br />
case 0:
lstrcpy(pItem->pszText, pListItem->m_strID);<br />
break;<br />
case 1:
lstrcpy(pItem->pszText, pListItem->m_strType);<br />
break;<br />
case 2:
lstrcpy(pItem->pszText, pListItem->m_strName);<br />
break;<br />
}<br />
} <br />
}<br />
break;<br />
case 2: <br />
case 3: <br />
{<br />
COtherListItem *pListItem;<br />
pListItem = (COtherListItem*) m_arrayElements[iItemIndx];<br />
<br />
if (pItem->mask & LVIF_TEXT)
{<br />
switch (pItem->iSubItem) {<br />
case 0:
lstrcpy(pItem->pszText, pListItem->m_strID);<br />
break;<br />
case 1:
lstrcpy(pItem->pszText, pListItem->m_strName);<br />
break;<br />
}<br />
}<br />
}<br />
break;<br />
}<br />
<br />
break;<br />
}<br />
<br />
*pResult = 0;<br />
}
Plese help me.
Thank you very much!
-Kien Bui
|
|
|
|
|
Sorry! I "shot from the hip" and didn't realise what the assert is all about. The code is asserting on CListCtrl::SetItemText . This method cannot work if you have the LVS_OWNERDATA style set.
To change the data on a LVS_OWNERDATA list view, you must change the underlying data structure and invalidate the row. If you are adding new rows, you must reflect the new row (item) count.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Thank you so much. You are very kind.
Finally, I found that I had called the SetItem function in my code.
Best regards,
-Kien Bui
|
|
|
|
|
Where can i find a good documentation on TinyTP Protocol??
Thanx.
|
|
|
|
|
What about this function??? I would like to create a filled triangle. But i can't call the function Create PolyRgn.
|
|
|
|
|
Hi Rassul Yunussov,
To draw a polygon.
First, you must create an array of vertices for your polygon.
And then call the Polygon function with two parameters: One is the array, and one is the number of vertices you want to draw.
Here is the example to draw a filled triangle using Polygon function:
CBrush brushRed(RGB(255, 0, 0));<br />
CBrush* pOriginBrush= pDC->SelectObject(&brushRed);<br />
<br />
CPoint pts[3];<br />
pts[0].x = 1;<br />
pts[0].y = 1;<br />
<br />
pts[1].x = 1;<br />
pts[1].y = 100;<br />
<br />
pts[2].x = 100;<br />
pts[2].y = 100;<br />
<br />
pDC->Polygon(pts, 3);<br />
<br />
pDC->SelectObject(pOriginBrush);
Regards,
-Kien Bui
|
|
|
|
|
Hi,
I'm developing an application in Evc++4.0, I changed my device and now I have to compile for a HHP Dolphin 9500.
I need to install SDK PPC 2002, but maybe it's not compatible with Evc++ 4.0.. isn't it?
Who knows something about this ...?
And if it isn't compatible, what can I do to run the application on my new device?
|
|
|
|
|
Ehm, ..I've been writing the application for a CASIO DT-X10, and I had the right SDK for it..I had even POCKET PC 2003 and STANDARDSDK... now I need SDK PPC 2002.. [help me, please]
|
|
|
|
|
For development:
PPC 2002 and earlier, use EVC3.0 together with the appropriate SDK
PPC 2003 and later, use EVC4.0 together with the appropriate SDK
Binary compatability:
Binaries compiled for PPC 2002 (unsure about earlier versions) will run on PPC 2003 devices. I've noticed a few inconsistencies, perhaps related to bugs in my apps that didnt affect the system in the same way on the 2002 devices, but generally it seems to work fine.
Binaries compiled for PPC 2003 will not run on devices with PPC 2002 or earlier.
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
Binaries built for Pocket PC 2000 will still run on Pocket PC 2003 with a few exceptions (e.g. using the Pocket Outlook Object Model). There are actually very few API changes between Pocket PC 2002 and 2003. While there are some new APIs, few have been removed.
I still do most of my development on Pocket PC 2000 devices with eVC 3.0 and the Pocket PC 2000 SDK. We haven't used 2002-specific APIs much, and not used 2003-specific APIs at all. However, I work mainly with vertical-market applications.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
|
Hi,
I'm developing an application with Evc++4.0, I'd like to use sql server ce and to query datas.
I read that I need Adoce31.dll, adoxce31.dll... I found different versions of this files and tried to put them on my device and register them with regsvrce.exe, using a .BAT file where I wrote
\Windows\regsvrce /s \Windows\adoce31.dll
and so on with the other dlls.. .. but I receive the following error:
LoadLibrary("\Windows\adoce31.dll")failed.
GetLastError returns c1
could anybody please tell me where to find the right dlls.. my device is a casio dtx10, my exe are armv4t ..arm-type..maybe the dlls I have are wrong.. and maybe regsvrce does'nt have to register them... I don't understand...
I don't even know if i'm spending my researches in the right direction, if I really need these dlls.. if I'm wrong could you please tell me? my goal is to build-again my evc++ application so that it can use sql queries from a DB on my pc ..
could you help me? [grazie]
|
|
|
|
|
|
When I build a program using EVC+ 4.0 and try to download it to my iPAQ PocketPC, I get the following message:
The Microsoft ActiveSync reported the following error: Unable to load device side components. Please check server configuration settings.
Using Tools/Configure Platform Manager to check the settings, I found that using ActiveSync as Transport and as StartUp Server has no settings.
The ActiveSync is working well. I have a good conection and I can syncronize with my desktop.
I've tried all that is 'reasonable': update ActiveSync to the lastest version, install the latest EVC++ SP, Hard Reset the iPAQ,.. but the problem still persists.
Any help?
Tanks.
|
|
|
|
|
If this device uses Pocket PC 2000 or Pocket PC 2002, you must use eVC 3.0 for debugging and select "Pocket PC" or "Pocket PC 2002" as the device type. Windows CE 4.0 has a newer debugging API which doesn't work with the older devices and vice-versa. The device-side components for CE 4.x devices (such as Pocket PC 2003) won't work on CE 3.0 devices such as the earlier Pocket PCs.
If you're connected over a serial or USB link, try using the PPP transport. This is slightly more efficient than the TCP/IP or ActiveSync transports anyway. If this works, you may have a TCP/IP configuration problem.
I recently found that having the Microsoft Loopback Adapter installed as well as a regular TCP/IP network connection caused me problems with Platform Manager. If you're going to use the Loopback Adapter you must configure it to use an entirely different network from your normal network connection. Otherwise packets directed at the handheld seem to get routed via the Loopback Adapter.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Why when i'm adding the toolbar into CCeCommandBar, i'm not able to make elements "checked" or "enabled". Actually i'm able, but i don't see the rectangle , that wraps( or covers (bad english)) the element.
|
|
|
|
|
You can use the CheckButton method from CToolBarCtrl . To do it, retrieve a reference to the CCeCommandBar 's underlying CToolBarCtrl object by using the GetToolBarCtrl method.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Im using Borlands C# Builder and i cant compile Pocket PC apps. is there a way tocompile the .cab files?? a command line way?
modified 16-May-21 21:01pm.
|
|
|
|
|
nevermind i found cabwiz.exe
modified 16-May-21 21:01pm.
|
|
|
|
|
Hi ,
Is it possible to display .mht file in HtmlCtrl or in PIE?
anyother option?
Thanks
|
|
|
|
|
I have a listview in VB.NET Pocket PC application that has been populated with 4 columns from a SQL CE database, when the user selects a row from the list view I want the 4 columns to be transferred to 4 textboxes on the form. How do I do this ???
Thanks michael
|
|
|
|