ANS-Denver's Q&A profile
Visual Basic CopyFile
Hello I am trying to copy four files. It doesn't seem to work though. Here's the code: Dim DirectoryPath As String = "C:\" My .Computer.FileSystem.CopyFile( My .Resources.index, DirectoryPath & "index.html" ) My .Computer.FileSystem.CopyFile( My .Resources.readme, DirectoryPath & "readme.txt" ) My .Computer.FileSystem.CopyFile( My .Resources.swfobject, DirectoryPath & "swfobject.js" ) My .Computer.FileSystem.CopyFile( My .Resources.viewer, DirectoryPath & "viewer.swf" ) I mean it should work. This is the error it produces: System.ArgumentException was unhandled "Illegal characters in path." Also this comes up in the Watch 1 pane: ...Show All
SQL Server Service Broker 64-bit Edition
Does anyone know if the Service Broker is supported on the 64-bit edition of SQL 2005 Thanks! yes.it supports 64-bit. I am using one 4 64bit CPUs with 32 G memory's server for testing,now it's woking perfect. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What are all the scrip codes for XNA?
I know almost all game develpement programs use scrip codes and I would reall like it is someone would tell me some I would like to know them all Also whats the code to make cheat codes The problem with your question is that XNA has no specific script codes. Each developer that makes a game using the XNA Framework will decide for themselves if they want to create their own scripting system for their game and they will either use an existing system (of which there are many) or implement their own. Also, there is no specific code to make cheat codes. Technically, I guess you would say that C# is the code to make cheat codes in XNA. If a developer wants to add cheat codes to his game (usually done for test ...Show All
Visual Basic dual computer when debuging
Was wondering if anybody knows how or if its even possible to hook up a second computer to visual studio. What I am trying to to do is get the application to run on the primary machine and get the debug window to display on the secondary machine. This would make stepping thru code alittle easier. I know it can be done with a secind monitor on the same machine but that would mean insalling a second video card. thanks You need to enable remote debugging. The following link has all the information you need to get started: http://msdn2.microsoft.com/en-us/library/xf8k2h6a.aspx ...Show All
Visual Studio 2008 (Pre-release) BitmapImage and Metadata
BitmapImage seems to be the only class that allows to specify the target size of a decoded image ( DecodePixelHeight and DecodePixelWidth ). The problem is in that BitmapImage does not support Metadata property, which can only be obtained through BitmapFrame or BitmapDecoder . It means that an image would be decoded twice. There is, of course, an option to use BitmapDecoder to get an instance of BitmapSource (with Metadata ) and then scale it using TransformedBitmap . But it is still less efficient (both memory and performance) than using JPEG codec's ability to decode and scale simultaneously. Have I overlooked an API which can do that, or it is a new feature request ...Show All
Visual Basic Memorystream
Hello ! How can i put a String into a MemoryStream Example: Dim test as string = "This is a test" Dim mstream as New IO.MemoryStream() mstream.write().... Can anyone help Me Thanks Pseudo Try this. Function StringToStream(ByVal value As String) As MemoryStream Dim bytes As Byte() = Encoding.Unicode.GetBytes(value) Return New MemoryStream(bytes) End Function ...Show All
SQL Server Process AS2000 DataBase from SQL2005 Server Agent
Hi! Want to process AS2000 DataBase that is located on one server from 2005 ServerAgent that is located on other server. SQL2005 Integration Services allows processing only of 2005 OLAP Databases. I could send an xmla-script to as2000 from a task o ServerAgent2005 but I've read that AS2000 doesn't support xmla scripts with process command. How could I do this without migrating 2000 databases to 2005 Thank you in advanced. Mastroyani . The problem is, that on AS2000 machine there's only AnalysisServices installed (No SQL Server and also no DTS). Are there some other possibilities ...Show All
Windows Forms Unistall icon on the program menu!
I wolud like to have an uninstall.exe generated with my setup project. My plan is to make a shortcut to it from the program menu. Or exactly, a shortcut to a .vbs-file on tne program menu. The .vbs-file is shuting down a service then it deleting a database the it deleting a odbc-connection then it will start the uninstall.exe. But I dont have any unistall.exe, how to create it and place it with the other files in the installation Yes! I only did this and added a shortcut to it from the start menu. msiexec /x {EB678418-F144-47E6-B2DB-7FEFA528B421} EB678418-F144-47E6-B2DB-7FEFA528B421 this is the product code of the installed package. ...Show All
SQL Server How to add columns at run-time?
I have a table: column1 column2 column3 column4 data data data data data data data data I want to create more columns at runtime, what should I do desired output: column1 column2 column7 column3 column4 column5 column6 data data data data data data data data data data data data data data The number of columns to be added is random. Please help. Hi, A good example for "Horizontel Tables" can you find at: http://blogs.msdn.com/chrishays/archive/2004/07/23/HorizontalTables.aspx Hans ...Show All
Architecture Architecting aggregation of data
We have a group of very similar sql server databases running on our server. We are plannning to create an application which will need to get information from all these similar databases. What do you all think is the best way to go about doing it I am thinking about creating a realtime or periodically updated central database aggregating the info from all the others. How can I do this DTS Or create a data cache in memory A web application, web service and windows forms will be running off this database. Should be able to do a fast search. Is caching the database the only way to achieve this How about XML databases thanks a lot in advance. The best aggregation approach will depend on the data you are agg ...Show All
Visual C# Executing sql command in C# problem string literals
hi! I need an extra qoute in sql command to execute correctly but how do we execute through c#. This is what i do>>>>> string scriptTaskConnectST = @"Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Integrated Security=SSPI;"; executing this through c# code jobCommand = new SqlCommand("xp_cmdshell 'dtexec /f \"" + path + "\" /Set \\package.Variables[User::ArchivePackageName].Properties[Value];\"" + name + "\" /Set \\package.Variables[User::ScriptTaskConnectST].Properties[Value];\"" + scriptTaskConnectST + "\" When i check i resulting vaue i get this for scriptTaskConnectST as /"......\" \" Data Source=S ...Show All
.NET Development What is the connection string to write for importing mixed data from excel sheet to data grid
Please help me about this issue, so that I ll be glad to u.I used IMEX=1.but it is working for some limited rows Just an addition. You should be careful in acase if Excel file contains some dates. If you use IMAX=1, then dates could be returned as double-precirion numbers, not as a sting representation of the dates. There is no workaround for this in Jet ...Show All
SQL Server How to insert multiple values to a column at a time?
Hi all, I was looking to insert multiple values to a single column at a time in SQl. Any help pleas! Thank you Hi, In reality it is not acceptable according to data normalization rules. I.e. if you want to have such behavior you should better create an additional table and have foreign constraints mapping to it. Some example: table_x( field_1 ....., field_2 ....., field_in_which_you_want_to_have_multiple_values..... ); table_y( value_identifier ....., value nvarchar(1024) .... ); So you firstly insert several values to table 'table_y' and then just add value_identifier to a 'table_x.field_in_which_you_want_to_have_multiple_values' ...Show All
Visual FoxPro Tiff files
Hi gurus I am very new to VFP, so go easy on me. I would like to create a tiff file from a report, I dont want to view the tiff file or to open the tiff file once created, once the report runs, I just want to be able to give it a name and to save it on a folder as a tiff file. Can some help me with some code that I can see and learn or point me to the right direction or let me know where can I find some help on this matter. Thanks a bunch gurus OHHH.- VFP9 almost forget Thanks again gurus Thanks a bunch D Do you know of any place where I can see code for this frx2any, tha sample code are not to clear. Thanks again for battling with me ...Show All
Commerce Server propertiesToReturn
I have added the propertiesToReturn to the webconfig and referenced a property that I added in the Catalog Schema manager. This works as expected in all areas of the site except Search. If I put one of my custom properties in the string then Search returns an error (and no longer works) - all other parts of the site work however. If I remove my custom property from the string then Search works normally. This is all being done within the latest starter site. Please Advise. In the SQL trace, please search for a call to stored procedure ctlg_GetResults or ctlg_GetResults_for_SingleCatalog. Once you find the call, run that query in "SQL Query Analayzer" on the ProductCatlaog database an ...Show All
