Session for web service
I am using a web service which is added as a reference in a pocket pc
application
I try to implement this with System.Net.CookieContainer but as i am working
for a pocket pc this class is not available
Then i try to create a webservice that maintaining sessions without cookies
I edit web.config file cookieless="true" and try to use
[WebMethod(EnableSession = true)]
but it gave me the followin error
Server found request content type to be 'text/html; charset=utf-8', but
expected 'text/xml'."
--
Regards,
Kishore Tag: Excel and C# Tag: 62987
Differences between OS 4.0 and Windows Mobile 5.0?
I have a complete replication solution built in Compact Framework with
Visual Studio 2003. As prerequisites for my installation, I install the
following cabs:
netcf.all.wce4.armV4.cab
sql.wce4.armv4.cab
sqlce.wce4.armv4.cab
The program, the database interaction, replication, works well on all
PocketPCs up to and including the Dell Axim X5 -- an OS of Microsoft PPC
V4.20.
A client recently bought a new PocketPC, a Dell Axim X51. This uses Windows
Mobile 5.0. Now when I install the prerequisites, I get the message about
those items "not displaying properly". Some posts seem to indicate this
might be a non-issue. However, when I install my program, the program will
run and display properly, but fails with SQL/SQLCE error messages when
attempting data access.
Ok, so what bits am I missing? Are there different prerequisite cabs for
Mobile 5.0? Do I need to import this sucker into a different SDK and
recompile? Tag: Excel and C# Tag: 62984
LVS_OWNERDRAWFIXED setting style problem
I want to paint an image (the typical order indicator) in the columns
of the listview. For that purpose I have subclassed the listview and I
try to set the style to LVS_OWNERDRAWFIXED in order to try to get the
WM_DRAWITEM messages of the header items.
When i do it it does not give me any error but the listView content is
not painted and i don't get the WM_DRAWITEM messages. Is it supported?
Should I do it another way?
Thanks in advance Jon Tag: Excel and C# Tag: 62983
Using CF2 style Webservice access with .NET2
Hi,
I'm developing a web service with should be used by an .NET CF2 client and
an .NET 2.0 Windows client.
I've tried to put all the connection logic into one class, which could be
used in common from the mobile and the windows client. But this didn't work:
The new .NET framework supports asynchronous web services with the
"MethodnameCompleted+=new MethodNameEventHandler pattern, but the "old
style" .NET 1 pattern used in the compact framework works with BeginInvoke
and delegates. Is there a way to create (in VS2005) the "old-style" proxy
class to access the web service that offers this BeginInvoke methods?
best regards
Johannes Tag: Excel and C# Tag: 62979
tooltip
With VB.Net can I have a tooltip (or similar) functionality on a text
box? Is there a third party control that I can use if the standard one
does not support it?
thanks
pete Tag: Excel and C# Tag: 62975
re: Sound in VB.NET
Hi Zalek,
You might find touch tone sounds, wav files, by searching sound files on the Internet, then you will need to use platform invoke to play the sound in native code as there is no managed method to play sounds in the .NET Framework or .NET Compact Framework.
For an example, see:
http://msdn2.microsoft.com/en-us/library/ms229685(en-US,VS.80).aspx
Note that in Visual Studio 2005, Visual Basic users can insert a pre-programmed snippets into the code editor for a variety of tasks. There is a snippet for devices to PInvoke a sound.
In the Form1 class in the code editor:
- Right Click, and select Insert Snippet
- Select "Smart Devices" then "Device Operating System" then "Play a Sound File."
Hope this helps,
- Bruce Hamilton
.NET Framework User Education
Microsoft
-----Original Message-----
From: Zalek Bloom
Posted At: Saturday, December 17, 2005 10:19 AM
Posted To: microsoft.public.dotnet.framework.compactframework
Conversation: Sound in VB.NET
Subject: Sound in VB.NET
Hello,
I want to write a telephone dialer program usingVB.NET.
Anyone knows how to create sound coresponding to a touch tone using
vb.net?
Thanks,
Zalek Tag: Excel and C# Tag: 62974
"cannot connect" bubble
How can I bring up the "cannot connect" bubble? The one I refer to
pops up when you attempt to browse in Pocket IE when you have no active
internet connections. I tried the following code, and I get a
webrequest exception, that no network connection exists, but the bubble
doesnt pop up. How can I get it to pop up from my applications'
attempted network access?
request = (HttpWebRequest)WebRequest.Create(uri);
response = (HttpWebResponse)request.GetResponse();
??????????????? Tag: Excel and C# Tag: 62973
Bring NETCF.cab into a .msi installation
Hello,
i have developed an application for WM5.0 using compactframework 2.0
Now i'm programming a setup installation with this very good explanation:
http://blog.opennetcf.org/ctacke/binary/DeployingApps.htm
Everything works fine so far but i wonder if the following would be
possible:
Can the .msi check if CF2.0 is installed on the device, and if not
install it?
What's the common procedure for this, how do other applications handle
this? Do they say "Please download .NET CF 2.0 from
http://www.microsoft.com/downloads/details.aspx?FamilyID=9655156b-356b-4a2c-857c-e62f50ae9a55&DisplayLang=en
before you proceed"? Is there a bestway for solving this?
cheers
David Tag: Excel and C# Tag: 62963
problem installing compact framework on HP Jornada 520
I have a notebook running XP SP2-can any one tell me which compact framework
redistributable I can install on a HP jornada 520 series pocket pc, running
Windows CE version 3.0.9348. I tried compact framework 2.0 but it did not
work.Hope someone can help.
Many thanks
--
H Brown Tag: Excel and C# Tag: 62958
work with dbase (*.dbf) files
hi community,
I am new on VS2005 programming.
I am looking and searching for samples that show how to work with dBase
(*.dbf) files. What about indexfiles (*.ntx ord *.cdx) ?
Who van help me with god links and code snippes ?
Bye
Niklaas Tag: Excel and C# Tag: 62957
VS2005 ArgumentException with GetString
Hello,
I have a compact framework project that was built in VS2003 and I'm trying
to now use that project in VS2005. It seemed to import OK, compiles, but
I'm getting "ArgumentException was unhandled" on this line of code:
Me.TableView1.Text = rm.GetString("Tables")
I don't know where to start, as there are no such problems with the same
code in VS2003. Here's my initialization of the
System.Resources.ResourceManager rm:
rm = New
System.Resources.ResourceManager("My_Project.Strings",System.Reflection.Assembly.GetExecutingAssembly())
My file Strings.resx seems to be there, and it does have an entry called
"Tables". Thank you for any suggestions you might have.
Mike B. Tag: Excel and C# Tag: 62951
alex feinman tapi wrapper - help!
this bit of simple code i would assume would allow me to capture when a call
occurs and to hang up the call. but it crashes with a exception not
supported error :(
i also tried copying the supplied sample app (Tapi.exe) into the emulator.
it crashes as well upon execution :(
are there some pre-requisites that i'm missing? i'm developing this on a WM5
PPC device / emulator.
????
=================this is the code===========
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using OpenNETCF.Tapi;
namespace CallManager
{
public partial class Form1 : Form
{
Tapi tapiObj = new Tapi();
Line lineObj;
Call callObj;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
tapiObj.Initialize();
lineObj =
tapiObj.GetCellularLine(LINEMEDIAMODE.INTERACTIVEVOICE,
LINECALLPRIVILEGE.MONITOR);
lineObj.NewCall += new Line.NewCallHandler(lineObj_NewCall);
}
private void lineObj_NewCall(Call call)
{
MessageBox.Show("Hit me!!");
callObj = call;
callObj.Hangup();
}
}
}
------------------------------this is the crash dump--------------------
- $exception {System.NotSupportedException: NotSupportedException
at System.Runtime.InteropServices.Marshal.SizeOfInternal()
at System.Runtime.InteropServices.Marshal.SizeOf()
at System.Runtime.InteropServices.Marshal.SizeOf()
at OpenNETCF.Tapi.Call..ctor()
at OpenNETCF.Tapi.Tapi.OnNewCall()
at OpenNETCF.Tapi.Tapi.TapiThreadProc()
} System.Exception {System.NotSupportedException}
+ [System.NotSupportedException] {System.NotSupportedException:
NotSupportedException
at System.Runtime.InteropServices.Marshal.SizeOfInternal()
at System.Runtime.InteropServices.Marshal.SizeOf()
at System.Runtime.InteropServices.Marshal.SizeOf()
at OpenNETCF.Tapi.Call..ctor()
at OpenNETCF.Tapi.Tapi.OnNewCall()
at OpenNETCF.Tapi.Tapi.TapiThreadProc()
} System.NotSupportedException
_HResult 0x80131515 int
_innerException null System.Exception
_message "NotSupportedException" string
+ _methodDescs {Dimensions:[0x00000006]} System.IntPtr[]
HResult 0x80131515 int
InnerException null System.Exception
Message "NotSupportedException" string
StackTrace "at
System.Runtime.InteropServices.Marshal.SizeOfInternal()\r\nat
System.Runtime.InteropServices.Marshal.SizeOf()\r\nat
System.Runtime.InteropServices.Marshal.SizeOf()\r\nat
OpenNETCF.Tapi.Call..ctor()\r\nat OpenNETCF.Tapi.Tapi.OnNewCall()\r\nat
OpenNETCF.Tapi.Tapi.TapiThreadProc()\r\n" string
- this {OpenNETCF.Tapi.Tapi} OpenNETCF.Tapi.Tapi
+ Calls {System.Collections.Hashtable} System.Collections.Hashtable
dwAPIVersionHigh 0x00020000 int
dwAPIVersionLow 0x00010004 int
+ hEvent 0x00000000 System.IntPtr
+ hLineApp 0x004bcb30 System.IntPtr
LineMessage null OpenNETCF.Tapi.Tapi.MessageHandler
+ Lines {System.Collections.Hashtable} System.Collections.Hashtable
m_dwNumDev 0x00000008 int
+ m_hLineApp 0x004bcb30 System.IntPtr
NumDevices 0x00000008 int
+ PendingRequests {System.Collections.Hashtable}
System.Collections.Hashtable
Reinitialize null OpenNETCF.Tapi.Tapi.ReinitializeHandler
stop false bool
+ thTapi {System.Threading.Thread} System.Threading.Thread
- msg {LINE_APPNEWCALL} OpenNETCF.Tapi.LINEMESSAGE
+ dwCallbackInstance 0x00000000 System.IntPtr
dwMessageID LINE_APPNEWCALL OpenNETCF.Tapi.LINEMESSAGES
+ dwParam1 0x00000000 System.IntPtr
+ dwParam2 0x004bdf90 System.IntPtr
+ dwParam3 0x00000002 System.IntPtr
+ hDevice 0x004bd0d0 System.IntPtr Tag: Excel and C# Tag: 62950
Sound in VB.NET
Hello,
I want to write a telephone dialer program usingVB.NET.
Anyone knows how to create sound coresponding to a touch tone using
vb.net?
Thanks,
Zalek Tag: Excel and C# Tag: 62942
DLL built using EVC on a WM 5.0 device
Hi all,
I've a dll built with EVC++ 3.0 targetting a PocketPC 2002 device.
I want to use this on a WM 5.0 device.
Can I rebuild the same using EVC++ 4.0 with SP2/SP4and PocketPC2003 and use
the dll on a WM 5.0 device?
Any pointers are greatly appreciated.
Regards
Vidhya Tag: Excel and C# Tag: 62924
CF 2.0 using interop with DCOM
I am trying to be able to create a DCOM interface and invoke a method within
Compact Framework 2.0. I am able to create the coclass. However, I keep
getting error 80004002 when I invoke any method or property on my DCOM
interface. I tried this with an inprocess COM interface and it works fine.
What am I missing. BTW, I am using standard OLE data types (BSTR's).
Thanks Tag: Excel and C# Tag: 62915
Wish List for Version 6 Compact Framework
I have written 2 applications using PDA phones for surveys. Would it be
possible to include voice recognition to the next software version. This
would mean surveyors could just dictate their results rather than fumble
with a fiddly stylus in cold weather.
Only a relatively limited range of words would need to be recognised
Nigel Vandyk. Tag: Excel and C# Tag: 62914
Setting DialogResult in OnClosing
In all the documentation on DialogResults it says that you can override the
DialogResult in the OnClosing event. I am working in VB and I just cannot do
this. I call ShowDialog with an OK in the top right. The form always returns
an OK whatever I do in the OnClose.
Is this an undocumented difference between CF and the desktop. Tag: Excel and C# Tag: 62911
Problem using WM5 and ShGetSpecialFolderPath
Hi,
I'm using this function to find some folders.
It works fine with WM2003 and Pocket PC 2002.
With WM5 it throws a native exception most of the times.
The weird thing is that if I show a messagebox before calling the
ShGetSpecialFolderPath then it will work.
Does anyone know of a safe solution for using this function with WM5?
Thanks,
Erel Tag: Excel and C# Tag: 62909
Problem install CF2+application with Ezsetup
Hi,
i have this problem...
When i install my program in my K-Jam (WM2005 with CF1) the CF2 don't
be installed, but install only the program.
The packing is CF2.cab+program PROVA.CAB created using Ezsetup.
This is SETUP.INF:
[CEAppManager]
Version = 1.0
Component = App
[App]
Description = Description if the program
DeviceFile= prova.exe
CabFiles= prova.CAB,NETCFv2.armv4i.CAB
----------------
What can i do ??
Many thanks Tag: Excel and C# Tag: 62908
Problem install CF2+application with Ezsetup
Hi,
i have this problem...
When i install my program in my K-Jam (WM2005 with CF1) the CF2 don't
be installed, but install only the program.
The packing is CF2.cab+program PROVA.CAB created using Ezsetup.
This is SETUP.INF:
[CEAppManager]
Version = 1.0
Component = App
[App]
Description = Description if the program
DeviceFile= prova.exe
CabFiles= prova.CAB,NETCFv2.armv4i.CAB
----------------
What can i do ??
Many thanks Tag: Excel and C# Tag: 62907
Vs2005 WinCe Emulator
I may have missed something but I did not see an emulator in the Vs2005 for
WinCe. Am I making a error or is there an Add-in available that adds an
Emulator for Vs2005 for WinCe?
Thanks.
--
John Olbert Tag: Excel and C# Tag: 62905
Opening forms in designer is slow with Visual Studio .NET 2005
I converted a VS .Net 2003 CF project to VS. Net 2005 keeping the target
version as CF1.0. After that when I tried to open any form in my project in
the form designer it takes 10-20 seconds where as in VS2003 it will open
immediately. Also I noticed the forms that has lot of controls take long to
load. Can anybody tell me why this behavior is and any possible resolutions?
PS: If I open a code file (such as a class defnition), it does not have any
problem. Tag: Excel and C# Tag: 62903
How to detect whether Panel got scrollbar ?
Hi,
I have a listview inside a panel and i want to know how to dectect whether
the autoscrollbar of the panel has been activated? The reason is that i need
to resize the column of the listview if the panel scrollbar is visible.
Regards,
Dylas Tag: Excel and C# Tag: 62902
Error message - installing .NET CF 2.0 on device (CE .NET 4.20)
Greetings,
I am trying to deploy a VS 2005 Pocket PC app to the above mentioned
handheld (a PSC Falcon 5500). I dragged my CAB file over to the device, and
installed it, however the app will not run. I receive a brief hourglass,
then nothing happens.
I figured it might be that the device probably doesn't have the Compact
Framework 2.0 on it. I found the C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\CompactFramework\netcfsetupv2.msi file, ran it, went to Modify,
selected to install Deployment, and I get the following error:
(caption) "Invalid Windows CE Setup Files"
(message) "Application Manager cannot install this application on your
mobile device due to an invalid setup file. Reinstall and try again."
I'd appreciate any help.
Thanks!
Dan Tag: Excel and C# Tag: 62895
EndCurrentEdit called automatically
I've found this topic "Trying to understand when EndCurrentEdit gets
automatically called" but no one answered it yet.
I'm in the same trouble - EndCurrentEdit is getting called automatically
when I set ((DataRowView) BM)["column"] = some_value;
Does anybody how to avoid the automatic call?
Thanks for any advice Milan Tag: Excel and C# Tag: 62893
Could not create type instance
I am trying to use the Configuration class from OpenNETCF, and get the
following exception :
"An unhandled exception of type
'OpenNETCF.Configuration.ConfigurationException' occurred in
OpenNETCF.dll
Additional information: Could not create type instance"
Code looks like ;
downloadPath =
OpenNETCF.Configuration.ConfigurationSettings.AppSettings["ServerDownloadPath"];
Anywhere to being solving this? I have verified the OPENNETCF
assemblies are "CopyLocal" and are getting copied to the Mobile Device.
TIA,
Brian Tag: Excel and C# Tag: 62891
Wireless Access Point
Hi guys, this post is actually for the big framework (XP), but I am having
problems getting a solution and the nature of this newsgroup is such that
hopefully someone did this, or it works the same for the CF and the big one.
I must get the Signal Strength of the CONNECTED Wireless Access Point.
I can use WMI and select "MSNDis_80211_BSSIList", giving me the Wireless
Network Card.
From here I get a list (using "Ndis80211BSSIList" properties) of available
Access Points and their signal strengths.
1. Problem is, I don't know which one in the list I am connected to.
2. If there is another method to determine this, I will be grateful too.
Thanks. Tag: Excel and C# Tag: 62889
Problem with path when deploying app
In the <ProjectName> Properties\Device\Output file folder I specify
path where I want my app to reside on my Pocket PC. When I deploy th
app from the Visual Studio .NET (using F5), it runs on the device unde
the specified directory, but after I create a cab file and deploy it t
the device, the app gets always installed under \Progra
Files\<ProjectName> folder.
Q1: Why is my output file folder disregarded?
Q2: Is there a way to get rid of the <ProjectName> folder and put th
executable under the path I want?
Q3: The app gets installed as "My Company <ProjectName>" - How t
replace "My Company" with my text?
Thank you for your help
--
eve
-----------------------------------------------------------------------
evew's Profile: http://www.hightechtalks.com/m51
View this thread: http://www.hightechtalks.com/t231112 Tag: Excel and C# Tag: 62883
Arrow Keys and Tabbing for WM5 using .NET CF 2.0
I am writing test applications with VS 2005 for the WM5 and have a questions
about the tabbing behavior related to the arrow keys.
When I have a MFC Smart Device application, using the arrow keys take the
focus to the
next control just as if a user tabbed.
(Note: I have the WM5 SDK Installed)
But when I have a .NET CF 2.0 application, the arrows keys don't take the
user to the next control. The controls have the Tab Stop and Tab Index
properties set properly. Is there something special needed to have the
arrow keys behave like the user is tabbing? Shouldn't this have been
automatic like the managed code's controls? Tag: Excel and C# Tag: 62882
DIALUP RAS
Hi group,
Has someone an implementation of the RAS API in VB.NET (compact framework)
Know I 'm using a third party dll (unmaneged) to control this.
When I use the DialUp function from the third party vendor to set up a
connection with, let's say, "My connection", I can't use "My connection"
from within windows Mobile any more.
My goal is to set up a dialup connection with "My connection" from within
VB.NET in a way that I can use the same "My connection" in Windows...
A working RAS API in VB would be excellent....
A good connection manger to establish and maintain a GPRS connection on CE
and Mobile 2003 would beo nice too.
Some help would be greatly appreciated.
Best regards,
Mobile boy Tag: Excel and C# Tag: 62881
complicated P/Invoke and marshaling
hi all!
i have a c++ function, wich has to be invoked from c#.
c++ function looks like that:
uint Function(const Request* a, uint max, Result** b, const Result *c,
uint* d, void *cb)
typedef struct{
uint a,
wchar_t b,
Position p,
Position* p,
uint *c
}Request;
typedef struct{
uint a,
uint b
}Position;
1. how do i declare that function?
2. how do i declare the structs?
3. the other question is how i use the declared function?
i need to declare struct Request and pass a reference to a struct as
first parameter. the third parameter expects a reference to the pointer
to the struct. How can i solve that?
thanx in advance Tag: Excel and C# Tag: 62880
[C#] How Can I read message in an email account ?
Hi,
I'd like to get all messages in an email account with pop3.
But I don't find a free library to do it. Only not free version.
Somebody can give me a link to a free pop3 library ?
I work with pocket pc 2003 et Windows CE 4.2
Thanks.
Best Regards
Fred Tag: Excel and C# Tag: 62869
Issuing during exporting
hello,
I am building an application for a pocket pc in which there need to be
facility to associates data with pictures. Now I need to sync this data on
the handheld to a desktop application programatically.
What i hav done I am exporting the data into an xml file using
ds.writexml()
function. AT the same time i am reading images data into binary array and
inserting this into the datatable of the dataset before writing it into xml.
By this way i have my data and image data both in the xml file. Now i
transfer this xml file to the desktop. In my desktop application i have an
import utility that reads the dataset created from this imported file
insertes the datainto the databse. Now I want to read the images that are in
the text form in the column. I want them to be conveted into byte array so
that i can write them with bianry reader.
Please can anyone help me out in this case. It is very urgent.
Thanks in advance
Sunil
--
Sunil Pandita
Software Engineer
(OTS Solutions Pvt. Ltd. ) Tag: Excel and C# Tag: 62868
VS2005->netCF1.4=Object reference not set to an instance of an obj
Hi all,
I have following error 'Object reference not set to an instance of an
object' during installation of OpennetCF 1.4 Smart Device Frameworf (then a
rollback is done).
Visual Studio 2005 Trial edition is correctly installed (on WinXP SP2).
I have installed SDFLibrary.msi too without problem.
I tried OpennetCF 1.4 installation with SDFSetup14.msi.
I have found this article
http://support.microsoft.com/default.aspx?scid=kb;en-us;889531
which looks like same kind of problem.
Does anybody have some idea about this installation trouble ?
Thank you to help me.
WinDevAlex.
Details about Visual Studio 2005 (180 days Trial edition) :
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Enterprise
Microsoft Visual Basic 2005 77718-204-0000007-41307
Microsoft Visual Basic 2005
Microsoft Visual C# 2005 77718-204-0000007-41307
Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77718-204-0000007-41307
Microsoft Visual C++ 2005
Microsoft Visual J# 2005 77718-204-0000007-41307
Microsoft Visual J# 2005
Microsoft Visual Studio Tools for Office 77718-204-0000007-41307
Microsoft Visual Studio Tools for the Microsoft Office System
Microsoft Visual Web Developer 2005 77718-204-0000007-41307
Microsoft Visual Web Developer 2005
Visual Studio 2005 Team Edition for Architects 77718-204-0000007-41307
Microsoft Visual Studio 2005 Team Edition for Software Architects
Visual Studio 2005 Team Edition for Developers 77718-204-0000007-41307
Microsoft Visual Studio 2005 Team Edition for Software Developers
Visual Studio 2005 Team Edition for Testers 77718-204-0000007-41307
Microsoft Visual Studio 2005 Team Edition for Software Testers
Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005 Tag: Excel and C# Tag: 62862
wm5 devices with cf 2.0?
Hi,
Currently WM 5 devices are shipping with .NET CF 1.0 SP3 as the embedded
.NET framework version.
Is there a possibility that future wm 5 devices will ship with .net cf 2.0?
And what are the prospects of this happening in near future? Tag: Excel and C# Tag: 62854
Bluetooth Profiles
Hi!
I would like to provide a framework which consists of the implementation of
all Bluetooth Profiles in .NET.
How can i write this? Tag: Excel and C# Tag: 62852
SqlCeResultset Sensitivity ?
Hi,
I'm using SqlCeResultSets with SQL Mobile. I have a none updatable
SqlCeResultSet that has inner joins. The resultset comes back as insensitive
but I need it to be sensitive. Can create a resultset from sql that has
inner join and is sensitive? I don't care if its not updatable but i do want
it to be sensitive
Thanks Tag: Excel and C# Tag: 62848
Raw IR
I have an app. using RAW IR that works fine on most PPC. But I can't
get it to work on a new HP hx2490. I wrote a different app to capture
IR data. And when I use that I get 3 hex 0xFF during the communication
instead of the data. If I use the HP hx2490 to capture IR all I get is
a hex 0x0F.
The IR does work to send files and contacts.
HP support doesn't have any ideas.
Has anyone used raw IR on the HP hx2490?
Is COM2 the correct port?
Thanks in advance. Tag: Excel and C# Tag: 62837
NumericUpdDown Overflow BUG!???!
I have a form with a NumericUpDown control, a ToolBar and an InputPanel.
The NumricUpDown is initialized as follows:
form.MinimizeBox = false;
nud.Minimum = 0;
nud.Maximum = 1000000;
When I call the form, it is constructed from an static method (singleton
form) and I call it as follows:
int i = 50000;
decimal d = Convert.ToDecimal(i);
nud.Value = d; // set NumericUpDown control value to 50000
form.ShowDialog(); // User can set the value to 50000 or some other number
int ii = Convert.ToInt32(nud.Value); // I get the wrong value --- negative
amount
MessageBox.Show(ii.ToString());
The problem is the value I get after the user has used the InputPanel to
changed the value, I get a negative amount, as if it were overflowing.
Could someonw help me confirm my bug, or am I seeing double!
Thanks,
--Ader. Tag: Excel and C# Tag: 62836
CF 2.0 Mac Address
Is there a way to get the Mac Address with the new 2.0 cf? I have looked and
haven't been able to figure it out, not sure if there is managed code to
access this or not. I know there are OPENNETCF methods etc, but I was hoping
there was a way to do it with Microsoft's Classes.
Thanks,
Chris Tag: Excel and C# Tag: 62829
Method not found: Dispose System.Data.Common.DbTransaction.
Hi,
I received the exception :
"Method not found: Dispose System.Data.Common.DbTransaction."
when I execute a Transaction.Commit();
Have anybody received this error ?
I'm using Visual Studio 2005 RC
Julio Tsukamoto Tag: Excel and C# Tag: 62828
Visual Studio 2005 : "No such interface supported"
I just received my Visual Studio 2005 and I have an empty pocket pc
solution that im trying to run. Whenever I attempt to deploy I get a
small messagebox that says "No such interface supported".
When i try to import my application, I get the same error if I try to
deply. If i try to perform a build, I get the following monstrosity
Warning 1 An internal error occurred in PlatformVerificationTask.
System.IO.FileNotFoundException: Could not load file or assembly
'System.PocketPC.asmmeta, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system
cannot find the file specified.
File name: 'System.PocketPC.asmmeta, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Signature._GetSignature(SignatureStruct& signature, Void*
pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr
declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void*
pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle,
RuntimeMethodHandle methodHandle, RuntimeTypeHandle
declaringTypeHandle)
at System.Signature..ctor(RuntimeMethodHandle methodHandle,
RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RuntimeMethodInfo.get_Signature()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at
Microsoft.CompactFramework.Build.MethodDescriptor.MethodBaseMatch(MethodBase
a)
at
Microsoft.CompactFramework.Build.MethodDescriptor.MethodInfoMatch(MethodInfo
a)
at
Microsoft.CompactFramework.Build.MethodDescriptor.MethodMatch(Object
obj)
at
Microsoft.CompactFramework.Build.MetadataService.GetMethodAttributes(String
instanceType, MethodDescriptor methodDesc)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationRule.VisitExpressionStatement(ExpressionStatement
statement)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitStatementList(StatementList
statements)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitBlock(Block
block)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitStatementList(StatementList
statements)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitBlock(Block
block)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitMethod(Method
method)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitMemberList(MemberList
members)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitTypeNode(TypeNode
typeNode)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitClass(Class
Class)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitTypeNodeList(TypeNodeList
types)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitModule(Module
module)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitAssembly(AssemblyNode
assembly)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationTask.Execute()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
EpocHost
Does anyone know whats going on here ?
desperately seeking help!
thanks in advance
Taha. Tag: Excel and C# Tag: 62820
first time user of bluetooth - question?
Hi there,
This is what i'm trying to achieve:
I have a PDA enabled bluetooth, and mobile phone with bluetooth enabled.
What i ideally want to do is to press a button on my form, and
programatically connect to the internet, via the bluetooth connection
between the pda and mobile (eg. via GPRS on mobile.)
Can anyone point me in the right direction, and also if i should use the
32feet.net library in order to achieve this?
Any small code example appreciated as this is first bluetooth attempt for
me.
thanks,
Paul Tag: Excel and C# Tag: 62817
Performance worrying problem - Bad architecture maybe
Hi guys,
I've got a very worrying problem in my CF 2.0 application. I don't know
the exact reason for so poor performance, sometimes combined with
"OutOfMemoryException" messages. Could be a bad architecture design
problem.
Ths is my actual scenario:
The application has got near 25 forms and I have one MasterForm from
which the rest of the forms inherit. This MasterForm contains basically
icons and some static variables I use for different purposes inside all
forms of my application.
I call the first form of my application "MainForm". Here we have three
very different choices (imagine three buttons).
When any button is clicked, I always open corresponding form with
ShowDialog() method. Each choice can simultaneously open 5/6 forms
maximum by using ShowDialog(). Therefore, I understand 5/6 forms are
opened in memory sametime. Correct me if I'm wrong please.
Imagine that I choose a button and navigate and navigate and.....I
finally have 5/6 forms opened with ShowDialog(). When I close the
actual modal form (fifth or sixth form), I use the simple this.Close()
and sometimes also return a DialogResult value. If the previous form
must perform an specific action, I use static variables of the previous
form, which I activate from the actual modal form.
In the previous form, I capture Activate event and do the correct
action if the corresponding static variable has been activated. An
example would be to save something and when returning to the previous
form, refreshing the screen with the newly saved data. This means a new
database access. This could be the main bottleneck of the application.
The operations are against SQL Mobile 2005 database. I always access
database to retrieve
latest data, don't use caching at all.
With this scenario, all I can tell you is that sometimes application
seems not to response, and ultimately, if you stress it hard,
"OutOfMemoryException" occurs and new data is not refreshed in the
screen. Suddenly data is "lost", and if you close the from and open it
again, data appears again......in one word: desperating!
I would like to hear any suggestion for a better performance please. It
really hurries me. My project is becoming more and more complex and I
think now, I've got the last chance to reorient or redesign its
architecture. 2006 could be too late.
Specially advices related to the way of opening/closing forms and
database accessing and caching.
Thanks very much. Regards. Tag: Excel and C# Tag: 62815
Components on the PocketPC
Hello,
I'm starting to write for the Pocket PC. My first task is to translate
my current Windows components to Pocket components. Right on the
start, I can't reference a Windows component in my Pocket project, as
VS2005 is telling me.
My question: is it possible to have a common component project so that
I don't need two versions of the same code (one for the Windows, on for
the Pocket) ? For example, if I need to update the component, I don't
want to end up updating two times in two components that contains the
same code. I thought code re-use would be great since we're in .Net.
But it seems that the compact framework is not so close to the Windows
framework.
Thanks for the info,
Neb Tag: Excel and C# Tag: 62809
HTTPS bug with web services in .NET CF v2.0?
Hello all,
I am writing a .NET Compact Framework v2.0 application which
communicates with a back-end system via a web service, using HTTPS for
transport. I am experiencing a problem where the first 256 characters
of the request are mysteriously cropped from the message before they
arrive at the server side. If I make the request over HTTP, it is
received correctly, so it only seems to be HTTPS which is causing the
problem. If I import the web reference into a desktop .NET Framework
application and call it from there over HTTPS it also works fine, I
have tried it using Apache Axis with Java as well which worked fine. As
such, the problem seems limited to the .NET Compact Framework. I am
about to try it with a v1.0 Compact Framework program to see whether
this is something that has been introduced since then.
Has anyone else come across a similar problem? Is it a known bug? If
so, are there any workarounds?
Thanks in advance,
Iain McGinniss Tag: Excel and C# Tag: 62804
Strange bug in "Smart Device Authentication Utility"
I'm trying to connect to my device using Smart Device Authentication
Utility. I launch the sdauthutildevice.exe on the device, select the
correct network device and start.
On the PC i launch Smart Device Authentication Utility and enters the
device ip address.
I click on "Set up device" and Smart Device Authentication Utility
displays a fairly large, completely blank message-box. Not even the
"OK" button has a caption! Anyway, after klicking the blank button on
the messagebox the Smart Device Authentication Utility status says
"connected". However, I cannot connect to the device, and checking the
processes running on the device i do not see ConnmanClient.exe process.
I'm running Windows XP Pro SP2 (Swedish), VS2003, Windows CE .NET
Utilities v1.1 for Visual Studio .NET 2003, Xscale/pxa270, Windows CE
5.0 with all QFE:s up and until Q3 2005.
Any ideas? Tag: Excel and C# Tag: 62802
HTTPS bug with web services in .NET CF v2.0?
Hello all,
I am writing a .NET Compact Framework v2.0 application which
communicates with a back-end system via a web service, using HTTPS for
transport. I am experiencing a problem where the first 256 characters
of the request are mysteriously cropped from the message before they
arrive at the server side. If I make the request over HTTP, it is
received correctly, so it only seems to be HTTPS which is causing the
problem. If I import the web reference into a desktop .NET Framework
application and call it from there over HTTPS it also works fine, I
have tried it using Apache Axis with Java as well which worked fine. As
such, the problem seems limited to the .NET Compact Framework. I am
about to try it with a v1.0 Compact Framework program to see whether
this is something that has been introduced since then.
Has anyone else come across a similar problem? Is it a known bug? If
so, are there any workarounds?
Thanks in advance,
Iain McGinniss Tag: Excel and C# Tag: 62800
Hello group,
is it possible to create and manage an excel spreadsheet using c# and cf
framework?
If it is, how?