rtb33's Q&A profile
.NET Development Compression namespace|GZipStream question!!
I'm using this piece of code to compress 1.txt into test.gz, and it works just fine but I noticed that when I open the zipped file, the initial file which is 1.txt gets renamed to test with no ext! how do I keep the initial file name inside the zipped file thanks Fahd FileStream fs = new FileStream ( @"c:\1.txt" , FileMode .Open); Byte [] buffer = new byte [fs.Length]; fs.Read(buffer, 0, ( int )fs.Length); fs.Close(); fs = new FileStream ( @"c:\test.gz" , FileMode .Create); GZipStream gz = new GZipStream (fs, CompressionMode .Compress, false ); gz.Write(buffer, 0, buffer.Length); gz.Close(); You'll notice that gz.Write() takes no inf ...Show All
Visual C++ problem with a .exe
hi, well I have a program .exe done with visual c++, the problem : this only run when I setup the visual studio 2005 , I need that this program be independent . thanks! In addition to having the appropriate .NET runtime there may be other dependencies. The easiest way to get your program working on another computer is to create setup program using Visual Studio. Select new project | Other Project Types | Setup and Deployment | Setup Project and add your project to it. Build, and use the resultant msi to install your program on other computers. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. will i need to learn the basics for c#
before i can start developing games or will the software help for new begginers. i am learning (supposedly the basics of c++ this year) but not c#, althought microsoft just donated sum stuff to my high school so i imagine it will be microsofts visual c++. i was just wondering if im going to haft to go through the hardships of learning c#. I would aprreciate it if anyone could give me a good website to learn the latest version of c# or atleast were u learned i would appreciate it thanks I run the www.learn-XNA.com site, over there we have 2 videos up so far. The first is about geting C# and MDX installed (pretty easy to do) and the second video was just put up today and it is the first of three videos on le ...Show All
SQL Server Matrix Subtotal but not all colums
Hello, I have this problem that I do not now how to solve it: I have a report (matrix) where in the lines I have an order status, while in the columns I have the number of orders, the number of lines and the average time of delivery (calculated measure on as 2005 cube). If put the subtotals the system will add the number of orders, the number of lines but instead of doing the average time of delivery, it will sum all the average of each order status. Nr. Of Orders Nr. of Lines Average Delivery Time Open Order 10 20 3.2 Closed Order 15 30 5 Total 25 50 ...Show All
SQL Server Using fussy lookup in sql server 2005 integration services
i have 4 different databases, in each one i have a table of customers i want to combine the 4 tables of customers from the 4 databases in a new table with eliminating similar records Check out Fuzzy Lookup and Fuzzy Grouping in SQL Server Integration Services 2005 @ http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsql90/html/FzDTSSQL05.asp Thanks, Loonysan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Driving Game Download???
Does anyone know where the XNA Racer Game can be downloaded (see this video) XNA only has support for the 360 gamepad, so unfortunately, no. To use other devices, you would have to import DirectInput into your project, but then you would loose xbox compatibility. ...Show All
SQL Server Set permissions with AMO
Hi, I'm using AMO to create roles and assign cube/dimension permissions to each role. I managed to set allowed and denied sets for dimensions, but I need some help to figure out how to set allowed and denied sets to dimension measures . Does anyone have samples they can show me Thanks in advance. There are no dimension measures. There are measure group measures. For figuring out how to do anything in AMO I found useful combination of; Use SQL Management Studio dialogs to perform an action you'd like, but insted of at the end clicking OK, click a Script button in the mangement dialog. You get an XMLA script that shows what are the changes you need to happen. Then use AMOBrowser sample applic ...Show All
Community Chat pcl soft font solution
hi to all i amtrying to convert pcl file to pdf but i have problems for some of the line printer fonts. do u have any idea for soft font solution. thnx in advance. I am trying to do almost the same thing also but i don't seem to get anywhere. Basically, I am able to parse through the PCL file, but now what I am stuck on is trying to render images to a picture box. If anyone has an idea, please feel free to share.-Thanks. ...Show All
SQL Server for loop expression
I'm trying to run a data flow task inside of a for loop container. First I was attempting to set the forloop expressions using variables that I was setting by running execute sql tasks. I ran into so many problems there, I decide to try this an easier way. So I've created 3 variables, all Int32. One is called counter, one is called inc, and one is called max. The values are set to: counter=1, inc=2, max=100. I then need to set the Expressions for the for loop. SO I open the properties window, and click on Expressions on the left hand side. I've set the following: AssignExpression : @counter = @counter + @inc EvalExpression : @counter < @max InitExpression : @counter = 1 To prove to myself that the counter variable was not incrementin ...Show All
.NET Development i m begginer in vwd2005 and would like every scholars here to give there best tutorials to me please
please please please please please Here you can find some tutorials: http://samples.gotdotnet.com/quickstart/aspplus/doc/default.aspx http://aspalliance.com/articleViewer.aspx aId=144&pId = http://www.15seconds.com/focus/ASP.NET.htm http://www.dmxzone.com/ShowDetail.asp NewsId=12429 http://asp.net/ http://www.google.com/ Rgds Rodrigo ...Show All
Software Development for Windows Vista Credential Provider / User Session Question
Hi, Is there any way for a credential provider to associate some of the data that is provided by the user at the logon UI page with the subsequent session that the user receives I think the answer is no, since none of the ICredentialProviderCredential methods expose any information about the user's session, but I was wondering if there was some other API that I could use during the ReportResult function to get some form of unique session identifier. Thanks Couple corrections: Even prior to Vista, winlogon could exist in sessions other than 0 (Terminal Services connections, Fast User Switching). Also, WTSGetActiveConsoleSessionId returns the TS session id of the session currently bound to the physical dis ...Show All
SQL Server I-Mate JasJar And compact framework installation Problem ?
Hi everyone here i have a little problem : i tried to install the compact framework onto my pocket pc with windows mobile 5.0 but the installation fiailed and gave me an error . the error message said that : the version of installation is not specified for this version of operating system .. so what can i do to install compact framework on the device please help ! in regards to the SqlServerCE error message, SQL Server Mobile needs to be installed separate from the framework: http://msdn2.microsoft.com/en-us/library/ms171938.aspx ...Show All
SQL Server Yearly, monthly... basis report based on the parameter values
Hi guys, I am created a bar chart report. The x-axis value of this chart is a timestamp(datetime) field of a dimension. Thousands of records are inserted in to this field everyday, as a result, I will have the timestamp information every second or minute. So here is the thing, If I want to present last month data in the bar chart(x-axis), the chart can not accomodate all the data and it doesn't look good to present a data in every second or minute. So I want to present the data on yearly, monthly, weekly, daily or hourly basis based on the StartDate and EndDate parameters value provided by the user. Any idea is appreciated. Sincerley, Amde Hi Amde, You will need to do this in your query, no ...Show All
SQL Server Performance problem: SSAS 2005 + ProClarity
Hi, I am facing a performance problem. Here is my scenario: I am using ProClarity to create reports/graphs by connecting to ssas 2005. These are not dynamic graphs but are created beforehand in proclarity and accessed by users. The graphs enable drill-down/drill-up features. My Cube contains: 1 MeasureGroup 4 Measures 7 calculated measures 4 dimensions ( 1 time dimension: date) dimension partition count: 1,095 4,018 8 453 4,018 (hierarchy) 11 (hierarchy) 7 (hierarchy) 5 hierarchies in time dimension 1 hierarchy in other dimension 1 partition, partition count: 33,574 (current) partition size : 708.4 kb storage: MOLAP Partition aggregations: 15 current performance gain: 51% This cube is processed manually and appx of ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpriteBatch.Draw(..., float layerDepth) No Longer Works For Me
I guess that the deprecated BeginScene() used to automatically changed some device states in order to make it possible for layerDepth to work. But since that function is gone in Beta 2, I no longer know how to automatically depth order my textures. Is there a set of device states I need to be in to get this automatic sorting If not, I'll just write my own sorting code. Thanks! Terry A. King wrote: I have a question which sounds quite similar, or may offer a solution, to this. My question is how do I depth sort more than one SpriteBatch My initial test shows using : batch.Begin( SpriteBlendMode .AlphaBlend, SpriteSortMode .BackToFront, SaveStateMode .None); will correctly draw the sprites in the correct ...Show All
