|
Hi ALL,
How to unzip the *.zip file in Pocket PC 2003/2002 ?
I am delveoping application using eVC++3.0/4.0 and targeting for PPC 2002/2003. I need to unzip the *.zip file which is available in the target device.
Is there any open source code/sample available for solving my problem ?
Any kind of suggestions or inputs are most welcome.
Regards,
AKS
|
|
|
|
|
|
Hi,
Thank your very much for your instant reply.
Is that code will compile under eVC++ 3.0&4.0 without any changes ?
Please do let me know in detail.
Regards,
AKS
|
|
|
|
|
Hi,
I tried to compile it on eVC++4.0. I getting many compiler/linker errors because so many functions which are unsupported by windows ce.
Do you have any solutions for this?
Please help me out on this problem to solve.
Expecting a valuable reply from you.
Regards,
AKS
|
|
|
|
|
I actually did not try it, but will do so (given a little time). When I do, I'll post the results.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi,
Thank you. Eagerly waiting for your update.
Regards,
AKS
|
|
|
|
|
Hi all,
How could I integrate all files(.exe, images and other resources) in
a single file of .exe for the distribution and execution of the program ?
(cause I don't want the users to get the images and other resources
when the program in installed on their pocket PC)
Thanks
|
|
|
|
|
You can create custom resource types and include everything into your exe. Note that this will not stop advanced users from getting access to your resources.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi,
I have built a software in VC++, and prepare two icons for the software,
one small size icon for software .exe file icon, and one large icon for the shortcut of the exe in menu.
What should I do in the program that associate the two icons to the code so that it works like what i want?
Thanks
|
|
|
|
|
Use one icon file with both sizes and let your installer packege create the shortcut in Program Files.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi,
I have built a pocketpc software in vc++, and i have two questions :
1. if the end-users are using pocketpc 2002, do I need to seperately
distribute the software(produce different versions) for different processors(e.g. ARM, SH3, MIPS) ?
2. if the end-users are using pocketpc 2003, is that I only need to
distribute the software for StrongARM only ?
Thanks
|
|
|
|
|
pyhtang1 wrote:
1. if the end-users are using pocketpc 2002, do I need to seperately distribute the software(produce different versions) for different processors(e.g. ARM, SH3, MIPS) ?
No. PocketPC supports ARM only.
pyhtang1 wrote:
2. if the end-users are using pocketpc 2003, is that I only need to distribute the software for StrongARM only ?
Yes.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi,
are there any good pocket pc installers(not expensive) for distributing the software to end-users ?
Thanks
|
|
|
|
|
Yes,
See the EzSetup
Regards,
-Kien Bui
|
|
|
|
|
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?
|
|
|
|