|
Hi,
What's really the difference between an EXE and a dll?
Please let me know the answer!
Thank you!
Deepa!
Be the Change you want to see!
|
|
|
|
|
Hi,
Basically an EXE is an out process server application and DLL is an in process server application. now out process server means an application which does not need help of other application to execute. That means you can directly run an exe but you will nedd an exe to run a dll. These dll's are loaded inside some worker process and thats why they are called in process servers.
Also you can call dll's as components and exe's as applications.
Anant Y. Kulkarni
|
|
|
|
|
Hi Anant,
Thank you very much!It was really helpful!
Deepa!
Be the Change you want to see!
|
|
|
|
|
Deepasubramanian wrote: Please let me know the answer!
That secret is exposed here[^]
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
fullname of .exe is Extensible Execute File
fullname of .dll is Dynamic Link Liberary
.exe use by End User like-Client
.Dll can not use by End User.
We can Run the .exe
but we can not Run the .Dll
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
How to add a row into data grid in WINDOW FORM Application
|
|
|
|
|
If you have only table in that grid, it is easy, use this:
DataTable dataTable = this.dataGrid1.DataSource as DataTable;
if(dataTable != null)
{
DataRow dataRow = dataTable.NewRow();
dataTable.Rows.Add(dataRow);
}
this.dataGrid1.DataSource = dataTable;
|
|
|
|
|
Hi,
I apologize if this is not the correct forum to post my question. However, I'm using C# to find a solution to this problem.
Here it goes.. The following informations are known: PointA(3,4) and Radius=0.5.
If we plot a circle given the above mentioned information, how can I check whether PointB(3.7,2.4) is within the area of the circle?
Please help..
tia,
lupin
|
|
|
|
|
just check if the distance from your point B to your point A is smaller than or equal to the Radius.
distance between 2 points can be calculated with formula:
pt1 = (x1,y1) pt2 = (x2,y2)
D = sqrt( pow((x2-x1),2) + pow((y2-y1),2) )
It`s been over 10 years since I used these formulas, but I`m quite sure that this is the correct one...
|
|
|
|
|
|
Thanks guys! I'll check it out..
Cheers!
|
|
|
|
|
Hi all,
my problem is that i am sending mail to perticular id . now i want to do know the status that mail it is read by user and how many times using c#.
please help me
Thanks & Regards
Nikesh Sahu;);)
nikesh
|
|
|
|
|
Hi,
Do you want a read receipt from the user.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
yes dear. whenever user reads mail i want acknowledgement that user
user read mail.
Thanks & Regards
Nikesh Sahu
nikesh
|
|
|
|
|
Hi Nikesh,
Go through this article, probably this will help you.
http://www.systemnetmail.com/faq/3.3.3.aspx
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi Apurva,
some days back i had also posted a query about sending mails from c#. But that didnt had a great response. and i am not able to device a solution for it till now. Now that this post is also related to emails i would appreciate if you can suggest a solution.
I am using SmtpMail class for sending emails from C# like this -
SmtpServer = <my smtp="" server="" name="">
SmtpMail.Send(frm,to,sub,body)
Here i am setting the server name property with the ip address of my smtp server, which works in outlook. (My outlook is configured for that ip address and works fine). But when the send method is executed it gives an error like cannot create object from CDO sys(something like that). I checked my OS directory for cdosys.dll, and it is present in here. So can you tell what may be the problem?
Is my server name property assignment wrong or something else.
Anant Y. Kulkarni
|
|
|
|
|
Hi Anant,
I read ur problem i think this can be solution of ur problem.
before using this first u have add reference of System .Web .
bcoz ur using windows application which automatically do noy include
this reference.and write this statement on top.
using System.Web.Mail;
if u still face problem then let me know.
MailMessage objMailMessage;
objMailMessage = new MailMessage();
objMailMessage.From = "Sender ID";
objMailMessage.To = "Reciver ID";
objMailMessage.Subject = "You Subject";
objMailMessage.Body = strHTMLBody;
objMailMessage.BodyFormat = MailFormat.Html;
Thanks & Regards
Nikesh Sahu;)
// Send the Mail Message
SmtpMail.Send( objMailMessage );
nikesh
|
|
|
|
|
Hi Apurva,
Thanx apurva for solving my problem.
I have one more question to u.
is System.Net.Mail; namespace new in VS.NET 2.0
Thanks & Regards
Nikesh sahu
nikesh
|
|
|
|
|
Hi Nikesh,
yes this namespace is included in 2.0 version only.
You can get the details in this link.
http://msdn2.microsoft.com/en-us/library/system.net.mail.aspx
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
I want to display some text on a tabpage given that some of the text is linkable. How do I do this?
I tried using both label and linklabel to display them, but the thing is that I don't get any of these label/linklabel text displayed at all except the last linklabel text. What have I done wrong?
int lab_tab_idx = 0;
int linklab_tab_idx = 0;
int y = 0;
foreach (DataRow dr in text.Rows)
{
string text = Convert.ToString(dr[1]);
/* e.g. {hyperlink FANTASTIC PHONICS} is based on national research
which shows that the best outcomes are achieved with
{hyperlink SYSTEMATIC} instruction, using {hyperlink GUIDED
READERS} which are sequential and gently graded. */
string[] newtext = text.Split('{', '}');
int i = 0;
int x = 3;
System.Windows.Forms.Label label = new System.Windows.Forms.Label();
LinkLabel linklabel = new LinkLabel();
while (i < newtext.Length)
{
string tmp = newtext[i];
if (tmp.StartsWith("hyperlink "))
{
tabPage1.Controls.Add(linklabel);
linklabel.AutoSize = true;
linklabel.Location = new System.Drawing.Point(x, y);
linklabel.Name = "linklabel" + linklab_tab_idx;
linklabel.TabIndex = linklab_tab_idx;
linklabel.TabStop = true;
linklabel.Text = tmp.Replace("hyperlink ", "");
x = x + linklabel.Text.Length * 6;
linklab_tab_idx++;
}
else
{
tabPage1.Controls.Add(label);
label.AutoSize = true;
label.Location = new System.Drawing.Point(x, y);
label.Name = "label" + lab_tab_idx;
label.TabIndex = lab_tab_idx;
label.TabStop = true;
label.Text = tmp;
x = x + label.Text.Length * 6;
lab_tab_idx++;
}
i++;
}
y = y + 20;
}
Also, how do I calculate the location of the next label as the text string is dynamic?
Thanks
printscreen12345
|
|
|
|
|
Your calculations seem right but you are reusing the same Label/LinkLabel again and again instead of creating a new one in each iteration:
while (i < newtext.Length)
{
string tmp = newtext[i];
if (tmp.StartsWith("hyperlink "))
{
LinkLabel linklabel = new LinkLabel();
tabPage1.Controls.Add(linklabel);
linklabel.AutoSize = true;
linklabel.Location = new System.Drawing.Point(x, y);
linklabel.Name = "linklabel" + linklab_tab_idx;
linklabel.TabIndex = linklab_tab_idx;
linklabel.TabStop = true;
linklabel.Text = tmp.Replace("hyperlink ", "");
x = x + linklabel.Text.Length * 6;
linklab_tab_idx++;
}
else
{
Label label = new Label();
tabPage1.Controls.Add(label);
label.AutoSize = true;
label.Location = new System.Drawing.Point(x, y);
label.Name = "label" + lab_tab_idx;
label.TabIndex = lab_tab_idx;
label.TabStop = true;
label.Text = tmp;
x = x + label.Text.Length * 6;
lab_tab_idx++;
}
i++;
}
|
|
|
|
|
Thanks for your reply. It works now when I create the label in each iteration.
Some of the labels seem to have overlapped one another and some of them are quite further away from one another. How do I solve this problem?
Is there any other effective way to display text like this? It is quite slow.
Also, why is the text display from bottom up instead of the normal top-to-bottom?
Thanks again.
printscreen12345
|
|
|
|
|
Thats probably because the length og the characters of the gont you are using isn't always the same. Either use a gont where all characters have a fixed length (like Courier New) or make the following changes:
x = x + linklabel.Width;
x = x + label.Width;
As you have set AutoSize to true this will ensure that the next label is set right next to the previous one. It still might be that there is some space in between but definitely no overlapping.
|
|
|
|
|
Great! But the text is displayed from bottom-right back up to top-left. How do I change this display order?
printscreen12345
|
|
|
|
|
I shortly tested the code and it seems to be in the order I would have suspected. How are you getting the values into the text DataTable? Are you sure its in the correct order in there? If you have a DataGrid where this table is bound to and the grid is somehow sorted or columns are rearranged via column styles this might lead to what you are seeing because the DataTable won't be reordered the way the grid is.
So please describe a bit of the surroundings. Maybe then I can help you.
|
|
|
|