Smart Devices Native C++ Development,82
Recent update: 2008-3-21

/clr:oldsyntax not available for Smart Device Projects?

433 byte By fhunter at 2008-3-7
I am trying to convert a eVC++ 4.0 application to Visual Studio 2005 we get tons of compilation errors that have to do with the new C++ syntax. Is there a way to compile the application using old syntax. There does not seem to be an option to set /clr:oldsyntax and adding it to the command line ...

How do Imaging API's work?

1342 byte By jimble at 2008-3-6
Hi, We are developing wrappers for custom Image Encoders/Decoders for Windows Mobile 5.0 using the Imaging Interfaces given in Windows Mobile 5.0. But we are having problems identifying the Flow as some of the functions do not seem to be giving the expected result. For instance, calls to ...

bluetooth XP

290 byte By jemjr at 2008-3-5
I need to know where to find the the actual values for the following GUID for MS Bluetooth Stack using socket programming. GUID_L2CAP_Event_Info GUID_HCI_Event_Info GUID_Radio_In_Range GUID_Radio_Out_Of_Range It would be nice to find the header files for the Bluetooth SDK.

Can't open Windows Mobile 5.0 PocketPC CPP win32 projects in 2005

278 byte By fhunter at 2008-3-3
I am unable to load the sample projects that come with the Windows Mobile 5.0 PocketPC SDK in Visual Studio 2005 All I get is an empty error dialog with an OK buttom. Has anyone else seem this behaviour? I can open the C# SDK projects with out a problem. Thanks

Unable to open Windows Mobile 5.0 SDK CCP win32 projects in 2005

272 byte By fhunter at 2008-3-1
I am unable to load the sample projects that come with the Windows Mobile 5.0 PocketPC SDK in Visual Studio 2005 All I get is an empty error dialog with an OK buttom. Has anyone else seem this behaviour. I can open the C# SDK projects with out a problem. Thanks

WinSock Program: Windows version of Server works but not embedded?

420 byte By Fluffy_ko at 2008-2-28
Hi.I created a Server and a Client winsock application (MFC), and when i run them using the emulator (WinCE .Net 4.2), the Server don't seems to get any "OnAccept" callbacks.However it works fine if i build and compile the Server into Windows version...Any idea what's happening here?By the ...

Bring an application at foreground

3022 byte By lmussier at 2008-2-27
Hi all,I'm trying to hava only one cpy of my app running at once, to do that i get the sample code on "Hello World" generated app on embedded C++ 4.0 bool ActivatePreviousInstance(){ bool activated = false; int cTries; HANDLE hMutex = NULL; cTries = 5; while(cTries > 0) { hMutex = ...

how to add Toolbar into menubar created by SHCreateMenuBar?

287 byte By JulienT at 2008-2-26
Hi all experts, After create menubar by SHCreateMenuBar, i want to add Toolbar beside the menu in menubar? It's very easy and clair in evc++ 4.0 but in visual studio 2005 it's so stupid cos i spent a lot of time but i couldn't find out. Thank for your instruction.

Use of IsProcessorFeaturePresent() to detect specialized hardware

1074 byte By Brian_Kramer at 2008-2-25
I came across a bug report (FDBK26623) that mentioned the removal of compiler switches to enable intrinsics. I thought I'd follow up. You can use the IsProcessorFeaturePresent() API to determine the architecture or the existence of specialized hardware, such as DSP. e.g. ...

[C++] [MAPI] How to force mail sendind ?

327 byte By lmussier at 2008-2-24
My question is how, in the soft, flush an outlook account.I can create a email "ready to be send" but if i want it to be send immediatly how i do ?1- Create an email :i know how to do that2- Send the email :i don't know as my email is marked "ready to be send" i want to send immediatly without ...

[C++] [MAPI] Open a message store !

3572 byte By lmussier at 2008-2-23
Hi,I'm trying to send mail via MAPi on a smartphone, with the SDK Sample "SendMail" i can send put mail in the activesync message store but the mail had to be send on smartphone synchronisation with a PC running Outlook !I use this code : while (SUCCEEDED(pTable->QueryRows(1, 0, ...

Cannot employ some project

517 byte By arongpan at 2008-2-22
I'm using VS2005 Beta2, windows mobile 5 sdk for smartphone, Activesync 4, and DMA patch. I can successfully employ and debug some sample projects like "CloseWindows", but when I debug the sample "PhoneIme" which is a DLL project, Error message occurs and IDE states that "Cannot not find the ...

Custom WinCE 5.0 and VS 2005 Beta2. Connection question.

638 byte By RMarceloJR at 2008-2-22
So, I have a custom board and windows ce 5.0 built to our needs. I have active sync built into the image. Now, comes the problem. VS 2005 Beta2 asks for an tcp/ip (transport) and to have activesync (bootstrapper). Then I try to connect and get "Connection failed. The current version of ...

ActiveSync 4.0 and IReplNotify::QueryDevice

598 byte By FrankSp at 2008-2-21
I have noticed an apparent bug in ActiveSync 4.0 and IReplNotify::QueryDevice. The path returned using the following statement is sometimes empty. hr = m_pNotify->QueryDevice(QDC_CON_DEVICE, (LPVOID*)&pDevInfo); It seems to only happen the first time a new partnership is synchronized. ...

'C' device development using VS2003.

149 byte By BobH at 2008-2-20
Is it possible to write 'roll your own' smart device software using just a 'C' Main program instead of a C++ with VS2003 ? Thanks, Bob H

How Do you modify the Schema of TASKS DATABASE on WM2005?

448 byte By CCODER32 at 2008-2-19
Does anyone know how to modify the EDB schema of the "tasks database" on WM2005? Once the device boots shell32.exe already has mounted and has locks on the database preventing me from appending new columns to the schema. On Pre-WM2005 the developer could add columns without problems, but with ...

Windows Mobile 2005 - Can you reset/clear Database (EDB) sync flags/count to avoid sync with Act

1356 byte By CCODER32 at 2008-2-18
Hello All,On Windows Mobile 2005 - Can you reset/clear Database (EDB) sync flags/count to avoid sync with ActiveSync? I found a serious BUG with WM2005 because the replication values (bit based) APIs are non functional...Use for this is any type of application that would Backup the PIM ...

Getting USB HDD firmware serial no from CE.NET 4.2 device & x86 PC

3988 byte By starnamer at 2008-2-17
Hi all, Hopefully I haven't post this in the wrong place. If so, would someone be kind enough to point me to the correct site to post. Thanks in advance. I am a developer working on a Windows project currently. The program I am working on runs on a Windows CE.NET 4.2 based embedded device with ...

DirectShow Filter

3450 byte By shian at 2008-2-16
I tried to port the sample of DirectShow, AsyncFilter, to Windows Mobile 2005 Pocket PC. I added Strmbase.lib to project library list, but still has some symbols that do not get resolved. AsyncFilter.obj : error LNK2001: unresolved external symbol "public: virtual long __cdecl ...

How to play many WAV resources at the same time.

250 byte By giorgos_gs at 2008-2-15
Hi, I am developing a game for WM2003 and WM2005. Is there an example to play many WAV files at the same time from resources. Maybe DirectSound. If there is a example somewhere it would really help. Thanks, Giorgos

My Buttons cannot get focus!

1765 byte By giorgos_gs at 2008-2-15
Hi to all, I create 2 buttons and one input box dynamically. I use this code: HWND hwndG1B1,hwndG1B2,hwndG1B3; hwndG1B1 = CreateWindow( L"button", L"OK", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_TABSTOP, SCALEX(30), SCALEY(172), SCALEX(80), SCALEY(22), hWnd, (HMENU) ID_BUTTON1,g_hInst, NULL ...

how to play mp3/wmv in my program?

395 byte By shian at 2008-2-15
With the API, PlaySound and sndPlaySound, it only play waveform file. I try to use DirectShow with WM 5.0 but still can't play mp3 or wma file. My code is maybe wrong, anyone has good sample with DirectShow to play mp3/wma?I think the another way to play mp3/wma is using Media Player control. ...

STL in vs2005 beta2 for smartphone problems - help !!!

815 byte By NickFarrow at 2008-2-15
Hi,I have an existing project coded with beta1 for gui/cf bits and a number of Dlls for low level network coding with evc. I'm trying to produce a combined project for both the managed and non manged code using beta2. The problem I have is that any inclusion of STL type usage (standard ...

Bluetooth communication using Winsock

4588 byte By ibeanz at 2008-2-15
Hi, Presently I’m working on Win CE for Pocket PC and I’m trying to do some enhancements to an existing Win CE application. The application has originally support for USB and Acitve Sync and other connectiviry mediums and right now I’m working on the Bluetooth connectivity mechanism. The win ...

Asynchronous I/O functions on CE

448 byte By Negyoshi at 2008-2-14
Hi, I need to port a Windows desktop communication DLL to a PocketPC target. Unfortunately, it seems that CE doesn't support aynchronous call for the I/O function ReadFile, WriteFile and CreateFile but these functions were esential to my DLL. So, is there really no support for overlapped I/O ...

PPC device problem w/ VS2005 application

717 byte By binglehopper at 2008-2-14
hello all,i have a program that i upgraded from eVC to VS2005 using the eVC++ upgrade wizard add on.i was able to successfully upgrade the application (or at least i think i did), and it compiled correctly in VS2005.when i transferred the app over to the PPC device (running PPC magneto) and ...

error with MFC in visual studio 2005

316 byte By JulienT at 2008-2-13
Hi,I'am using visual studio 8 beta2, i think it's missing a lots of things.One of them is mfc code of MFC.When i am using CCommandBar, when i compile with emulator. It makean error like that: f:beta2\vctools\vc7libsce\ship\arlmfc\src\mfc\barcmd.cpphow can i get this packet?Thank ...

wcebar.h for CcecommandBar

327 byte By JulienT at 2008-2-13
HI,I am trying GUI with MFC using visual studio 2005 beta 2. It seems that it is missing everything i have ever know.Now after CBitmapButton, it is missing wcebar.h for CcecommandBar.I think that it isn't missing, it just merged with other header? thancan you show me a little?Thank you so much ...

CBitmapButton?

270 byte By JulienT at 2008-2-12
Hi, Today when i made an application using CBitmapButton? i met this notification: uses undefined class 'CBitmapButton' Visual studio 2005 for pocket pc 2005 isn't supported this class. What is the purpose of it? JT <font size="1"> </font>

x86 native code support

127 byte By Kleber at 2008-2-11
Hi, I have several solutions made for x86 targets with eVC4. I wonder if they can work with VS8... Hugs, Kleber

Mobile 2003 Network Print Job Notification

533 byte By DavideLevorato at 2008-2-10
From a Windows Mobile 2003 client I am printing on a shared Generic-Text only printer on a Windows 2003 Server.To print I create a text file in the shared queue using the network functions::WNetAddConnection3::CreateFile ::WriteFile and after the ::CloseHandle call the print job is submitted ...

How to Mirgating Embbed VC++ ver 3/4 Project to VS2005?

290 byte By CEO-Match at 2008-2-10
Hi, I like to mirgate few of our Mobile Solutions developed for Windows CE/Pocket PC using embbeded VC++ 3 or 4 Projects source files into VS 2005 for further development. How to go about? Please advise, thank you in advance and have a nice day, cheers! Best Regards Abel/Singapore

how to get radio information .e.g. MIN of a CDMA phone

310 byte By Ozge at 2008-2-9
Hi,I was wondering whether there is a way to get radio information on a CDMA smartphone. I know you can get the MDN by using TAPI, but I need to get MIN (Mobile Identification Number).Also is there a way to get NID/SID base id info of CDMA phone and also their equivalent in GSM world?Cheers,Ozge...

Windows CE, TAPI 2.2 and wave audio input/output handle

94 byte By Yel at 2008-2-8
Hi, please help me. How can I get wave audio input/output handle with TAPI 2.2 in windows ce?

Creat softkey problem base on VS2005 in Magneto

406 byte By zool at 2008-2-8
1.I created a MFC Smart Device Application. 2.Selected: Mobile 5.0 PPC SDK 3.Appliction type: Dialog based The sample code can't display on my device. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devguidesp/html/sp_howtocreatesoftkeybar.asp And CMenu menu1; ...

Smartphone device debugging problem with VS 2005

817 byte By AndrewTrevarrow at 2008-2-7
I have just setup VS 2005 beta 2 and I'm having trouble debugging native C++ apps on my smartphone device (even the simple one created by the New Project wizard). The error I get is:Unable to start program '%CSIDL_PROGRAM_FILES%\TestApp\TestApp.exe'.Operation not supported. Unknown error: ...

Debug in Device with visual studio-need help

394 byte By JulienT at 2008-2-7
Dear Expert,I use Visual Studio 8 with Activesync 4.0, i need to debug some programwhich need to connect to server in Device.I tried to debug in Device, but it can't talk to server.I understand that we can use DMA with emulator.But in this case, i need debug in device for some other purpose.Do ...

Using same port for Server and Client

377 byte By bala_7272 at 2008-2-7
Is it possible to use same port for both the server and client. that is what i mean is if a client connects to the server at port 2332 then server will randomly assign an port, using this port server and client will communicate with each other. Hear, wht i need is i want that randomly assigned ...

Flash Support in embedded VC++ application

1063 byte By JothishankarVelayudam at 2008-2-7
Hi,I am trying to create an application with shockwave flash support on a WinCE5.0 platform. I found out that in VC++ 6.0 we have a registered activex control "Shockwave Flash Object" in the "Registered Activex Controls" directory. The corresponding flash.ocx file is in ...

OLE DB template in VS2005 VC++ project

135 byte By Vassilux at 2008-2-6
Hi alls, Is it possible to use OLEDB template (OLEDB Consumer ) in Smart Device WTL( | ATL) project in VS2005 Beta2 ? Thanks

MAC Address

73 byte By Vassili at 2008-2-6
Hi Alls, How I can get MAC address of PocketPC Mobile 2003 ? Thanks

DS_FIXEDSYS in VS2005

264 byte By Vassili at 2008-2-5
Hi Alls, I ported my VS2003 PocketPC WTL project to VS2005 and I have the problems with resources. When I modify a Dialog in my resource editor I get an error Error 1 error RC2104 : undefined keyword or key name: DS_FIXEDSYS Any idea? Thanks

remote code profiler - can't resolve functions name

495 byte By EhudShabtai at 2008-2-5
I'm using the remote code profiler with evc4. I compiled my application with the /callcap option and added the cecap.lib to the linker. Profiling works fine, but it doesn't resolve the functions name. I'm compiling with the release configuration, so debug information is not available in the ...

how to play mp3/wma in my program?

394 byte By shian at 2008-2-4
With the API, PlaySound and sndPlaySound, it only play waveform file. I try to use DirectShow with WM 5.0 but still can't play mp3 or wma file. My code is maybe wrong, anyone has good sample with DirectShow to play mp3/wma?I think the another way to play mp3/wma is using Media Player control. ...

Inbox transport

866 byte By aboudzko at 2008-2-4
I am experience a problem loading custom Tmail (Inbox) transport DDL on Windows Mobile 5.0 Pocket PC. I used 'TransportDemo' sample from Windows Mobile 5.0 SDK for Pocket PC, located at: <C:\\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC ...

Which lib is _DllMainCRTStartup found in?

266 byte By EmbeddedDeveloper at 2008-2-4
Converting a project from eVC++ to VS 2005 caused me to begin having the problem: unresloved external symbol _DllMainCRTStartup I am purposely referencing the symbol, but it wasn't a problem before. Has the lib where this is included changed? Thanks, Zack

Problem building DLL project with VS 2005

712 byte By EmbeddedDeveloper at 2008-2-4
Hi.I had a fairly large project that I was developing with eVC++ (SP3). I used the handy conversion wizard to upgrade to VS 2005, and, for the most part, it worked nicely, with the exception of a few minor tweaks in the settings.However, I'm having a consistent problem that I can't seem to ...

class not registered error when initializing the WMVDecoder DMO

633 byte By sreejithpdas at 2008-2-4
hai all, I am trying to decompress an asf file using the WMVDecoder DMO. For that I am using the code potion:IDMOWrapperFilter *pDmoWrapper; if(FAILED(hr = pFilter->QueryInterface(IID_IDMOWrapperFilter,(void **)&pDmoWrapper))) { return hr; } hr = pDmoWrapper->Init(CLSID_CWMVDecMediaObject2, DMOCATEG...

VS.NET 2005 - Howto override WinCE include folders (for using STLport)

1089 byte By Qwavel at 2008-2-3
.Welcome { font-size:x-small; margin-top:15px; } .Welcome p { font-size:80%; } .Welcome ul { font-size:80%; } If I want to use any external library instead of a built-in library (eg. STLport instead of the built-in STL) in Visual Studio then I just add the libaries include folder above the ...

Works fine

244 byte By arnie at 2008-2-3
Has anyone got the evc 4.0 --> Whidbey beta 2 wizard to work. Even the simplest "hello world" project doesn't seem to convert. The new project file is missing some key elements like "Configurations" and the IDE refuses to load it. arnie