|
Can anyone help whats the problem behind the following error
PictureBox1.Image() = System.Drawing.Image.FromFile("/Storage Card/sample.bmp")
it gives error :
Fromfile is not member of system.drawing.image
i am coding a windows mobile 6.0 form in VB .Net
Thanks in advance
|
|
|
|
|
If you look at the MSDN documentation for the Image class you'll see icons next to methods that are supported on mobile devices. That method is not supported.
MSDN Image class documentation[^]
|
|
|
|
|
Can anyone help me how to use the 'transparent image' snippet in VB .Net to use in Windows Mobile.
Please give a simple sample code for it
Thanks in advance
|
|
|
|
|
|
Hi, i've two mobile application, one in c++ and the other in c# that exchange a structure with wm_copy_data.
If i have a simple int inside the struct, everything work fine, but i have problem with the correct struct definition in c# code.
Here is the c++ app code:
typedef struct tagMYRECASR
{
char roName[100];
char roRole[100];
char rpName[100];
} MYASR;
COPYDATASTRUCT MyCDS;
MYASR MyRec;
char *roName;
char *roRole;
char *rpName;
CString rp = _T("rp_it-it");
CString vbRoName = rp;
vbRoName += "/";
vbRoName += grmName;
CString vbRoRole = _T("");
CString vbRpName = _T("");
ConvertToMultibyte(&roName,vbRoName);
ConvertToMultibyte(&roRole,vbRoRole);
ConvertToMultibyte(&rpName,vbRpName);
strcpy(MyRec.roName,(const char*)roName);
strcpy(MyRec.roRole,(const char*)roRole);
strcpy(MyRec.rpName,(const char*)rpName);
MyCDS.dwData = 1;
MyCDS.cbData = sizeof( MyRec );
MyCDS.lpData = &MyRec;
HWND window = ::FindWindow(NULL, _T("ManageWindow"));
if(window!=NULL) {
::SendMessage(window, WM_COPYDATA, (WPARAM)(HWND) window, (LPARAM) (LPVOID) &MyCDS );
In c# i tried to define the structure in this way:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
struct UserData
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 100)]
public string roName;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 100)]
public string roRole;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 100)]
public string rpName;
}
and in many other way, but it doesn't work
any idea? consider me a newbye.
thanks in advance
|
|
|
|
|
Try to use StringBuilder to convert from character arrays.
|
|
|
|
|
i write code in C# based on WinCE, and hardware is ARM
each time, i need to debug code when linked with my ARM device,it's very slowly.
whether there is another way to debug more quicky?
|
|
|
|
|
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
|
|
|
|
|