IxxI's Q&A profile
.NET Development Best way to update a MS Access database
Hi, I`m using a MS Access 2003 database to connect from within my csharp code. I`m using the default design-time generated TableAdapter. Is there any way to understand if an update was successful When I insert a new record into one my tables in access database, how can I be sure that it is correctly inserted Is there any possibility that the record can not be inserted or updated, or the operation can be broken after some of the values are correctly inserted or updated but NOT all and no exception occures in the try catch block of my code where I execute these update or insert statements Shortly, what is the best way to update a database especially when you are using multiple linked tables and you need a return value from ...Show All
SQL Server Backups from SQLcmd ??
I am working with SQL Express and found myself surprised when I tried to automate a backup... No Agent. So I am trying to create a simple backup script to run from the command line and probably schedule through the scheduled task manager. here is my problem. I get the following error : Msg 2812, Level 16, State 62, Server FIREFLY\SQLEXPRESS, Line 1 Could not find stored procedure 'B'. Here is the batch file sqlcmd -i c:\temp\test\DBbackup.sql -o c:\temp\test\output.txt -S FIREFLY\SQLEXPRESS And here is the sql input file : BACKUP DATABASE [DNNDEV] TO DISK = 'C:\temp\test\dnndev.bak' WITH NOFORMAT, NOINIT, NAME = 'dnndev-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10; If I put a USE statement in front of ...Show All
SharePoint Products and Technologies How to show user presence in MOSS
I've been asked to display the presence of some users in a site. I'm trying to find out what I have to do to do that, but can find no documentation. Has anyone tried this I have discovered that there is the 'Colleague Tracker' web part in My Sites, which seems to do this - but it's not available on a conventional site. I was also trying to use the 'Site users' web part - but it doesn't seem to be able to show presence (although I've read some comments which suggest it should be. 1) Does anyone know of any documentation 2) What are the prerequisites for showing presence 3) What web part should I use Do I have to make the Colleague tracker web part available on a team site My apologies; I didn't ...Show All
Visual Studio Express Editions Installing VS 2005 for web development
Is there any expiry period for the express edition of VS2005 I installed it for the web development a few months ago. Now I couldn't create a new web project cos' there isn't any option. Do I have to uninstall VS 2005 and reinstall Or, reformat my entire PC to install the software I've found the problem. There are more than 1 downloaded versions of the Visual Web Development in my PC. I've removed them and installed the latest version. It's working now. ...Show All
Software Development for Windows Vista WS-Addressing and Workflows
Hello, I'm testing a few workflow engines and one of the requirements is support for WS-Addressing. (The workflows call Web Services running on Java applications servers.) I've read that Windows Workflow Foundation does support WS-Addressing but I haven't been able to find any examples or tutorials for it. Could anyone tell me if Windows Workflow Foundation supports WS-Addressing and if there is a good example or tutorial for it I'm trying to find a solution and to write an activity for it myself so I can add it to a workflow but I don't know where to look to tell the Web Service what it's new EndpointAddress will be. I've also read about Windows Communication Foundation and WS-Addressing but I'm not sure if I need WCF. ...Show All
Visual Studio 2008 (Pre-release) 3D animation Performance
Into a Canvas filled with (about 20) static 3DGeometry rectangle-shaped, each one texturized by images or MediaVideo, I'm moving a PerspectiveCamera with 2-seconds animations. I notice a quite poor performance on this; every animation shows not more then 20 different frames on a Hp xw6200 with NVIDIA Quadro NVS 285 128 MB. Animation is applied both to position and lookdirection properties of camera. I appreciated no significant progress using only images texture. Anyone has any kind of tips to apply to this It should be a better choice animate single shape instead of moving the whole canvas (moving camera) from performance point of view Some video seen on channel9.msdn.microsoft show very fluid and fast 3D animations, so where is my ...Show All
Audio and Video Development Any sample for ITA?
Hi all From the samples I don't see any implementation for ITA. It is told that to write an ITA we have to create proper interface in Media Source and return an IMFActivate for ITA to be created inside PMP process. "The IMFActivate object exposes the IMFActivate interface, which enables the PMP host to create the ITA, and the IPersistStream interface, which enables the PMP Session to serialize the IMFActivate object from the application process to the PE process." Sounds nice, except one problem -- how to write such a magic object I don't see any further information from all the documents. Does anyone know Lots of ITA related stuff derive from IMFAttributes interface. Why not use COM st ...Show All
Visual C++ Passing Parameters to MFC Application
Hi, I want to pass a parameter to my MFC Application, ie "myprogram.exe /noverbose" I've tried to look for resources on the web, and found some like CCmdLine. However, they don't work. I even tried to overwrite the main() method but it doesn't work too. Can someone advice me on how to go about doing it Thanks. - Regards, eddy05 I think you can try the combination of GetCommandLineW and CommandLineToArgW functions. See http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/functions/commandlinetoargv.asp and provided example. I hope this helps. ...Show All
Audio and Video Development iHDSim crash referencing unloaded element
This is both a question and a comment/bug report. Steps to reproduce the bug (iHDSim released 8/29): Load iHD application. In script, after markup is loaded, store a reference to an element on the current page (I used getElementById()). Use the <link> tag in a <cue> to cause a new markup page to replace the current page. Attempt to reference a property of the element stored in (1). The reference attempt is surrounded by try...catch(). iHDSim crashes with a memory reference error. Questions: What is the correct behavior I'm guessing an exception should be thrown. Is there a way to check whether an element exists before trying to reference it's property to trigger an exception It seems that something is getting deleted/garbage ...Show All
.NET Development How Do I Rotate a PictureBox
I have a picturebox placed on a form. I would like to rotate the entire box by X degrees. Is there a way to do this Thanks. Jeff Here are tons of examples from the Oracle... ...Show All
Visual Basic How can I cycle through all the System.Drawing.Colors?
I worked out the Console version to cycle through all 16 available colors: Sub Main() Dim x, y As Integer For x = 0 To 15 Console.BackgroundColor = CType(x, ConsoleColor) Console.Clear() For y = 0 To 15 Console.ForegroundColor = CType(y, ConsoleColor) Console.WriteLine("Background: {0}; Foreground: {1}", x, y) Next y Console.ReadLine() Next x Console.ResetColor() Console.Clear() Console.WriteLine() End Sub I also worked out a program that cycles through 4 colors in a Windows form: Private Sub btnCycle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCycle.Click Static x As Integer x = x + 1 If x = 5 Then x ...Show All
Visual Studio Express Editions Timer
I have a Problem, I have a timer that runs and a event has to be run within this timer. The event is triggered by a button. My question is how do i get the brogram to "ask" if the specific timer is still running The event can be run before or after the timer is ended but it will be maked as early or late. Any help would be cool Thanks Thelostcircuit jrboddie, That worked out perfectly after I did the same thing with the ftime variable. I didn't know you didn't have to have the datetime thing in front of it after it was created. Thankyou Jon ...Show All
Audio and Video Development Validator Stopped Working
The HD DVD Validator recently stopped working could it be because of an upgrade of internet explorer (7.0.5700.6) or do I need to install something again The simulator works fine. Greets! Thanks for the reply, Doesn't work with the / switch either, just removed and reinstalled it but still won't run. Windows gives a warning "HDDVDValidator.exe has encountered a problem and needs to close....". At least the simulator still works, are there other files/programs the validator needs ...Show All
Windows Forms Moving to a new row in a Datagrid
Howdy, When the AddNew button is clicked on the BindingNavigator, a new row is made in the datagrid and the row selector moves to that newly created row, what is the method that moves the selector to the new row I have created a method that calls the AddNew method on a DefaultView and creates a new row. I need to move to that newly created row and get the value from a auto-incremented cell in the new row and then populate a combo box with that new value. I am using C# in Visual Studios 2005. Any suggestions on how to accomplish this task Thanks Try calling the BindingSource's AddNew method instead. ...Show All
Visual Basic Select All on Text box GotFocus
This worked fine in VB6, but in .net, the text is only selected for a milisecond and then deselected. Is there some kind of workaround for this or do I have to use an event like click or something I figure it out. Had to declare a variable to determine whether or not it had been selected or not and put some code in the mouse up and down events. ...Show All
