Blast's Q&A profile
Software Development for Windows Vista Register dlls in Vista
I am using a much modified version of the VB6 P&D wizard, calling DLLSelfRegister in VB6stkit.dll. Under Vista this fails to register the dlls unless the user turns off UAC before running the installer. How can I code it to get the OS to prompt for a temporary lifting of UAC or elevation of status It doesn't work when I am logged in as an Adminstrator; only if I suspend the UAC. Where can I find information about creating the necessary manifest to prompt for elevated rights What is a manifest anyway ...Show All
Windows Forms About ClickOnce ?
Now, i will issue a WindowsApplication in vs2005, but i can not import User.config file, Please tell me , how to do it thanks! User.config file : i defined Hello Etienne First ,please excuse my English! thanks for your reply~! i have a unaided dll , i want to add it into application when publishing. but i can not know that how to add the .dll into application when publishing. please give directions... thanks~ jones ...Show All
SQL Server Import and Export Wizard: Did they try it out before they shipped it!!!???
I have an excel file that, at least to me, is pretty simple. It's got 8 tables with about 25 records each. I'm trying to import 2 of those tables. Everytime I try to import I get this message: Column "Name" cannot convert between unicode and non-unicode string data types. So I've tried every combination of import/export that I can think of here and stil I get this message. Now I really don't think that I have any oddball characters in my data. As a matter of fact there isn't even any punctuation in there. And yet, SQL thinks there's some unicode in there. My dest column type for Name is a varchar(max). No issues there. So this is really about the simplest sort of data transfer that I can think of. And yet it doesn't ...Show All
SQL Server Importing Xml with SqlBulkCopy
I am looking into importing Xml into SQL Server 2005. The Xml files are about 30MB each, and I need the import to work fast. The Xml is only records with fields (no real hierarchy) i.e. <books> <book> <title>Harry Potter</title> <author>JK Rowling</author> etc etc </book> </books> I am looking into doing in a C# application that will use SqlBulkCopy. However as far I can see the WriteToServer method can only accept either a DataRow[], DataTable or IDataReader. Obviously it is very easy to convert my Xml into a DataTable to DataRow, but these are both in-memory, so they will memory intensive and slow. Is there an easy way to expose my Xml through an IDataReader object Like a wrapper over XmlT ...Show All
SQL Server Updating report templates without losing subscriptions
Hello, We are using Reporting services 2005 and have been for some time. Recently we have started using the subscriptions as well. However we have come across a problem with this. Currently we are updating our report templates by removing them and then creating them again. This worked fine until we started using subscriptions. Now, when the reports are removed, the subscriptions that are associated with the reports are also removed. Is there a way to update a report template, without having to remove the report first And can this be done programmatically The code is currently publishing the reports by calling ReportingService2005. CreateReport( name, "/" + reportFolder, false , template, null ); Thanks, Denise. ...Show All
Visual Studio 2008 (Pre-release) how to make this ?
Hello, I've a XmlDataSource which I want to databind to a set of "box". Each box will contain each element of the xml file which have simple properties (string elements). But I want that this group flow from left to right with horisontal orientation. I've try several panels and controls with the Interactive Designer without success. A picture maybe is better to unterstand : I try to use ListView or ListBox etc with DataTemplate... I'm a little confused. Should I create a template control (how ) and reuse it in a specific panel Matthieu Did you try wrap panel you can create a datatemplate something along these lines <DataTemplate ...> <Border> <TextBlock Text="{Binding Xpath...}&q ...Show All
Visual Studio Team System Running the VS2005 Unit Test in the Production Environment (without the IDE)
Hi, We have written a lot of unit and BVT test scripts for our solution using VS2005 in our development environment. What is the best way I can run these BVT tests in my production environment (where i dont have the luxary of installing VS2005). is there any command line tool available which has no dependency on the VS2005 IDE Thanks, Jit Hello, The installation of VS2005 will install a commandline tool from which you can run your tests, mstest.exe. However, you do have to install the IDE in order to get mstest.exe Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
.NET Development Local process of data in ADO.Net
Hi, I am a VFP programmer, and now need to access VFP data from the ASP.Net pages. A simple SQL going through the VFPOLEDB is not a problem, but when I come to complex business logic, I got stuck now. One good thing about the VFP is the local cursor engine. For some reasons, I need to retrieve a subset of records from a database (not necessary VFP database), and then reprocess the data (i.e. change some value based on another local cursor + complex calculation), or even join with other local cursor, before present them to the user. My question is, how to do this in ADO.Net. Can I use DataTable as the local cursor, and change the value in the DataTable, or I have to put them into an array and reprocess them in the array. Another qu ...Show All
Visual Studio 2008 (Pre-release) DataContract vs persistence model - Guidance needed
Hi forum I really need some architectural guidance on the above subject. Here's the scene and how I chose to implement it so far: I have layered server, which host WCF services. These are the layers: - WCF Layer - Business layer - Persistence layer The persistence layer is not the database, but merely a repository of method, which operates on the persistence model. The persistence model is exposed with a OR mapper (Vanatec OpenAccess) and is highly navigable in respect to associations between persistent classes. The WCF layer is the transaction boundary, which has the role of calling the right methods (in the right order) in the business layer. So you can say that the WCF service methods controls the steps involved in each "business t ...Show All
.NET Development CodeDom and Override.
I am declaring an implementation of a method like: CodeMemberMethod initMethod = new CodeMemberMethod (); initMethod.Name = "Init" ; initMethod.Attributes = MemberAttributes .Public | MemberAttributes .Final | MemberAttributes .Override; But the code that is getting generated is: public void Init() Any ideas on what else I need to do to get the override to be recognized Kevin Thank you for your response. Unfortunately I am not able to post the entire CodeDom declaration as building the tree spans multiple source files. From your tone I am assuming that what I am doing is correct Kevin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Confusion
I have no experience w/ c# etc...but I love this idea of creating your own games for 360 etc with Game Studio Express. Can a person like me use Game Studio Express...like will there be walkthroughs for inexperience people Also does anyone know of any good books etc on beginning C#...and is this Visual Studio Express free or Interesting, I guess I am just used to the Wrox Beginner format, you know 1000 pages of hand holding and excruciating detail... 8) Maybe when I get back to it, I will approach the book from a different way. ...Show All
SQL Server Dynamic modification of data flow objects
My idea is to read in source and destination values from a table and using these values within a ForEach loop dynamically alter the source, destination and mapping on the data flow within the package. My reading on SSIS leads me to believe that these properties are not available for modification at run-time. Has anyone any ideas on how to accomplish this task. I have data in over 200 tables to import every 4 hours so I'd rather have to maintain 1 package rather than 200. You cannot alter the metadata of the data-flow pipeline. In english, that means you cannot change the names and data-types of the columns, not can you add or remove them. However, you CAN dynamically set the external sources and destina ...Show All
SQL Server Deploying packages with SQL Server based configuration
Hello, We have been conducting some testing regarding package deployment and SQL Server based configuration. It seems there is a problem that was documented in an MS Feedback entry ( https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=126797 ) I searched for a viable answer, work-around, or hotfix that would address this issue but found none. The jist is that a package that uses SQL Server based configuration must have an xml-based configuration entry to "re-point" the SQL Server based configuration connection manager to the deployment target server. We cannot use environment variable or registry as this is against internal policy. The problem is that even though the xml based config i ...Show All
Software Development for Windows Vista Registru: Unable to find Monitor value EDID on Vista
Our pre-Vista Win32 program reported on the active monitor info by looping through: HKLM\SYSTEM\CurrentControlSet\Enum\Display ... until it found a subkey called "Control". Once found, that indicated the active display and we then read the EDID value in the "\Device Parameters" subkey for the device in order to interpret the needed data. But in Vista, the "CONTROL" subkey is no longer found, and the EDID is no longer present in the "Device Parameters" (although there is a BAD_EDID value containing all zeros. Is there a way for us to find the same display properties we used to find using the EDID value. Below are the values we used to report by reading and interpreting the EDID: Produc ...Show All
SQL Server Relability? [part3, zombie, sorting(?)]
Hello again, It seems that we are pushing IS to the limits :). And again - still SSIS engine version RTM, so my comment may have been addressed in SP1 or HF1. A package is executed by SQL Agent once every day. Once in a fortnight it stalls - goes to the zombie mode. The status of the package in the SQL Agent monitor is "Executing", while log file reports nothing. Now, I believe it is caused by sorting component in the data flow task. I have three reasons for doing so: the log file shows that data sources were read; I think I have seen it once in MS Studio and finally - previous version of the package without sorting worked fine for several months. In our case, we used sorting for merging datasets - we decided to use st ...Show All
