|
Dear all,
I am writting an application for Pocket PC with Microsoft eVC 3.0
In my app, I use some combo-boxes but when the program is running I cannot see the caret on the combo-box which I had setted focus on it.
Does anybody know how to fix this problem (show the caret on combo-box)?
Please let me know.
Thank you very much!!
-BHKien
|
|
|
|
|
|
Thank you very much!
-BHKien
|
|
|
|
|
I built a Windows CE.NET platform with Platform Builder 4.2
I want to use this platform on a Half Size CPU Card.
That's why, i have to know how to use ISA bus.
I sought for a DLL, but i found nothing.
If someone can help me.
Thank you.
Guilhem
Sorry for my poor English
|
|
|
|
|
Hi All,
I am doing an EVC++ programm for communication between two PDAs through a bluetooth gateway.One PDA sends some BYTES which is to be read by the second PDA.My problem is that I need to know how to display the BYTES read by the second PDA on its screen.I tried converting the BYTES to string and displaying it, but certain junk characters are also displayed.
It would be great if you could kindly help me out.
Thanks a ton,
Deepa.
|
|
|
|
|
Make sure you convert the BYTEs to Unicode strings. Each Unicode character takes up two bytes.
Regards,
João Paulo
|
|
|
|
|
Please show us how do you make the conversion!
Regards,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
Dear All,
I am able to dispaly images on HTML Control in Pocket PC 2002.But i am not able to display it in Pocket PC 2003.I have taken CSTHtmlDialog as the reference for this investigation.
still i am facing the problem in Pocket PC 2003.
Any body knows why the code is behaving differently in PPC 2003.
please help me out..
suggestion are welcome..
regards,
siva
|
|
|
|
|
Hello Friends,
I am migrating an application from PPC2002 to PPC2003. I have got all
the code compiled successfully and built the executable. But when I
run it on the device it gives some problems. In my code there are lots
of deletes called. (i.e. new for every object and corresponding delete
for the same)
The migrated application crashes in every detete that is called. It is
not that the delete is wrong. It is a properly tested code for PPC2002
platform.
The application also crashes if a null pointer is accessed for checking
it's nullness. (For example refer following code. it crashes in if()
statement.)
char* l_pChar = NULL;
...
if (l_pChar == NULL)
{
l_pChar = new char[10];
}
If there is anybody who had experianced same problem and wishes to share
then they are morethan welcome.
Thanks and regards,
Mandar Sarpotdar
|
|
|
|
|
One thing that comes to mind is that you should check that all your new[] statements have matching delete[] statements. Calling delete on memory allocated with new[] is 'Undefined behaviour'. This was something you could get away with (that is, leak memory but not crash) in ppc2002, but ppc2003 allocates memory diffrently and will probably crash when you try to access that memory again.
---
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
Please reply at CodeProject iso private mail.
> Thanks for replying Jonas,
> I double checked for the correctness of the address. And made sure
> that the memory being deleted is a valid memory. It is not deleted
> more than once.
> Also I am getting access violation when I am accessing the NULL
> pointer for checking it's null ness. This is what we all do, all the
> time in C++ code.
>
> Regards
>
> Mandar
char* l_pChar = NULL;
if (l_pChar == NULL)
{
MessageBox(0, L"is null", L"dbg", 0
}
else
{
MessageBox(0, L"is not null", L"dbg", 0
}
Does this code also crash for you? Then there's something wrong with your system.
Otherwise, you'll need to show what you do in the ... section of your code. There is a high chance that you have corrupted the heap somewhere there, either by a buffer overrun or by calling delete on memory allocated with new[]
---
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
I can find almost every language here I want to learn execpt Java, I want to know the reason.Can you put some Articles about the very exciting language.
Thanks !
huanghe
|
|
|
|
|
|
I am trying to create an install program to run on the desktop that installs the cab file automaticaly into the pocket pc. If I manually put the cab file into the pocket PC then the program runs fine. But when I try to make an install using ezsetup 2.0 I get this error My_Test does not support the connected device typ. Application Manager will make the application available for installation when the supported device type is connected.
This is what I have in the .ini file
[CEAppManager]<br />
Version = 1.0<br />
Component = My Application<br />
<br />
[My Application]<br />
Description = My test application<br />
Uninstall = Rod's PCS TEST<br />
CabFiles = My_Test.cab<br />
Can anyone see what is wrong? I I am trying to install it to a toshiba pocket pc E310. As I said if I manually put in the My_test.arm.cab file into the PPC It works fine. HELP PLEASE!!
Thanks alot guys,
Rodney
|
|
|
|
|
Rodney
I'm not sure how ezsetup 2.0 works, but the .ini file that CE App Manager is the same that is generated by the steps in the MSDN article for this subject at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfdeployment.asp.
Having just finished creating one of these my guess for you is that you need to generate Cab files for multiple files processors and reference those in your .ini file. The steps for creating those files is referenced under the "BuildCab.bat" section and who to list them in the .ini is under the "Setup.ini File" section of the MSDN Article above.
FYI, here is what the setup.ini for my setup looks like:
<br />
[CEAppManager]<br />
Version = 1.0<br />
Component = App<br />
<br />
[App]<br />
Description = ToDoList Viewer 1.3.0.<br />
CabFiles = ToDoListViewer_PPC.X86.CAB,ToDoListViewer_PPC.ARM.CAB,ToDoListViewer_PPC.ARMV4.CAB,ToDoListViewer_PPC.MIPS.CAB,ToDoListViewer_PPC.SH3.CAB,ToDoListViewer_PPC.WCE420X86.CAB<br />
<br />
Hope this helps.
Thanks,
Kyle
|
|
|
|
|
What are you using to compile the programs for the ARMV4,MIPS,SH3,WCE420X86 formats, I am using the Embedded Visual C++ 3.0 and I can only find options for compiling for the .ARM and for the .x86 platforms. Is there something that I have to change or is that all that is available in the 3.0 version?
Thanks Kyle for the feedback.
Rod
|
|
|
|
|
Rod
Let me start of by saying that I am using C# .NET Compact Framework.
I am using the Cab Wizard that is part of the Windows Mobile SDK 2003. It appears that this particular SDK is for EVC++ 4.0 and VS.NET 2003. There may be a version of the Cab Wizard that will work with your version of EVC or you may be able to update to EVC++ 4 (see the link on SDK page).
I apologize if this doesn't help you at all.
Thanks again,
Kyle
|
|
|
|
|
What are you using to compile the programs for the ARMV4,MIPS,SH3,WCE420X86 formats, I am using the Embedded Visual C++ 3.0 and I can only find options for compiling for the .ARM and for the .x86 platforms. Is there something that I have to change or is that all that is available in the 3.0 version?
Thanks Kyle for the feedback.
Rod
|
|
|
|
|
Is it possible to create a button with an image? Or to simualate one?
How?
Any suggestions appreciated.
camasmartin
hobby programmer
|
|
|
|
|
Yes, take a look at CCeButtonST v1.2.
Regards,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
1., In resource editor|Push Button Properties|Styles tab
check in: "Owner draw"
2., In dialog message handler insert this branch:
switch (message)
{
case WM_DRAWITEM:
idCtl = (UINT) wParam;
if(idCtl == IDC_BUTTON)
DrawFancyButton
(
(LPDRAWITEMSTRUCT) lParam,
hDlg,
IDC_BUTTON,
IDB_BITMAP_NORMAL,
IDB_BITMAP_PRESSED
);
return TRUE;
...
3., Implement DrawFancyButton:
void DrawFancyButton(LPDRAWITEMSTRUCT lpdis, HWND hDlg, int idCtl, int iNormalBmp, int iPressedBmp)
{
TCHAR ButtonText[64];
HBITMAP BitMap;
RECT ButtRect;
int UpSideColor, DownSideColor;
HDC hdcBmp = CreateCompatibleDC(NULL);
if(!(lpdis->itemState & ODS_SELECTED)) // Draw Pushed
{
BitMap = LoadBitmap( g_hInst, MAKEINTRESOURCE(iNormalBmp));
UpSideColor=196, DownSideColor=0;
}
else // Laposat rajzolok
{
BitMap = LoadBitmap( g_hInst, MAKEINTRESOURCE(iPressedBmp));
UpSideColor=0, DownSideColor=196;
}
SelectObject(hdcBmp, BitMap);
BITMAP bm;
GetObject(BitMap, sizeof(bm), &bm);
StretchBlt
(
lpdis->hDC,
lpdis->rcItem.left,
lpdis->rcItem.top,
lpdis->rcItem.right - lpdis->rcItem.left,
lpdis->rcItem.bottom - lpdis->rcItem.top,
hdcBmp,
0,
0,
bm.bmWidth,
bm.bmHeight,
SRCCOPY
);
DeleteDC(hdcBmp);
if(1) // We want original text also
{
SetBkMode(lpdis->hDC,TRANSPARENT);
GetDlgItemText(hDlg,idCtl,ButtonText,64);
ButtRect = lpdis->rcItem;
SetTextColor(lpdis->hDC,RGB(UpSideColor, UpSideColor, UpSideColor));
DrawText(lpdis->hDC,ButtonText,-1,&ButtRect,DT_NOCLIP|DT_CENTER|DT_VCENTER);
ButtRect.bottom--; ButtRect.left--; ButtRect.right--; ButtRect.top--;
SetTextColor(lpdis->hDC,RGB(DownSideColor, DownSideColor, DownSideColor));
DrawText(lpdis->hDC,ButtonText,-1,&ButtRect,DT_NOCLIP|DT_CENTER|DT_VCENTER);
}
}
|
|
|
|
|
Anyone know how to add/remove network connections programatically from WinCE (C# & Compact framework). I think that I need to use the WNet functions but not sure how?
I have the following code:-
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential)]
public struct NETRESOURCEA
{
public int dwScope;
public int dwType;
public int dwDisplayType;
public int dwUsage;
public string lpLocalName;
public string lpRemoteName;
public string lpComment;
public string lpProvider;
}
class CMyTest
{
[DllImport("core.dll")] // Not sure if this is correct
public static extern int WNetAddConnection3(
NETRESOURCEA[] lpNetResource,
string lpPassword,
string UserName,
int dwFlags);
public static void Main(String[] args)
{
NETRESOURCEA [] n = new NETRESOURCEA[1];
n[0] = new NETRESOURCEA();
n[0].dwType = 1;
int dwFlags = 1;
n[0].lpLocalName = @"LocalName";
n[0].lpRemoteName = @"\\Server01\Share01";
n[0].lpProvider = null;
Console.WriteLine(n[0]);
int res = 0;
try
{
res = WNetAddConnection3( n, null, null, dwFlags );
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
Console.WriteLine("WNetAddConnection3 returned : " + res);
Console.WriteLine(n[0]);
}
}
Any Help would be appreciated
CyMadigan
CF Developer
|
|
|
|
|
hi..
to use wnet funcins under win ce...there is 2 libraries which supports these functions in win ce environment "redir.dll & netbios.dll" and you r using core.dll this is incorrect it is coredll.dll...just check it out...if u know somehing abt my query plz reply...u can see my query just below of ur query (posted by aashu)
cheers
aashu
ashutosh agrawal
mail me at:
ashutosh_agrawal78@rediffmail.com
|
|
|
|
|
still getting "NotSupportedException" after corrected import dll
CyMad
CF Developer
|
|
|
|
|
P/Invoke on the Compact Framework is severely cut down. It doesn't support marshalling a structure containing strings, as NETRESOURCEA requires (aside: you need a NETRESOURCEW on Windows CE).
You will need to marshal the data to a compatible byte array. For tips on how to do this, see Advanced P/Invoke on the .NET Compact Framework[^].
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|