Click here to Skip to main content
       

Visual Studio

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
QuestionGenetic Algorithmmemberstarist26 Aug '07 - 5:08 
i want to make a schedule for distributing employees over a month ,using genetic algorithm & C#
can anyone tell me plz how to proceed ?
AnswerRe: Genetic AlgorithmmvpDave Kreskowiak26 Aug '07 - 9:17 
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.

 
A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


QuestionAddin development - don't think it's possible...memberSimonS25 Aug '07 - 6:08 
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
 
Cheers,
Simon
 

> company:: Broken Keyboards Software
> blog:: brokenkeyboards
 
> skype :: SimonMStewart
> CV :: PDF

AnswerRe: Addin development - don't think it's possible...memberMark Churchill28 Aug '07 - 4:34 
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 Wink | ;)
 
Hope that helps,
 
Mark Churchill
Director
Dunn & Churchill

GeneralRe: Addin development - don't think it's possible...memberSimonS28 Aug '07 - 4:52 
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.
 
Cheers,
Simon
 

> company:: Broken Keyboards Software
> blog:: brokenkeyboards
 
> skype :: SimonMStewart
> CV :: PDF

Questiongetting infragisticsmemberstarist24 Aug '07 - 9:26 
plz can someone help me to get a FREE version of infragistics NetAdbantage for .Net from onother source of "www.infragistics.com" ?


Questionmapping with VS2005membermmm!@#24 Aug '07 - 1:48 
hi there,
 
im trying to build an interactive map using VS2005(asp.net).
does anyone out there knows how i can put my own design(map)
in my application.
 
i know the existanceHmmm | :| of google map, virtual earth, yahoo maps, etc...
 
well, the reason i want to put my own map is mainly because those
map provider i mention above doesnt yet support my area. i cant zoom in
close enough.Sigh | :sigh:
 
what i'm trying to do is to allow the user to be able to zoom, finding path, etc...
 
any suggest solution....???Confused | :confused:
AnswerRe: mapping with VS2005memberMeg W30 Aug '07 - 2:34 
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
Questionreading a string from a txt file & insert it in a database table?memberstarist22 Aug '07 - 11:27 
plz how can i read a string from a txt file then insert it in a database table using C# in visualstudio2005 ?
AnswerRe: reading a string from a txt file & insert it in a database table?membergajatko26 Aug '07 - 9:50 
using (System.Data.SqlClient.SqlConnection connection = new System.Data.SqlClient.SqlConnection("Here goes your connection string")) {
 
	// First get DataSet
	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();
 
	// Now read txt
	System.IO.StreamReader txtReader = System.IO.File.OpenText("Path of TXT file");
	// Here read data from TXT file, e.g.:
	string someDataForColumn1 = txtReader.ReadLine();
 
	// Edit DataSet
	DataRow newRow = ds.Tables[0].DefaultView.AddNew().Row;
	newRow["Column1"] = someDataForColumn1;
 
	// Save DB
	ds.AcceptChanges();
	// Close connection (end of "using" block")
}
 
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 General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid