|
got an error with following code
Error: Can't find entry point
<DllImport("CoreDll.dll", EntryPoint:="GetDiskFreeSpaceExA")> _
Private Shared Function GetDiskFreeSpaceEx(ByVal lpDirectoryName As String, ByRef lpFreeBytesAvailableToCaller As Long, ByRef lpTotalNumberOfBytes As Long, ByRef lpTotalNumberOfFreeBytes As Long) As Long
End Function
Public Shared Function GetInfo(ByVal drive As String, ByRef available As Long, ByRef total As Long, ByRef free As Long) As Long
Return GetDiskFreeSpaceEx(drive, available, total, free)
End Function
Public Shared Function GetInfo(ByVal drive As String) As DriveInfoSystem
Dim result As Long, available As Long, total As Long, free As Long
result = GetDiskFreeSpaceEx(drive, available, total, free)
Return New DriveInfoSystem(drive, result, available, total, free)
End Function
please help me on this.
|
|
|
|
|
Hi all,
I am working with Visual Studio .Net 2005. I have created new Smart Device Project with MFC smart Device application. I have selected SDK application option. It should display the inbuilt menu, but the application is not displaying the menu. How to enable menu. please help.
|
|
|
|
|
Hi
Want to show popup notification for "low battery" in .net compact frame work 1.0, is there any notification class in .net compact frame work 1.0
Thanks in advance
Yogesh R.
|
|
|
|
|
Why are you still using the 1.0 Framework? It is harder to develop for the 1.0 Framework and it isn't supported on all current devices. Your 1.0 app may run under the 2.0 framework in compatibility mode but you'll need to do more testing to ensure that the differences in the framework don't surface through your application.
The SystemState class has a member called BatteryStrength. You can add an event handler to get notification when it changes by a significant amount.
|
|
|
|
|
OK thanks for your reply. If i install Windows CE 6.0 on my device, can i use .net 2005? Because in .net 2005 there is no option for Windows CE 6.0 when i search under Create Project-Visual C# - Smart Device - Windows CE 5.0
I am confuse that which .net version i have to use for Windows CE 6.0.
Please update me
Thanks
|
|
|
|
|
For Windows CE to be available in the new project types you need to have the Platform Builder installed. The appropriate platform builder installation comes with the development hardware you've purchased.
|
|
|
|
|
ok currently i have Windows CE 5.0 installed on my computer.Now I am going to install Windows CE 6.0 on my computer. is it ok?
|
|
|
|
|
I want to deploy an application developed in Visual Studio 2008 under smart device on Windows mobile 6. I have used .NET 3.5 while developing the application. Is there any need to install .NET Compact Framework 3.5 on Windows Mobile 6? Please provide the required URL to download the .NET CF 3.5
|
|
|
|
|
If you are deploying the application using Visual Studio it will automatically detect the .Net CF version installed and install a newer one if needed. If you need to manually install the .Net CF onto another device. You can find a link to the distributables in the article Windows Mobile Development Without Visual Studio[^]
|
|
|
|
|
Thanks a lot. I found the link very useful. I could install .net CF 3.5 on Win mobile 6.0 handset.
My application involves an access to the data from SQL server mobile database in Visual studio. When i run the application on Win mobile 6.0 handset i cannot access the database but i can see the forms designed in my project. Do i need to install SQL server compact edition cab file on the handset? I went to the path C:\Program Files\Microsoft SQL server compact edition\v3.5\Devices\wce500. Here i found many folders containing cab files for SQL server compact edition. Please let me know which is the file needed to install. Also while running the application on Win mobile 5.0 emulator i used the connect the database to my project through Query Analyser 3.5. I could not see the Query Analyser 3.5 on Win moblie 6.0 handset.
Please help with this.
Thanks in advance.
|
|
|
|
|
The pre-installed version of .NET Compact Framework in Windows Mobile 6 is version 2.0 SP1.
So if you are not using any APIs that are new to 3.5 since 2.0, I would suggest that you simply change the target framework in Visual Studio.
/André
|
|
|
|
|
Pls. can anyone out there tell me if ever I've developed an applications for MS Windows XP using MS Visual C# or MS Visual C++ do I need permission? royalties ? some kind of License payment to Microsoft or a kind of liability on me for using their platform?
thank you...
|
|
|
|
|
no, you don't need to pay royalties. an dyou've posted your question in the wrong forum.
|
|
|
|
|
I am looking for documentation on what features are available in the compact framework with dealing with pocket excel. EX: how to write/read. and anything else.
Thank you.
I can't think of anything cool and nerdy to say.
|
|
|
|
|
I don't think there's anything exposed to the .Net Framrwork directly. If you can find COM interfaces for pocket office then you could create .Net wrappers from them.
|
|
|
|
|
i m new to blackberry programming and For the very first time developing a simple Helloworld progrm (following instructions and code using this link
http://www.devx.com/wireless/Article/27869/1954[^]
but when i Build the project it shows following error
Building Helloworld
D:\Installed blackberry sw\bin\rapc.exe -quiet import=..\lib\net_rim_api.jar codename=Helloworld Helloworld.rapc warnkey=0x52424200;0x52525400;0x52435200 "D:\Installed blackberry sw\bin\HelloWorld.java"
I/O Error: CreateProcess: javac -source 1.3 -target 1.1 -g -O -d C:\DOCUME~1\Shaina\LOCALS~1\Temp\rapc_163c02ce.dir -bootclasspath ..\lib\net_rim_api.jar -classpath ..\lib\net_rim_api.jar "D:\Installed blackberry sw\bin\HelloWorld.java" error=2
Error while building project
Please if anyone have idea may be some project settings(path etc) then plzzzzz suggest solution
thanks in advance
|
|
|
|
|
I am doing a windows mobile application(birthday reminder) using .net C#. I am unable to retrieve the birthday info from the pocket outlook. any one got any idea??
Thanks in advance for your help...!
|
|
|
|
|
Hi all!
I am trying to create an application for Pocket PC 2003 using C#, to send an SMS by connecting a built-in GSM modem through the USB port. I have found a library called SMSLib, which contains all the functions for sending n receiving an SMS through a GSM modem connected via USB.
I wrote a desktop appln. initially, to check whether the library works. It worked out successfully on the desktop app.
Now i have written the same code in a PPC2003 C# project, but it is not working.
The port to which i have connected the modem is not getting detected on the emulator. Because of this it is givin me an IOException.
Plz. can sumone tel me wat i should do, so that the port gets detected on the emulator???????????
N yes, I have also tried using ActiveSync, but No Luck!! May be it is not useful, or may be I dont know how to use it.
PLEASE help me out... Plz....
Thank You!
|
|
|
|
|
I am writing an application that writes a short string out of a bluetooth port to a device and reads the response that comes back from the device. It works great on an HTC Mogul running Windows Mobile 6.1 Professional, but when I run it on an HP iPAQ 211 running Windows Mobile 6 Classic it gives me an IOException at the point where it attempts to write the string to the comm port. I can open the port and connect to the bluetooth modem connected to the device OK. Here is the pertinent code:
using System.IO.Ports;
private void mnuConnect_Click(object sender, EventArgs e)
{
(inboundPort and outboundPort are both set to "COM6" and the port opens OK)
serialIn = new System.IO.Ports.SerialPort(inboundPort, baudRate, Parity.None, 8, StopBits.One);
serialOut = new System.IO.Ports.SerialPort(outboundPort, baudRate, Parity.None, 8, StopBits.One);
serialIn.ReadTimeout = 1000;
serialOut.ReadTimeout = 1000;
try
{
if (!serialIn.IsOpen)
{
serialIn.Open();
}
if (!serialOut.IsOpen)
{
serialOut.Open();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void btnConnect_Click(object sender, EventArgs e)
{
try
{
string sQuery = "U" + sUnitNum + "N?\r"; (sQuery is "U01N?\r")
(the next line is where the IOException occurs. The port is open before this line, but is closed somehow after the exception)
serialOut.WriteLine(sQuery);
What am I doing wrong?
|
|
|
|
|
I figured it out. Only need one port. I was using some sample code that used two ports.
|
|
|
|
|
I'm doing a SIP in windows mobile 6 with VC2005.
And need to popup a word selection window near caret position.
But as SIP not the current thread of the inputing application, so
getCaretPos function have no use.
Can anyone help me?
|
|
|
|
|
Do you need this to work in every app that takes input or are you working on a custom app? I don't know how you would do this for every app and I am guessing that this is what you are trying to do.
|
|
|
|
|
Hello.
I need your help.
I am creating a simple vb.net (cf.net 2.0) twitter client.
IDE: VS.NET 2008. cf.net 2.0
I have 1 Form and 1 button onto it.
Codes behind event clicking button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim lsParams As String = "status=" & Uri.EscapeDataString("message to post")
Dim loRequest As HttpWebRequest = CType(HttpWebRequest.Create("http://twitter.com/statuses/update.xml"), HttpWebRequest)
With loRequest
.Proxy = System.Net.GlobalProxySelection.GetEmptyWebProxy()
.Timeout = 10000
.AllowAutoRedirect = True
.AllowWriteStreamBuffering = True
.Method = "POST"
.ContentType = "application/x-www-form-urlencoded"
.ContentLength = Len(lsParams)
Dim loCred As New System.Net.NetworkCredential("USERNAME", "PASSWORD")
.Credentials = loCred
' Write the request paramater
Dim stOut As New StreamWriter(.GetRequestStream(), System.Text.Encoding.ASCII)
stOut.Write(lsParams)
stOut.Flush()
stOut.Close()
Dim loResp = .GetResponse
With loResp
.Close()
End With
End With
End Sub
For the line [Dim loRequest As HttpWebRequest = ] the HttpWebRequest is said to be NOT DEFINED.
Streamwriter is NOT defined as well.
.Close - it says that targeted framework does not support late binding.
What should I do? Do I need to Add a Reference? If yes, what should I add? Can you please help me?
Thank you.
|
|
|
|
|
Hint:
System.Net.HttpWebRequest and System.IO.StreamWriter
|
|
|
|
|
Thanks. No error in debugger but this time, VS.NET crashed everytime I run the emulator with the revised code.
Is the coding wrong? Or is something wrong with the PPC SDK (win mob 5 emulator) or VS?
|
|
|
|