|
I think your solution is good but... visual doesn't recognize WM_IME_NOTIFY(i put it in MainFrame Message_Map).
Any idea...?
|
|
|
|
|
Developing with MFC? Handling "strange" messages is a bitch. Gess what: you have to intercept the window's message loop and do some old-style C-like message handling. Nice huh? Hack the window class WindowProc !
|
|
|
|
|
"Smart minimize" button? Strange...
In the WindowProc function, witch messages do i have to intercept? WM_IME_NOTIFY with wParam=IMN_CLOSESTATUSWINDOW and WM_IME_SETCONTEXT with wParam=FALSE and lParam = ISC_SHOWUIALL...
I am not getting good results...
Any ideas?
|
|
|
|
|
I am trying to give my WinCE a better look by including icons on my dialogs. I have used "Create Picture Control" button from the "Controls" tool bar in the resources editor. I choose the apropiate resource and the icon appears there. I also test the dialog with the "test" button and it looks and acts as desired.
The problem comes when I run the application on my Pocket PC or the emulator. There is no signal of the icons in any of those devices. I have checked the icon's properties and they seem to be correct (visible and so on).
Have you experienced the same problems? Is there any solution?
Answers and advice are welcome
|
|
|
|
|
Hi,
Did you check if your icon's resource language is the same as the one you chose in the New Project wizard? If the languages are different, your resources will not be compiled into the executable. I always use English (U.S.) and everything has always worked fine.
João Paulo
|
|
|
|
|
Hello again
As Joao suggested I have right-clicked on every resource of this project and I have selected English (US) as language for each of them. But the problem remains the same (no icon displayed). When searching for "Language" in my project, I still find sentences like
// Spanish (Castilian) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP)
#ifdef _WIN32
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH
#pragma code_page(1252)
#endif //_WIN32
and others with
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
Is this the reason for the problem to continue? How can I select a single Language for my project and resources? Will I have problems displaying special characters (eg. ñ, á) if I use English as language?
Thank you in advance.
José M Castellanos
survival-programming for beginners
|
|
|
|
|
Jose M Castellanos wrote:
Is this the reason for the problem to continue?
I don't think so. There is no problem in having your resources in different languages, as long as you have a similar set for each language. What you should check now is for the resource language defined in your project settings (Alt+F7 in eVC3). Go to the "Resources" tab and choose the language - English (U.S.), rebuild the project, and it should work out fine.
Note that there should be no problem in choosing other language for your resources, as long as you keep all settings in sync.
Good luck!
João Paulo Figueira
|
|
|
|
|
Hi All,
I am not familiar about RAS in Windows CE.I have GSM/GPRS Modem and I want to send & receive data using RAS programatically.Also I want to create,delete phone entry.
Can any one tell me how to implement RAS using eVC++ ?
How to do RAS using GSM/GPRS modem.?
How to establish a connection using RAS?
How to access the remote server using RAS ?
Please let me know if you have any idea in this regard.
Thanks,
Siva
|
|
|
|
|
AKSIVAKUMAR wrote:
Can any one tell me how to implement RAS using eVC++ ?
There is a RAS API in Windows CE 3. All functions' names begin with RAS. You can look it up in your evc help.
AKSIVAKUMAR wrote:
How to do RAS using GSM/GPRS modem.?
Ask your carrier about the specific parameters, create a RAS connection, and use RasDial to establish the connection. When it is up, there should be an available internet connection for your application.
AKSIVAKUMAR wrote:
How to establish a connection using RAS?
See above.
AKSIVAKUMAR wrote:
How to access the remote server using RAS ?
After the connection is established, you can start using HTTP, FTP or any other inernet protocol. It should be automatic.
AKSIVAKUMAR wrote:
Also I want to create,delete phone entry.
Use RasDeleteEntry to delete the phone book entry. Use RasSetEntryProperties to create a new RAS phone book entry.
|
|
|
|
|
Hi All,
How to display a wait cursor in eVB. I tried
Screen.MousePointer = vbHourglass.
But it is not working.Can any one help me..please..
Thanks in advance
Mahesh
|
|
|
|
|
Hi,
I wanted to softrest my H/PC programmatically.I have wrote the following code.But the code is not working.I have seen lot of sample/guide application for Pocket PC.But I am unable to find any code/stuff for H/PC.
if(!ExitWindowsEx(EWX_REBOOT,EWX_FORCE))//soft reset
// return false;
return true;
Does any one know how to do this ? Guide Me.
Thanks,
Siva.
|
|
|
|
|
|
Hi,
How to send/receive mail without using Windows CE MAPI.Is Any one having sample application..?if so please let me know that.
thanks,
siva
|
|
|
|
|
I have one Proxy Display driver. I want to debug into it. How I will able to do that ?
VikramS
|
|
|
|
|
Hi ALL,
How to programatically configure/access the reginal configuration in windows ce hand help pc (H/PC) using eVC++.
Suggestions are most welcome.
Thanks,
siva
|
|
|
|
|
Hi All,
How to Enable or disables the SartMenu in H/PC programmatically using eVC++.
Suggestions are welcome.
Thanks,
Siva
|
|
|
|
|
I'm not sure if the H/PC supports full screen mode. If it does, then that's the way to go.
|
|
|
|
|
Hi,
Thanks for your mail.But I am unable to understand your reply.Can you please explain in detail.
Thanks,
siva
|
|
|
|
|
Check this article: http://www.codeproject.com/ce/PicView.asp
Here I show how to hide both the start menu and the lower toolbar and SIP. What I am not sure is if H/PC supports the full screen API needed for this...
Regards,
João Paulo
|
|
|
|
|
Hi,
The H/PC doesn't support full screen mode-SHFullscreen().Is there any other alternative solution for this problem.?If so please let me know.
Thanks,
siva
|
|
|
|
|
|
Hi All,
Greetings !!
I want to write a function which should wait till the user presses a key.
WaitKey() using eVC++
Sugegstions are most welcome.
|
|
|
|
|
hi all,
i am writing an application which needs to connect to the gprs network and send data(through web service).
i have written the application in evc++, using AT commands ,i am able to initlialize ,attach gprs and dial(ATD*99***1#) and i get "CONNECT" as response.
but after this stage how do i browse the internet or call my web service??
function which connects and attaches GPRS
function code,
void CTestGPRSCommandsDlg::OnModemOn()
{
BOOL bHangup = FALSE;
CString strInit;
CString res;
//to hang up any ongoing calls
while(!bHangup)
{
strInit = "+++";
Sleep(1000);
port.Send(strInit);
strInit = "ATH0\r";
Sleep(1000);
res=OnSendAndWait(strInit);
if(res=="OK")
{
bHangup=TRUE;
}
}
strInit = "AT+CGATT=1\r"; //GPRS
res=OnSendAndWait(strInit);
AfxMessageBox(res);
if(res!="OK")
{
AfxMessageBox(_T("GPRS Not Attached"));
return ;
}
else
{
AfxMessageBox(_T("yahooooo GPRS Attached"));
}
strInit = "AT+CGDCONT=1,IP";
res=OnSendAndWait(strInit);
//AfxMessageBox(_T("AT+CGDCONT=1 Response = ") +res);
if(res!="OK")
{
AfxMessageBox(_T("Modem Not Initialized"));
return;
}
strInit = "AT+CGDCONT=2,IP,\"airtelgprs.com\" ,0.0.0.0";
res=OnSendAndWait(strInit);
//AfxMessageBox(_T("AT+CGDCONT=2 Response = ") + res);
if(res!="OK")
{
AfxMessageBox(_T("Modem Not Initialized"));
return;
}
strInit = "ATD*99***1#";
res=OnSendAndWait(strInit);
//AfxMessageBox(_T("ATD*99***1 Response = ") +res);
if(res!="CONNECT")
{
AfxMessageBox(_T("Modem Not Initialized"));
return;
}
AfxMessageBox(_T("Connected"));
}
my platform:
EVC++ 3.0
pocketpc 2002
Device : intermec 760
with inbuilt GPRS modem.
|
|
|
|
|
R.Rajesh wrote:
port.Send(strInit);
This is too low-level. There are other options!
It is better for you to create a RAS connection and then use whatever protocol you need on top of the IP connection it will provide. If you want to be a bit more sophisticated, you can use the Connection Manager to arbitrate the connections for you (there is an MFC example in your PPC 2002 SDK). This way, you don't need to worry about the gory low-level details of making a connection.
João Paulo
|
|
|
|
|
Hi All,
I want to to have ActiveX on my porpertypages,
and after searching, I found that I CAN'T do that, this is a known bug.
Now I turn to a new way,
I want to have a menubar, and clicking a button will show the corresponding page,
however, I face another problem...
I call the page by DoModal,
but, for example, when I call page1, then page2, then page1 again,
the 3rd call will be a "NEW" page1, not the previous one...
any suggestion on that ??
Thanks in advance.
|
|
|
|