IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.42 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-08-08
[18:06]<vyzusdjvnev>i look gay >.<
[18:06]<awjzdd>vampirefreaks.com ?
[18:07]<vyzusdjvnev>yeah
[18:07]<vyzusdjvnev>goth site and shit
[18:07]<awjzdd>hmm
[18:07]<awjzdd>well now that i'm completely weirded out for the day, time for lunch!
[18:08]<awjzdd>brb.
[18:08]<fyzxvxzddnz>o_O
[18:09]<mjzymygo>nothing wrong with vampirefreaks.com
[18:09]<fyzxvxzddnz>wtf
[18:10]<vyzusdjvnev>lighthammer, ?
[18:10]<fyzxvxzddnz>im a member to !@
[18:10]<fyzxvxzddnz>ehmmm
[18:10]<gjrvcxnne>sooooo anyone know about checking if a drive is local or not?
[18:11]<fyzxvxzddnz>lol
[18:12]<d00g>GoatCheez: If it's local it has DriveType = 3 as I rember
[18:13]<gjrvcxnne>anything for .net 1.1?
[18:14]<d00g>How are accessing the drives ?
[18:14]<d00g>are you*
[18:14]<gjrvcxnne>System.IO.Directory.GetLogicalDrives()
[18:14]<fyzxvxzddnz>later ladies
[18:15]<cjmgrug>How is the Observer Design Pattern commonly implemented in C# ? i mean are we on our own, or does the FCL have something to assist for this?
[18:15]<azyfm>delegates and events help
[18:15]<cjmgrug>i was suspecting that. thanks Arild :)
[18:16]<azyfm>In Java you'd have to define a bunch of callback interfaces and stuff
[18:16]<cjmgrug>Arild, i think Java has some API for Observer and Subject management
[18:16]<azyfm>Yeah, there are some interfaces
[18:17]<cjmgrug>java.util.observable etc
[18:18]<d00g>GoatCheez: Take a look at the DriveInfo class @ http://msdn2.microsoft.com/en-us/library/system.io.driveinfo.aspx
[18:19]<gjrvcxnne>m00n: i can't use 2.0
[18:19]<zyccus>use WMI then
[18:20]<gjrvcxnne>where was that namespace again?
[18:20]<gjrvcxnne>system.diagnostics...?
[18:20]<d00g>doh!
[18:22]<d00g>You might get it through the Attributes of the DirectoryInfo class, otherwise you could use System.Management take a look @ http://www.csharphelp.com/archives2/archive334.html
[18:23]<gjrvcxnne>System.Management looks like it might be necessary
[18:23]<rwyfcygs>Heh : "People are bastard coated bastards with bastard filling."
[18:24]<d00g>lol
[18:27]<mracn>awilkins: Scrubs? =)
[18:27]<jnpys>is there some easy-to-use c# library to capture images from webcam?
[18:31]<al->there's a project on the codeproject website that uses twain to capture images from scanners and webcams
[18:34]<jnpys>jp- it's easy to use?
[18:34]<jnpys>and it's using DShowNet ?
[18:40]<rwyfcygs>Oh hooray, 1637
[18:40]<rwyfcygs>Only another 23 tiddly minutes left in the day
[18:41]<zrrry>g'day all
[18:42]<zrrry>i've been searching through msdn trying to find how i can set teh dll load path for an application, but i've not managed to find it, can anyone advise?
[18:43]<azyfm>raggi: there's no such thing in .NET, really
[18:43]<zrrry>hmm
[18:43]<cxrfnm>raggi, using csc to compile ?
[18:43]<cxrfnm>or an IDE ?
[18:44]<azyfm>you can add a PrivateBinPath to the app.config, but the directories you specify must all be under the directory of the exe
[18:44]<nnzjpfrr>you can hook the resolve assembly event.
[18:44]<nnzjpfrr>don't remember where it was though...
[18:44]<zrrry>hmm
[18:44]<zrrry>zeroflag: looking for a bit cleaner than that
[18:44]<zrrry>IDE
[18:44]<zrrry>vs 2005
[18:44]<zrrry>Arild: ah, that might be what i'm after
[18:44]<cxrfnm>raggi, so you meant, Assembly.Load() , rite?
[18:44]<zrrry>yep
[18:44]<zrrry>well, partly
[18:45]<zrrry>i'll hahave a tree kinda like this: /App.exe /modules/*.dll /libs/*.dll
[18:45]<zrrry>modules i'll load by hand by interface
[18:45]<azyfm>fusion probes first in the GAC (if it's a reference to a strongly named assembly), then in the exe dir, then in the PrivateBinPath
[18:45]<nnzjpfrr>raggi: That's as clean as you will get as it's the way it's intended by microsoft.
[18:45]<zrrry>but the libs i want to be loadable from /libs/*.dll for access by the modules, without specific calls every time
[18:46]<azyfm>PrivateBinPath should work for you, then
[18:46]<zrrry>i.e. the libs -> module bindings i want to just work, with no need for Assembly.Load() or type/interface casting
[18:46]<zrrry>Arild: yes, thx.
[18:47]<zrrry>Arild: does that then require that app.config be distributed with the App or is that a compile time directive?
[18:47]<azyfm>app.config is distributed with the app, yes
[18:47]<azyfm>as exename.config
[18:48]<azyfm>in VS, it's Add->New File->Application Configuration File
[18:48]<zrrry>interesting, is that the same as the 'application settings' system?
[18:48]<azyfm>VS will take care of copying it into the bin directory for you and renaming it to the correct name
[18:48]<azyfm>no
[18:49]<zrrry>can i access it in a similar way, or is it CLR specific?
[18:49]<azyfm>rephrase?
[18:49]<zrrry>is there an API to access app.config in a similar way to teh application settings API?
[18:50]<azyfm>yeah
[18:50]<zrrry>wickid :)
[18:50]<azyfm>but it is generally considered read-only at runtime
[18:50]<azyfm>no API to write to it
[18:50]<zrrry>i have to say, i'm enjoying writing this project in c#
[18:52]<zrrry>most of the GUI has been completed in under a week :D
[18:52]<azyfm>raggi: The app settings framework will actually use settings stored in the app.config if their scope is set as "Application"
[18:53]<azyfm>if the setting isn't in the app.config, it will fall back to the hardcoded values in the code
[18:53]<zrrry>scope? you don't mean variable scope?
[18:53]<azyfm>no, look at the grid where you can edit settings for an app, there's a column for Scope
[18:54]<zrrry>oh, sorry i see it... i don't think i needed to make a second file :)
[18:54]<azyfm>vs will automatically add the app.config file for you if you make an application-scoped setting
[18:55]<zrrry>i can store data in there at runtime i think, straight from gui component properties
[18:55]<azyfm>only for user-scoped settings
[18:56]<azyfm>app-scoped settings are read-only
[18:56]<zrrry>excellent
[18:57]<zrrry>but this is of course just an XML file, so easy for an end-user to edit
[18:57]<azyfm>yeah, but it's in the install directory, usually under %PROGRAMFILES%
[18:57]<azyfm>a user might not have privileges to write there
[18:58]<azyfm>(ignoring the fact that everyone runs as admin anyway...)







