|
Hi Mustafa!
I've only a little build experience and not a lot in more unusual setups (such as the need to build certain projects), so apologies if I've misunderstood your question.
Rather than unloading unneeded projects, is setting them not to build under the particular configuration an option? You can build all the projects once per config, then disable the ones you aren't going to work on and use the one. This will utlimately speed up your build times for the configs, but you'll have to take the hit of the initial full build.
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
Cheers mate!
keefb wrote: Rather than unloading unneeded projects, is setting them not to build under the particular configuration an option?
It depends on the size of your projects mate, some of mine are massive (on par with my body weight actually!)
keefb wrote: You can build all the projects once per config, then disable the ones you aren't going to work on and use the one. This will utlimately speed up your build times for the configs, but you'll have to take the hit of the initial full build.
Another thing that I've done is that I've altered the output path of all the built binaries to a generic "bin" folder. This way, I don't 19 copies of a particular dll, with the only difference being the build configuration (binary wise, they'd be identical).
If the post was helpful, please vote, eh!
Current activities:
Book: Devils by Fyodor Dostoyevsky
Project: Hospital Automation, final stage
Learning: Image analysis, LINQ
Now and forever, defiant to the end.
What is Multiple Sclerosis[ ^]?
|
|
|
|
|
Hi all,
I have developed a VSTO add-in for MS Outlook 2007, which works perfectly within the 2007 version of Outlook, but the problem is that when I try and run it within the 2003 version of Outlook, it doesn't seem to work. Does anyone perhaps know of a site that can offer me with a solotion or perhaps know how I can overcome this issue?
Many thanks in advance.
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Programm3r wrote: when I try and run it within the 2003 version of Outlook, it doesn't seem to work.
This is not very descriptive. What exactly happens with the 2003 version?
I would suggest you take a look on the MSDN site for further information about using the Outlook interfaces.
|
|
|
|
|
|
|
Microsoft don't support Form Regions against Outlook 2003
For more info see here[^] and here[^]
Kind regards,
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
To solve issue buy and install the following Add-in-express[^]
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi,
Is there any framework or concepts in .Net to implement Feedback Mechanism from server end.
Let's say i'm running WCF services and client is registered with that, i want to send some feedback to clients if any changes happens on Server?
Or any patterns ?
|
|
|
|
|
|
I am trying to convert some powershell code that fetches info from a systems registry. The powershell code is capable of accessing true 64bit registry info when executed from a 32bit workstation. The similar code in C# when executed in the same fashion fails to work as the C# code gets redirected to the wow6432node of the 64bit registry.
Can someone explain why powershell (which I believe uses the same libraries that C# uses) does not get reflected/redirected to the wow6432node of the 64bit registry and why the C# code does?
Second I have done some reading is there a simple way to get C# to do the same thing as the powershell script? (e.g. no use of some C++ dll file or something that I read about).
As I am still green with C# any assistance would be greatly appreciated.
|
|
|
|
|
Hi,
In order to create a dashboard application, I need to read an HTML site's source code.
This contains the values (integers) which I want to process.
I don't have access to the SQL-database, so this is the only way I can achieve my goal, and deliver the application.
The site uses a Username & Password as security, and I am able to access the login page.
However, when passing the credentials, I'm not able to read the source code (it seems like the credentials aren't valid).
However, when using the same credentials directly in Internet Explorer, I'm able to access the webpage.
This is the code I have so far.
Any of you experts see what I'm doing wrong?
PS: I've changed the site-url, username & password, since it's a confidential site of my company.
public static string GetHtmlPageSource(string url, string username, string password)
{
System.IO.Stream st = null;
System.IO.StreamReader sr = null;
try
{
System.Net.WebRequest req = System.Net.WebRequest.Create(url);
if (username != null && password != null)
req.Credentials = new System.Net.NetworkCredential(username, password);
System.Net.WebResponse resp = req.GetResponse();
st = resp.GetResponseStream();
sr = new System.IO.StreamReader(st);
return sr.ReadToEnd();
}
catch (Exception ex)
{
return string.Empty;
}
finally
{
sr.Close();
st.Close();
}
}
private void DataRefresh_Tick(object sender, EventArgs e)
{
this.DataRefresh.Interval = 15000;
string FL, SL, UnFL, UnSL, ValueFL, ValueSL, ValueUnFL, ValueUnSL;
this.TopDesk.Refresh();
string page;
page = GetHtmlPageSource("https://site", "user", "pass");
ValueFL = null;
ValueSL = null;
ValueUnFL = null;
ValueUnSL = null;
FL = null;
SL = null;
UnFL = null;
UnSL = null;
try
{
FL = page.Substring(5510, 7);
SL = page.Substring(6361, 7);
UnFL = page.Substring(5721, 7);
UnSL = page.Substring(6572, 7);
}
catch
{
DialogResult buttonResult = MessageBox.Show("Website not accessible. Please check the network connection, and check your login credentials on the TopDesk-website.", "Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
if (buttonResult == DialogResult.OK)
{
this.Close();
}
}
for (int X = 0; X < 8; X++)
{
int valueA = int.Parse(FL.Substring(X, 1));
ValueFL = ValueFL + FL.Substring(X, 1);
int valueB = int.Parse(SL.Substring(X, 1));
ValueSL = ValueSL + SL.Substring(X, 1);
int valueC = int.Parse(UnSL.Substring(X, 1));
ValueUnSL = ValueUnSL + UnSL.Substring(X, 1);
int valueD = int.Parse(UnFL.Substring(X, 1));
ValueUnFL = ValueUnFL + UnFL.Substring(X, 1);
try
{
}
catch
{
Debug.WriteLine("ValueFL: " + FL.Substring(X, 1) + " is not a valid Integer.");
}
try
{
}
catch
{
Debug.WriteLine("ValueSL: " + SL.Substring(X, 1) + " is not a valid Integer.");
}
try
{
}
catch
{
Debug.WriteLine("ValueUnSL: " + UnSL.Substring(X, 1) + " is not a valid Integer.");
}
try
{
}
catch
{
Debug.WriteLine("ValueUnFL: " + UnFL.Substring(X, 1) + " is not a valid Integer.");
}
}
int TotalCalls;
TotalCalls = Convert.ToInt32(ValueFL) + Convert.ToInt32(ValueSL);
this.aGaugeSL.Value = Convert.ToInt32(ValueSL);
this.aGaugeFL.Value = Convert.ToInt32(ValueFL);
this.txtBoxFLOpen.Text = ValueFL;
this.txtBoxSLOpen.Text = ValueSL;
this.lblOpenCallsFLNbr.Text = ValueFL;
this.lblOpenCallsSLNbr.Text = ValueSL;
this.lblUnassignedCallsFLNbr.Text = ValueUnFL;
this.lblUnassignedCallsSLNbr.Text = ValueUnSL;
this.lblTotalCallsFL_SL.Text = "Total Number of Open Calls (FL + SL): " + Convert.ToString(TotalCalls);
aGaugeFL.Refresh();
aGaugeSL.Refresh();
txtBoxFLOpen.Refresh();
txtBoxSLOpen.Refresh();
lblTotalCallsFL_SL.Refresh();
lblUnassignedCallsFLNbr.Refresh();
lblUnassignedCallsSLNbr.Refresh();
lblOpenCallsFLNbr.Refresh();
lblOpenCallsSLNbr.Refresh();
pictureBoxStatusFL.Refresh();
pictureBoxStatusSL.Refresh();
}
}
modified on Monday, October 5, 2009 8:32 AM
|
|
|
|
|
Nobody? :-S
This is what I found out:
- The "page" variable gets a value, but when viewing this value using the built-in HTML viewer, I get the login-page.
- At the bottom of this page, a message is displayed saying "Your browser is not supported".
Could this cause the problem?
If so, is there an alternative to make this work?
Thanks in advance.
|
|
|
|
|
Hi friends,
I need to declere some optional parameter to the function.
Is it any possible to fix the problem.
Thanks & Regards,
MAHESH
|
|
|
|
|
what do you mean with "optional parameter" ?
|
|
|
|
|
Assuming you are talking about C#, optional parameter may mean 2 things:
1. You have method overloads, where certain parameters are defaulted:
public void DoThis(string name)
{
DoThis(name, true);
}
public void DoThis(string name, bool someTest)
{
} 2. You are talking about a feature that's being introduced in C#4.0, so you can have a signature that looks like this:
public void DrawMyLine(int x1, int y1, int x2, int y2, Color color = new Color())
{
}
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Optional Parameters in sense Default parameter
like in VB
public myfunction(byval s as string,optional byval arr string(,))as string
in C#:
public string myfunction(string QryName,
[Optional, DefaultParameterValue({"",""})] string[,] Qry)
{
....
}
I tried to use this code but it shoming error.Here i'll make this Qry as a OPtional one
Thanks in advance
|
|
|
|
|
This feature will be available only in .NET 4.0. Are you using Visual Studio 2010 Beta?
What error are you getting.
|
|
|
|
|
The Error is
The type of the argument to the DefaultValue attribute must match the parameter type
Thanks
|
|
|
|
|
I don't know much WS2010, yet, but {"", ""} is not a string[,] , it's a string[] .
Try using something like { { "" } } instead.
|
|
|
|
|
C# would not support that but VB.NET has support for that. Your best bet would be to go in for overloads.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Current versions of C# do not support optional parameters. This functionality will not be released until Visual Studio 2010 and .NET 4.0 comes out.
|
|
|
|
|
How can we find if an excel workbook has other data in it except text?
Because i am trying to write data in excel having picture objects or macros the excel sends its own error messages and crashes
Kindly help if there is a way.
|
|
|
|
|
Please read the forum posting guidelines here[^], particularly item 3.
Hi, is not a good choice for the subject of your message.
"Problem writing images to Excel", or something similar is far better. Many people will simply ignore posts with a subject like yours, therefore cutting down on the chances of your getting a useful response.
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.”
|
|
|
|
|
Henry Minute wrote: Many people will simply ignore posts with a subject like yours
while others jump at the occasion.
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|