Visual Studio
|
|
 |

|
i want to make a schedule for distributing employees over a month ,using genetic algorithm & C#
can anyone tell me plz how to proceed ?
|
|
|
|

|
You've been told, repeatedly, do NOT spam the forms with multiple copies of your question. pick a single forum, like C#, and stick to it.
|
|
|
|

|
I've been trying to write an addin in Visual Studio 2005 and am having endless problems - hopefully someone can tell me I'm not alone.
It's a very basic addin and I'm using the builtin template as a starting point.
Problems include:
- breakpoints not being hit
- addin not loading for some reason, but then loads again later, and then stop again...
- previous addin attempts still load even though I think I've deleted them out of the addin folder
I'm on the verge of giving up. All help on the internet on this point is not very helpful...
Oh, and don't even get me started on the horrific object model you need to work with...
S
|
|
|
|

|
Hi Simon
A major source of confusion is the flags that are passed to your "connect" class. IIRC the addin template sets the OnConnection handler up to handle ext_ConnectMode.ext_cm_UISetup. This is only called once in the entire lifetime of your addin.
Also you will find things like your menu items being dropped without warning, it can be quite a mess. One solution is to handle both ext_cm_Startup and ext_cm_AfterStartup and recreate your menu items at that stage - its probably acceptable if you only have a few items.
You need to make sure you *dont* have your "... - For Testing" addin set to load on startup, as it will be loaded by your "development" visual studio instance, and it will break the build process.
Also, get familiar with running:
devenv /resetaddin Complete.Name.Of.Your.Connect.Class
for use when things really get pear-shaped.
Regarding the horrible object model - remember that you will need to handle "ArgumentOutOfRangeException" when accessing an indexed collection as they won't return null (technical reason is the COM interop marshalling an E_ code back becomes an exception back in managed land).
Hrmmm. Theres lots of caveats actually, maybe I'll write an article when I get around to it - you are right that theres not much info out there. We had a lot of "fun" developing the Diamond Binding addin
Hope that helps,
|
|
|
|

|
Mark Churchill wrote: maybe I'll write an article when I get around to it
Go ahead mate, I'll read it for sure.!
Thanks for the input.
|
|
|
|

|
plz can someone help me to get a FREE version of infragistics NetAdbantage for .Net from onother source of "www.infragistics.com" ?
|
|
|
|
|

|
There are other products such as mapdotnet but it sounds like your problem is not with the application, but with the data. Do you have the data you need for your area?
Meg
|
|
|
|

|
plz how can i read a string from a txt file then insert it in a database table using C# in visualstudio2005 ?
|
|
|
|

|
using (System.Data.SqlClient.SqlConnection connection = new System.Data.SqlClient.SqlConnection("Here goes your connection string")) {
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand("Here goes your query string");
connection.Open();
System.Data.SqlClient.SqlDataReader dbReader = cmd.ExecuteReader();
DataSet ds = new DataSet();
ds.Load(dbReader, LoadOption.OverwriteChanges, "Your table name");
dbReader.Close();
System.IO.StreamReader txtReader = System.IO.File.OpenText("Path of TXT file");
string someDataForColumn1 = txtReader.ReadLine();
DataRow newRow = ds.Tables[0].DefaultView.AddNew().Row;
newRow["Column1"] = someDataForColumn1;
ds.AcceptChanges();
}
I cannot test it now, so if any error appears please try to experiment a bit.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin