|
What is the platform?
Regards,
João Paulo
|
|
|
|
|
|
Does the value of mainkey fit into the buffer?
By the way, why are you using ASCII text instead of Unicode?
Regards,
João Paulo
|
|
|
|
|
Yes everything is correct.
I use ASCII instead of unicode because it has to be compatible with my library that has been developped for the desktop computer. I cannot write everything again.
But the bug is solvedf but I don't have an explanation. I was using _wfopen instead of fopen (with TCHAR string). So I changed it and now that works
|
|
|
|
|
Hello !
Has anyone here yet ventured into the world of Symbian or Series 60 development ? What tools do you use ? As far as I know, the Series 60 SDK and it's tools are a piece of crap: a bunch of script-driven gcc-tools.
I've heard about the Borland Mobile Studio but it doesn't seem to be available for purchase yet.. Is it even released yet ?
Any other options you would recommend ? I do have the Visual Studio solution already with the script-driven tools, but like I said, they are an abomination to application development: even a crude Unix hack looks smoother than this package..
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Antti Keskinen wrote:
Has anyone here yet ventured into the world of Symbian or Series 60 development ?
Yes!
Antti Keskinen wrote:
What tools do you use ?
The Visual Studio 6 setup.
Antti Keskinen wrote:
As far as I know, the Series 60 SDK and it's tools are a piece of crap: a bunch of script-driven gcc-tools.
They look worse when you start using them. After a while... Well, integration is not their forte...
The tools are a bit crude, as you say. But if you look under the covers you will find some gems thet will make your life less miserable. Anyway, it's a sizeable learning curve...
Good luck!
Regards,
João Paulo
|
|
|
|
|
Hello !
This may be a stupid question, but how can I reinstall my PocketPC (like formating it...) ?
I need to know exactly wich ressources I need for my applications to run and so I must start on a 'new' Pocket PC.
Thanks
|
|
|
|
|
You can't, but what you can do is clear the memory.
Look up 'hard reset' or 'cold reset' in the device's manual. If you really can't find it, try doing it in code[^].
|
|
|
|
|
hello,
I need to use the function CoCreateFreeThreadedMarshaler in my Application for Pocket PC 2003 (eVC++ 4.0) but despite the MSDN site mentionned that ole32.lib exports it since winCE 3.0, this function not appears in my ole32 (SDK for PPC).
So anyone has an idea of what I can do with it ?
thx for help !
|
|
|
|
|
Hi All,
Are there any free printer libraries for Windows CE?
Mahesh
|
|
|
|
|
You could try the HP mobile printing SDK:
http://www.hpdevelopersolutions.com/mobile/index.cfm
|
|
|
|
|
I can't find any samples (beyond Hello World). I have been able to do a few very basic things, but cannot get to the registry, messaging, etc.
Does anyone have any working code that would give me a basic starting point?
thanks
camasmartin
hobby programmer
|
|
|
|
|
Hi,
Try the link below.
http://smartdevices.microsoftdev.com/Learn/Articles/512.aspx
Mahesh
|
|
|
|
|
Thank you
Thank you
Thank you
Thank you
camasmartin
hobby programmer
|
|
|
|
|
Hi,
I'm programming with eVC++ 4 and have the following problem:
My program should use an INI file to read and write several values. To read/write I will use the functions GetProfileString and WriteProfileString (class CWinApp). But each call of this functions failed.
I use the following code (exactly like MSDN and eVC++ helpfile) :
BOOL CMyApp::InitInstance()
{
free((void*) m_pszProfileName );
m_pszProfileName = _tcsdup(_T("/Temp/COMConn.ini"));
...
}
void CDlgClass::ReadIniFile()
{
CString csValue;
...
AfxGetApp()->WriteProfileString(_T("Connect"), // Section
_T("Name"), // Key
_T("MyConnect") ); // Value to write
csValue = AfxGetApp()->GetProfileString(_T("Connect"), // Section
_T("Name"), // Key
_T("Error") ); // Default
...
}
The ini file /Temp/COMConn.ini exists, but each call of WriteProfileString() returns FALSE and each call of GetProfileString() returns "Error".
Why failed every access ?
Please help me (fast).
Thank You
Rico
|
|
|
|
|
These methods only work with the registry. To use an ini file, you will have to roll your own (like I did).
Regards,
João Paulo
|
|
|
|
|
Hi
I know embedded Visual C++ compiler do not accept return statements in this __try and __finally. but i need to return different conditions(values) at different parts of the __try / __finally block, how shall i go about doing it?
Need this help urgently.
Thanx
|
|
|
|
|
Hi ,
On the PDA's calendar, I want to add a new item in the menu(when I hold the Stylus for a brief time).
Where can I found its entry in the registry? Or is there any other way with which I can achieve this?
Regards
Ankukr
|
|
|
|
|
Check the online help file under Extending Pocket Outlook Menus.
Quote:
The Calendar, Tasks, and Contacts applications support menu add-ins for external applications. If you provide an add-in for one of these applications, your menu item appears on the Tools menu. When the user selects your menu item, Pocket Outlook calls a function in a registered DLL, which passes the object identifiers of the currently selected items in the application.
To register your application, create a registry key under the following key:
Software\Microsoft\PimApps\PimExtensions\pim_app\AddIns
You can use any name that you want for the key. To avoid conflicts with other add-ins, we suggest that the key contain the name of your company. Replace pim_app with Contacts, Tasks, or Calendar, depending on which application’s menu you want your add-in to appear on.
After you create this key, you need to create two values for the key. The first value is DLL, which you set to the name of your DLL. The second value is Menu, which you set to the name that you want displayed on the Tools menu. Others may add tools items, so you should try to create a unique, descriptive, and mnemonic name that will distinguish your application.
For example, the following registry key would register a phone-dialer application in the Contacts application:
Software\Microsoft\PimApps\PimExtensions\Contacts\AddIns\MicrosoftDialer<br />
DLL: dialer.dll<br />
Menu: "Dial Contact"
The registered DLL must expose the CePimCommand function, which is called automatically when the user chooses the menu command.
Regards,
João Paulo
|
|
|
|
|
For Pocket PC 2003, look under Adding Menu Commands for External Applications.
Quote:
The Calendar, Tasks, and Contacts applications support menu add-ins for external applications. If you provide an add-in to one of these applications, your command will appear on the Tools menu. When the user selects your command, a function in a registered DLL will be called, passing in the object identifiers of items that were selected in the application at the time the menu item was selected.
To register your application, you need to create a registry key under the HKEY_LOCAL_MACHINE root. To avoid conflicting with other add-ins, it is suggested that the key you choose contain your company's name. PIMAPP should be replaced with Contacts, Tasks, or Calendar depending on which application you want your menu to appear in.
To create a menu add-in
Register your application by creating a registry. The registry will exist in the following key, and can be named whatever you want:
HKEY_LOCAL_MACHINE\Software\Microsoft\PimApps\PimExtensions\PIMAPP\AddIns
Create an entry under this key, DLL, where the value of the entry is the name of your DLL.
Create a second entry, Menu, in which the value of the entry is the menu name you want displayed from the Tools menu.
The DLL that you register must expose the CePimCommand function, which will be called when the user selects your command. The following code sample shows the exposed function:
void CePimCommand (HWND hWnd, PIMTYPE ptData, UINT uDataCount,
*rghData, void *pReserved);
PIMTYPE is an enumeration, defined as follows:
typedef enum tagPIMTYPE
{
PT_CALENDAR = 0,
PT_TASKS,
PT_CONTACT
} PIMTYPE;
The following table shows parameters associated with the CePimCommand function.
Parameter Comments
HWND hWnd Application window handle
PIMTYPE ptData The application that is calling this function
UINT uDataCount The number of items in the array rghData
HANDLE *rghData An array of Microsoft Windows CE object identifiers indicating which items are currently selected
void *pReserved Reserved parameter
You can manipulate items from their object identifiers by calling the GetItemFromOid method in the Application object. You can use GetOidFromRef for menu extensibility.
Regards,
João Paulo
|
|
|
|
|
Another noob question, I'm afraid.
What's the typical color depth of a PPC 2002 or 2003 PDA or Smartphone display ? I'm curious - I don't have access to hardware, just the emulator, and I'm wondering how to handle graphics code.
|
|
|
|
|
The typical color depth for displays is 16 bit (actually 15: 5 bits per basic color). You can also find some equipments with 12 bit color.
You should only concern yourself with this if you are using direct screen access (GAPI).
Regards,
João Paulo
|
|
|
|
|
João Paulo Figueira wrote:
You should only concern yourself with this if you are using direct screen access (GAPI).
I was wondering whether GDI code should be written to accomodate 8bpp displays; ie, whether or not it should support a palette.
Thanks for the response.
|
|
|
|
|
I have to be able to open and display the text of pocket word, pocket excel files in my app.
I know there is no Pocket Automation available.
Is there any other suggestion to go about it?
Any help is very much appreciated.
I am using evc++ 3/4 and Pocket PC 2002/2003 for my development.
thanks for you time
|
|
|
|
|
Hi,
Do you want to create a pocket excel file from your application? or you just want to display it ?
Mahesh Varma
|
|
|
|