I have a couple of questions, half C# related, the other half, less C# related, but more related to embedding URL in C#, thank you for your attention.
I'm writing a console app (in C#) that is supposed to pop up the default mail software, fill in the recipients, subject and body.
this data is acquired from a txt file the app processed.
To do that I start a process (IEXPLORE)
and give it the @"mailto:...", A regex I created from the processed data.
problem is, the body of the text does not take \n seriously and well, basically I have one long line where five should be.
one of my questions is, how do I get a URL to produce a line break?
A second issue is that the app is also supposed to attach the attachments, whose full local path has been processed from the latter mentioned txt file.
i used the &attachments="c:\..." and well, no attachments..
Now for the more C# related part...
the app has two bi-products :
It opens a console windows which needs to be manually closed
IT opens an explorer window that needs to be manually closed
I am a novice programmer and still do not know much about threads.. I understand that I will have to use them somehow, could someone point me in the right direction?
You don't. A URL is a continuous sequence of characters, and should remain so - plus, if you could break the line, where would you break it? Just because it fills a line of text on your monitor doesn't mean that it won't wrap when viewed on a tiny screen smartphone.
Now, as for threading, a simple way to spawn off your work is to use the Tasks Parallel Library (TPL). This[^] is a great place to get started.
I was brought up to respect my elders. I don't respect many people nowadays.
My first thought is, that Color has a value 0 that is different from null. The next thought is, if Color is a reference type, == compares the references (as opposed to the content). You may have to call .Equals()
You could leave out the last condition for a test and check the Color value of the returned entity.
I create a WCF web service that contains this method in service.svc:
public int positionGPS (_latitude string, string _longitude)
/ / Send the ordinate DB
DAL.GPSEntities bd = new DAL.GPSEntities ();
/ / Table of the database table position
Pos = new TablePosition TablePosition ();
this method will be called back for a pda, gps coordinates
then they saved in the database.
I want to know how to send these coordinates to another application winforms for tracing in real time in maps.
I know there is a method to use the socket, but I do not know how to apply in wcf, wcf then my service will be housed in the IIS server.
and in our case winforms application (the client socket that many) also PDAs.
and thank you in advance.
The drivers for UARTS SOMETIMES tell the truth, and SOMETIMES tell lies.
A bluetooth adapter plugged into a USB port will tell the system that the max speed is 115200
If you set the baud rate to 1200 (just to make sure, that's "twelve hundred", I didn't leave out a zero) the real speed will still be 921600.
In fact, C# and windows will not allow you to set a rate above 115200. No matter what port speed you set, you will still get data at 921600.
The drivers for this FTDI USB UART produce different observed behavior. Don't understand it, but for whatever reason, I AM able to place the number 921600 as the speed when accessing the wired UART using FTDI's cables, but NOT able to do this with a bluetooth adapter.
All the while, they will both have, evidently, the same speed.
Anyone who does not understand this is just not Hi-Tech