Solution platforms in VS 2005
Does anyone know how to remove a configuration from the solution platforms
drop down list for a solution in Visual Studio 2005. I no longer need to
support Pocket PC 2003 and want to get rid of any reference to it. Tag: MAPI folder enumeration Tag: 121638
How to detect incoming call
Hi All,
Is there a simple method for an application to detect an incoming phone call
on a WM device? I don't want to answer it, just know it is ringing.....
Thanks,
Freg Tag: MAPI folder enumeration Tag: 121637
ActiveSync Service Provider for custom contacts
Hi All,
Thanks all in advance..
I am writing a plugin for POOM, adding a custom field in Contacts. This came
as a success and could able to do it. But while syncing this additional
custom filed is not syncing with the desktop. So I started wtiting an
ActiveSync Service for this custom filed. I thought it might be easy. But
when I dig further a lot many problems arise.
I'm getting the custom field data by calling GetIDsFromNames() and
GetItemFromOidEx(). the oid's I'm getting from poomobj->get_oid().
I'm not able to get the required information for populating the OBJTYPEINFO
in GetObjTypeInfo().
The CEOID I'm getting in the ObjectNotify is not at all matching with the
oid's. I'm stuck up totally and couldn't able to move further.
Like to get the information how to implement this feature. Is it possible to
do this in WM 5.0? Appreciate for the valid reply. Will be good if aby one
can refer somebody who already did this..
Thanking you.. Tag: MAPI folder enumeration Tag: 121633
setsockopt with paramter TCP_NODELAY does not work with WM5 device
My program works in such a way that I would benefit from the TCP_NODELAY
option. I read and understand why a developer might not want to
enable/disable this setting.
This code works on Windows but not on CE. On CE, if I set the value to 1
and read it back, then the value is 8. When using a network analyzer, I can
see that this setting has no effect on CE whereas it works perfectly on
Windows.
Any ideas?
int on=944; // any value but 1 or 0
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 0
on = 1;
setsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on,
sizeof(on) );
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 1 on Windows, but it equals 8 on CE Tag: MAPI folder enumeration Tag: 121632
Catch DIALBUTTON on WindowsMobile 5
Hi all!
I'm programming in VS8 with C#.
How to change default application started on dialbutton press?
I like to start a my phone screen...
Thank you! Tag: MAPI folder enumeration Tag: 121630
MFC Fonts question
I have an eVC app using MFC. To change fonts on objects, I use
CFontHolder.InitializeFont. This works fine for normal Western fonts
like Tahoma, Courier, etc. However, if I use a font like MS Song or
WebDings, the name of the font does not change.
I know these other fonts are installed properly: I can use them from
Word Mobile.
What could be the problem? Tag: MAPI folder enumeration Tag: 121628
How to close a form which is opened using ShowDialog() option??
Hi
I am developing an application which opens the windows standard contact form
by using ShowDialog() option like
Contact ContactEntry = new Contact();
after filling this contact i call the following
ContactEntry .ShowDialog();
Now when i try to cloe this form it doesn't work,I think this function is
caled in a different thread and this is asynchronous call. It require user
input to close it.Please help to resolve this. Tag: MAPI folder enumeration Tag: 121624
How the security policies work with pushmail
Hi All,
I have a couple of questions relating to the device security settings when
using Exchange Server pushmail.
Firstly, when are the security settings applied? Is it every time a sync is
done and a difference is found? If so what is the purpose of the refresh
settings time?
Secondly, what is the difference between the keys
HKLM\Comm\Security\Policy\LASSD\AE\{50C13377....
and
HKLM\Comm\Security\LASSD\AE\{50C13377....
As on my device the latter seems to be the one that defines the security
behaviour and they currently differ.
Thirdly, what AEFrequencyType value would allow me to have an inactivity
timeout, as well as lock the device on suspend?
Thanks in advance,
Freg Tag: MAPI folder enumeration Tag: 121623
Unable to kill application
I am writiing an application in c# targeting window mobile 5.0. The project
consists of one application(lets call it main) which needs to start another
application. I do this using process class. this part works fine. Now when my
other application starts, i need to hide it. i do that using this.hide(). Now
I need to kill this applicatiion from my main application. which I am unable
to do. process.kill, process.close, process.closemainwindowhandle all fail.
Even the findwindow and destroywindow doesnt work, since findwindow cannot
find my window since its hidden. How can I kill my application from my main
application. Please suggest
Thanks and regars
Pulkit Sethi Tag: MAPI folder enumeration Tag: 121622
How t o load our own service dll
I am working on Windows Mobile 5.0 for Pocket PC.
I have created own service dll as TestService.dll refering sample code of
SampleServiceMFC.zip .
Resgistry settings for it as follows
[RegKeys]
"HKLM","Services\MyService","Order","0x00010001","8"
"HKLM","Services\MyService","Discription","0x00000000","Test Service
demonstratig MFC usage"
"HKLM","Services\MyService","Context","0x00010001","0"
"HKLM","Services\MyService","Prefix","0x00000000","TSE"
"HKLM","Services\MyService","Keep","0x00010001","1"
"HKLM","Services\MyService","Index","0x00010001","0"
"HKLM","Services\MyService","Dll","0x00000000","TestService.dll"
"HKLM","Services\MyService","DisplayName","0x00000000","Sample MFC
Service"
My sevice is not loaded if soft reset done.
Can any body help me with this problem.
Is it that on emulator it doen't work. Tag: MAPI folder enumeration Tag: 121621
Unable to kill a process
I am writiing an application in c# targeting window mobile 5.0. The project
consists of one application(lets call it main) which needs to start another
application. I do this using process class. this part works fine. Now when my
other application starts, i need to hide it. i do that using this.hide(). Now
I need to kill this applicatiion from my main application. which I am unable
to do. process.kill, process.close, process.closemainwindowhandle all fail.
Even the findwindow and destroywindow doesnt work, since findwindow cannot
find window handle since its hidden. Same is the case for SendMessage using
WM_CLOSE. How can I kill my application from my main application? Please
suggest. Tag: MAPI folder enumeration Tag: 121619
Help: Question about TAPI and Modem.
Hi, everyone, have a nice day,
Sorry to bother you, but I have some question about the use of TAPI.
My work is to develop a CSD-trans app on PPC Phone Edition(WM 5
kernel), but actually the PDA is not bought yet: this is because my
project manager wanted to reduce the risk of our project and he told
me to develop an app using TAPI in windowsXP at first for testing, and
the test use TWO normal 56k modem(V.90 OR V.92) and TWO PCs instead of
the original TWO GSM Modem, one PDA and one PC. The TAPI is of ver2.0.
My question is:
1. In MSDN, I found that TAPI2.0 need UNIMODEM to work and the actual
modem must be "Hayes-compatible". I understand what's "Hayes-
compatible", but how can I judge whether a modem is "Hayes-
compatible" ? Is there some trade-mark or some verification mark or
something like this on the modem ? I think the RS232 56k modem must be
"Hayes-compatible", am I right ?
2. If I connect the RS232 modem to the PC, how can I make the TAPI to
use this modem OR how can the TAPI entity "discover" the modem ? Maybe
it's some confusing, let me explain more: when you need to use
TAPI ,firstly you may use lineInitialize() to get the total number of
TAPI supported device, then negotiate the version of TAPI and so on.
Before calling lineInitialize(), there must be some information of
modem devices stored at somewhere in the OS, then the lineInitialize()
function could be possible to return the information. If what I said
is right, how to make the TAPI entity to know there is a modem on the
commport ? So after calling lineInitialize() the TAPI entity will
found the special modem.
3. Is it possible to translate the app to Windows Mobile without much
work ? Is there no question if the normal modems are replaced by the
GSM modem (both use hayes AT set)?
Thanks your precious help ahead. ^_^
Best Wishes,
skovano Tag: MAPI folder enumeration Tag: 121617
ActiveSync disconects other NDIS session
We develope MDTV application which recieves DVBH TV transmition and enables
video players to show the MDTV broadcast.
Our device driver acts as NDIS miniport which sends IP/UDP packets recieved
from the MDTV modem and put it in the device IP stack.
Out system works fine as long as the active sync is not working, but as the
device placed in the cradel, and active sync starts - no more UDP packets are
recieved although the driver itself keeps working as usual.
After the device is off the cradel, the player application can reopen a
socket and the packets keep coming.
Killing the ConnMgr process solves the problem, both active sync and MDTV
are working at the same time but this ofcourse can't be a solution for the
end user.
Any suggestions?
Thanks. Tag: MAPI folder enumeration Tag: 121613
INF file entries :MajorVersion, MinorVersion?
The INF file used in building an installation of a Pocket PC program has a
section for writing registry keys such as:
HKLM,Software\Publisher\App\MajorVersion,0x00010001,1
HKLM,Software\Publisher\App\MinorVersion,0x00010001,0
I read somewhere that these entries are just for being a "Good Citizen" for the
benefit of the Windows CE Application Manager. Where can I find out the exact
function of these entries, and what the consequences would be if I left them out
of my INF file. When I release an upgrade with a different "internal" version
number, should I update this record of the version numbers too? And what is
that 0x00010001 all about?
Robert Scott
Ypsilanti, Michigan Tag: MAPI folder enumeration Tag: 121605
Diagnosing a WMDC service provider error
I'm trying to migrate a service provider from ActiveSync/Windows XP to
Windows Mobile Device Center/Windows Vista. It's my understanding but
not experience that the interface remains the same, so I'm trying to
figure out why synchronization runs without error, but my service
provider fails to run.
In the WMDC logs I see 4 exceptions right before my data type's
"Replacing native DataType" dump:
wmdc Verbose: 0 : ActiveSyncEngine.OnLoaded: Worker Thread before
invoking FixUpDataTypeList
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = Files StoreProgId = MS.WinCE.CEFStore
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = Mobile Favorites StoreProgId = INetRepl.ReplInet
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = Notes StoreProgId = MS.WinCE.InkStore
First-chance exception at 0x7733b09e in wmdc.exe: Microsoft C++
exception: EEMessageException at memory location 0x06c5f5a0..
First-chance exception at 0x7733b09e in wmdc.exe: 0xE0434F4D:
0xe0434f4d.
First-chance exception at 0x7733b09e in wmdc.exe: Microsoft C++
exception: EEMessageException at memory location 0x06c5f5a0..
First-chance exception at 0x7733b09e in wmdc.exe: 0xE0434F4D:
0xe0434f4d.
wmdc Verbose: 0 : ActiveSyncEngine.FixupDataType Replacing native
DataType. Name = MY_DATATYPE_NAME StoreProgId = MY_DATATYPE_PROGID
wmdc Verbose: 0 : ActiveSyncEngine.OnLoaded: Thread pool done invoking
FixUpDataTypeList
I looked at the wcesmgr*.mvu file (appears to be a copy of repl.dat
after the last sync) and it does include the CEDB rows from the
device.
* Any clues to what might be the problem?
* Additionally, anyone know where there's any developer information
out there for WMDC?
* Is it possible to remotely debug a service provider on a Vista
machine from an XP machine (I only have a license for the XP machine)? Tag: MAPI folder enumeration Tag: 121602
Flight Mode On/Off Example Needed
I'm looking for a way to completely disable flight mode on a
SmartPhone.
>From everything I've read that involves using ExTAPI with
lineSetEquipmentState.
Kicking around in the internet is a Alex Feinman's TAPI wrapper (1.6)
but that does not seem to work at all on my device.
I've been looking at the Extapi example in the SDK which clues me in a
little bit in terms of calling the API but I am stuck trying to use P/
Invokes to get it working in managed C# code.
If anyone can point me in the direction of an example of what I'm
trying to do or tell me of some way to just completely disable flight
mode on a device it'd be much appreciated.
Thanks Tag: MAPI folder enumeration Tag: 121589
Formatting Information
I'm currently writing an app that has a lot of text based information,
but I'm having trouble figuring out how to display and format this text.
The text is supposed to be stored in a database and my app will read the
text from that database and then format it appropriately within the PDA.
This is the part I'm having trouble with - the fact that the text is
dynamic and my WindowsForm has to adapt to it. Say I have the following
(using HTML):
<h2>Some Title</h2>
<br>
<b>Sub title: </b>
<li>List item one</li>
<li>List item two</li>
<li>Sub list item two</li>
<li>List item three</li>
How can I format all of this information using standard WindowsForms
controls? Do I just build a bunch of Windows.Forms.Labels and drop the
text in? Would I be better off using real HTML (hosted on the PDA, not
web) and loading it into the WebBrowser control?
Thanks for any advice. Tag: MAPI folder enumeration Tag: 121587
how to determine emulator or device programmatically?
I need to get the device id but only when the program is running on the
device and not on the emulator, but i'm not able differentiate it
programmatically. Any help is appreciated Tag: MAPI folder enumeration Tag: 121586
How to get notified in PPC application when PPC is sync'd
I have a Pocket PC application (C#, .NET on Mobile 5) and I need to determine
either: 1) when the Pocket PC is connected with the host PC through
ActiveSync, or 2) when one or more files are deleted from a Pocket PC
directory - these are deleted by a host PC application using RAPI. Is there a
way for my PPC to get either notification? Tag: MAPI folder enumeration Tag: 121580
WM5 Cab file prompt for location
Hi,
I'm trying to port my app from a WM2003 device to WM5. When I am
installing my cab files on the
WM5 device, I am being prompted to, "Choose a location to install <cab
name>", with options for
"Device", "\SD Card", and "\Flash File Store".
How do I get the cab files to tell the installer that I don't want to
be prompted, that I know the destination location. The
DestinationDirs are set in the inf file that created the cab files.
My hardware is Intermec 761 (old) and the Intermec CN3 (new), if that
makes any difference.
Any help would be appreciated, Thanks.
Carlos Tag: MAPI folder enumeration Tag: 121577
Services in WM5.0 - PLEASE, HELP!!!
Hi all,
I've got an application developed for PocketPC 2003 where a service
registered in HKEY_LOCAL_MACHINE\Services\ is loaded trough the function
ActivateService.
Now I have to translate and re-compile in VS2005 in order to execute
it on a Windows Mobile 5.0 device.
I've tryed using ActivateService, RegisterService and GetServiceHandle (even
it's deprecated since WM5.0) from setup.dll's Install_Init and Install_Exit
functions, but none of them work. In fact, none of the functions xxx_Init,
xxx_Open, etc. are being called.
The registry entry actually exists at the very moment I try any of those
functions but, as they always fail, the installation can not complete and
that registry entry disappears.
What else can I do?
Any help will be appreciated.
Thanks in advance. Tag: MAPI folder enumeration Tag: 121570
SQL 2000 and Windows Mobile
Is it possible to connect directly to a SQL 2000 Standard instance in my
application from Windows Mobile 6?
TIA,
kevin Tag: MAPI folder enumeration Tag: 121564
localization
Hi,
My method for localizing app was to create seperate resource dll's, (dll
containing only resources, like dialog and string resource), then
dynamically load the correct resouce file during execution.
However, in my IDE, I can't even type cyrillic or chinese characters
(characters show up as ?) into the resource editor. Visual Studio doesn't
like unicode resource files either.
Currently, I'm loading my strings from XML file, but this doesn't work well.
For example, on SmartPhone, when you change the regional settings, the
language changes on your device immediately, and all (built-in) apps, and
not only that, even the names of applications (shortcuts) change!
Now, how does this work? I'm guessing the application has multiple string
table resources, each for a different code page, and OS selects the match
one? The resource editor only provides like 4 languages for your resource
files though, english, german, french, local and neutral I think..
Can someone tell me how built-in apps have their shortcut names localized to
whichever language the user selects?
Lisa Tag: MAPI folder enumeration Tag: 121562
Can not get Storage Card Manufacturer ID in wince4.2!
I can get storage card manufacturer id(10digitals) either in
smartphone and ppc using my own tool.But the tool does not work in
wince4.2 ,it appears n/a. what's the problem?Are there some dlls i
need to add into wince4.2? Tag: MAPI folder enumeration Tag: 121555
Can get Storage Card Manufacturer ID in wince4.2
I can get storage card manufacturer id(10digitals) either in
smartphone and ppc using my own tool.But the tool does not work in
wince4.2 ,it appears n/a. what's the problem?Are there some dlls i
need to add into wince4.2? Tag: MAPI folder enumeration Tag: 121553
File transfers between PC <> PocketPC
In an application I work on I will exchange some data files when the
Pocket PC is cradled. I will use RAPI from the desktop to copy files
between PPC and desktop. I know about other ways to exchange data like
using webservices, RDA etc but for this application it will be done by
simple file transfer using RAPI.
What happens is the following:
1) The desktop user start the the transfer process form the desktop
application.
2) PPC application need to export some of the data from the application
to a file. This is done either by the user pushing a transfer option in
the PPC application or a program is started on the PPC by using RAPI.
3) Desktop application copy the exported file from 2) to Dekstop and
process data
4) Desktop application copy files with data to be imported on the PPC
(possibly changed lookup tables)
5) PPC application import the new files into the database.
Step 5 could be done when the PPC application starts but the way this
application will be run it might be that the application is still
running.
If I choose the option to have the user start the transfer process then
it is pretty simple. Just wait for new files to be created then process
them and reload the datasets. However when two processes are running and
especially like this when on two separate computers it do raise some
possible problems. One computer does not know how when a process has
finished or not, but you can of course check for created files or having
the desktop computer to write to registry when process is finished or
something. But still, you need to be prepared for communication failures
etc.
I could probably also use the OpenNetCF filewatcher class to react when
new files to process have arrived on the PPC.
However, it would be best if the entire syncronization process could be
initiated from the desktop application without the user having to do
anything on the PPC. This should not be that hard to do, the desktop
program could launch a separate program on the PPC using RAPI which
exports and imports data. That seems like a clean and user friendly way
to do it.
However there is one problem that remains to be solved. If the PPC
application is still running I need to either close it or to use some
interprocess communication method (openNetCF?) to tell the application
to refresh datasets etc.
Questions:
1) Which method would you choose? Using a seperate program on PPC to
export/improt data or have the user start the transfer process in the
application? Any other betetr mthods to do this?
2) Can you show me some example shwo to use IPC with .NEt compact? Tag: MAPI folder enumeration Tag: 121552
How to scroll a bitmap inside a today screen plugin?
Hello!
I have a problem creating a window with a vertical scroll bar.
Here's what I try to do:
HWND InitializeCustomItem(....
.......
g_hWnd = CreateWindow(appName, appName,
WS_VISIBLE | WS_CHILD | WS_VSCROLL,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 0,
hwndParent, NULL, g_hInst, NULL) ;
SCROLLINFO si;
ZeroMemory(&si, sizeof(si));
si.cbSize = sizeof(si);
si.fMask = SIF_POS | SIF_PAGE | SIF_RANGE |
SIF_DISABLENOSCROLL;
si.nPos = 50;
si.nPage = 100;
si.nMin = 0;
si.nMax = appHeight;
SetScrollInfo(g_hWnd, SB_VERT, &si, TRUE);
. SetWindowLong(g_hWnd, GWL_WNDPROC, (LONG) WndProc);
....
}
LRESULT CALLBACK WndProc (HWND hwnd, UINT uimessage, WPARAM wParam,
LPARAM lParam)
{
.....
I set appHeight to 120 at the beginning.
In response to WM_TODAYCUSTOM_QUERYREFRESHCACHE , I set the ptli->cyp
to appHeight and return true (only once, of course, except for
resizes)
Later I create a bitmap:
case WM_CREATE:
{
if (!done_once) {
hBitmap = Test_NewDIBSection(appWidth, /
*appHeight*/480, (void **)
&bitmapa);
hDC = GetDC(hwnd);
hDCMem = CreateCompatibleDC(hDC);
hOldBitmap = (HBITMAP) SelectObject(hDCMem,
hBitmap);
done_once = true;
}
....
}
which works fine, however this bitmap is limited to the appHeight
size, while
I would very much like to scroll it down to see more. My window's
scroll bar appears, but it doesn't move, as if everything there is to
see is already shown. Also, the main today screen scroll bar appears
if necessary - and it works fine, scrolling my bitmap, but
unfortunately I need the internal scroll bar.
I understand that I can probably do it manually by responding to
WM_VSCROLL messages, but I doubt it would be as effective as a pro-
made scrolling. Does anybody know (probably most do :-( ), how can I
scroll my bitmap? I'm pretty sure that a smooth way to do it exists,
but I am simply missing something and have no idea, what it might be.
Thanks for any help!
gegitor Tag: MAPI folder enumeration Tag: 121547
resolution of different ppcs
Hi NG,
how to get the resolution of my pocketpc with cf 2.0?
My Problem:
i have fixed values for the size of the application.
but now the resolution of my pocketpcs is variant.
how to resize the complete application?
thx for your information.
Beste regards.
Benni Tag: MAPI folder enumeration Tag: 121541
regarding deployment of filter on visual studio 2005
Hi
I want to develop a simple Directshow filter for my Windows Mobile
5.0
PPC device.My development enviorment is Visual Studio 2005 + Windows
Mobile
5.0 SDK for PPC.I create my basefilter. i have already done NO in
project settings and included all the library files as all have
mantioned above.
but still i am getting the following errors:
c:\documents and settings\madhviagarwal\desktop\playback_of_mp4\dll
\filter\filter\dump.h(47) : error C2504: 'CRenderedInputPin' : base
class undefined
.\dump.cpp(139) : error C2440: 'return' : cannot convert from
'CDumpInputPin *' to 'CBasePin *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
.\dump.cpp(242) : error C2614: 'CDumpInputPin' : illegal member
initialization: 'CRenderedInputPin' is not a base or member
.\dump.cpp(268) : error C2653: 'CRenderedInputPin' : is not a class or
namespace name
.\dump.cpp(442) : error C2653: 'CRenderedInputPin' : is not a class or
namespace name
.\dump.cpp(623) : error C2664: 'CPosPassThru::CPosPassThru(const TCHAR
*,LPUNKNOWN,HRESULT *,IPin *)' : cannot convert parameter 4 from
'CDumpInputPin *' to 'IPin *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\madhviagarwal
\Desktop\PlayBack_of_MP4\DLL\filter\filter\Windows Mobile 5.0 Pocket
PC SDK (ARMV4I)\Debug\BuildLog.htm"
filter - 6 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Please tell me how can i resolve this.
Thanks Tag: MAPI folder enumeration Tag: 121536
Microphone sensitivity.
I need to lower the microphone gain.
My audio codec is clipping becouse of incoming PCM samples saturated from
the mic. I don't need AGC becouse it doesn't work well with my app.
I just need to manipulate the mic gain via software.
Is there a way to do it? I'm using waveform audio api ti capture sounds.
Thanks. Tag: MAPI folder enumeration Tag: 121526
Serial Communications: Wire -vs- Air
I've got an application that uses serial communication. I select the COM
port, then start listening to a data loop.
If I use the wireless Bluetooth COM Port, the data I receive is:
0x1c 0x1c 0xfc 0xe0 0x0 (Loop)
If I use the hardwired Serial COM Port, the data I receive is:
0xe 0x24 0xc3 0x29 0x55 (Loop)
Does anyone see a similarity between the two sets of data? My Bluetooth
device appears to be shifting the data, but I don't recognize anything.
We have machines that send this data, and the Serial COM Port data is the
correct data. The Bluetooth data is coming in wrong, but it is consistent
and we receive the same number of bytes.
Is there a more appropriate message board I could address this question? Tag: MAPI folder enumeration Tag: 121524
Serial port buffer check?
Greetings,
I'm porting some PalmOS serial port code to Windows Mobile/PocketPC. Is
there a PocketPC API available that will return the number of bytes of data
sitting in the serial port receive buffer? I'd like to know how many bytes
of data are sitting in the receive buffer before I try to read anything from
the buffer via ReadFile. On the PalmOS this is available via the
SrmReceiveCheck API. Any ideas?
Regards,
--
David Thacker
http://www.SatelliteForms.net
The Premier RAD Tool for PalmOS & PocketPC Tag: MAPI folder enumeration Tag: 121512
How do I delete or garbage collect the unmanaged structure in mana
Hi,
I'm developing the pocket pc application in which i pass the unsafe
structure to c++. i see that if i pass 10 times data strucure it consumes
more memory. i have the structure like
// .NET structure
unsafe public struct Employee
{
public char* FirstName;
public char* LastName;
public char* Address;
}
[DllImport("test.dll")]
private static extern int SetEmployeeData(ref Employee item);
// C++ Structure
struct Employee
{
BSTR FirstName;
BSTR LastName;
BSTR Address;
}
// C++ declaration
public int SetEmpoyeeData(*Employee item)
[
// do some code
}
Can anyone please let me know how to delete or garbage collect this data
structure in managed code like delete function in c++.?
Thanks Tag: MAPI folder enumeration Tag: 121506
Reseting via cab installation
I've seen couple of cabs that after installation default installer
(wceload.exe) requested reset (not from setup.dll).
How to make such cab? I'm creating cab by writing .inf files namualy and
using cabwiz.
-----
Saman Tag: MAPI folder enumeration Tag: 121501
Messaging application refresh
I have an application that runs in the background and can do things like
rename a MAPI folder. If the Messaging application is running when my
changes take place then the change will not be noticed until the application
is closed and then open again. Is there a way for me to tell the Messaging
application to refresh? I am hoping I can send the Messaging app a windows
message telling it to do so.
Thanks, Joe Tag: MAPI folder enumeration Tag: 121499
send email from a PocketPC app in VS2005
I just don't see the namespace 'System.Net'. I cannot believe
Microsoft has removed the ability of sending email from the
CompactFramework in VS 2005.....is this correct? If so, what are the
other alternatives?
I found an article on how to do it but with VS 2003, using
System.Web.Mail.
Please your response on this issue will be very appreciated.
Thanks, Tag: MAPI folder enumeration Tag: 121498
setsockopt with paramter TCP_NODELAY does not work with WM5 device
My program works in such a way that I would benefit from the TCP_NODELAY
option. I read and understand why a developer might not want to
enable/disable this setting.
This code works on Windows but not on CE. On CE, if I set the value to 1
and read it back, then the value is 8. When using a network analyzer, I can
see that this setting has no effect on CE whereas it works perfectly on
Windows.
Any ideas?
int on=944; // any value but 1 or 0
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 0
on = 1;
setsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on,
sizeof(on) );
int len = sizeof( on );
getsockopt( Socket, IPPROTO_TCP, TCP_NODELAY, (char *)&on, &len );
// on equals 1 on Windows, but it equals 8 on CE Tag: MAPI folder enumeration Tag: 121497
change SQL Mobile database schema
Hi,
any idea how to change the table schema of SQL Mobile?
cos I am not able to edit the table/column name once I have created.
--
Johnson Tag: MAPI folder enumeration Tag: 121486
Store results in Dataset/Datatable in MCSF
Hi,
1) Does anyone knows how to use MCSF to retrieve data from database and
store into a dataset/datatable?
2) Does anyone knows how to use MCSF to save data to database from
dataset/datatable?
--
Johnson Tag: MAPI folder enumeration Tag: 121484
calendar status
Hi,
Is there a more efficient way to check the current status of the calendar,
other than this:
IPOutlookItemCollection *pItems;
....
pItems->Find( szStartEndNow, (IDispatch**) &pAppt);
LONG bs;
pAppt->get_BusyStatus(&bs);
???
Is this status info perhaps available via registry or something?
Lisa Tag: MAPI folder enumeration Tag: 121483
Serializing XML Error
Hi,
I managed to write my array of my own custom class to XML file but when I
open the XML file, it will only store 4 lines of my class name as seen below.
But indeed there are 4 array items in my list collection. How come I cant see
the content of each of my custom class?
<?xml version="1.0" standalone="yes">
- <ArrayOfPERF_NR_QN_SCORE>
<PERF_NR_QN_SCORE />
<PERF_NR_QN_SCORE />
<PERF_NR_QN_SCORE />
<PERF_NR_QN_SCORE />
<ArrayOfPERF_NR_QN_SCORE>
My codes are as below:
----------------------this is how I call my SerializeXML
method-------------------------------------------
SerializeXml(typeof(NRQnScore), NRQnScoreCollection.ToArray());
------------------------------------------------------------------------------------------------------------------------------
public void SerializeXml(Type type, Object obj)
{
string XmlizedString = null;
MemoryStream memoryStream = new MemoryStream();
XmlSerializer xs = new XmlSerializer(type);
XmlTextWriter xmlTextWriter = new XmlTextWriter(memoryStream,
Encoding.UTF8);
XmlSerializerNamespaces xsn = new XmlSerializerNamespaces();
xsn.Add(string.Empty, string.Empty);
xs.Serialize(xmlTextWriter, obj);
memoryStream.Position = 0;
XmlTextReader r = new XmlTextReader(memoryStream);
DataSet ds = new DataSet();
ds.ReadXml(r);
ds.WriteXml("PERF_NR_QN_SCORE.XML");
}
Pls advise.
Thanks
Johnson Tag: MAPI folder enumeration Tag: 121482
Appointment.Update() API failing
Hi folks,
We wrote a simple utility to detect if the outlook event has changes. We
evaluate the checksum of some fields store it inside the appointment object.
This works fine in most cases but sometime it fails. Please refer the
stacktrace below for more details.
Any ideas on how to fix it?
Outlook Event :'Manish Agarwal Appointment '
--------------------------------------------
Message : Native method call failed.
StackTrace : at
Microsoft.WindowsMobile.PocketOutlook.Utilities.CheckHRESULT()
at Microsoft.WindowsMobile.PocketOutlook.Appointment.Update()
at Nagarro.BusinessLogicLayer.OlEventManager.SetCheckSum()
at Nagarro.BusinessLogicLayer.OlEventManager.get_ItemModified()
Thanks Tag: MAPI folder enumeration Tag: 121477
Serialize XML in PDA using Microsoft Compact Software Framework
Hi everyone,
I tried to use dataset's Read/Write XML method but could seem to implement
dataset in MCSF. Anyways to serialize XML using MCSF?
Can anyone advise on any code examples on serializing an array of objects to
XML?
Pls advise.
Thanks
--
Johnson Tag: MAPI folder enumeration Tag: 121475
Print to a Printer Directly from the PPC!
We have a Software for Pocket PC. It generates a text with some simple
graphics as Output. I want to take printout of the output. Till now we are
doing so by connecting PPC to the PC via activesync and the printer to PC.
Now I want to remove PC from this connection. There lots of third party tools
available on net for this purpose like PRINTBOY sdk. But i cannot use
thirdparty tool becose of company policy.We have 3 ways for this:
1) connection via some cable using USB or serial port
2) Blutooth
3) IR
Thanks!!
--
Alberto Cardoso Tag: MAPI folder enumeration Tag: 121474
Windows Mobile 5.0 WSALookupServiceBegin Problem.
Hi All.
I currently developed data transfer program using bluetooth.
I want to discovering bluetooth devices and services because when
starting my program, it connect remote bluetooth device automatically.
So I try to using WSALookupServiceBegin and WSALookupServiceNext API.
But, when I call WSALookupServiceBegin, it return fails and
GetLastError() is 10108.
My code is like below and I developed on HP IPAQ hx2900 and OS is
Windows Mobile 5.0.
WSADATA wsd;
WSAStartup (MAKEWORD(1,0), &wsd);
WSAQUERYSET wsaq;
ZeroMemory(&wsaq, sizeof(wsaq));
wsaq.dwSize = sizeof(wsaq);
wsaq.dwNameSpace = NS_BTH;
wsaq.lpcsaBuffer = NULL;
int iRet = WSALookupServiceBegin (&wsaq, LUP_CONTAINERS, &hLookup);
Please Help.. ^^;;
Best Regard.
Thansk. Tag: MAPI folder enumeration Tag: 121473
video: A Technique for Operating Pen-Based Interfaces Using Touch
"Retrieving the stylus of a pen-based device takes time and requires a
second hand. Especially for short, intermittent interactions many
users therefore choose to use their bare fingers instead. Although
convenient, this increases targeting times and error rates. We argue
that the main reason is the occlusion of the target by the user's
finger. We propose a pointing technique we call Shift that is designed
to address this issue. When the user touches the screen,Shift creates
a callout showing a copy of the occluded screen area and places it in
a non-occluded location...."
More at
http://geekvideo.blogspot.com/2007/05/look-mum-no-stylus-on-my-pda.html Tag: MAPI folder enumeration Tag: 121471
Dynamic array or structures
Hi I need to create a array of structures in my app (Written in eVC++). My
array is like so:
typedef struct Positions
{
int x;
int y;
}stPointPositions;
stPointPositions stPos[50];
I wish to convert this to a dyanamic array of structures as I dont know how
many I will need(I read data in from a database file)
I can do this in c# using ArrayList but I dont know how this is done in evC++;
Can anyone help me?
Any help at all is greatly appreciated.
Thanks
Harry Tag: MAPI folder enumeration Tag: 121470
Does anyone have any sample code that enumerates through all of the folders
off of the root of a known message store?
"joec" <joec@discussions.microsoft.com> wrote in message
news:C4F6F9B2-3373-483D-87F9-15384C5D63E3@microsoft.com...
> Does anyone have any sample code that enumerates through all of the
> folders
> off of the root of a known message store?