|
Taken from the Internet Message Format RFC (RFC 2822)[^], section 3.6.2. Originator fields.
The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message.
The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field.
If the originator of the message can be indicated by a single mailbox and the author and transmitter are identical, the "Sender:" field SHOULD NOT be used. Otherwise, both fields SHOULD appear.
In all cases, the "From:" field SHOULD NOT contain any mailbox that does not belong to the author(s) of the message.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
This is not as easy a question to answer as you might think. Identical IL code produced from the different compilers will run in exactly the same way, so there is no performance hit. However, you don't have to produce IL code out of VC++.NET. With this, you can produce native code which, if properly implemented and optimized, should run faster than the IL equivalent.
Similarly, you have to question whether the different compilers will actually produce identical IL code. In most cases this is true, but there is the possibility that one compiler will produce slightly different code because of the priorities and design decisions of the appropriate compiler team.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Don't you just hate when, you go through all the trouble of posting an nice answer like this, the OP goes back and rudely deletes their question??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: Don't you just hate when, you go through all the trouble of posting an nice answer like this, the OP goes back and rudely deletes their question??
I do indeed. That's why I'm going to leave my post, so yours won't be left hanging around.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'm glad you did. It helped explain why my answer to this post[^] was intermixed with your posts.
It does tend to make things a little confusing.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hello,
I have a class, let's say, Document and a class which inherits from Document: DocumentLinked
DocumentLinked adds an extra property, linkedId
Now I'm searching through a list of documents, and I want to select some of them, and create DocumentLinked-objects out of them. But conversion fails.
I tried Ctype overloading, which, according to the compiler, I cannot do because I would convert from a base-class.
I quite bummed here.
Some code:
Public Class DocumentLinked
Inherits Document
Private _linkedId As Integer
Public Property LinkedId() As Integer
Get
Return _linkedId
End Get
Set(ByVal value As Integer)
_linkedId = value
End Set
End Property
End Class
'...
' selectedDocument is instance of Document
' linkedDocument is List( Of DocumentLinked)
doc.LinkedDocuments.Add(CType(selectedDocument, DocumentLinked))
|
|
|
|
|
bertburtbort wrote: Now I'm searching through a list of documents, and I want to select some of them, and create DocumentLinked-objects out of them. But conversion fails.
The objects are Document s, they are not DocumentLinked objects. You cannot convert cast a reference from a Document to a DocumentLinked unless the actual object being referenced is already a DocumentLinked object already.
If you want to convert the document then you are going to have to create a new object of the correct type and copy the relevant stuff in.
-- modified at 5:51 Thursday 22nd February, 2007
|
|
|
|
|
So there is no way to convert downward in the inheritance-chain?
Now I think of it, it makes sence
|
|
|
|
|
bertburtbort wrote: So there is no way to convert downward in the inheritance-chain?
That depends on what you think is down. To me down means towards object because that's at the base of everything.
Also, be careful with terms like convert and cast. You cannot cast to a derived class unless the object is at least as derived as the class you are casting to. You can convert to anything if you write the code for it.
|
|
|
|
|
I have to use reporting tool which is available in 2.0 in my application which is in dot net 1.1, if i will use this 2.0 reporting tool then will it have any kind of impact on the application or anything, please reply soon.
|
|
|
|
|
If the reporting tool is to be used as part of your .NET 1.1 project (i.e. added via a reference), you are in for a nasty surprise. You can't link .NET 2 into .NET 1.1.
If it's a separate application, then there isn't a problem running the two runtimes.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
hi!
i have created a small .net project .now i wish to run it on all os without worrying about the .net framework existance on the client machine.
please help me out with this.
|
|
|
|
|
Any .NET application will require the framework to be installed to run.
|
|
|
|
|
There are several commerce tools, which wrapps managed assemblies with required run-time and makes "classic" PE file.
I had tried Thinstall tool with small winforms application. All functionality was good.
Disadvatnage is the price of tool :/.
Geniality is in simplicity.
|
|
|
|
|
I think your only option here is to write a web application. Then your users can use what ever browser they want and they won't need the .net framework installed.
Hope that helps.
Ben
|
|
|
|
|
Don't know what your current solution should be but, in the future a Plan would help
led mike
|
|
|
|
|
I can't believe how many people ask this. If the .NET framework was not needed, why would we install it at all ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Because we install Mono instead?
|
|
|
|
|
|
How to create text file & update the same with events in code behind?
if anybody worked on this plz send me soon
Harish
|
|
|
|
|
i've worked on creating an execution trace log. If this is what your are looking for, then may help you.
(this is in vb.net)
-------------------------------------------
Imports System.Configuration
Imports System.IO
Module LogWriter
Dim LogWriter As TextWriter
Dim LogPathFile As String = ConfigurationSettings.AppSettings("logPath") & "ExecutionTrace.log"
Public Sub WriteLog(ByVal strLogTxt As String)
Static ExecFirstTime As Boolean = True
If File.Exists(LogPathFile) Then
LogWriter = File.AppendText(LogPathFile)
Else
LogWriter = File.CreateText(LogPathFile)
End If
strLogTxt = Now.ToLongTimeString & " " & strLogTxt
LogWriter.WriteLine(strLogTxt)
LogWriter.Close()
End Sub
-----------------------------------------------
|
|
|
|
|
Hi,
I´m trying to load an assembly at runtime with:
ObjectHandle plugin = System.Activator.CreateInstanceFrom(@"C:\PathToDll\MyDll.dll", "PluginClass");
But this returns a strange error:
Exception has been thrown by the target of an invocation.
"The targetNamespace parameter 'MyDll' should be the same value as the targetNamespace 'urn:MyDll' of the schema."
ok, where does a schema come into the picture?
All help would be appreciated.
|
|
|
|
|
I think that would imply that you need to specify the namespace in the class type field and it should match the DLL name, so try:
ObjectHandle plugin = System.Activator.CreateInstanceFrom(@"C:\PathToDll\MyDll.dll", "MyDll.PluginClass");<br />
Hope that helps!
|
|
|
|
|
|
Currently, my server DLL just runs locally without remoting logic, and when I want to read and save a UserAccount class I just pass the class back and forth as is. I use binary serialization to save and read the UserAccount class. I want to do 2 things now.
1) Make the server DLL run remotely as a client activated object.
2) Encrypt the UserAccount and other data passed to the server (like the password).
I would like to know what a best practice would be for #2. I am thinking that I would serialize the UserAccount to a memory stream and then encrypt that data before sending it to/from the server. The receiving side would un-encrypt it and deserialize it back into a UserAccount object.
Currently, my application is a Windows Forms one, but I will eventually learn ASP .NET and make it into a web app. So, I would like to come up with a solution now that would also work with a web app, if possible. I am doing all of this to learn C# and .NET. I don't know SQL or ADO yet, and am wondering if my suggested solution is a good one, or if a real programmer .NET pro would do it differently.
Thanks!
|
|
|
|