Cannot create files in .NET compact
Hello,
I'm trying to develop a small application that saves some data in
simple text files. At startup I test if the file exists, if not I
create one, if it exists but is empty I put some dummy data in it. Here
is the code:
-----
// path = "/My Documents/test/test.txt" (directory test exists!)
...
// create if not exists
if(!File.Exists(path))
{
File.Create(path);
}
// test if empty
FileStream f = new FileStream(path);
if(f.ReadByte() < 0)
{
retVal = false;
}
f.Close();
...
-----
Sometimes I get an IOException in the line "FileStream f = ......".
Why???
Sometimes I don't get this exception but later in the program, when I
try to read from the file (that should exist AND have some dummy data
in it), I get an FileNotFoundException. And really -> there is no file!
Why????
When I debug through the program, the file is often created - so it
seems to me that it is a "timing"-problem. Does the OS have not enough
time to create the file?
Thanks for any Hints!
Stephan Tag: import dll Visual C++ 2005 Tag: 108570
Overwriting the native phone dialer
Hi All,
I want my own dialer using Windows TAPI Calls.
Can I overwrite the native phone dialer ?
I mean I do not want to use Platform builder and I just want to give my
dialer to the customers.
What is the name of native phone dialer on Imate - JASJAR ?
--
Regards
Tarundeep Singh Kalra
www.tarunsadhana.com Tag: import dll Visual C++ 2005 Tag: 108567
File System Filter: Problem to deployed a filter on Wince 5.0
Hi everyone,
After a small pause, I'm back to the project explain earlier. ("Can I
have your advice on a problematic" posted on
microsoft.public.windowsce.platbuilder)
I've clarified the problem.
I must create a filter which will be register on
HKEY_LOCAL_MACHINE\System\StorageManager\Filters.
I've respected this procedure:
[HKEY_LOCAL_MACHINE\System\StorageManager\...\Filters\FilterName]
"dll"="filter.dll"
"Order"=dword:x
explain on the msdn site.
And I've put the dll on the folder "Windows".
My filter is the sample "encfilt" without any modifications.
On the emulator Pocket Pc 2003, it run perfectly. I created a file .txt
and its extension became .psw on my PC.
But on the emulator Pocket Pc 2005, my filter is ignore.
Is there anything I forget to do for the version 5.0???
Thanks for your help.
--
Antoine BELSOEUR
Ingénieur R&D
Everbee Networks
41, boulevard des Capucines
75002 Paris
Tel: +33 1 44 55 01 55
Fax: +33 1 44 55 01 50
Email: abelsoeur@everbee.com
Web: http://www.everbee.com Tag: import dll Visual C++ 2005 Tag: 108565
help: how can I do the same thing in the SmartClient Application
hi, I'm using Vs.net 2005.
what I have to do now is to respond to the Mouse_Down event
and draw somthing on a panel
In the Framework Application I can get a Graphics object from the
panel's CreateGraphics() method, and do the painting easily.
but in a NET CF application therse is a error when I use the same methodã??
how can i do that ï¼?
thanks in advanceï¼? Tag: import dll Visual C++ 2005 Tag: 108556
IPv6 on imate JASJAR - Windows Mobile 5.0
Hi All,
Is anybodt aware about the IPV6 support on windows mobile 5.0.
Or does the iMATE JASJAR has inbuilt IPv6 Support
TIA
--
Regards
Tarundeep Singh Kalra
www.tarunsadhana.com Tag: import dll Visual C++ 2005 Tag: 108552
IPv6 Support on windows mobile - imate jasjar
Hi All,
Is anybodt aware about the IPV6 support on windows mobile 5.0.
Or does the iMATE JASJAR has inbuilt IPv6 Support
TIA
--
Regards
Tarundeep Singh Kalra
www.tarunsadhana.com Tag: import dll Visual C++ 2005 Tag: 108551
Executing AT Commands on Windows Mobile
Hi,
I want to execute the AT Commands on Windows Mobile.
I tried using the inbuilt Wmodem using USB as interface but in vain.
Can anyone give me pointer on how to execute AT Commands on GSM Stack on
Windows Mobile 5.0.
My device is Imate JASJAR with Windows Mobile 5.0
TIA
--
Regards
Tarundeep Singh Kalra
www.tarunsadhana.com Tag: import dll Visual C++ 2005 Tag: 108550
Deployment on Pocket PC
Hi all,
I have developed mobile application for pocket pc. For testing on my
desktop, I used emulator 2003. Hence I set the project property: Deployment
Device to Emulator 2003.
Now when I wanted create cab files for deploying, I set Deployment Device to
Pocket PC. But when the cab files are deployed, the EXE gives error:
mobile POS.exe
TypeLoadException
Cound not load type
version=1.0 Culture-neutral, PublicKeyToken=Null
Why do I get this error? Whereas earlier, even for deployment, I set the
device to Emulator and still the binaries were running perfectly Pocket PC.
Any Help?
Regards,
VJ Tag: import dll Visual C++ 2005 Tag: 108547
Send Mail using .Net Compact Framework
Hi All,
How I can send mails programmatically using .Net Compact Framework?
I have seen examples using C++, but is there any wrapper for .Net compact
framework?
Thanks,
Sam Tag: import dll Visual C++ 2005 Tag: 108546
Remote Tools and path specified
Hello,
I was looking for info on the Remote Tools for WM 5.0 and came across
some threads that pertain to it but do not have a resolution to my
problem.
I have successfully found the tools but while trying to connect I get a
dialog that pops up complaining that "The system cannot find the path
specified"
Does anyone know what causes this?
Does know how to fix it?
It happens on PPC 2003 SE, Windows CE 5.0, Windows CE 4.2, and Windows
Mobile 5.0.
Any and all ideas or suggestions are always welcome
Thanks,
Gary Tag: import dll Visual C++ 2005 Tag: 108543
LoadLibrary error 126L "The specified module could not be found"
I'm trying to dynamically load a DLL in an MFC Pocket PC 2003 (ARMV4)
application. The DLL is an MFC extension for Pocket PC 2003 (ARMV4).
I'm using Visual Studio 2005 to write both the DLL and the app.
But, LoadLibrary() fails and GetLastError() reports 126L:"The specified
module could not be found."
I've tried putting the DLL in the root directory and in the \windows
directory. It doesn't seem to make any difference. I can verify with
windows explorer the DLLL file is where I think it should be.
My code is below, if anybody can see what I'm doing wrong, please let
me know.
Thanks,
PaulH
My LoadLibrary call:
HINSTANCE hModule = NULL;
if ((hModule = (HINSTANCE)LoadLibrary(_T("\\BatteryLog.dll"))) ==
NULL)
{
TRACE(_T("Couldn't load DLL \n"));
DisplayError(__FILE__, __LINE__);
}
The DLLMain Function:
extern "C" BOOL APIENTRY
DllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved)
{
UNREFERENCED_PARAMETER(lpReserved);
if (dwReason == DLL_PROCESS_ATTACH)
{
TRACE0("BatteryLog.DLL Initializing!\n");
// Extension DLL one-time initialization
if (!AfxInitExtensionModule(BatteryLogDLL,
reinterpret_cast<HMODULE>(hInstance)))
{
return 0;
}
new CDynLinkLibrary(BatteryLogDLL);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
TRACE0("BatteryLog.DLL Terminating!\n");
// Terminate the library before destructors are called
AfxTermExtensionModule(BatteryLogDLL);
}
return 1; // ok
} Tag: import dll Visual C++ 2005 Tag: 108541
Phone log notes
Hi all;
I was wondering if there's any function, flag, way to know if there's a
note attached to a certain phone log entry, how to get the name etc?
thanks
Mustafa Rabie Tag: import dll Visual C++ 2005 Tag: 108540
MFC 8 dlls on the 6700 (sprint and Verizon)
It looks like the HTC 6700 comes with some MFC8 dlls in the ROM. In
particular msvcr80.dll
This DLL appears to be some custom build of MFC. If I overwrite it with
the dll that shipped with visual studio 2005 the image gallery app
hangs. And, if I try to run my MFC app using this builtin dll my app
fails.
Does anyone has more info on this issue?
I cannot statically link to MFC since I use an extention DLL.
Also if you are wondering how I was able to overwrite a ROM file, the
cab installer wceload.exe for some reason is able to write my dll on
top of the builtin one. Tag: import dll Visual C++ 2005 Tag: 108537
Windows CE Shared Sources Premium - what's included?
There is a web site outlining the MS shared sources initiative:
http://msdn.microsoft.com/embedded/usewinemb/ce/sharedsrccode/default.aspx
, but it's not detailed enough. Can anyone answer (an MVP perhaps), what
exactly is included into the Premium sources, for example does it include
sources of TAPI, RIL, cellcore, cprog and so on?
Thx.
VB. Tag: import dll Visual C++ 2005 Tag: 108533
Questions about Standard C lib functions
hi,
i'm new to this environment, porting an app from xp to wince. one of the in
house libraries that i'm porting has a call to the c lib function mkdir(). i
can't find any trace or hint of this in the wince or embedded libraries.
does wince use a different call to make a new folder? does it not allow you
to make folders from an app?
also, with no errno.h, what do you do with errno? the same lib
specifically checks for EEXIST, a standard error that errno can be set to if
a file or directory doesn't exist. how does wince use, or does it use, errno?
thanks
mickm Tag: import dll Visual C++ 2005 Tag: 108527
Speech API on Pocket PC
I'm relatively new to .NET CF and I want to know is there is any way to
integrate Speech API on pocket PC in order to create voice commands for
one application.
Any sugestions or links are welcomed!
Thanks!
Andrei Tag: import dll Visual C++ 2005 Tag: 108526
Need to programatically turn on/off WiFi radio to conserve power
I need to be able to programmatically turn on and off the WiFi radio on
PPC2003 PDAs in order to conserve power. Is this possible and can anyone
point me to the appropriate APIs? My app is written in C++ so C++ based
solutions will be better than VB if possible.
Many thanks!
Dennis Gallagher Tag: import dll Visual C++ 2005 Tag: 108524
Suggestions for debugging gwes.exe errors
I'm trying to debug a GWES problem and would appreciate any tips you
might have about debugging GWES related problems.
When running my app, it occasionally causes an error in gwes.exe. If I
turn off error reporting on the device, the problem seemingly goes away
(no crashes or visible problems in my app). I had read in another post
that by turning off error reporting in the System->Settings, it should
show where the error is in my app.
Since the error is intermittent and this app is quite complex
(including hooks into various UI components, like the password.cpl and
intercepts some keys to cause it to load instead of a built-in app),
I'm hoping to find some way of determining the cause of the error more
directly than iteratively removing functionality. So any suggestions
would be greatly appreciated.
Ed Tag: import dll Visual C++ 2005 Tag: 108521
Problem to detect bluetooth disconnection with socket
Hello everybody,
I work with PSION TEKLOGIX terminal Workabout PRO. The OS is Windows CE .NET
4.2
My little program do some tasks :
Search bluetooth devices
Connect to SPP profil
Send and recv some data
closesocket
Everything works fine.
My problem :
If the bluetooth connection is lost during data transfert, i don't
receive SOCKET_ERROR
Do somebody know this problem ?
Thank you very much for your help
Bye
Jérôme. Tag: import dll Visual C++ 2005 Tag: 108518
Show a calculated field in a DataGrid
I am attempting to display a calculated field in DataGrid and I must be doing
something wrong. Here is what I've got:
DataTable table = Visit_List;
//add column for a calculated weight gain field
DataColumn calcWeight = new DataColumn("Weight_Gained",
System.Type.GetType("System.Int32"));
calcWeight.Expression = "Current_Weight - Prev_Weight"
table.Columns.Add(calcWeight);
DataView dataViewGridHistory = new DataView(table);
dataGridHistory.DataSource = dataViewGridHistory;
//Table Style
DataGridTableStyle tableStyle = new DataGridTableStyle ();
tableStyle.MappingName = "Visit_List";
DataGridTestBoxColumn columnStyle;
columnStyle = new DataGridTextBoxColumn();
columnStyle.HeaderText = "Weight Gain";
columnStyle.MappingName = "Weight_Gained";
columnStyle.NullText = string.Empty;
columnStyle.Width = 30;
tableStyle.GridColumnStyles.Add(columnStyle);
//Apply table stlye
dataGridHistory.TableStyles.Add(tableStyle);
I believe the cause is that the tableStyle.MappingName is using the table
that does not have the extra calculated column in it, but I don't know how to
fix this.
Any suggestions would be appreciated. Thanks Tag: import dll Visual C++ 2005 Tag: 108517
Protect from user configurations
hi,
is there any way to protect iPaq configuration from users ?
I want to Password protect the iPaq configuration from user. That's because
sometimes users changes, even remove applications from iPaq and I have to
re-install applications o modify iPaq configurations.
any ideas?
thanks
Enrique Vizcarra Tag: import dll Visual C++ 2005 Tag: 108514
Hide New Menu button
Dear List,
I need to remove the 'New' menu button which sometimes appears at the bottom
left of the screen. Any ideas on how to achieve this? I have tried to by
deleting the following key from the registry -
HKLM\Software\Microsoft\Shell\Extension\NewMenu
But this only removes all items from the list and leaves the New button
remaining. Any ideas on how to get rid of the New button?
Thanks for any help,
David Tag: import dll Visual C++ 2005 Tag: 108505
Windows mobile 5.0 printer driver problem.
Hi,
I have a troubles with development of printer driver for windows mobile 5.0
devices. It seems that callback function "DrvCopyBits" is not execute
correctly from device menager. Execution of it never stops (until return 0),
and bitmap data bytes that comes in "psoSrc" are all 0xFF (awlays white
pixels).
Is there any specials for setting bitmap type or something other specifig
for printer drivers in WM50 devices? I develop such a driver also for
PocketPC 2002, Pocket PC 2003 and Windows CE.NET 4.20 devices and have no
problems with them. There everything works as expected. Sample for building
driver is taken from platform builder.
Is there any plans for embedding print abilities in applications such as
Pocket Word, Pocket Excel and Pocket IE as like they presents in Windows
CE.NET 4.20 powered devices?
Best Regards,
Miroslav Slavchev Tag: import dll Visual C++ 2005 Tag: 108504
Problem In System.Net.HttpWebRequest
Hi all,
I have faced System.Net.HttpWebRequest problem in my developement.
My situation is like here:
I am using threading to retrieve data from server every 3 seconds. When I
failed to retrieve once from server, then the following retrieval also will
not successful anymore. Do anyone know how to solve the this kind of porblem?
My coding is like this:
Dim url as string = "http://lms.n2n.com" 'Example
Dim Req As System.Net.HttpWebRequest
Dim Resp As System.net.HttpWebResponse
Dim Uri As New Uri(url)
Req = System.Net.HttpWebRequest.CreateDefault(Uri)
Req.KeepAlive = False
Resp = Req.GetResponse
...
Everytime it will stuck in Req.GetResponse, then throw the error. Any one
have a good suggestion to solve it ?
Thanks a lot... Tag: import dll Visual C++ 2005 Tag: 108490
questions on WinCE 5.0
Hi ppl,
I have the following questions on WinCE 5.0
1) Does ARM9 BSP come along with Windows CE Platform Builder installation?
2) Can I use the ARM9 BSP to bring up WinCE on ARM9 Evaluation board from ARM?
3) Can I develop WinCE and its applications on a board without Ethernet
support?
Thanks and appriaciate your help.
Jai. Tag: import dll Visual C++ 2005 Tag: 108489
VoIP application
Hi ppl,
I've been tasked to develop a VoIP application for the PDA phone running
windows mobile 5.0. As i am super new to this whole concept of mobile devices
and VoIP, i was hoping some kind soul could help me get started?? I am using
Visual Studios 2005 for development. Thanks Tag: import dll Visual C++ 2005 Tag: 108488
how to know?
is there a way to know if CPropertyPage dialog's state has changed since
OnInitDialog and OnOK functions (ie. state betwwen showing the dialog and
closing it)? e.g. CPropertyPage has been displayed with IDC_CHECK checked,
user unchecks that IDC_CHECK and tap OK. how can I know automatically has
the state on that page been changed because I have a lot of pages and lot of
CHECK's on them. thanks for replying. Tag: import dll Visual C++ 2005 Tag: 108487
SHFindMenuBar vs SHCreateMenuBar and CommandBar_AddBitmap vs TB_ADDSTRING
I just find this out that buzz me a bit. I am use WM 5, CDialog as main
window
If I use SHFindMenuBar w/o call SHCreateMenuBar, then I still get a
non-NULL HWND, then I can use it to add string w/ TB_ADDSTRING and call
TB_ADDBUTTONS successfully, and I got my new menu on the Command Bar.
However, I cannot add bitmap using command Bar_AddBitmap. It always
return -1.
But if I first call SHCreateMenuBar, then I can add string and bitmap
ok; however, the menu has old interface that menus are on the left, and
the SIP is on the right vs w/ situation above that SIP stay in the
middle and 2 menus are on 2 side.
Does anyone has any explaintation to this? Tag: import dll Visual C++ 2005 Tag: 108486
I need your help:How can I do the mouse event "drop and drag"
please, how can i do the job of "drop and drag" in NET CF just in the NET
Framework.
I want to know wherther there is a counterpart in the NET CF or I have to
implement a new event by myself Tag: import dll Visual C++ 2005 Tag: 108483
reading SMS inbox C#
Hi all;
I want to read messages from the SMS inbox on wm 5.0 and 2003. Itou Can
this be done?
Also how can I intercept an incoming SMS parse it for special words if I
find them I do some processing on it and give it to the inbox, if not I
just leave it to the SMS ( pocket outlook) application
Thanks a lot for your help really appreciate it
Mustafa Rabie Tag: import dll Visual C++ 2005 Tag: 108482
If then newbie
have the following:
i = i +1;
string temp2 = s;
If (i=1)
{
(textBox6.Text = temp2);
}
I get complier error saying ; is missing after If (i=1)
What is the correct syntax c# 2005 pocket PC SDK Tag: import dll Visual C++ 2005 Tag: 108477
seeking beta testers (power users)
Hi all:
I downloaded this new Personal Audio Link app.
They issued a press release looking for beta testers,
with a compensation offer of 6 months free Vonage
service for qualified testers.
I'm posting this because they are seeking more beta
testers, particularly seeking "power-users" who
understand the technology.
http://www.adondo.net/product.aspx
It uses a SIP client for speech interaction. One can
send and receive e-mail by voice, get instant local
traffic reports, instant local weather, listen to podcasts,
blogs, RSS feeds when navigating by voice.
I'm a speech recognition user, and am using it now,
dictating e-mails with 98% accuracy, even with significant
background noise, or wind noise.. using a cell phone.
HTHE Tag: import dll Visual C++ 2005 Tag: 108472
Please help a newbie
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C64608.3EB48B20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am trying developing my first application for PocketPC using eVC 4, =
and I am experiencing a problem with testing and debugging. First of =
all, the application works fine on Emulator, and there are some problems =
with a way it works on a real device, I am trying to debug it there and =
I can't ... I can't even change which platform to use during debugging, =
it gives me only one option "Emulator" but I need my real device...
Could someone explain me what should I do for this :) ?
------=_NextPart_000_000A_01C64608.3EB48B20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.2577" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am trying developing my first =
application for=20
PocketPC using eVC 4, and I am experiencing a problem with testing and=20
debugging. First of all, the application works fine on Emulator, and =
there are=20
some problems with a way it works on a real device, I am trying to debug =
it=20
there and I can't ... I can't even change which platform to use during=20
debugging, it gives me only one option "Emulator" but I need my real=20
device...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Could someone explain me what should I =
do for this=20
:) ?</FONT></DIV></BODY></HTML>
------=_NextPart_000_000A_01C64608.3EB48B20-- Tag: import dll Visual C++ 2005 Tag: 108467
How can I use Console
I want to debug my CE application.
For Win32 application,
console.writeline("hello")
it will show hello on the output console in VB2005
But, for smart device WM2003SE
I type the samething, but nothing happens? Tag: import dll Visual C++ 2005 Tag: 108463
Exchange Server Configuration
I have a client that wants to deploy his exchange server configurations to
windows mobile 5.0 devices. Are there any resources on how this can be done
or steps?
your help is really appreciated
Mustafa Rabie Tag: import dll Visual C++ 2005 Tag: 108460
Speex Compression Library
Hi
I've looked into the Speex Encoder/Decoder. I've folowed de
instructions from the SDK , and created my functions for encoding and
decoding.In VS2005 in VC++ Win32 SmartDevice application i have acces
to all the functions after including the speex.h but when i try to
build/run my application there are linker problems.I've added de Lib
directory that contains the libspeex.lib in
(Project\Properties\Linker\General\Additional Directories) and then
added the libspeex.lib in (Project\Properties\Linker\Input\Additioanl
Dependencies).i've found 2 differen libspeex.lib files on the site ,
the one i'm trying to use has the size 136.720.
The error loocks like this:
Sound.obj : error LNK2019: unresolved external symbol speex_decoder_ctl
referenced in function "int __cdecl my_decoder(void)"
(?my_decoder@@YAHXZ)
Sound.obj : error LNK2019: unresolved external symbol
speex_decoder_init referenced in function "int __cdecl
my_decoder(void)" (?my_decoder@@YAHXZ)
I have other libraries included in my projects that work just fine.
Did any of you included this Lib (libspeex.lib) in your project?
If you can help me with this problem i would apreciate it.Thanks.Bye Tag: import dll Visual C++ 2005 Tag: 108459
Help with UserDrawn Button
Hi all,
I finally am able to draw a bitmap to a UserDrawn Button using BitBlt,
but I have a couple of issues that maybe somebody can help me out
with. I'm not able to figure out how to determine whether the button
has focus or not correctly. Also, the button doesn't repaint when
various other windows which had been covering it close. I'll paste my
what I believe is the relevent portion of my code below. This is a
TodayScreenPlugin project for Windows Mobile 5.0 PPC. Of note,
HBITMAP g_hBitmap;
HBITMAP g_hBitmap2;
LRESULT CALLBACK WndProc (HWND hwnd, UINT uimessage, WPARAM wParam,
LPARAM lParam)
{
case WM_CREATE:
g_hBitmap = LoadBitmap(g_hInst, MAKEINTRESOURCE(IDB_BITMAP1));
g_hBitmap2 = LoadBitmap(g_hInst, MAKEINTRESOURCE(IDB_BITMAP2));
break;
case WM_DRAWITEM:
if ( wParam == GetDlgCtrlID(g_hSearchButton) )
{
LPDRAWITEMSTRUCT lpdis;
PAINTSTRUCT ps;
HBITMAP hbmOld;
HDC hDC;
hDC = BeginPaint(g_hSearchButton, &ps);
lpdis = (LPDRAWITEMSTRUCT) lParam;
BITMAP bm;
HDC hdcMem = CreateCompatibleDC(hDC);
// HERE, TEST IF THE BUTTON IS SELECTED OR NOT
if ( lpdis->itemState & ODS_SELECTED)
{
hbmOld = (HBITMAP) SelectObject(hdcMem, g_hBitmap2);
GetObject(g_hBitmap2, sizeof(bm), &bm);
}
else
{
hbmOld = (HBITMAP) SelectObject(hdcMem, g_hBitmap);
GetObject(g_hBitmap, sizeof(bm), &bm);
}
BitBlt(hDC, 0, 0, bm.bmWidth, bm.bmHeight, hdcMem, 0, 0, SRCCOPY);
SelectObject(hdcMem, hbmOld);
DeleteDC(hDC);
EndPaint(hwnd, &ps);
return 0;
}
break;
}
Thanks a million,
OM Tag: import dll Visual C++ 2005 Tag: 108453
How to Display a balloon (Bubble) at the top in WM50 ?
Hi I am trying to Display a Bubble (Ballloon) in WM 5.0 that has the
Style of PPC 2003 by that I mean that the Bubble (Balloon) pops up
from the top and has no soft key Menu.
does anyone manage to make it - a balloon from the top in WM50 - ??? Tag: import dll Visual C++ 2005 Tag: 108451
i need help to configure the passthrough (to access internet from the WM5 emulator)
i need help to configure the WM5 emulator for passthrough (i.e. to access
internet from the emulator).
what needs to be done? - since apparently it is not working by default.
also, i need internet access while debugging, which means that the emulator
device cannot be craddled (since deploying and debugging on the WM5
Smartphone emulator does not work when the emulator is craddled - not sure
why).
could anyone give me some pointer? thanks! Tag: import dll Visual C++ 2005 Tag: 108449
suggestions for improved MessageBox on Photon
a suggestion for the MSFT Mobile shell team:
it would be nice to provide an improved/extended version of MessageBox -
let's call it MessageBoxEx - with at least the following feature:
- two additionnal optional parameter to customise the soft-keys strings
if those parameters are NULL, the default strings are used (i.e. same as the
current MessageBox).
if one or both of those parameters are not NULL, they are pointer to strings
used for the left and right soft-keys, and overwrite the default.
optionally it could be nice to specify command-id's to overwrite the
defaults, but that's not necessary, since MessageBox is a modal dialog.
this extension would allow using the same internal features as MessageBox
(i.e. Alerts sound & icons, etc), while changing the soft-key text to
something custom, more appropriate than the default limited set of choices
such as Ok/Cancel , Yes/No etc.
Choices such as Now/Later, "Cancel/I Agree" (e.g. for a licencing
agreement), etc would be possible.
what do you think?
also, naturally, MessageBox needs to be fixed on Pocket PC, since it is
seriously broken especially when Pocket PC's are used in Landscape
orientation. in case you missed it, here is a recap of the problems:
On Pocket PC WM5, soft-keys cannot be used to answer the question from a
MessageBox (or to close it).
On Pocket PC WM5 and 2003 Second Edition, when in Landscape orientation,
MessageBox does not use the full width of the display, so you messages
usually get truncated, and in some cases the buttons get truncated or
totally hidden. The only workaround is to reduce the size of your messages,
which may be a problem with localized applications. MsgBox can use the full
width of the display in Landscape orientation, so you can see longer
messages. This is especially useful in applications localized in other
languages.
On Pocket PC, MessageBox just truncates the text if it is too long to be
entirely displayed (not the case on Smartphone). Sometimes, MessageBox even
displays the buttons outside of the screen, making the dialog completely
un-usable. MsgBox makes text scrollable if text is too long to be entirely
displayed (like on Smartphone). This is very useful, especially on the new
square-screen Pocket PC WM5 and 2003 Second Edition devices. A vertical
scroll-bar or the UP/DOWN D-pad buttons can be used to scroll the text when
it is scrollable.
On Pocket PC WM5 and 2003 Second Edition, MessageBox does not handle the SIP
correctly. For example, if the SIP is up, MessageBox sometimes display a
dialog with the OK/Cancel buttons hidden under the SIP. This can be very
confusing to average users, and it also violates MSFT's own guidelines for
Logo-certified applications. MsgBox handles the SIP correctly, and it
automatically lowers the SIP when it activates. Tag: import dll Visual C++ 2005 Tag: 108446
Help: class unresolved symbol building WM5 dll?
I'm trying to use a class from within a dll using c++ VS2005 for WM5:
I declare the class defined in it's own .h and implemented in another cpp
file in the 'main' file as:
static CMyClass* myClass;
then in the DllMains DLL_PROCESS_ATTACH of the same cpp file:
myToday = new CMyClass();
I get a link error: Test.obj : error LNK2019: unresolved external symbol
"public: __cdecl CMyClass::CMyClass()"
(??0CMyClass@@QAA@PAUHINSTANCE__@@PB_W1@Z) referenced in function DllMain
This is driving me mad.... can anyone tell me how to do this?
Thanks
Mark Tag: import dll Visual C++ 2005 Tag: 108444
installshield?
is it worth trying to make end-user installation with installshield? what's
your experiences with this program and its benefits over other solutions? my
project is small utility targeting wm2003 and wm5.0 devices. thanks for
replying. Tag: import dll Visual C++ 2005 Tag: 108441
DateTimePicket control question
On one form I have on datetimepicker control. The selected data is
stored into an XML file as "Monday, July 19, 1982" for example - this
is the exact format I use for storing the data.
When I try loading the data from the XML file in my form I cand set the
date for the control as it is in the file.
I have used the following code:
dtpDate.CustomFormat = "dddd,MMMM d,yyyy";
dtpDate.Format = DateTimePickerFormat.Custom;
dtpDate.Text = date_string;
I tryed both Update() and Refresh() for the control .... but it doesn't
work :-(
Where is my mistake? How can I set the date to the control?
Thank you!
Andrei Tag: import dll Visual C++ 2005 Tag: 108434
Capitalise text & large keyboard
Visual studio 2005 c#.
How do I ensure that text entered into a text box is capitalised.
Any code to display a key (just letters & numbers) on half of the screen to
enable easier text entry
Cheers
SteveW Tag: import dll Visual C++ 2005 Tag: 108433
Having Replication Issues
I have instantiated a publication on SQL 2005 on my local machine, in IIS5.1
again running on my local machine.
I set up a subscription to that publication pointing at a separate database
on my machine.
When I subscribe and run the subscription all went well.
I added the replication subscription to SQL Mobile 2005 which set up the
base database and tables.
I can view and alter the tables on the device as well as on the emulator.
When I set up yhe synchronization code to run via button click I get :
I receive an error -- "A request to send data to the computer running IIS
has failed. For more information, see HRESULT.
I added a second message box to pull HRESULT and native errors which re ran
gives me this:
HRESULT is -2127012894 NATIVEERROR is 28037 with a source of Mobile SQL
Server 2005
I have ran the subscriptions locally without error -- the error comes from a
pocket pc mobile 5.0 device cradled.
I checked TECHNET for the error code and it returns to a basic timeout
problem in IE6 -- which may/may not help -- so here I am
Any ideas?
--
Your imagination is the limit -- Tag: import dll Visual C++ 2005 Tag: 108430
Activating a internet connection
Any code sample to do the following in c# VS2005
Pocket PC 2003 & 2005
On reciept of text message with subject 'open';
Check to see if there is an 'internet connection';
Then connect ie activate the GPRS connection;
Process code;
Then close the connection.;
Any help appreciated. Tag: import dll Visual C++ 2005 Tag: 108429
How can I develop in C with VS2005 for Pocket PC??
I have the new VS2005 since yesterday. I had written before my code in
C language. I want to make an app for Pocket PC with Windows Mobile 5.0
( if I could make it also for WM2003 it would be great!).
I choose a project in Visual C++ / Smart Device / Win32 application. I
add my previous file (write in C in Visual C+ 6.0) when I build them it
appears an error telling that I should wite "#include "stdafx.h"", I
add that file in my project and when I build them it appeats a new
error message that says:"Can not include stdafx.h".
- What am I doing wrong?
- Should I learn C++ or with C it's enough? My app is to control the
video streams of the video camera on the pocket pc
Than you Tag: import dll Visual C++ 2005 Tag: 108426
I want to use a gps toolkit which is provided by an ActiveX dll-file. How can
I import the functionality in VC2005 in a smart device project (PPC2003)?