|
Is there any way to access ADOCE.NET in VC++ code?
Thanks in advance.,
-Kien Bui
SynerWork Software.
http://www.synerwork.com
|
|
|
|
|
The managed libraries are off-limts to eVC. You cannot use ADO .NET from eVC.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi,
is there a way to get a kind of notification when the user presses the power off button on a win ce pda? I have a compact framework application in c# which I want to close fully (not only sleep) when the user turns off the device.
Thanks!
Bernd
Bernd
|
|
|
|
|
Hi,
how can I control the SD card and save any files on the SD card in my pocket device?
Thanks
porubat@porubismus.com
|
|
|
|
|
The SD card behaves just like a regular folder. What do you mean by "control the SD card"?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
hi
about the "control the SD card": when I put the SD card in the pocket PC I will to see in the file explorer folder "SD-MMC Card". When I do nothing with the pocket PC the folder will be hidden in file explorer and I can see the folder again only if I put out and out in the SD card.
How is the name of the SD card folder?
How can I for example create a new file when I will use the function "CreateFile"?
Thanks
|
|
|
|
|
luboss wrote:
When I do nothing with the pocket PC the folder will be hidden in file explorer and I can see the folder again only if I put out and out in the SD card.
This is not a typical behavior. As long as the SD card is inserted, the Pocket PC should be able to access it. What Pocket PC model are you using?
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
hi,
the sd card folder on my pocket PC has got name "SD-MMC Card" and I can access to it and create new files.
But, when I turn off and then on the pocekt PC the SD folder will be hidden and not accessible until I will put out and again put in the SD card.
I use Acer N30 pocket PC model.
Thanks
Tomas Poruba
|
|
|
|
|
hi,
the sd card folder on my pocket PC has got name "SD-MMC Card" and I can access to it and create new files.
But, when I turn off and then on the pocekt PC the SD folder will be hidden and not accessible until I will put out and again put in the SD card.
How can i make the SD folder always accessible?
Thanks
|
|
|
|
|
This may be obvious but I can't call out of my program with shell in CF.
It will work just fine in a normal windows app.
There is probably just a small fix but I can't find it.
thanks in advance
tim
|
|
|
|
|
Hello
I have created a project for a pocket pc application in visual studio.net using SqlServerCE.
I also tried to deploy it using the setup and deployment project of dot net, but facing problem in running the setup. It asks for the debugger to debug and gives error for SqlServerCE. Do I also require to include .Net Compact Framework and SqlServerCE while making the setup so that the same will be installed on the machine which does not have Microsoft Dotnet framework and sql server. From where do I get .Net Compact Framework and SqlServerCE, any links for the same?
Also I am not clear on how to make the setup and deployment of the Smart Device Application for Pocket PC.
Please if anyone knows how to solve the above problem asap.
Regards
|
|
|
|
|
Before you run the cab from your pocket pc so u can setup your application you must run the cabs of sqlce client and compact framework(after you copy them to the pocket pc).These cabs can be found c:\program files\microsoft visual studio .net 2003\compactframeworksdk\v1.0.5000\windows ce\wce400\ and then pick the cab acording to your pocket pcs cpu.
|
|
|
|
|
I use ATL Com AppWizard(in embedded Visual C++) to create a signature capturing DLL, i successfully let user to sign on a given rectangle square box.
However,
i have a big problem when coming to capture the signature inside the rectangle and save it to bmp (or jpg) file. i get the following attached code and trying to compile it inside embedded Visual C++ 4.0, and it comes out this error:
"GetDIBits: undeclared identifier" ...
it seems like eVC++(or Pocket PC 2003 SDK) doesn't have this library or doesn't support this function...
is there anyway i can do it ? this problem has been struggling me for few days ...
thanks
int WindowToBmpFile(LPCTSTR szFName, HWND hWnd)
{
HDC hDC, hMemDC;
HANDLE hBits, hFile;
HBITMAP hBitmap, hTmpBmp;
RGBQUAD RGBQuad;
DWORD ImgSize, plSize, dwWritten;
int i, CRes, Height, Width;
BITMAPFILEHEADER bmFH = {0x4d42, 0, 0,0};
LPBITMAPINFO pBmInfo, pBmInfoMem;
if((hFile = CreateFile(szFName, GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL)) == NULL) return 1;
SetCursor(LoadCursor(NULL, IDC_WAIT));
if(hWnd==HWND_DESKTOP)
{
Width = GetSystemMetrics(SM_CXSCREEN);
Height = GetSystemMetrics(SM_CYSCREEN);
}
else
{
RECT rc;
::GetClientRect(hWnd,&rc);
Width = rc.right-rc.left;
Height = rc.bottom-rc.top;
}
hDC = ::GetDC(hWnd);
hMemDC = CreateCompatibleDC(hDC);
hBitmap= CreateCompatibleBitmap(hDC, Width, Height);
pBmInfoMem = (LPBITMAPINFO)GlobalAlloc(GHND, sizeof(BITMAPINFO)+256*sizeof(RGBQUAD));
pBmInfo = (LPBITMAPINFO)GlobalLock(pBmInfoMem);
ZeroMemory(pBmInfo, sizeof(BITMAPINFO)+256*sizeof(RGBQUAD));
SelectObject(hMemDC, hBitmap);
BitBlt(hMemDC,0,0,Width,Height,hDC,0,0,SRCCOPY);
pBmInfo->bmiHeader.biSize = (DWORD)sizeof(BITMAPINFOHEADER);
pBmInfo->bmiHeader.biWidth = Width;
pBmInfo->bmiHeader.biHeight = Height;
pBmInfo->bmiHeader.biPlanes = 1;
pBmInfo->bmiHeader.biBitCount = (WORD)GetDeviceCaps(hDC, BITSPIXEL);
pBmInfo->bmiHeader.biCompression = BI_RGB;
pBmInfo->bmiHeader.biClrUsed = 256;
GetDIBits(hDC, hBitmap, 0,Height, NULL, pBmInfo, DIB_RGB_COLORS);
if(!pBmInfo->bmiHeader.biSizeImage)
pBmInfo->bmiHeader.biSizeImage = ((((pBmInfo->bmiHeader.biWidth * pBmInfo->bmiHeader.biBitCount) + 31) & ~31) /
* pBmInfo->bmiHeader.biHeight;
CRes = GetDeviceCaps(hDC, SIZEPALETTE);
plSize = CRes*sizeof(RGBQUAD);
ImgSize= pBmInfo->bmiHeader.biSizeImage;
bmFH.bfOffBits = plSize + sizeof(BITMAPINFOHEADER) + sizeof(BITMAPFILEHEADER);
bmFH.bfSize = ImgSize + bmFH.bfOffBits;
WriteFile(hFile, &bmFH, sizeof(BITMAPFILEHEADER), &dwWritten, NULL);
WriteFile(hFile, &(pBmInfo->bmiHeader), sizeof(BITMAPINFOHEADER), &dwWritten, NULL);
hBits = GlobalAlloc(GHND, pBmInfo->bmiHeader.biSizeImage);
LPVOID lpBits = (LPVOID)GlobalLock(hBits);
ZeroMemory(lpBits, pBmInfo->bmiHeader.biSizeImage);
GetDIBits(hDC, hBitmap, 0,Height, lpBits, pBmInfo, DIB_RGB_COLORS);
WriteFile(hFile,lpBits,ImgSize,&dwWritten,NULL);
GlobalUnlock(lpBits);
GlobalUnlock(hBits);
GlobalFree(hBits);
GlobalUnlock(pBmInfo);
GlobalFree(pBmInfoMem);
DeleteObject(hBitmap);
DeleteDC(hMemDC);
::ReleaseDC(hWnd,hDC);
CloseHandle(hFile);
SetCursor(LoadCursor(NULL,IDC_ARROW));
return 0;
}
|
|
|
|
|
About your problem, I don`t know if this is the best solution, but it might help you to think of another way to get where you want:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/html/_wcesdk_Win32_GetObject.asp[^]
In the remarks you see:
"In addition, the bmBits member of the BITMAP structure contained within the DIBSECTION will contain a pointer to the bitmap's bit values.
"
So you might try to create your file by writing these bits to the file.. It is possible you^ll need to write the file-header though...
Greetings,
Davy
|
|
|
|
|
Do you have any example or source code for DIBSection? especially in saving bitmap ? sorry to say that i am still a beginner to eVC++ ..
thanks a lot
|
|
|
|
|
Hi,
I am trying to develop a mpeg Video Player for Windows CE. I tried it with the Windows Media Player SDK, but I read, mpeg videos aren't supported. Is this right? Is there any other SDK to develope a video player that supports mpeg files?
Or is there a way to extend the SDK with this function?
Thanks for your tips and ideas.
Michael
|
|
|
|
|
Does anyone know how to send an object using NetworkStream or other classes
in .NET Compact Framework?
It is because I want to send an object from a pocket pc to another pocket pc
but I don't know how to do so. Could anyone help me? Thanks a lot!!!!
|
|
|
|
|
I am developing an eVC 4.0 dialog based application on Win CE.Net platform.
When I run application it shows application name on taskbar but without icon.
As SetIcon() is not supported by WinCE i used DrawIcon(), but still it does not show icon on Taskbar,it shows Icon only on dialog
Any Hint...
Thanks in Advance.
Ajay
|
|
|
|
|
Help me!!!
Active sync stopped working. So instead of downloading to device option, I chose 'emulator'.
But now even the emulator is not running. When I execute the program, a window pops up saying "connecting". It says connecting for a couple of seconds and then says timed out?
How do I get it right.
Help me soon, I have a demo on monday.
-hithesh
|
|
|
|
|
Did you changed the active platform configuration to the "Win32 (WCE emulator) Debug/Release" option?
|
|
|
|
|
No I didnt change it. But I did get this working. I just reinstalled the windows pocket pc 2003 sdk.
Thanks.
-hithesh
|
|
|
|
|
How do I download my application on to the win CE device (HP RX3115) and make it stay there?
I am using evc++
-hithesh
|
|
|
|
|
Hi !!!!
I run the server application (smart device application written in C# , VS Studio .NET 2003) in Pocket PC 2002 emulator , where server socket is listening on some port for incomming connections. When I run client application on my desktop pc , it tries to establish connection with my server which runs in Pocket PC 2002 emulator , the client cannot establish connection with my server ,and exception of type 'System.Net.Sockets.SocketException' occurs in system.dll . But when server with same code runs on desktop pc , client establishes connection with server succesfully.Is the problem from pocket pc 2002 emulator ?
Thanks.
|
|
|
|
|
Hello,
Can we use isolated storage in compact framework applications?
|
|
|
|
|
No this is missing in the compact framework version.
|
|
|
|
|