Zakamon's Q&A profile
SQL Server SSIS : Flat File input and XML output
Hi All, I want to know is it possible to have source as Flat File and destination as XML Thanks in advance, Shagun SSIS does not have an XML destination, so no you can't. You can build your own in a script task. See if this helps: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1123712&SiteID=1 There is also mention in that thread in regards to the samples at Microsoft having a DataSet Destination which will allow for saving to an XML file. I have not looked at it. ...Show All
.NET Development AccessViolationException with C# Ping class
I have a "watchdog" program, c# console application, coded with VS 2005. Program runs every 3 minutes. And one part of program checks pings to ~20 ip's. I'll give that function code: static private bool ping ( ref String ip) { bool success = false ; Ping pingSender = new Ping (); if (pingSender.Send(ip).Status.Equals( IPStatus .Success)) { success = true ; } else { success = false ; } return success; } Usually this works.. but sometimes (once a day on the average) it throws an exception and program crashes: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I checke ...Show All
Visual Studio 2008 (Pre-release) Alpha blended video
I have heard that WPF/E will support a new codec called WMV + Alpha. I assumed, therefore, that you could do alpha blended video in WPF. Unfortunately I have looked and looked online to try and find any video format that will run in windows media player which supports an alpha channel. I have some neat greenscreen test videos, that I can get into whatever format I need, but I can't find any. Does this feature, alpha blended video, work in WPF today If so what video format(s) can I use with this feature Is there an experimental codec I can download to at least start building my application Unfortunately, there are currently no plans to support alpha channel video in WPF v1.0. I also don't know of any ava ...Show All
Visual Studio Tools for Office BMP for Licensing Add-Ins?
If I am a VSTO solution developer, how do I ensure that my customers do not deploy more copies of the add-in I have sold to them Thanks, Tad There is no direct support and as such the only way would be to use a kit like suggested and or write a simple security mechanism that validates a license such as through a webservice call, remembering the privacy and or network access. As it is a vsto template you are able to get access to the local machine if needed to ask for validation of the license key as such. I can hear your cry for a standard to help on this though. Regards ...Show All
Visual C# How do I refrance an object after I have created it ?
I have created a class called clsserver and it inherits from the Picturebox class. Basically it is a picture of a server and displays as different colours as the status of the server is found, ie green is good, yellow might be a problem and red is can not access. With the Gui I can display multiple server on the screen ie 15 of these clsserver classes left to right, top to bottom. In the code I have called the instances of the class server. for each server I run this code. Server = new SQLServerMonitor.Server. clsServer () Server.Name = ThisServerName //IP of the server Server.Parent = pnlbackPanel; //calculate where to place the picture box on the screen if (ServerCount !=1) Calculateposistion( ref Left, ref ...Show All
Smart Device Development Treeview not getting Refreshed on device .Emulator works fine.
I am using a treeview on a dialog to show some entries. there are 2 issues i am facing . 1.whenever i refresh the tree (delete the tree entrires and add them all again), the screen doesnt gets refreshed ..The new entries get added on top of old entries ..What can be the issue It happens only on device and not on simulator 2. Treenodes have checkbox enabled. The tree entries come fine ,.but the are near + and checkbox has background of windows (today screen) ..how do i set the backcolor of treeview control so that it doesnt takes the background of windows.This also happens only on device and not on simulator. ...Show All
SQL Server Regarding Collation for mirroring & Error 1418
Can I know is it possible that if the database servers' collation in both principal and mirror server might unable to get the mirroring Because one of database collation is Latin1_General_CI_AS while another server (mirror) is SQL_Latin1_General_CP1_CI_AS . I did several type of troubleshooting but still unable to solve the Error 1418. All the ports are stated as started, able to use telnet to connect to the server's port but still unable to get a connection for the database mirroring. I do really need help on it. Thx for the assistance and kindness. Best Regards, Hans Oic, means Collation will not causing the problem then. Domain account Is it 'Log on as ' Local Systemn, Local Service and ...Show All
Visual C++ Problem with pthreads
I am new to Visual C++ and to test out how the threads work, I have written a simple C++ multithreaded program. I included the pthread.h library file in the main program but it gives me an error :fatal error C1083: Cannot open include file: 'pthread': No such file or directory Error executing cl.exe. DO i need to get the pthread library and link it externally I am very knew to the WIndows IDE so please do let me know if there is somethign wrong that I am doing. Thanks Nathan anathan wrote: This is a sample code that i got from the internet, I am trying to run this but it gives me an error: error C4716: 'dowork' : must return a value Error executing cl.exe. Disregardi ...Show All
.NET Development Getting the object from BindingSource
Hi, How to get the binded object from the System.Windows.Forms.BindingSource Suppose if a object called "Employee" is binded to the Form Controls, how to get it from the Form Controls Thanks, Suresh. How have you binded the Employee to the control (A possible solution could be:) BindingSource bs = this.dataGridView1.DataSource as BindingSource; Employee employee = bs.Current as Employee; List<Employee> employees = bs.DataSource as List<Employees>; ...Show All
Visual Studio Express Editions Making a call to a shared Shared Method
Hi, Can not workout answer to this problem: I have, for example, a MDI form (Form1) a child form (Accounts) and a Class (Add_Account) Within Form1 I have a shared method as follows: Shared Sub testshare() MsgBox( "testshare" ) Form1.Text = ( "Test Share" ) End Sub I call this shared method from the Add_Account class like this: Form1.testshare() '\\Calls shared method in form1(MDI form) This all works fine. What I cannot understand is this: I have aslo created a shared method within the Accounts form as follows: Shared Sub stat() MsgBox( "status bar" ) End Sub The issue is I cannot see this shared method when making a call to it from the Add_A ...Show All
Visual C++ Intellisense becoming unable to resolve objects
I'm posting this here and not in the general Visual Studio forum because my experience so far tells me the situation with C++ is different than with, say, C# (I have so far at least one example where VS's tools behave worse in the C++ environment than in that of C#). I have Intellisense getting confused and unable to resolve objects so often that I find myself closing the solution, deleting the *.ncb file, and reopening the solution. It almost makes me wish I had a "rebuild Intellisense" button... Kamen Thanks a lot Kamen for your feedback! I really appreciate such discussion and honestly, I am not taking this personally at all. I truely want to enhance the VC++ product and hence extremely eager to work with you to ge ...Show All
.NET Development Run .NET executable over the network
What do I need to do to run a VB .NET executable over the network I have written a simple VB .net program. It works fine when executed locally, but simply will not run when executed over the network. For example, when connecting to the folder via the UNC path (Start -> Run \\ServerName\ShareName ), and then doubleclicking on the executable in the Debug or Release folder, the mouse changes to a wait icon for a second or two and then returns to normal. The program never runs. Event logs don't show any log entries related to this program. Several google searches have hinted at security (that's why I'm posting here). I've granted full Control to Everyone to the Share and Full Control to Everyone for NTFS (it's a test environment), ...Show All
Visual Studio Team System Can't delete orphaned version control project
Because of a typo while merging, I've managed to create an oprhaned project in version control. It's listed in the Source Control Explorer as a project but I can't delete it, it's not listed as a team foundation project in team explorer though. I have no pending checkouts. When selecting the project in Source Control Explorer and then going to delete I get the following error: --------------------------- Microsoft Visual Studio --------------------------- TF10169: Unsupported pending change attempted on team project folder $/LD. Use the Project Creation Wizard in Team Explorer to create a project or the TfsDeleteProject tool to delete one. --------------------------- OK --------------------------- Trying the following at the c ...Show All
Visual Studio Express Editions Need help about migration from VB 6.0 to VB.NET
could someone tell me how marshal a two dimension array in a structure by using <MarshalAs(UnmanagedType.ByValArray, SizeConst:=...> Dim 2dArr As Byte(,) Thanks Jason Jason Edward, Please marshal your array with one dimension by using like this: Public Structure <StructLayout(LayoutKind.Sequential)> MyStruct Public <MarshalAs(UnmanagedType.ByValArray, SizeConst := 128)> _ s1( , ) As Byte End Structure ...Show All
Visual Studio UNDO no longer working...
I was working ASP remotely (bad network connectivity) and when I returned to the office, the UNDO feature no longer works. That's to say, whenever I'm in the editor (VB) and I code, the UNDO button no longer ENABLES itself and, syntax errors take a while to reveal themselves. Being in the office. I'm just a stones throw from the development server... Connectivity shouldn't be an issue... In fact, browsing the pages of the project using Internet Explorer reveals little to no lag. Is there a setting perhaps that was tripped because of my recent remote outing ...Show All
