serialization to relational DB?
Hi,
I'm working with reflextion a bit and I was wondering, since we have
serialization to XML with OpenNetCF component, isn't there some kind of
component of third party that could serialiaze an object graph to relational
DB? I thought about it for a while and it seems to me that with reflection
help this is possible - and it would be killer!
dan Tag: Determining the My documents folder? Tag: 38457
GPRS connection goes down if Active Sync is started
I do this:
Connect to Internet via GPRS
Connect a GPS to Com1 of my device
Active Syns starts and GPRS connection goes down!
I use Qtek 2020 (XDA II) and Pocket PC 2003...
Any ideas?
--
//mikson Tag: Determining the My documents folder? Tag: 38452
#if and define constants in VB.NET
Hi,
I need to use a lot of define constants for varios settings in my
application.
If I insert a constant in Project Configuration Properties - Build - Custom
constants, this constant is known in all modules. But if I insert #const in
any module, then I can use this constant ONLY in this module.
Does any eventuality exist to have a lot of constants, which are known in
all modules? Some statement (#LINK or #INCLUDE) for special file with
constants.
Viki Tag: Determining the My documents folder? Tag: 38447
Registry and Wireless settings
I have a lot of WindowsCE4.2 devices, all must be setup with a
wireless profile, ie. static IP/subnet, wireless SSID/AdHoc. In stead
of configuring each device I would like to make a small application to
assist me. I have tried looking at the registry before and after
manually setting the profile, but still I am unable to clearly
identify fx the location of the IP address.
I have identified changes in the following keys:
LocalMachine\Comm\[adapter]\Parms\TcpIP\EnableDHCP
LocalMachine\Software\Microsoft\WZCSVC\Parameters\Interfaces\[adapter]\ActiveSettings
LocalMachine\Software\Microsoft\WZCSVC\Parameters\Interfaces\[adapter]\Static#0000
CurrentUser\Comm\WirelessAdapterCache\[adapter]
CurrentUser\Comm\EAPOL\Config\[SSID]\Enable8021x
The key LocalMachine\Comm\[adapter]\Parms\TcpIp also include a Value
"IPAddress" [String], however, it seems to be ignored by Windows Zero
Config.
I have been looking into this matter much but and about to go nutz as
I cannot figure out how its done. Can it be done? Where is the IP
stored? After a device reset (warm boot) it persists. Is it stored on
the card? Encrypted? I have searched looking at both string and byte
patterns.
Any comment appriciated. Thanks you.
Frederik Jensen, Judex Tag: Determining the My documents folder? Tag: 38437
Event controles directory
Hi,
for my application I need an event wich controles a directory and fires, if
a file is added to the directory. Is something like this possible, and if
yes, how could I do that (I haven't wrote an event yet)?
Greets,
Cyberdot Tag: Determining the My documents folder? Tag: 38434
Memory Usage
Hi All,
I have a C# application that uses an SQL Server CE database and I am a
little confused about the memory usage of my application.
When I start the application the Control Panel -> Memory display shows that
7MB was consumed, but when I use the Performance Monitor (MSCOREE.STAT) it
shows a Byte Allocation of 2 MB.
This all came up because I have an h2200 that was showing Control panel
memory usage of 2MB, and a h5500 that showed a memory usage of 7MB. I am
confused.
BTW. My DB is 3.5MB in size.
Can anyone explain for me.
Thanks,
James. Tag: Determining the My documents folder? Tag: 38423
NetworkStream.BeginRead Blocking problem
Hi all,
I am trying to create CLient-Server based application. Talking of just
Client application, I want to read data from the server application. For
that
I created a socket and a new thread that reads all the time from the server.
However, the problem is when I close the socket (from client end), my data
reader thread (created above) does not close down. In turn it keeps waiting
for some message.
After bit of struggle I noted that somehow BeginRead calls back the method
after 1 minute. At that time my piece of code exits the thread. I want to
close the BeginRead operation as soon as I close the socket. You help will
be
appreciated. For that purpose I am presenting you with the code that I have
managed to write.
Public Delegate Sub DisplayInvoker(ByVal text As String)
Private Const IPADD As String = "192.168.11.2"
Private Const PORT As Integer = 5000
Private m_socketClient As TcpClient
Private m_data(1024) As Byte
#Region "Private Methods"
Private Sub connect()
Try
Dim ipAddObj As IPAddress = IPAddress.Parse(IPADD)
Dim ipEndPointObj As New IPEndPoint(ipAddObj, PORT)
Me.m_socketClient = New TcpClient(IPADD, PORT)
Me.btnSend.Enabled = True
Me.displayText("Connected to Host " + IPADD + " at Port " +
PORT.ToString())
Catch ex As Exception
Me.displayText("Socket connection failed")
Me.displayText("Reason: " + ex.Message)
Me.btnSend.Enabled = True
End Try
End Sub
Private Sub displayText(ByVal text As String)
If (text Is Nothing) Or (text = "") Then
Exit Sub
End If
Me.txtReceive.Text = Me.txtReceive.Text + vbCrLf + text
End Sub
Private Sub Send(ByVal text As String)
If Me.m_socketClient Is Nothing Then
Me.displayText("No socket connection available. Cannot send
text")
Exit Sub
End If
If (text Is Nothing) Or (text = "") Then
MessageBox.Show("No data to send")
Exit Sub
End If
Try
Dim bytes() As Byte = (New ASCIIEncoding).GetBytes(text)
Dim streamObj As Stream = Me.m_socketClient.GetStream()
streamObj.Write(bytes, 0, bytes.Length)
streamObj.Flush()
Me.displayText("Data Written: " + text)
Catch ex As Exception
Me.displayText("Sending FAILED: " + ex.Message)
End Try
End Sub
'This method is called to start reading
Private Sub BeginRead()
Try
Dim result As IAsyncResult =
Me.m_socketClient.GetStream.BeginRead(Me.m_data, 0, 1024, New
AsyncCallback(AddressOf Read), Nothing)
Catch ex As Exception
Me.displayText("Error at BeginRead: " + ex.Message)
End Try
End Sub
Private Sub Read(ByVal asyncResult As System.IAsyncResult)
Dim intCount As Int32 = 0
Try
intCount = Me.m_socketClient.GetStream.EndRead(asyncResult)
Me.displayText("Number of Bytes Received: " +
intCount.ToString())
If intCount < 1 Then
Me.displayText("Host connection closed")
Me.disconnect()
End If
Dim str As String = (New ASCIIEncoding).GetString(Me.m_data, 0,
intCount)
Dim result As IAsyncResult =
m_socketClient.GetStream.BeginRead(m_data, 0, 1024, New
AsyncCallback(AddressOf Read), Nothing)
Catch ex As Exception
Me.displayText("Error READING: " + ex.Message + " " + Now())
End Try
End Sub
Private Sub disconnect()
If Me.m_socketClient Is Nothing Then
Me.displayText("No socket connection")
Exit Sub
End If
Try
Me.displayText("Manually connection closed at " + Now())
Me.m_socketClient.Close()
Catch ex As Exception
Me.displayText("Socket Closing Failed: " + ex.Message)
End Try
End Sub
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.connect()
Me.BeginRead()
End Sub
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Me.Send(Me.txtSend.Text)
End Sub
Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnClose.Click
Me.disconnect()
End Sub
Private Sub btnEnd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnEnd.Click
Me.disconnect()
Me.Close()
Application.Exit()
End Sub
Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnConnect.Click
Me.connect()
Me.BeginRead()
End Sub Tag: Determining the My documents folder? Tag: 38422
For Peter Foot
Ok, additional to the PPC App installer, I made three modification to the PPC
App setup project.
1. add a SQLCE.ini file:
[CEAppManager]
Version = 2.0
Component = SCE
[SCE]
Description = SQL Server CE 2.0
CabFiles =
sqlce.wce4.armv4.CAB,sqlce.ppc3.arm.CAB,sqlce.wce4.armv4t.CAB,sqlce.wce4.mips16.CAB,sqlce.wce4.mipsii.CAB,sqlce.wce4.mipsii_fp.CAB,sqlce.wce4.mipsiv.CAB,sqlce.wce4.mipsiv_fp.CAB,sqlce.wce4.sh3.CAB,sqlce.wce4.sh4.CAB,sqlce.wce4.x86.CAB,netcf.core.ppc3.arm.cab,sql.ppc3.arm.CAB,sqlce.dev.ppc3.arm.CAB,netcf.all.wce4.armv4.cab,sql.wce4.armv4.CAB,sqlce.dev.wce4.armv4.CAB,netcf.all.wce4.armv4t.cab,sql.wce4.armv4t.CAB,sqlce.dev.wce4.armv4t.CAB
2. Add an invokation to the RunAppManager function as following
Dim argSQLCE As String =
Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "SQLCE.ini")
RunAppManager(argSQLCE)
Dim arg As String =
Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "Setup.ini")
RunAppManager(arg)
3. I add a "WaitForExit()" function after the process.start() function as
following.
Process.Start( _
String.Format("""{0}""", appManager), _
String.Format("""{0}""", arg)).WaitForExit()
Then After I generate the msi file and run it, the PPC App can be installed,
but when installing SQL CE it says "There is no device-compatible software to
install. "
I can send you my code if you don't mind.
Thanks. Tag: Determining the My documents folder? Tag: 38421
Using multiple dataadapters does not work in CF???
Very odd behavior. I try to fill two dataadapters on the same connection and
I get an exception on the 2nd fill. Code similar to this has never been a
problem in my winforms app, so this must be some limitation of CF?
Dim strSQLServer As New SqlCeConnection(strConn)
Dim cmd As New SqlCeCommand
cmd.CommandType = CommandType.Text
cmd.CommandText = "Select * From Employees"
cmd.Connection = strSQLServer
Dim cmdPPC As New SqlCeCommand
cmdPPC.CommandType = CommandType.Text
cmdPPC.CommandText = "Select * From PocketPCs"
cmdPPC.Connection = strSQLServer
strSQLServer.Open()
Dim da As New SqlCeDataAdapter(cmd)
da.Fill(ds, "dtCanvassers")
Dim da2 As New SqlCeDataAdapter(cmdPPC)
'an exception occurs here
da2.Fill(ds, "dtPocketPCs") Tag: Determining the My documents folder? Tag: 38419
Local datastore for visual basic .net aplication on a pda
I have this project for developing an drug interaction aplication for a pda
under a windows o.s .
The aplication is being developed on visual basic .net (using visual studio
.net 2003), and I needed to create an local datastore, the problem is that
most of the database access controls and etc available on the full .net
framework aren´t available for the .net compact framework, so, so much for
using an MS access database file, as for SQL, I kinda dislike the ideia of
having to install the CE server on the pda just to run a lame database that
only uses SELECT and WHERE (=?) queries (the aplication only reads a
specific value from a field on the database and compares it to another value
from another field).
So after all this, here's my questions: Is there any way to use an sql
database file as an local datastore without the SQL server running? Just by
reading from the file that is? And how about an serialized xml file from the
object model, could it do the trick or does it run in to the missing class
prob in compact framework?
Thanks for reading and for your time, help is most welcome. Tag: Determining the My documents folder? Tag: 38414
NullReferenceException on line that does nothing.
Hi,
I've got a strange NullReferenceException on this line:
System.Data.DataTable oDT = null;
I've tried not initializing it, and setting it to something on the
next line, but that doesn't change anything.
Strangely, it does not throw an exception when I'm running in debug
mode (debugging on the device, not the emulator). It does throw when
I deploy and run on that same device.
Has anyone seen this behavior?
Thanks, and have a good day.
Tom Tag: Determining the My documents folder? Tag: 38409
Putting the program icon in the WinCE main window
Hi,
This may be a stupid question, but how do you make your program icon appear
in the desktop window of the WinCE screen after VStudio has deployed your
application? What output folder I need to use?
Bert Tag: Determining the My documents folder? Tag: 38406
Can I directly access hardware using managed code?
Of course you can!
http://blog.opennetcf.org/ctacke/PermaLink,guid,9a6c5e09-1bd1-4603-99b7-11310c06b68b.aspx
--
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here Tag: Determining the My documents folder? Tag: 38393
Keypress event in main form
Hi guys,
Sorry for the cross-post but the guys in simgle dot net seem a bit loose
when we talk of pocket pc,
Im trying to bin a key to a button whit the keypress event of the form, per
exemple i got a button called cmdProduction
i want when u strike the "P" or "p" key on the keyboard that the
button_click event fire,
so far i got this but it does not seem to work :
Private Sub FrmMain_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If e.KeyChar = "P" Or e.KeyChar = "p" Then
e.Handled = True
Call BtmProduit_Click(sender, e)
End If
end sub
This litle code dont even fire the keypress event of the form so im
wondering what im doiing wrong !
Thanks in advance !
Himselff Tag: Determining the My documents folder? Tag: 38388
Z-order top using SetWindowsPos
"Peter Foot [MVP]" <feedback@no-spam.inthehand.com> wrote in message
news:ul%23WSajxEHA.2676@TK2MSFTNGP12.phx.gbl...
> You can use the technique described here to make your messagebox dialog
> always appear at the top of the z-order until it is dismissed:-
> http://blog.opennetcf.org/pfoot/#a11ad82c3-a428-4aac-959f-27c9c3590662
Peter,
You say, this works until the form is "dismissed". How do you dismiss the
form? I've converted the code you provided me with that for VB.
I'm using a Me.Close to close my form.
The first time the form appears, it stays up as I was hoping it would, not
getting hidden behind other forms. But the second and beyond time it is
called, its not going away, ever. I can tell that the form in the
background is still running as I can touch buttons, at least the part of the
buttons I can see behind my 'modal' form, and they work.
Any ideas? Tag: Determining the My documents folder? Tag: 38387
Best choice of data storage on PDA in C# (short term/ long term)
I am a newbie, so please be patient. I am working on an app that will extract data from an embedded system via serial connection. I need to get the data as fast as possible and then go back and assimilate it after I've disconnected.
What is the best way to store this data for both the temporary and long term?
Thanks to anyone who helps.
*****************************************
* This message was posted via http://www.dotnetmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.dotnetmonster.com/Uwe/Abuse.aspx?aid=8200b714ce074f33875eabde58bd1f64
***************************************** Tag: Determining the My documents folder? Tag: 38386
Best choice of data storage on PDA in C# (short term/ long term)
I am a newbie, so please be patient. I am working on an app that will extract data from an embedded system via serial connection. I need to get the data as fast as possible and then go back and assimilate it after I've disconnected.
What is the best way to store this data for both the temporary and long term?
Thanks to anyone who helps.
*****************************************
* This message was posted via http://www.dotnetmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.dotnetmonster.com/Uwe/Abuse.aspx?aid=84b2448f9fb84bc1b6bab3aee06821c8
***************************************** Tag: Determining the My documents folder? Tag: 38385
Detecting Open Forms
Is there a way in CF .NET using C# to detect whether or not a form is
already open in memory, and if so, using a conditional to show that form
rather than having to do something like this:
Form1 frm = new Form1();
frm.Show();
since that always creates another instance. I don't want users to have a
bunch of the same form open on their PPC at one time, it's just silly and a
needless waste of resources.
Thanks Tag: Determining the My documents folder? Tag: 38379
Trouble with Multi Threading
Hello All,
I am in the middle of creating a class that I want to use with Serial IO per
the MVP on this forum.
I am still having trouble with my design process I think.
I created a class that is designed to basically receive messages from the
port. It is a CommEvent
private void port_DataReceived()
{
byte[] data = port.Input;
RxMESSAGE += Encoding.ASCII.GetString(data,0,data.Length);
}
this class is created from a WinCE form.
there suggestion was to create a seperate thread that receives data.
my question(s) in this process is
1)if I have a class that is created from a WinCE form( myThread = new
Utility.myThreadClass(); ) with the event port_DataReceived. Will that event
raise without locking up my WinCE form?
2) how do I start a thread that will allow this event to be raise and allow
me to continue working on my WinCE form? In every other situation I have
written a thread that calls one function, once that function was done the
thread was done also, in this case I am trying to start a thread the allows
an event to fire? Tag: Determining the My documents folder? Tag: 38373
Help with custom control development
Hello all!
I am developing a custom control with design-time support.
I have managed to build the design time assembly without any errors.
However, when I add my control to the toolbox it appears disabled. I
understand that something is wrong but I cannot figure out what it is. Is
there any way to get more information on what is going on?
Do you know of any descent tutorials on control develpment (because MSDN's
documentation on this topic sucks!).
Thanks in advance! Tag: Determining the My documents folder? Tag: 38372
TCPClient & ActiveSync 3.7
hi,
I've got problem with connection to the Internet throw ActivSync 3.7 (usb) -
every time I call WebRequest.Create in my app on pocket pc with windows
mobile 2002 I get "The remote server returned an error (404) Not found"
exception.
But the page I want to request is on web server for sure.
Plz help. Tag: Determining the My documents folder? Tag: 38371
WebService - putting on third party hosted site and how?
Hi all,
I am creating my first mobile app, and I am using a web service. It's all
working great on my local machine. However, I want to stick it out on the
net so that we can demo the app at the client site. My company website is
hosted by a third party. Is it possible to stick the webservice files out on
their server and have this work? I'm new at this stuff, so any help is
greatly appreciated.
Thanks,
Erin Tag: Determining the My documents folder? Tag: 38344
PPC Phone Version.
Hi,
I'm developing an application form PocketPC, when I test in Pocket PC
2003 it's ok, but if I try to run in Pocket 2003 Phone Edition the
application freezes, I checked and the app freezes when I call
myForm.ShowDialog() method.
Does anyone know how to avoid this?
Thank You,
Eduardo Castro - MCSA/MCP Tag: Determining the My documents folder? Tag: 38343
irda serial port emulator
Hello,
I am trying to write a program using .NET CF to interface with a PDA IR port
which communicates with an ACTiSYS IR100S Intelligent IR port. This device
contains the iRDA protocol stack so that when it is connected to a PC it
looks like a standard RS232 port.
I have some sample code which allows data to be sent via IrDA on my PDA.
This works between 2 PDAs running the same software. If I try to connect to a
PC then I would have expected to see some data when running hyperterminal. I
do not. Also I have found a terminal emulator for the PDA which allows IrDA
connection to the PC and I can send data from PDA to PC/ PC to PDA. Similarly
I have tried my sample code talking between 2 PDAs where 1 has the terminal
emulator and I don't see any data passed between the 2.
The code I have will also discover IrDA devices and this works OK.
I have 2 questions:
1. Why do I not see any data when running my sample code on either terminal
emulator window?
2. Do you have any .net sample code which I can use to communicate between
a PC and a PDA via IrDA? In my final application the remote device will be a
"dumb" device which accepts commands via RS232, so I can not expect to be
able to add any code to the remote device.
Thanks
Steve Tag: Determining the My documents folder? Tag: 38342
DataGrid Cell Color - urgent
Hi Guys,
two question in one post
1. Can i change a particular cell background color in datagrid in compact
framework?
2. can i have label/button inside the cell in the datagrid?
Regards
Salim Tag: Determining the My documents folder? Tag: 38341
Expanding a mainmenu in c# cf app with no mouse/pointer
I have encountered a problem with my c# compact framework app where i
have created a main menu which works perfectly within the emulator,
however, the device i am developing for has no mouse or pointer input.
is there any way of getting the focus to the menu via keys only? like
pressing alt in most windows apps?
thanks in advance!
lewis Tag: Determining the My documents folder? Tag: 38340
No Smart Device Application template?
Hi!
I need to create a VB.NET application for a Pocket PC. I've installed
VB.Net, the .NET Compact Framework and the Microsoft Pocket PC 2003 SDK.
Still, there is no "Smart Device Application" template under New
Project/Visual Basic Projects.
I've tried deinstalling and reinstalling everything - still no template.
What am I doing wrong? Tag: Determining the My documents folder? Tag: 38339
Two urgent issues in PPC development.
1. An old question which I have asked several times. I want to combine the
SQL CE installation in the Pocket PC Application. I can properly install the
the PPC application, but the SQL CE is not able to be installed properly. Can
anybody send me a sample setup project in VB.NET(coz my PPC application is in
VB.NET)? My email is: fengcs@ccdynasty.com It's really urgent. Many
thanks.
2. I am given this message every time I install the PPC application. The
message says that:" the program is not properly installed as it's for the
previous version..." However it seems the program is running smoothly after
installation. But I just donot want my customer to see this message. Tag: Determining the My documents folder? Tag: 38338
App Deployment
Hi,
Can someone point me in the direction of how to deploy an application to a
PocketPC (using dotnetcf)?
Thanks,
Tim. Tag: Determining the My documents folder? Tag: 38337
TCP Connection Timeout ?
Hi folks,
here is my (simple) code :
try
{
TcpClient tcpclnt = new TcpClient();
tcpclnt.Connect(IPAddress.Parse(ipAddress), intPort);
}
catch(SystemException e)
{
MessageBox.Show("Error : "+e.Message.ToString());
return false;
}
If it's not possible to connect to the specified IPAddress,
the connect needs between 45-60 seconds to get an exception.
Is there a possbility to have a shorter timeout, maybe with a
SocketOption, without use of a timer ?
cu
Axel Tag: Determining the My documents folder? Tag: 38335
Something I must missunderstand about XML...
Hi all
I tried to write a simple XML-based message parser
I just can't get the infos I want from the XML
here is the xml file:
----
<?xml version="1.0" encoding="utf-8" ?>
<message id="00001">
<body>Corps du message de test. Ca donc c'est juste un test de message
</body>
<subject>Sujet test1</subject>
<sender>Moi meme</sender>
</message>
---
and the parser:
r = new XmlTextReader(path + file.Name);
while (r.Read())
{
if (r.NodeType == XmlNodeType.Element)
{
if (r.Name == "message")
msg.Id = r.GetAttribute("id");
else if (r.Name == "subject")
msg.Subject = r.Value;
else if (r.Name == "body")
msg.Body = r.Value;
else if (r.Name == "sender")
msg.Sender = r.Value;
}
}
r.Close();
I get the Id attribut id but none of the values...
Is that a good way to do this ?
Am I totally wrong by doing this?
thx in advance! Tag: Determining the My documents folder? Tag: 38334
Serialization of arrays in dataset
Hi,
I have a dataset that I am using to transfer data to a web service from a
device. One of the elements in the datatable contained within the dataset is
a string array, which is stored fine in the dataset on the device. However,
when the dataset is transferred and I try to retrieve the data from the array
in the web service, the array is transformed into a string with the value
"string.object[]"
Now, I know that this is an effect caused by the serialization of the
dataset during transport from the device to the web service, so what (if any)
is the correct method of transferring arrays in datasets to web services? Tag: Determining the My documents folder? Tag: 38333
Creating non maximized form in CF
Hi,
how can i make a form with takes e.g. half of the screen?
Anytime i make such a form with specifying size property smaller than size
of the screen, it's maximized when running the program. Disregarding
WindowState property is set to Normal. I wold like to make a form which looks
like System.Windows.Forms.MessageBox. I have not found any problems when
doing the same thing in adult .NET. Tag: Determining the My documents folder? Tag: 38331
Threading & Synchronization in CF 2.0
Hi,
Has the CF 2.0 more support for inter-thread synchronization ?
For example, the absence of Monitor.Wait and Pulse methods
in 1.0 are a bit of a pain (OpenNETCF partially solves this).
The reason why I am asking is that the documentation
in VS 2005 mentions .NET CF as a supported platform
for some of these methods.
Monitor.Wait Method (Object)
...
Target Platforms: <...> .NET Compact Framework
But the methods do not seem to be available (Intellisense
does not find them). Documentation typo ?
Thanks,
Ralph Tag: Determining the My documents folder? Tag: 38329
CF 1.0 SP2 deployment to Emulator from VS .NET 2003
Hi,
I'm new to CF dev and trying to find out
if there is a way to make VS.NET 2003 use
CF 1.0 SP2 when it deploys the framework
to the Pocket PC 2002 Emulator.
I believe it is possible to deploy the files
"manually", but don't one lose them when
turning off or hard resetting the Emulator ?
Thanks,
Ralph Tag: Determining the My documents folder? Tag: 38328
File copy from device to desktop
Is there a way to initiate something on a Pocket PC to copy files to a
desktop? The users will copy to various laptops and desktops so I would
prefer not to have to install a RAPI app on each computer but will if
needed.
Thanks,
Jeff Tag: Determining the My documents folder? Tag: 38325
Un-Full Screen
Hi All,
After making a full screen for the program, by
this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None;
this.ControlBox = false;
this.Menu = null;
How can i change screen back to normal?
I have tried calling the ControlBox and Menu back by
this.ControlBox = true;
this.Menu = new Menu();
but failed. Tag: Determining the My documents folder? Tag: 38322
cannot connect to X5 from VS.NET
I am able to successfully build my C# app in VS.NET but am having trouble
deploying it to my Dell Axim X5. I am running ActiveSynch 3.7.1 and have
successfully connected my device to the PC and synchronized. Whenever I
select deploy, it asks me for the device type (which I select PocketPC) and I
get the following error:
Error: Cannot establish a connection. Be sure the device is physically
connected to the development computer.
According to Asynch, my device is connected. I am able to browse the device
using Mobile Explorer, etc.
I tried to deploy it to the emulator and that worked fine. Any ideas on
what might be wrong would be appreciated.
Regards,
Rob C Tag: Determining the My documents folder? Tag: 38320
How do I unload a Smartphone app via the Compact Framework
Hello all,
In order to programmatically uninstall an app via the Compact Framework,
one just calls "\Windows\unload.exe", "appname.exe" on the Pocket PC. The
Smartphone doesn't include unload.exe or even wceload.exe anywhere on the
device. So how does one accomplish this task? Is there some other exe to
call that accomplishes the same function?
Thanks,
Rob Tiffany, eMVP Tag: Determining the My documents folder? Tag: 38318
Issue with Icon constructor in CF SP2
Hi All,
This seems to be a new bug that has been introduced in CF SP2.
I now get a 'NotSupportedException' when using the Icon constructor that
takes a Stream. If I do not install SP2 the constructor works fine (using PPC
2003 Phone Ed emulator).
Here is the C# code that is used.
Stream stream =
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("FMRS.Images.icon_first.ico");
Icon icon = new Icon(stream); //this blows up with SP2
imgListReading.Images.Add(icon);
As I said, the code works fine without CF SP2 installed. I have checked that
the stream is not null.
This is the error I get...
***
An unhandled exception of type 'System.NotSupportedException' occurred in
System.Drawing.dll
Additional information: NotSupportedException
***
There is no message with the error, nor an inner exception, which is
especially nice! Tag: Determining the My documents folder? Tag: 38315
Works on one device
Hello all,
I was wondering if you had any idea about the following.
I am writing an application for a PPC that is calling dll functions
generated in eVC 4. the target processor is a ARM processor however I have
tried both the ARM and ARMV4 process compiles for the dll as suggested in a
previous thread.
[DllImport(\\Windows\\DllFileName.dll, EntryPoint="ClearCodes")]
private static extern int ClearCodes (int codesID);
My issue is this function works perfectly on a compaq iPaq 2200 and I get a
MissingMethodException on the Dell Axim X5.
regards,
Jay Tag: Determining the My documents folder? Tag: 38305
Issue with a Dell Axim X5
Hello all,
I was wondering if you had any idea about the following.
I am writing an application for a PPC that is calling dll functions
generated in eVC 4. the target processor is a ARM processor however I have
tried both the ARM and ARMV4 process compiles for the dll as suggested in a
previous thread.
[DllImport(\\Windows\\DllFileName.dll, EntryPoint="ClearCodes")]
private static extern int ClearCodes (int codesID);
My issue is this function works perfectly on a compaq iPaq 2200 and I get a
MissingMethodException on the Dell Axim X5.
regards,
Jay Tag: Determining the My documents folder? Tag: 38301
Cannot Deploy/Debug With ActiveSync
I have a Psion Netbook Pro with an ARM-pxa255 processor and CE.NET 4.2. I
have tried both ActiveSync 3.71 and 3.5 (in that order). I have installed
the Windows CE Utilities for Visual Studio .NET 2003 and have selected ARM4
as my device CPU. I'm connecting through an RS232 serial connection. In
Visual Studio, I have the platform set to Windows CE and the transport is
set to TCP. The startup server is ActiveSync.
If I open ActiveSync itself, it connects just fine. Visual Studio doesn't
want to play along.
Any advise?
Thanks,
csharprox@NOSPAMgmail.com Tag: Determining the My documents folder? Tag: 38299
POP3 Access
Hello,
I want to know if there is some way that I can download emails using POP3
protocol and using .Net Compact Framework. I am trying to build an
application for Pocket PC 2003.
When searching for a POP3 email access I got hold of an application called
nPOP (http://nakka.com) but it is written is eVC++. Anyway that I can use the
code in a .Net application??
Any pointers/suggesstions would be quite helpful.
TIA
-Aayush Puri Tag: Determining the My documents folder? Tag: 38291
Change specific treeview node font?
Hi all,
I would like to change only my "header nodes" font in my treeview. Is this
possible? I used the following to try it:
trvAppts.Font = New Font(trvAppts.Font.Name, trvAppts.Font.Size,
FontStyle.Bold)
But that set the whole treeview to Bold. I only want the header ones.
Can the compact framework do this? Tag: Determining the My documents folder? Tag: 38282
Run a method after a form appears
Hello,
I have a form, with a progress bar, which execute some operations like
checking update before launching another form.
I want update this progress bar but I don't know how launch my method
after the form appears on screen. I tried all events but they launched
my method before the form appears. I believe in .Net framework, there
is an event on Form show.
How can I do it? I am using compact framework 2.0 beta.
Example
public FormWelcome()
{
InitializeComponent();
CheckUpdate() ;
}
Thanx for your help.
Steve Tag: Determining the My documents folder? Tag: 38277
Setup and Deployment Pocket PC
Hi,
I want to create a installation package for my pocket pc application.
I have been to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfdeployment.asp
to read through the article, but i still got problem
Problem :
I do not know how to create the 3 major Projects (CustomInstaler, Pre-Build
and Setup) that mentioned in that article. I have cut and paste the
paragraph to the following...
"Two solutions are required for VB.NET. The first contains the Smart Device
project called PocketApp. The second solution generates the .msi file and
contains the projects CustomInstaller, Pre-Build and Setup. The
CustomInstaller and Setup projects are equivalent to the C# projects and the
Pre-Build project is a C++ Makefile project; it does not contain any C++
code and is only used to specify a pre-build event. The VB solutions are
shown below."
I hope someone could tell me how to create these 3 project, and allow me to
create a installation package for my application. Tag: Determining the My documents folder? Tag: 38269
Memory leaks or GC doesn't invoked?
Hello all,
I've written application that uses threads/timers and contains many
different forms. I've noticed that if I left my application for the
whole day then device show message that not enough memory.
I'm not using calls of unmanaged code (I suppose so) but maybe it's the
problem in the GC. Maybe I should force him to clean Gen0, Gen1 objects?
Or maybe there is tips how can I detect memory leaks?
Thank you,
Tod Tag: Determining the My documents folder? Tag: 38268
How to determine the "My documents" folder in both full- and compact
framework? It should also be language independend. - any idea?
Environment.GetFolderPath
On the device it is not present, but we have it in OpenNETCF SDF
--
Alex Feinman
---
Visit http://www.opennetcf.org
"ORC" <orc@sol.dk> wrote in message
news:%23Zf4LaAyEHA.2040@tk2msftngp13.phx.gbl...
> How to determine the "My documents" folder in both full- and compact
> framework? It should also be language independend. - any idea?
>
> Thanks
> Ole
>
>