
Menge
Avatar/Signature-
Posts
108 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Menge
-
i looked into it, and it does support that. i was able to connect to the server as root (in the default configuration) and create databases/users. though i think it's inadequate. more of a hack. later on today i'll try to wrap the libmysqld.dll C library in C# so that i can have a serverless daemon running on my pc
-
i dont like the paradigm of it that much. was looking for something more robust. i found out that MySQL has an embedded library for C/C++ available. i'm going to later on see how far i can get into wrapping it to C# since i couldn't find any decent libraries that wrapped that.
-
looked into DDL, MySQL doesn't seem to support that (haven't found any specific documentation on it). i looked into the MSDE download... it's a 40MB download. i think it's a pretty hefty download there. and still would require some work on the user side (installing it and setting up part of it), no? know any other system that i could integrate? (cause those aren't really integrated, they're real life DB servers)
-
thanks, i'm gonna research into what you said. when i said "database" i meant something like a library that would be a database engine and that could be integrated into the project so the user won't need to set up a server for it. and that the piece of software could access/configure/manage on its own.
-
i've been developing an application that relies on a database to store data (just like any other catalog program). i wanted it to be of easy set up. but right now in dev i'm using MySQL to store stuff. my problem is that mysql seems to require you to manually open the console and create the database and user for the program to use. is there a way to circumvent this? allow the program to automagically create its own user/database without the need for the user to have to even open an MySQL admin window? if not, is there any good zero config database that could be tightly integrated to a C# project? because i wanted it to be basically able to be set up 100% by the program (remove the burden from the user i dont care if its kinda complicated to set up from code. but i dont want the user to have to do it). thanks in advance :D
-
install IIS and open a website on localhost (theoretically, IIS already comes with one)
-
since Doom3 has gone gold yesterday, we'll be able to review it in some weeks (Aug 3rd US/Aug 13th UK). about HL2.... i dont know how long.... but i guess i'll be busy playing Doom3 till them :P
-
http://www.microsoft.com/downloads/details.aspx?FamilyID=d7158dee-a83f-4e21-b05a-009d06457787&DisplayLang=en there ya go. quick search at http://www.microsoft.com/downloads
-
take a look at System.Runtime.InteropServices.Marshall.Copy() and see how that suits you :)
-
i think PNGs are the best way to go.
-
There's always [C#] public Bitmap( Image original ); btw... didn't know .Net could load TGAs
-
Yes. sys admins of the clients would have to set up their machines individually to trust your assembly (or domain). about the network size, the apps will only get downloaded if: 1) the file the client has is outdated. (there's a new version out) 2) the client does not have the file. and the the client only accesses the server when first loading the assembly. once the file is downloaded, it's kept in cache. so theoretically, your client could even run the app if your server is offline or the client is offline if you want to know more about this, Google for "Smart Clients". there's plenty of information out there.
-
you need to save them to disk in order to upload them to the client :\ either that or you could make a multipart/HTML file. but that'd be very complicated i guess.
-
the way to run them on a local network is that you need to set up all the client machines by making them trust your assembly (or eventually trust all assemblies coming from your domain controller) and make the domain controller serve them via http. (that's the easiest way to do that that i can think of right now). Administrative tools > Microsoft .NET Framework 1.1 Configuration > My Computer > Runtime Security Policy > Enterprise > Code Groups > [create a new code group for your assemblies] right click All_Code > New... then you'll configure your rule for such assemblies. Name is the identification for your code group. Description is up to you too. on the next page you'll see the condition of belonging to this group. you may want to choose any condition you want as long as it provides the security level you want (i'd choose site since it will trust everything coming from your domain controller address). then enter the address from which your domain controller is serving the EXEs. after that you'll choose the trust level. if you want the code to be able to do anything, just choose FullTrust. that's it :)
-
try the public static bool System.IO.File.Exists(string path) method.
-
arrays in C++ have fixed size. if you need to redim an array, you must create another array with the size you need, then move the old array items to the new one and then delete the old one. (there's a way to not need to MOVE and DELETE, but that involves more pointer stuff than i think u'd like)
-
i'm starting to take a look at MySQL.
-
// create image to draw to Bitmap ImageToDrawTo=new Bitmap(_width, _height); // create a graphics object to draw to that image using(Graphics g = Graphics.FromImage(ImageToDrawTo)) { //draw } // save the image to a file ImageToDrawTo.Save(@"c:\My Documents\My Pictures\Image.jpg", ImageFormat.Jpeg);
-
// vbHourglass Cursor.Current = Cursors.WaitCursor // vbDefault Cursor.Current = Cursors.Default
-
I have a program in C# called Orbit and i would like to add support to an existing set of plugins which are for another program called ObjectDock. What would be the best way you guys think for doing this? i would really like to be able to host those plugins (they're called Docklets, cause ObjectDock is a clone of the Apple Dock). please, any feedback is appreciated.
-
x86 is the pc ibm architecture. powerpc is the G3/4/5 architecture (which is oddly enough done by IBM lol)
-
though that code will only show the processes that have a mainwindow attached to them. items like Explorer and second and on instances of IE won't show. i recommend that you use the EnumWindows API call in user32.dll and then filter the iwndows that you want. Declarations that you'll need for proper filtering // delegate declaration used for EnumWindows() callback function private delegate bool EnumWindowsProc(IntPtr hWnd, int lParam); // importing the function [DllImport("user32.dll")] private static extern int EnumWindows( EnumWindowsProc ewp, // Callback function int lParam // Optional parameter to pass to the callback ); // this function helps filter out the Program Manager [DllImport("user32.dll")] private static extern int GetClassName( IntPtr hWnd, // handle to the window to get the class System.Text.StringBuilder lpClassName, // StringBuilder where to store the classname int nMaxCount // Max count of characters to retrieve from the classname ); // this function is to retrieve the window's title [DllImport("User32.Dll")]private static extern void GetWindowText( IntPtr h, // Handle to the window to get the text from System.Text.StringBuilder s, // StringBuilder where to store the title int nMaxCount // Max count of characters to retrieve from the name ); // find out if window is visible or hidden [DllImport("user32.dll")]private static extern bool IsWindowVisible( IntPtr hWnd // Handle to the window ); Calling the function EnumWindows(new EnumWindowsProc(WindowReceived), 0); The filtering being done by the callback // the EnumWindows filtering the selected windows private bool WindowReceived(IntPtr hWnd, int lParam) { System.Text.StringBuilder class=new System.Text.StringBuilder(256); GetClassName(hWnd, class, 256); string WndClass=class.ToString().Trim(); System.Text.StringBuilder title=new System.Text.StringBuilder(256); GetWindowText(hWnd, title, 256); string WndTitle=title.ToString().Trim(); RECT r; GetWindowRect(hWnd, out r); if(r.right-r.left<=0 || r.bottom-r.top<=0) return true; if(WndTitle!="" && IsWindowVisible(hWnd) && WndClass!="Progman") { // put valid window listing code here // always return true on this callback. // return false only if you want to stop enumerating } return true; } i think that's about it. simple huh? :P
-
image.y=canvas.height/2-image.height/2 same for height with the X position :)
-
i just find it interesting (VERY, in fact) that the X-Box 2 will be a PowerPC and the PC is x86.... and that they supposedly will be integrated by that....