|
If your CE device has WiFi and if it is connected to the same network as your PC then you may want to turn the WiFi adapter off. If it is on then many times debugging will occur over the WiFi adapter instead of the USB connection and that makes debugging extremely slow.
|
|
|
|
|
thanks,but my device hasn't WiFi .........
|
|
|
|
|
Hi
How to load an image and make it transparent in VB .Net Windows Mobile 6.0 SDK Form
Please help
|
|
|
|
|
Hi
The snappiest way involves some platform API calls. Check out the VERY good IPhone clone articles here on CodeProject. The guy has made the code for this very easy to reuse.
Ciao,
Lars
|
|
|
|
|
How to set custome ringtone for incoming call WM6
|
|
|
|
|
Hi
How to identify that Terminal (Windows Mobile 2005 ) connect to cradle ?
I need to identical in the Terminal, and I work with C# (VS2008)
thank's in advance
|
|
|
|
|
There's a native event that is triggered when the device is cradled. IT is not directly exposed in C#. But I made use of it in thie article: Automatically Starting Your Application on Windows Mobile[^]
While the article is centered around automatically starting a program you can also use it to get notification that an event has occurred if your program is already running.
|
|
|
|
|
Hi
Is it possible to run java programs on Windows CE ?
thank's
|
|
|
|
|
It is possible, but you will need to find a Java Virtual Machine to put in your CE image. I can't say that I know of any from memory.
|
|
|
|
|
Hi
Check out Mysaifu VM. Its a free implementation of the Java jre.
Its really beginning to take shape!
Just Google the name to download.
Ciao
|
|
|
|
|
Hello!!!!!!!!!!!!!
We are developing Windows Mobile Application.Here on Form Load we have written Some coding then written Application.Exit() to close application.Functionality is working but Application is not at all exit,it's hanging.Same Application.Exit() written in exit button then when we click it, its working.
Please help me .It's urgent.
|
|
|
|
|
Why not use Form.Close instead of Application.Exit?
|
|
|
|
|
I create virtual shared folder in pocketpc. And after I open virtual pocketpc. Follow way:Start/setting/system/memory/shared folder. But status which pocket show me is "not installed". How do I have to do? . Thanks
|
|
|
|
|
hey fellows, i got to try to send a java code to mobile as an SMS, it should execute upon opening the message. i already know it is possible, but dont know the exact way. so any of you guys know, please reply. thanks.
|
|
|
|
|
hi,
How to convert a xls file(mobile excel) into csv file(programatically)?
Thanks.
|
|
|
|
|
Hi! I'm new into drawing with Visual C++ MFC.
I've got an empty DIALOG where I load a floor layout (BMP resource) and I want to draw on it a dot indicating my position (using "SetDIBitsToDevice")
I call "Invalidate()" in another function when I get new coordinates to print on screen. Problem is that my PocketPC freezes every 3rd-4th time I run this function.
As I cannot borrow another PDA from anyone for now I would like to know if code is all right, or if there is any tricky command I'm using.
void CDisplayDlg::OnPaint()
{
CColoredDlg::OnPaint();
HBITMAP hBmpL1=::LoadBitmap(AfxGetResourceHandle(),
MAKEINTRESOURCE(IDB_DISPLAY_BITMAP));
CRect rc;
this->GetClientRect(&rc);
HDC hdc1 = ::GetDC(this->m_hWnd);
HDC hdcmem = ::CreateCompatibleDC(hdc1);
::SelectObject(hdcmem,hBmpL1);
::BitBlt(hdc1, rc.left, rc.top, rc.right, rc.bottom,
hdcmem,0,0,SRCCOPY);
BITMAPINFO BitmapInfo;
BitmapInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
CWinCEUnsupportedFunctions::GetDIBits(hdcmem, hBmpL1, 0, 0,
NULL, &BitmapInfo, DIB_PAL_COLORS);
BYTE* pBitData = new BYTE[36];
for(int i=0;i<36;i++)
{
pBitData[i]=8;
}
scale=3.3;
if(numPositions==1)
{
::SetDIBitsToDevice(hdc1, (int)(xcoord1*scale), (int)(ycoord1*scale),
6, 6, 0, 0, 0, 6, pBitData, &BitmapInfo, DIB_PAL_COLORS);
}
delete pBitData;
}
Thanks!
|
|
|
|
|
maybe you have a memory leak! Change this line to free up the whole array!
delete [] pBitData
|
|
|
|
|
|
I made a "dot.bmp" in resources and I'm showing it with "LoadBitmap". ^^
Maybe there's something I have to call after SetDIBToDevice?
|
|
|
|
|
Hi
I have following issues while working with KSOAP2.
I don’t know whether I am posting my query at correct location or not
I have a Web service written in JAVA, developed using Netbeanns 6.5 deployed on Jboss5.0
I have a J2ME client which gives a call to WS using KSOAP
I want to do following things:
send byte[] which is part of custom VO
Handle exceptions sent from server
How do I send the byte array
I read the things on http://ksoap.objectweb.org/project/faq/index.html
But I don’t know how to use it
private void callWS1() throws IOException, XmlPullParserException {
String endPointURL = new String("http://172.16.3.184:8080/CitiBankOnline/LoginService");
String nameSpace = new String("http://service.partner.com/");
SoapObject method = new SoapObject(nameSpace, "getDevice1");
DeviceCurrentActivityVO oDcavo = new DeviceCurrentActivityVO();
KeySet oKeySet = new KeySet();
byte[] oBytesArr=new byte[]{(byte)0x01,(byte)0x01,(byte)0x01,(byte)0x01};
String bytes = Base64.encode(oBytesArr);
SoapPrimitive oPrimitive = new SoapPrimitive (SoapEnvelope.ENC, "base64", bytes);
String szbytes = oPrimitive.toString();
oDcavo.setProperty("id", new Integer(12));
oDcavo.setProperty("name", "geetanjali");
oDcavo.setProperty("encKey", bytes);
oDcavo.setProperty("keySet", oKeySet);
method.addProperty("param", oDcavo);
oForm.append("Created soap object");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = method;
envelope.setOutputSoapObject(method);
new MarshalBase64().register(envelope);
HttpTransport ht = new HttpTransport(endPointURL);
oForm.append("Created transport");
ht.call("", envelope);
oForm.append("Called transport");
SoapObject soapResult = (SoapObject) envelope.getResponse();
int totalProperty = soapResult.getPropertyCount();
oForm.append("\nid = " + soapResult.getProperty(0).toString() + "\n");
oForm.append("\nPriority = " + soapResult.getProperty(1).toString() + "\n");
SoapObject oString = (SoapObject) soapResult.getProperty(2);
Object s = oString.getProperty("version");
oForm.append("version = " + s.toString() + "\n");
oForm.append("id = " + oString.getProperty("id").toString() + "\n");
String szBytes = oString.getProperty("encKey").toString();
byte[] oBytes1= Base64.decode(szBytes);
oForm.append("ENc Key = " +oBytes1[0]+ "\n");
Display.getDisplay(this).setCurrent(oForm);
}
And Vo luks like
public class DeviceCurrentActivityVO extends SampleVO {
private int id;
private String name;
public Vector oVector = new Vector();
KeySet keySet = new KeySet();
byte[] oBytes = null;
public byte[] encKey;
public Object getProperty(int index) {
switch (index) {
case 0:
return new Integer(id);
case 1:
return name;
case 2:
return keySet;
case 3:
return encKey;
default:
return null;
}
}
public int getPropertyCount() {
return 4;
}
public void getPropertyInfo(int index, Hashtable properties, PropertyInfo info) {
switch (index) {
case 0:
info.name = "id";
info.type = PropertyInfo.INTEGER_CLASS;
break;
case 1:
info.name = "name";
info.type = PropertyInfo.STRING_CLASS;
break;
case 2:
info.name = "keySet";
info.type = PropertyInfo.OBJECT_CLASS;
break;
case 3:
info.name = "encKey";
info.type = new byte[0].getClass();
break;
default:
break;
}
}
public void setProperty(String name, Object value) {
{
if (name.equals("name")) {
setProperty(1, value);
} else if (name.equals("id")) {
setProperty(0, value);
}
else if (name.equals("keySet")) {
setProperty(2, value);
}
else if (name.equals("encKey")) {
setProperty(2, value);
}
}
}
public void setProperty(int index, Object value) {
switch (index) {
case 0:
id = ((Integer) value).intValue();
break;
case 1:
name = ((String) value).toString();
break;
case 2:
keySet = (KeySet) value;
case 3:
encKey = (byte[]) value;
default:
break;
}
}
}
public abstract class SampleVO implements KvmSerializable {
public static final String NAMESPACE = "http://172.16.3.184:8080/CitiBankOnline/LoginService";
public SampleVO() {
super();
}
}
Regards,
Geetanjali
|
|
|
|
|
When I show hep file in pocketpc, the result which I get as "af0apafapfashfafalfao.....", general is so. I attempted with chm file and doc file. The results are so. I think pocketpc do not support chm format and doc format. Please advise me how I have to do in order to show file hepl.Thanks
|
|
|
|
|
hi,
I try to use GetThreadTimes() to Get a thread's user time, the first parameter is thread's handle.
I know, the current thread's ID is same with it's handle, I can get correct user time of the current
thread.
GetThreadTimes((HANDLE)threadListStr.th32ThreadID,&fCreationTime,&fExitTime,&fKernelTime,&fUserTime);
But the fUserTime is 0 when the first parameter isn't current thread's ID,so I think I need get a thread's handle from it's ID for the first parameter.
Mobile platform don't support OpenThread() function,then how can I get a thread's handle?
Thank you for your reply.
|
|
|
|
|
I am writing a application in pocketpc and I conflicted with a problem. I want show a help file when user want, I use below code when user click on help button
Help.ShowHelp(null, "//ProgramFiles//Chess//Documents//help.chm");
In propertise of help.chm file, I chose "content" in build action and " Copy if newer" in copy to output directory. And when I run application. Program show me a messenger with content as "can not open help. The file can not be found"
Please advise me that how I have to do? Thanks
|
|
|
|
|
"//ProgramFiles//Chess//Documents//help.chm" <- incorrect
"\\Program Files\\Chess\\Documents\\help.chm" <- Correct
Note that there is a space between "Program" and "Files."
|
|
|
|
|
Thanks. I did do it follow your instructions and program showed file. But I think PocketPC is not support for chm file. Because programe show file with a content as "af0apafapfashfafalfao.....". General is so, I attempt with doc file and the its result is so. Please help me.
|
|
|
|