|
Hi struja_ns, hope u r doing gr8.... m having same issue as u mentioned in this thread:
"I'm trying to make a simple Rest web service in C# and client on android.
I find a simple C# web service,"
Please share any solution with me if u found any ... your help will b appreciated.
Regards,
Faheem Sial,
faheemsial@gmail.com
|
|
|
|
|
Hello!
I’m writing an Application that I created in Visual C#. The application is
a Serial Com Terminal. I want this to run as a Windows CE Application in my device emulator. But it’s doesn’t really work. I don’t’ have any error but I can’t send other received any message from the serial port.
Can anyone please help me out in this?
Thanks in advance
Chinco
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.IO;
using System.IO.Ports;
namespace MyCETerminalChat
{
public partial class Form1 : Form
{
string name;
string message;
StringComparer stringComparer = StringComparer.OrdinalIgnoreCase;
// Create a new SerialPort object with default settings.
SerialPort sp = new SerialPort();
public Form1()
{
InitializeComponent();
string[] ports = SerialPort.GetPortNames();
foreach (string port in ports)
{
cboPort.Items.Add(port);
}
}
private void cmdOpen_Click(object sender, EventArgs e)
{
try
{
sp = new SerialPort(cboPort.SelectedItem.ToString());
sp.BaudRate = int.Parse(cboBaud.SelectedItem.ToString());
// Set the read/write timeouts
sp.WriteTimeout = 500;
sp.ReadTimeout = 500;
sp.Parity = Parity.None;
sp.DataBits = 8;
sp.StopBits = StopBits.One;
sp.Handshake = Handshake.None;
sp.Open();
if (sp.IsOpen == true)
{
MessageBox.Show("Success");
cmdOpen.Enabled = false;
cmdClose.Enabled = true;
cmdSend.Enabled = true;
}
else
MessageBox.Show("Port no Connect");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void cmdSend_Click(object sender, EventArgs e)
{
string msg = txtSend.Text;
textBox1.Text += (msg);
sp.Write(msg);
txtSend.Text = "";
}
private void cmdClose_Click(object sender, EventArgs e)
{
sp.Close();
cmdOpen.Enabled = true;
cmdClose.Enabled = false;
cmdSend.Enabled = false;
}
delegate void ChangeTxtReciveTextDelegate(string newText);
private void ChangeTxtReciveText(string newText)
{
if (textBox1.InvokeRequired)
textBox1.Invoke(new ChangeTxtReciveTextDelegate(ChangeTxtReciveText), newText);
else
textBox1.Text = newText;
}
public void Read()
{
try
{
string message = sp.ReadExisting();
MessageBox.Show("Selected Item Text: " + message);
ChangeTxtReciveText(message);
}
catch (TimeoutException) { }
}
}
}
|
|
|
|
|
Hi, all.
I am developing a PocketPC Application in Visual Basic2008(VB.Net) and Compact Framework2.0.There I was declared a Parent form and four child form.There I declared in child form load event:
Me.Parent=MainForm
It's working fine.But when I switched to Compact framework3.5.This code shows error.
"Values Does not Fall within the Expected Range."
Please help me.
|
|
|
|
|
Try to debug your application in compact framework 3.5 and find out where erectly error is raised. because this error is raised basically some invalid argument send to common language runtime.
Pavan Pareta
|
|
|
|
|
Thanks for your reply.I run this in debug mode in compact framework 3.5.I declare the form is
Dim Config As frmConfig
After that I wrote
Config=New frmConfig()
Config.Show()
After executing of last line the same error is coming at the same line.
Me.Parent = frmMDIMain
|
|
|
|
|
I have a requirement. In grid view 3 columns, 1st column - text, 2nd column - Text, 3rd column - ComboBox(twist is that, depending on the 2nd column only 3rd column's items should populate)
e.g:
-------------------------------------------------------------------
Item Operation Status (combobox items)
-------------------------------------------------------------------
Door Cleaning status Cleaned,Not Cleaned,Avg Cleaned
Bathroom Water availability Full, Empty
Bar Availability Empty,10-20,20-30,30-40
Window Cleaning status Cleaned,Not Cleaned,Avg Cleaned
on click of save button, I have to save to DB(loop and save)
So How Can I achive this task..... Anyone give idea.....
|
|
|
|
|
Hi
how to take screenshots on windows ce (5.0) device like prt scr button in pc.
Thanks.
|
|
|
|
|
|
Hi everyone,
I am exploring the possibility of plugging webcams/cameras (preferrably any webcam/camera - so I don't get tied to a particular hardware vendor) into a Windows Mobile 5 or 6 device, and write a piece of software app that allows user to click a button in that software app to get the plugged-in webcam/camera to take pictures or video streams.
So, I will need to know if this is possible to write a software app to do so on Windows Mobile 5 or 6 platforms? .NET is preferred but not essential.
What exactly do the webcam need to adhere to (for example, TWAIN)? USB Video Class 1.1? Bluetooth?
I had a look on the internet but no luck so far.
Any pointers will be welcome.
Thanks
p.s. I also posted the same message on Stackoverflow...
p.s. also posted this incorrectly in the hardware section, sorry
|
|
|
|
|
Drivers on Windows Mobile must be written in a native language. .Net is not an option. Either way while this is possible most vendors of web cams won't give you sufficient information for creating your own driver. I'm not sure why you are concerned with being tied to hardware given that most windows mobile devices have a built in camera.
|
|
|
|
|
Thanks Joel. The reason is the client has a need to use high-end camera/webcam on the field, so they envision plugging in whatever camera/webcam they fancy when they are out on the field with the mobile device.
So just to make sure I understand... it sounds like we need to get the driver from the manufacturer and maybe write .NET wrappers around the the driver so my Wi8ndows Mobile app can talk to the camera/webcam... let me know if this is correct.
Thanks.
|
|
|
|
|
It isn't that easy. Manufacturers normally won't share their driver code. And you can't write drivers in .Net. It has to be done in native code (C++). And you won't find much information on writing drivers for Windows Mobile since that is something usually done by the OEM.
|
|
|
|
|
I can not find any APIs to shutdown the ppc (windows moible 6). How can I do ?
|
|
|
|
|
When trying to make register for a dll file in windows ce using regsvrCE as follows:
regsvrce "Application\mArabicCore.dll"
it raise error message " Loadlibrary ("Application\mArabicCore.dll") failed GetLastError returns c1 "
I need to know what this message means?
i made search for how to register dll file on Windows CE and i found another two ways but i can't understand them:
1 - Use a cab file (you need to place a CESelfRegister line in the inf file).
2 - Write an additional setup dll that calls DllRegisterServer on your dll.
Can any one help me?
Thanks in advance
Regards,
Ahmed Ibrahim
|
|
|
|
|
2) see here for writing a setup dll: Manual uninstaller for PocketPC[^].
Inside the Install_Exit function add some code to load the dll, get the proc address of the DllRegisterServer in the dll and call it.
|
|
|
|
|
Hi
How to connect to Webservice through Windows-mobile using Param ? (ini or txt file)
How to Debug Webservice through Windows mobile ?
How to get real battery status ?
thank's
|
|
|
|
|
Hi,
Can any 1 tell me how to create Excel document in compact framework, i tried using Interop.excel dll but it gives exception....Thanks in advance
|
|
|
|
|
Hi All,
I am using a own written function in 'C' to find the square root of a given number (as the hard ware does not allow me to use standard func in math.h also no floating numbers allowed)
The function returns the square root using repitative division,
the problem is if the number (input) is more than 10000, it consumes a considerable amount of processor time
Is there any algorithms or methods where the repitative division is avoided??
|
|
|
|
|
Check this out, I even think they have some sample code to look at. It is using binary to solve it.
Wiki Page
|
|
|
|
|
Thanks for the link..
Its really helped.
|
|
|
|
|
i need to be able to capture mouseclicks on my device, which runs on Windows CE6, and store them somewhere to send them to my desktop application.
I've been looking around, on normal windows you would use SetWindowsHookEx and other functions alike from the user32.dll, but on WinCE these functions are not included in the coredll.dll.
Does anyone know a way of doing this?
thanks in advance!
|
|
|
|
|
hi
I have some C# and Windows mobile question:
1. How to get ID & Serial from Windows mobile ?
2. I have 4 Form's in my program, from 1 form I go to
2 form ..... and 4 form. How I can go back to 1 form ?
3. if I send data from 5 terminal's to WebService, and I need
to get answer, Is Webservice know to send back to the
terminal that send him ?
thank's for any help
|
|
|
|
|
Hi all,
I m creating a MFC type dialog based application to communicate with windows based mobile.
i want to import all type of Text Messages those are stored in mobile phone at diffrent location like Inbox,Draft,OutBox or Sent Item.
and display in my application in list.
Please tell me how can i import these messages .
please help me for this.
if possible please explain me with example or sample code.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hoe to get the IMEI number of pocket PC windows Mobile 6.1 Phone Edition using VB .Net
|
|
|
|
|
Hi Nirmitk26,
Please refer this link Get IMEI Number[^]
Hope this may be help.
Pavan Pareta
|
|
|
|