|
Hello!
I am completely new to embedded VC++. I have installed the embedded Vc 4.0 and the standard SDk for windows .Net that came along withe the CD.
Now i created a sample dialog based application that must be run on a ARM4i device. I build the solution selecting the Standard SDK and WNCE ARM4I and buid the solution when i selected "Rebuild All" i get the following error message :
"An application targeting a Standard SDK for Windows CE .NET and built for the ARMV4I CPU cannot be run on the Emulator device. In order to run this application on any CPU other than the Emulator, you will have to install an SDK that is compatible with the Standard SDK for Windows CE .NET, then target a shadow platform pertaining to that SDK. "
what should be done now ?
Thanks
|
|
|
|
|
I have some animated images and i want them to bring on Win mobile 5.0 emulator. I wanted to see the animations after deploying the application containing the animated images. I have copied the images in the picture box on smart device forms but could not see the animations on deploying. Please help.
|
|
|
|
|
I am assuming you are using animated GIFs. The picturebox control doesn't support animated GIFs. You'll have to set up a timer and swap out the images yourself.
|
|
|
|
|
|
Symbian has released new executable (E32Image) file format for Symbian OS v9.x.
This format is a bit different from the previous one.
How can we different the executable whether it is of new format or old format (programatically)?
Thanks in advance.
|
|
|
|
|
I wanted to close a previous form after calling the next form. How do i do that?
I have many form in my application. When i exit the application using the following code all the forms are closed one by one. Instead i want to close the previous form after calling the next form in order to avoid the closing of all the forms after exit. Please help.
DialogResult result = MessageBox.Show("Do you want to exit?", "Exit-Window", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
if (result == DialogResult.OK)
Application.Exit();
I have tried with the following code but the application exits automatically.
The code is written on the command button on Form1.
private void button1_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
this.Close();
}
|
|
|
|
|
Application.Exit is made to terminate an application regardless of which form is active. And if you close the main form (the very first form that appears when your application is started) then the application will terminate. To perform what you wish to accomplish you have several methods available.
One method is that instead of closing the main form hide it whn ever you invoke a child form and then redisplay it when the child form closes.
Depending on how many forms you have in your application you may want to make some of the forms seperate executables to keep memory usage low.
Lastly the method that I use is to modify the Main method of the program. By default the Main method will just instantiate Form1 and then let its message processing loop run until the form closes. When I need to do what you are trying to do I alter the main method so that it will open a form and let it run but after that form closes I check to see what it was closed. If it were closed because the user needed to go to a different form then I instantiate that new form and allow its message processing loop to run. OTherwise I allow the MAin method to exit (thus terminating the application).
|
|
|
|
|
i use EVC 4.0 to make a ATL ActiveX, and download it into my Windows Mobile.
it works fine firstly, but when i click IE REFRESH button, the ActiveX is disappeared.
it's so weird, any body can help me to find the solution?
BTW: the IE can show the ActiveX firstly, but not work when i refresh the IE.
the code is below:
class ATL_NO_VTABLE CMainObject :
public CComObjectRootEx <CComMultiThreadModel>,
public CComCoClass <CMainObject, &CLSID_MainObject>,
public IDispatchImpl <IMainObject, &IID_IMainObject, &LIBID_TSMOBILEOBJECTLib>,
public CComControl <CMainObject>,
public IViewObjectExImpl <CMainObject>,
public IOleControlImpl <CMainObject>,
public IOleObjectImpl <CMainObject>,
public IOleInPlaceActiveObjectImpl <CMainObject>,
public IOleInPlaceObjectWindowlessImpl <CMainObject>,
public IObjectSafetyImpl <CMainObject,INTERFACESAFE_FOR_UNTRUSTED_CALLER | INTERFACESAFE_FOR_UNTRUSTED_DATA>
BEGIN_COM_MAP(CMainObject)
COM_INTERFACE_ENTRY(IMainObject)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IViewObjectEx)
COM_INTERFACE_ENTRY(IViewObject2)
COM_INTERFACE_ENTRY(IViewObject)
COM_INTERFACE_ENTRY(IOleInPlaceObjectWindowless)
COM_INTERFACE_ENTRY(IOleInPlaceObject)
COM_INTERFACE_ENTRY2(IOleWindow, IOleInPlaceObjectWindowless)
COM_INTERFACE_ENTRY(IOleInPlaceActiveObject)
COM_INTERFACE_ENTRY(IOleControl)
COM_INTERFACE_ENTRY(IOleObject)
COM_INTERFACE_ENTRY(IObjectSafety)
END_COM_MAP()
BEGIN_CATEGORY_MAP(CMainObject)
IMPLEMENTED_CATEGORY(CATID_SafeForScripting)
IMPLEMENTED_CATEGORY(CATID_SafeForInitializing)
END_CATEGORY_MAP()
BEGIN_MSG_MAP(CMainObject)
CHAIN_MSG_MAP(CComControl <CMainObject>)
DEFAULT_REFLECTION_HANDLER()
END_MSG_MAP()
HRESULT OnDraw(ATL_DRAWINFO& di)
{
m_Rect = *((RECT*)di.prcBounds);
m_hDC = di.hdcDraw;
DrawText(m_hDC, _T("xxxxxxxxxx", -1, &m_Rect, DT_LEFT);
return S_OK;
}
Great C++!
|
|
|
|
|
Hi all,
i m using CeGetDeviceId() for get connected device id,but if i disconnect the device its gives some value or treats like device is connected.
please tell me how can i refresh it when i connect or disconnect the device.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
Hi,
is there any support for "SendKeys.Send" in pocket pc application using .net 2.0?
|
|
|
|
|
|
I am developing device application using .net compact 2.0
I am handling my device using RF remote. I am not able to close if any error message is occurred. Is there any help to close messagebox after few seconds.
|
|
|
|
|
|
thanks a lot. I will try it......
|
|
|
|
|
Hello,
I am developing a smart device application uisng .net 2005 and WindowsCE 6.0
After every minute i give a call to a function which shows the current battery value using timer control.
But the timer runs throughout the project,hence my device performance is going very slow......
Is there any way to solve this as to incress the performance of my device.
Thanks
Yrishi
|
|
|
|
|
Hi Yrishi,
Don't use timer for retrieving battery status in windows mobile .net 2005 API(Microsoft.WindowsMobile.Status) there is an event that automatically raise when the battery status or value changed. so you have to use this event to get the battery status or value.
See This link[^]
For More help see this Link : LINK[^]
Hope this may be help.
Pavan Pareta
|
|
|
|
|
thanks a lot. ok fine i will try it.
|
|
|
|
|
Hi friends
I need to transfer big file (10Mb) from PC to PPC (Windows Mobile)
but not with RAPI
How can I do it ?
thank's in advance
|
|
|
|
|
|
Hi all,
i m working on Visual Studio 2008.
i m working on Windows based mobiloe,on XP active sync ia works so i m using RAPI for connection and other functionns,but this is not working in case of Mobile device center.
because for Vista and later mobile device center in required.
so please tell me what can i use for mobile device center.
if possible please explain me with example.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
It is my understanding that RAPI should work with WMDC on Vista. May I ask what specifically is not working? Have you tried running your application as an administrator?
|
|
|
|
|
HI ,
here rapi.dll used,in case of vista when rapi.dll is placed in same place where exe is places than its noot successfully connect the device,its return the deviceid 0.
so connection not successful.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Are you distributing a rapi.dll with your application? If so, I don't think that you want to do that. rapi.dll is already in the %windir%/system32 directory.
|
|
|
|
|
Thanks.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|