Bond 007's Q&A profile
Visual Basic URGENT! hw can I save/retrieve document files from desktop via vb.net into sql database
Hi, Anyone knows how to get a document file from the desktop or any plug-in devices(example: ext. harddisk) via a vb.net application and save the document file to a sql database. Then after, another person on another computer can retrieve the document file from sql database via vb.net application and save it on his/her desktop. Notice: The other person doesnt have the document file on his desktop. The document file must be retrieve from the sql as a whole document. example: a Word Document. Please help me with this. Regards, Melvin Hi, i'm currently trying to do something similar. The following links should explain to you at least how to write the file to the db (It worked for me): http://support.microsoft.com/defa ...Show All
Visual FoxPro Choppiness of Graphic animations (progressbars, etc.)?
Its *good for users* to have a ProgressBar Indicator during backups of tables (while they wait for "who-knows-how-long", etc.). 'Twould be so nice for our users to be able to have: 1) the *Windows Flying Paper Progressbar* (during Window's copy/paste of files) ...or... 2) a 'Themed-progressbar' step-timed to the number of BYTES transferring during backup. (not just a wait window/Marquee (like Windows startup-progressbar), which leaves the user *hanging* about when its going to finish) Please try to help me (I'll continue researching this and let you-all know if I've found a ProgressBar routine that step-times according to actual bytes being copied) Just some extra info: You can copy one file, or some files, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D picking with the mouse combined with a moving camera...
Hi all, I'll get right to the point. My camera is defined using the following code... cameraworld = Matrix .CreateTranslation(xplane, yplane, 0) * Matrix .CreateScale(zoom) * Matrix .CreateRotationZ(angle); view = cameraworld * Matrix .CreateLookAt( new Vector3 (0, 0, 100), Vector3 .Zero, Vector3 .Up); projection = Matrix .CreatePerspectiveFieldOfView( MathHelper .ToRadians(45), ( float )graphics.GraphicsDevice.Viewport.Width / ( float )graphics.GraphicsDevice.Viewport.Height,1.0f, 1000f); effect.View = view; effect.Projection = projection; I've also got code to allow me to place objects in the game world, after unprojecting the mouse points and finding the point of intersection with my XY plane. Only probl ...Show All
Windows Forms Problem reordering items in ListBox bound to DataView
I am creating an application that contains a ListBox control databound to a DataSet. The user should be able to click on a button to move list items either up or down in the order that they appear in the ListBox. This is proving somewhat difficult to do. I have currently implemented this using a DataView with a column "OrderPosition" corresponding to the order the item should appear in the list and the DataView sorted by this column. When the user clicks up or down buttons the code changes values in the OrderPosition column to reflect the new positioning. The code below is for the down event and the error is shown in the comments: If Not Me .componentsListBox.SelectedIndex = 0 And _ Not Me .componentsListBox.SelectedIn ...Show All
Windows Live Developer Forums Photo Upload Tool
Photo Upload Tool - The photo upload tool is designed to allow you to upload pictures in a dedicated storage assigned to your space. You can rearange these photos into albums and arrange them in the order you want them to be displayed. You can also choose which pictures you do not wish to be made visible on your MSN Spaces photo album. Many people are having dificulty with the Photo Upload tool. If your Photo Upload tool is not working try these few simple steps. 1. Click here to download a .cab file that is required DOWNLOAD and when prompted click OPEN then close the folder it opens. 2. Click here to download another .cab file that is required DOWNLOAD and when prompted clic ...Show All
.NET Development using with try-catch or try-catch-finally ?
What do you use using statetment or try-finallly With the using statement... what is the best way to catch a exception Now, i'm using a try-catch-finally for the connection and using for the commands, dataadapters, datareaders ... etc.., but i don't know if is the best way. Regards. Some question more .... For example: using (OracleConnection oc = new OracleConnection(myConnectionString)) { // Do stuff here ... } This estructure ... will close besides dispose the connection Regards. ...Show All
Visual C++ how to generate preprocessed output file from vc++ compiler??
i have source code written using macros. i want to quikly find out which of these macros are defined by generating preprocessed output file using vc++ compliler. what are compiler options for this. Does IDE has this facility. einaros wrote: Open your project properties (ALT+F7) -> configuration properties -> C/C++ -> Preprocessor and toggle "Generate preprocessed File". this IDE feature is not available in vc6 i think. /P is switch solves my problem in vc6. thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Post First Impressions Here.
For the working stiff's like myself, could those of you who have successfully downloaded GSE post you first impressions here. Thanks. Does Space War work without a game controller Yes, there's other posts cover it but basically uncomment the #declare first line in gamepadhelper.cs ...Show All
Visual Basic how to invoke method in a class from a C++ dll in vb.net
I know we can invoke a global method from a dll( written by C or C++) in vb.net like you invoke windows APIS, but I want to know if i can reuse classes that implemented in a Dll written by C++. thanks in advance No, you can't create the C++ class instance. However, if the DLL is written in C++/CLI, it is fully compatible with any .NET language. ...Show All
Architecture Architecture for Notification based application
I need to develop a notification based system in .Net. Basically as and when certain data gets updated, the client machine is informed about it. There would be a windows based application running across all these clients. One way I was thinking of was to have the clients poll the server for any updates at frequent intervals. Whenever the Server does an update it would post the update into a queue. Every client would poll the queue for any updates. Would like to know if this approach is alrite or suggest an alternative architecture. Thanks Sai Hi Sai, For users on internet - likely to be behind proxies and firewalls - you would need to use HTTP or HTTPs. I have heard that HTTPs connection lets establi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Install XNA on VS2005 Std?
Hey All, I've just downloaded XNA 1.0 and tried to install when I found that it won't because I don't have Visual C# Express. I've been running Visual Studio 2005 Standard on my laptop since last February and I'm wondering if there's any way to make it work I think it's sort of silly install C# Exp when I've got Std so any help would be much appreciated. Thanks! Unfortunately, it doesn't currently work on VS2k5. Though it may not look like it, there are significant differences between VS2k5 and the express editions behind the scenes. With only a certain amount of time given to them to develop this first version, they had to make a choice between which version to support in this first release, and they ...Show All
Visual Studio Express Editions help, program stops with no errors
Well I have put a text search within a SQL loop: both programs work separatly that is when I execute a SQL statement it produces what I want. When I loop through a text search it works when I enter a name to search for. But when I put them together it dies - I mean does nothing but set there....I put in a msgbox and nothing happens. Thank You for the help,. I know if I change the line: Dim myName As String = field2 to read: Dim myName As String = ("name1") then it works - in the loop it just goes over and over with the same name. field2 should be changing per each loop of the SQL... I am not sure the dynamic name does not work. again I no errors when running this process.. here is my code. Dim connec ...Show All
SQL Server range - left our join
hi all, how can i do a range left outer join. i know how to do a ranged lookup but it does not allow null. example: suppose I have tables t1 and t2 in table t1 I have fields f1 and f2 and in table t2 I have fields f1, f2 and f3 I want to left outer join t1 and t2 on t1.f1 = t2.f2 and t1.f2>t2.f2 and t1.f2<t2.f3 in other words. t1.f2 is betwee t2.f2 and t2.f3 thanks, joey joeydj wrote: yes, a range lookup that returns null when the look up value is not in the lookup table. I'm still not quite sure what you are trying to do, but using the error output of the lookup transformation you can set any column you wish to NULL using a derived column transformation. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Activator.CreateInstance on .Net compact
I've got a bit of code that loads an assembly dynamically and invokes a constructor working fine in PC XNA but I can't find the equivilent under .Net Compact on the 360... PC Assembly assembly = Assembly.LoadFrom(s); Type mainClosure = assembly.GetType(scriptName + ".MainFunction"); LuaClosure cl = (LuaClosure)Activator.CreateInstance(mainClosure, new object[] { L.Globals }); Attempt on 360 Assembly assembly = Assembly.LoadFrom(s); Type mainClosure = assembly.GetType(scriptName + ".MainFunction"); ConstructorInfo ctor = mainClosure.GetConstructor( BindingFlags.Instance | BindingFlags.Public, null, new Type[] { typeof(LuaReference) }, null); LuaClosure cl = (LuaClosure)ctors[0].Invoke(new Object[] { L.Globals }); Which f ...Show All
Visual Studio Tools for Office range into array? subscript out of range vba excel
I have the following code using this array works: myArr = Array("test", "3", "5") but when i try this: myArr = Range("a1:a3").Value it doesnt work. This code fails then and it says:subscript out of range: Set Rng = blad3.range("A:A").Find(What:=myArr(I), _ After:=range("A" & Rows.Count), _ LookIn:=xlFormulas, _ LookAt:=xlWhole, _   ...Show All
