i am planning for the development of a peice of software designed to use a dbms, thing is, i don't want to lock it down to any specific dbms, so the idea was that i would design an interface, and provide some implementations. The idea is that, out of the box, one can easily select a variety a dbms to use, and the option is there for developers to write their own implementations. now, how can i enumerate and allow selecting of interface implementations? there must be a way?
Verdant123
Posts
-
Runtime Selecting Interface Implementation -
deploying .net dll for com accessi figured out that i also needed to run regsvr32 /n xx.dll on it.
-
deploying .net dll for com accessi have a small .net class i wrote that is simply a "com wrapper" to access the fileopendialog. i am using it for an application that have jscript as an embedded scripting engine. on my machine i had to use regasm xxx.dll from the dll directory to get it to work - this is fine however i CANNOT get this to work on any other machine. i have: installed the .net framework on the client machines tried running the .reg file resultant from regasm xxx.dll /regfile on the machines tried running regasm xxx.dll as i did on my machine
-
Catch Windows KeyPress Events?after re-reading the thread i guess i need a system hook... the application need to catch changes to the cap/num/scroll locks from anywhere within windows currently i poll the keyboard state every few seconds... to verify their values
-
Catch Windows KeyPress Events?many thanks i think i will try the IMessageFilter interface method. for now i guess i will leave it polling every few seconds
-
Catch Windows KeyPress Events?is there anyway to get my C# winforms app to handle a keyboard keypress event in windows, whether or not the form is the active window? i want to be able to detect caps lock, num lock and scroll lock presses without out polling the keyboard state
-
Locking Rows During Edit?thanks! i suppose the timestamp thing is the best approach. i cannot have possible simultaneous edits work akwardly, i don't there to be lost data. So i guess i will have something akin to: On Edit screen load: Show current record contents, grab "last edited" On save: check "last edited" and if it matches: apply update, otherwise handle the problem, (probably best would be to show both sets of data)
-
Locking Rows During Edit?i am trying to figure out a solution for locking rows for editing via the web, the problem is i cannot figure out how to unlock the row effectively desired behavior: user 1 searches for and finds 3 records, clicks link to edit record 2 user 2 searches for and finds the same 3 records, goes to edit record 2, but gets "row locked" message, or likewise user 1, finished with editing user 2 can now edit the record problem is i cannot figure out how to track if user 1 finishes, IE closes the browser window... any thoughts on how i could possibly implement this? i will be using ASP.NET and T-SQL
-
Editing Images on the fly...i would like to implement a ihttphandler to handle all image request in a particular folder so i an add a "watermark" to the images, i have it working great for jpegs, pngs and bmps... problem is gifs, especially animated gifs... how can i watermark these on the fly? i cannot seem to open the gifs into a Graphic object, thanks!
-
Slightly off topic... choosing db server softwaredoes anyone have any links or comments on how to choose a database server product? i have fairly large database in mysql on linux (os could cange) currently, but it is being bogged down, on some pretty serious hardware, and i think doing some optimized stored procedures,perhaps a full text index, etc would help... i have used a lot of the various databases, but haven't done much performance analysis... any thoughts? it does a lot of transactions, updates, inserts and selects... but the biggest slowdown is the relatively low percentage of searches.
-
security -
How to gain access to a network share?just use it like a normal file resource
-
Transparent Imagenot too sure, i am a runtime drawing newbie :) first i "Clear" the background with Graphics.Clear(Color.Transparent) then i draw a line and two strings on the graphic using Graphics.DrawString and Graphics.DrawLine i just noticed the quality of the image descreased significantly when saving as a png with transparency, instead of a jpg... i find it particularily odd that the transparent pngs that are generated are not compatible with internet explorer... i thought that the low quality pngs (8bpp) with transparency worked... yet there is not PixelFormat.8bpp that isn't indexed... and you can't draw on indexed bitmaps using Graphics the purpose of this project was just to test out the drawing features and try to make something useful... you can test it out... it takes the string of a request and parses it into values of a "fraction" which it then draws the first part is a hex colour, preceded by the pound indicator... or "p" in this instance. then the font size in pixel format then the numerator and the denominator, with a final terminating comma. Example for best results use a browser that supports transparent pngs if you want to take a look at the code Here (anyone know of a utility for automatically formating in VS.NET style, for the web/html?)
-
Anybody know whether ASP.NET ADO.NET and C# can bethis is true... i am merely reffering to all my customers who will be jumping on the first official 64-bit Windows that will work on x86-64... i hope for my sake, .net is available when the XP and win2k3 x86-64 versions are released!
-
How to get the number of visible forms on screen ?sure it wasn't sure that was your goal :)
-
Anybody know whether ASP.NET ADO.NET and C# can behmm... i never noticed you can't run .net on 64-bit computers... i hope this is fixed soon!
-
Transparent Imageany way i can get my images to look a little nicer, perhaps some anti-aliasing? currently it looks like: (note transparent png doesn't seem to work in IE, firefox only) This
-
Transparent Imageseems to be working with:
System.IO.MemoryStream memStream = new System.IO.MemoryStream();
fImage.Save(memStream,ImageFormat.Png);
ctx.Response.ContentType = "image/png";
ctx.Response.BinaryWrite(memStream.ToArray());thanks for the help!
-
Transparent Imagehmm, i am doing something wrong... i have not used the memorystream before... i am not getting any errors during compile, but the png is not comming out at all (redx in internet explorer and "cannot be displayed" because it contains errors in firebird) can you see what i am doing wrong?
System.IO.MemoryStream memStream = new System.IO.MemoryStream();
fImage.Save(memStream,ImageFormat.Png);
byte[] j = new Byte[memStream.Length];
memStream.Read(j,0,(int)memStream.Length);
ctx.Response.ContentType = "image/png";
ctx.Response.BinaryWrite(j); -
Transparent Imagethis must be my problem... i will try this and get back :)