|
Well, does this got to do anything with .NET then?!
|
|
|
|
|
I still have to come to grip with appdomains. So could you tell me, under what circumstances would we want to have two appdomains in the same process.
|
|
|
|
|
Hi,
you can dynamically load DLL files into the current or a new app domain, but you can't unload DLL files; you can however unload an app domain. So for add-on software (especially if you don't fully trust it) loading it in another app domain makes a lot of sense.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Here's a real-world example: Unit testing software, such as NUnit, will load your unit test assemblies into a separate AppDomain for safety and security reasons.
Using additional AppDomains is also the only way to unload an assembly from a .NET process. Say you have an app that uses plugins. In the unmanaged world you can just use LoadLibrary and FreeLibrary calls to load and unload a plugin dll. In .NET you would have to load the plugin dll into a separate AppDomain, then get rid of that AppDomain to unload the plugin.
|
|
|
|
|
You can load managed executable in memory and run it. You will have one process but when you exit it, the loaded executable will exit too.
|
|
|
|
|
Thanx Guys Finally I know what appdomain is all about.
|
|
|
|
|
how add cdkey in guic# project deploying iam a student of niit iam studying in first sem please tell me how. thanks
|
|
|
|
|
You are spoiling the name of the largest IT company in Asia by asking such a basic question. However, today I am in a sweet mode since I had Cheese-Chicken Pizza and so here are the three simple steps:
1). Add a TextBox control to your form and also add a Button control.<br />
<br />
2). Now double-click the button control and the Button_Click event handler appears.<br />
<br />
3).Add the code given below to the Button_Click event handler:<br />
<br />
<pre>private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "YourCDkeyHere")
{
}
else
{
}
}
</pre><br />
<br />
<br />
So, here you are my dear fellow student. <br />
<br />
Wish you a very happy programming,<br />
Rajdeep.NET :-D
|
|
|
|
|
I am wondering if somebody can provid me a link to a web where i can do my
drawing, write text beside each drawing and put some arrows and a bubble thought.
I don't want to use visio I do'nt like it
|
|
|
|
|
What has that got to do with anything? use MSPaint... or, in a programming related manner, create your own drawing application... should be easy with your great understanding of programming
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Perhaps, I didn't properly explained my questions. I looking a software or web that provide the brainstorming functionality or kind of concept designing tools.
Ms-paint must be a joke for this purpose.
|
|
|
|
|
|
This is a C# forum.
Does your question have anything to do with C#?
Use google for things like this.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Have problem with getting check box in database checked when a current part of admin is approved or not approved here some code.
protected void ApproveAdvertiser()
{
//Add Code to add/edit/delete events (Possible case statement goes here?)
DataService ds = new DataService(int.Parse(ConfigurationManager.AppSettings["ConnStr"]));
Advertiser adv = new Advertiser();
adv.AdvertiserId = 0;
ind_approved.Checked = adv.Approver;
ds.approveAdvertiser(adv, ValuePassedIn);
Response.Redirect("Advertisers.aspx");
}
protected void BDelete_Click(object sender, EventArgs e)
{
if (RBLFunctions.SelectedValue.Equals("Delete"))
{
DeleteAdvertiser();
Response.Redirect("Advertisers.aspx");
}
else
{
if (RBLDelete.SelectedValue.Equals("Yes"))
{
//ApproveAdvertiser(true);
}
else
{
//ApproveAdvertiser(false);
}
Response.Redirect("Advertisers.aspx");
}
}
|
|
|
|
|
So, you meant to ask this in the ASP.NET forum then ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi
How I can get the Fields Database names of X Table ?
(Query or C# cod..... or both)
(i work with Access)
thank's in advance
|
|
|
|
|
Crossposting is frowned upon here. There are quite some examples on Google[^]. You'll have to wait until another forummember comes along who checks Google for you and posts the code here.
Good luck
I are troll
|
|
|
|
|
I can connect to the default instance of SQL using SQL MGMT Studio by providing the FQDN. The problem is I can not connect to the named instance. The problem is I can not find the syntax for providing FQDN for a named instance.
I am only using Mgmt studio to test because I am writing an app but the connection fails. I tried using IP Address and port number, fqdn and port number but no luck. I also tried by giving the instance name an alias and still no luck. I am using sql authentication.
I can access everything fine if I am on the network but outside the network is where the issues arise.
Any help would be appreciated! Googling did not help, neither did MSDN.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
ConnectionStrings.com[^] has the answer. The Server part of the connection string should be something like:
Server=ServerName\InstanceName
or
Server=IpAddress\InstanceName
|
|
|
|
|
|
arnold_w wrote: What character(s) should my console application send to indicate end-of-stream
There might not be one. I suppose you could try sending 0 thru 255 and see if any work. Or you might follow the advice in the Remarks section of the documentation[^]
|
|
|
|
|
Thanks for your tips.
There doesn't seem to one character that indicates end-of-stream. It didn't work either to call Console.Out.Close() in the console application.
|
|
|
|
|
One thing that should be sufficient is for the console app to exit.
Closing the stream seems reasonable, but maybe a console app doesn't let you do that (except by exiting).
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I think you'll need to make another plan.
|
|
|
|
|
I solved it by writing a null character ( (char)0x00 ) when I am finished writing in the console application and the GUI investigates the received characters on the fly and stops when a null character is found.
Thanks anyway to everybody that replied to this thread.
|
|
|
|