|
In the project settings (Alt+F7), you have to explicitly state the library name on the Linker tab.
Regards,
João Paulo
|
|
|
|
|
I make soft for smartphone in evc4.
And it has not a customer wizard application,I can not make a awx file for my IDE.How could I do this?
lost my way
|
|
|
|
|
Are there any secrets, gotchas, CE bugs, or any other minutia I should be aware of before I try to create a modelss dialog box on PocketPC2002?
------- 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
|
|
|
|
|
Hello all,
My requirement is to be able to update my SQL server DB once I connect the Pocket PC to the workstation. When I select "Export Database Tables" from the ActiveSync menu, it lists out some default tables on the PocketPC. I am not able to see my tables on the same. Any help would be greatly appreciated.
Thanks in advance.
Regards,
nigs_krec
|
|
|
|
|
I cant seem to find any documentation on the process of compling a souce file to a .prc file. As you might have guessed I very new to PalmOS development and am interested in learning mroe about it. There seem to be a number of intermediate steps involved in the compilation process but I am not too sure how it all works. I am somewhat familier with the regular version of gcc, so if anyone could offer a few tips or point me in the right direction that would be great.
Nate
|
|
|
|
|
I have a dialog that is asserting during the OnInitDialog method. The framework is sending the dialog an nID=1. I don't have a single #define or a control that is defined as 1. The framework seems to be sending this nID value each time a dialog is opened. In most cases nothing happens, but in this one dialog it asserts during the ddx routines.
Any ideas why on this one dialog asserts?
Thanks,
-Eric
|
|
|
|
|
Please show us a little bit of your code!
Regards,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
This may be a dumb question, but what does everyone use to create their documenation for their ppc apps? I want to include some kind of online documentation for my application, but I don't think the standard .hlp files will work on the ppc correct?
Is it just best to create an html type file?
Thanks,
-Eric
|
|
|
|
|
Does anyone know how to put a watch on the battery level so that if it hits below a certain level it triggers an event???
Also is there any way to register with the OS to get this info as a real-time notification??
Any help is appreciated
Connie
|
|
|
|
|
I believe you will have to pool it, just like the system does.
Regards,
João Paulo
|
|
|
|
|
I don't know what pooling is. Can you explain a little?
Thanx
Connie
|
|
|
|
|
Pooling means constantly looking for the info you want. This can be done by setting a timer (like the task manager - or NavBar - does) and, on each event, check the battery status.
Regards,
João Paulo
|
|
|
|
|
Great Thanks for the info I'll start looking into it.
|
|
|
|
|
João Paulo Figueira wrote:
I believe you will have to pool it, just like the system does.
That's how I have it set up in my apps... but surely that can't be the only way? My timer message checks every 5 minutes, but even then, I think that's waste, especially when my "battery is low" value is 30%.
It would make sense to subscribe to some notification system Oh well.
It would also be nice to know when the device was going to be turned off. It's pretty easy to get the "device is turned on" notification, which is why I'm confused why there's no "device is going to be turned off" notification.
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know...
[Nitron]
|
|
|
|
|
Hello,
I am developing a database application for pocket PC. In my code, if I give a
<b<code>>#import "C:\Program Files\Embedded Tools 3.0\wce300\Pocket PC 2002\dataaccess31\target\arm\adoce31.dll" no_namespace rename("EOF", "EndOfFile")
statement, it gives compiler error
error C2501: 'IUnknownPtr' : missing storage-class or type specifiers .
I tried to look for this problem on the web but there was no satisfactory explaination despite of this being a well known problem. Could anyone please help me out ?
Thanks in advance.
Regards,
nigs_krec
|
|
|
|
|
Before the #import directive, put the following lines:
#include <wceatl.h>
#include <comdef.h>
_COM_SMARTPTR_TYPEDEF(IUnknown, __uuidof(IUnknown));
Regards,
João Paulo
|
|
|
|
|
Hi All,
I would like to access https:// site from pocket pc 2003 using wininet api's and also I need to login to https:// site programmatically. I implemented the following code using Wininet,CInternetSession and is working fine in pocket pc 2002. The same code is not working with pocket pc 2003.
Will the OpenURL function supports SSL with HTTPS URL?
Is there any functions for working with SSL witih HTTPS URL site? Please exaplin me in detail and let me know if you have any sample code for it.
//Code
CInternetSession *m_Session;
m_Session = new CInternetSession(NULL,1,INTERNET_OPEN_TYPE_PRECONFIG, NULL,NULL, 0);
CInternetFile* m_pFile = NULL;
CHttpFile* m_hFile = NULL;
//Doing the HTTP post URL
TRY
{
//try to connect to the URL
m_hFile = (CHttpFile*) m_Session->OpenURL(strRedirectURL, 1,
INTERNET_FLAG_TRANSFER_ASCII);
}
CATCH (CInternetException, m_pException)
{
//If it is any error in the http response
m_hFile = NULL;
TCHAR szCause[255];
CString strFormatted;
m_pException->GetErrorMessage(szCause, 255);
// In real situations, it is appropriate to read this from
// a string resource so it would be easy to localize.
strFormatted = _T("Error");
strFormatted += szCause;
AfxMessageBox(strFormatted);
m_pException->Delete();
return FALSE;
}
END_CATCH
// Need to store the HTML file into a text file for further process
if (m_hFile)
{
//If the HTTP request is sucessful then do the following
CString readbuffer;
// Continue fetching code until there is no more
while (m_hFile->ReadString(readbuffer) != NULL)
{
DWORD NumOfByteWritten;
unsigned char *pBuf;
char str[] = "\r\n";
int ch = '*';
CString szURL;
WCHAR wcURL[MAX_SIZE]; //max buffer size or need to implement it dynamically
mbstowcs(wcURL,(const char *)readbuffer.GetBuffer(readbuffer.GetLength()),MAX_SIZE);
HANDLE hFile = CreateFile(strFileName,GENERIC_WRITE,0,0,CREATE_ALWAYS,0,0);
if(hFile == INVALID_HANDLE_VALUE)
{
//AfxMessageBox(_T("Problem in Writing URL"));
return FALSE;
}
int iLen = wcslen(wcURL);
CString strLen;
strLen.Format(_T("%d"),iLen);
int mByteLen = WideCharToMultiByte(CP_ACP,0,wcURL,iLen, 0,0,0,0);
pBuf = (unsigned char*)malloc(mByteLen);
ZeroMemory(pBuf,sizeof(pBuf));
WideCharToMultiByte(CP_ACP,0,wcURL,-1,(char *)pBuf,mByteLen,0,0);
WriteFile(hFile, pBuf, mByteLen , &NumOfByteWritten, 0);
readbuffer.Empty();
delete pBuf;
CloseHandle(hFile);
} //end of while
m_hFile->Close();
delete m_hFile;
}
else
{
return FALSE;
}
return TRUE;
Thanks,
AKS
|
|
|
|
|
Hi All,
I would like to access https:// site from pocket pc 2003 using wininet api's and also I need to login to https:// site programmatically. I implemented the following code using Wininet,CInternetSession and is working fine in pocket pc 2002. The same code is not working with pocket pc 2003.
Will the OpenURL function supports SSL with HTTPS URL?
Is there any functions for working with SSL witih HTTPS URL site? Please exaplin me in detail and let me know if you have any sample code for it.
//Code
CInternetSession *m_Session;
m_Session = new CInternetSession(NULL,1,INTERNET_OPEN_TYPE_PRECONFIG, NULL,NULL, 0);
CInternetFile* m_pFile = NULL;
CHttpFile* m_hFile = NULL;
//Doing the HTTP post URL
TRY
{
//try to connect to the URL
m_hFile = (CHttpFile*) m_Session->OpenURL(strRedirectURL, 1,
INTERNET_FLAG_TRANSFER_ASCII);
}
CATCH (CInternetException, m_pException)
{
//If it is any error in the http response
m_hFile = NULL;
TCHAR szCause[255];
CString strFormatted;
m_pException->GetErrorMessage(szCause, 255);
// In real situations, it is appropriate to read this from
// a string resource so it would be easy to localize.
strFormatted = _T("Error");
strFormatted += szCause;
AfxMessageBox(strFormatted);
m_pException->Delete();
return FALSE;
}
END_CATCH
// Need to store the HTML file into a text file for further process
if (m_hFile)
{
//If the HTTP request is sucessful then do the following
CString readbuffer;
// Continue fetching code until there is no more
while (m_hFile->ReadString(readbuffer) != NULL)
{
DWORD NumOfByteWritten;
unsigned char *pBuf;
char str[] = "\r\n";
int ch = '*';
CString szURL;
WCHAR wcURL[MAX_SIZE]; //max buffer size or need to implement it dynamically
mbstowcs(wcURL,(const char *)readbuffer.GetBuffer(readbuffer.GetLength()),MAX_SIZE);
HANDLE hFile = CreateFile(strFileName,GENERIC_WRITE,0,0,CREATE_ALWAYS,0,0);
if(hFile == INVALID_HANDLE_VALUE)
{
//AfxMessageBox(_T("Problem in Writing URL"));
return FALSE;
}
int iLen = wcslen(wcURL);
CString strLen;
strLen.Format(_T("%d"),iLen);
int mByteLen = WideCharToMultiByte(CP_ACP,0,wcURL,iLen, 0,0,0,0);
pBuf = (unsigned char*)malloc(mByteLen);
ZeroMemory(pBuf,sizeof(pBuf));
WideCharToMultiByte(CP_ACP,0,wcURL,-1,(char *)pBuf,mByteLen,0,0);
WriteFile(hFile, pBuf, mByteLen , &NumOfByteWritten, 0);
readbuffer.Empty();
delete pBuf;
CloseHandle(hFile);
} //end of while
m_hFile->Close();
delete m_hFile;
}
else
{
return FALSE;
}
return TRUE;
Thanks,
AKS
|
|
|
|
|
How I could use GSM 6.10 codec for recording/playing wave files in my program?
|
|
|
|
|
I'm writing a COM activex control with ATL in evc++3.0 to be consumed by a evb client. on the client side, I'm creating my control with CreateObjectWithEvents() because the control supports some events.
The problem is, although I can call control methods, I cannot seem to handle control events in my client at all. The control has a very simple event TestEvent that takes a single string param.
<br />
CComBSTR bstrParam(_T("Test message"));<br />
Fire_TestEvent(bstrParam);<br />
<br />
<br />
Set obj = CreateObjectWithEvents("AxControl.Control.1", "Cl")<br />
'method works<br />
obj.Test<br />
<br />
' this is the event sink that never gets invoked!!<br />
Public Sub Cl_OnTestEvent(Status As String)<br />
MsgBox Status<br />
End Sub<br />
I'm testing on PPC2000 emulator.
So how do I build a control in evc++ for a evb client with events support? Does anyone have any prior experience building controls for evb? I desperately need some help and have been stuck here for sometime.
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - Writing Word addins
Office addin
|
|
|
|
|
I have an application that uses a dll to export various dialog boxes. This dll implements a "wizard" if you will that walks the user through setting up a new document for the application. It exports various functions, resources and dialog boxes.
The issue that has all of a sudden jumped up, is that when the users starts the wizard, the first dialog box is shown just fine, but when they click next all I get is a blank screen. If I click on the home button on my ppc and go back out to the today screen then click on the icon to start the app again I am give the proper dialog box displayed. This continues thoughout the entire wizard.
In a different exported function that uses the same wizard, all the dialog boxes are presented as they should be as the users walks through the wizard. This other function allows the user to go back and add different features to the already created document. It uses all the same code as the first wizard, but yet everything works as I would expect.
It as if the drawing mechanism is not being called for each of the dialog boxes after the first one in the initial wizard.
On top of all this, everything works just fine in emulator, but not on my device. (Dell Axim X3i) I haven't had a chance to test in on a different machine.
Anyone see anything like this before?
Thanks,
-Eric
|
|
|
|
|
VanHlebar wrote:
Anyone see anything like this before?
Nope. Question: are you using MFC?
Regards,
João Paulo
|
|
|
|
|
João,
Thanks, I figured it out. Yes I am using MFC. It had something to do with the CCETitleBar object of your that I was using. I had it defined in a view class that was not instatiated <sp> yet at the time I was calling the first "wizard".
To fix it I just moved the CCeTitleBar object into the first view class and then everything worked as it was supposed. The reason it was working in the second instance of calling the same code was because the "wizard" was being called after all of the different view classes were instatiated.
I am not really sure why the CCeTitleBar object was causing this. It was never created yet and there was no call to it or any of its methods inside my dll, but its fixed anyways.
Thanks,
-Eric
|
|
|
|
|
My code fails on "HttpSendRequest". But GetLastError returns like "-2146893051" and I am not sure how to proceed.
Details -
Developed on Embedded VC++
WinCE 4.2. (Pocket PC 2003)
I am mainly stumped by the GetLastError() return value. Any idea how I can get a proper error code.
Note: we are actually trying HTTPS here..
Any help is very much appreciated.
thank you
aby
|
|
|
|
|
Actually, that number does appear to be a valid error message - in hex it's 0x80090305, which Error Lookup reports as "The requested security package does not exist".
I'm not familiar with the Http* APIs, so I can't suggest the appropriate course of action, other than to review your code, however, posting the error message into google groups showed up several postings regarding this error.
HTH.
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|