RPW's Q&A profile
.NET Development Unzip File using .net 2.0 class libraries [no third party component like sharplib]
I have a zip file.I want's to unzip it how can i do this in .net 2.0 as we know there is a class i think gzip from which i can unzip a file. Please can anybody help. What i have is a abc.zip file which contains only single file abc.xml.I want's to extract the abc.zip file and save abc.xml file. I am using .net 2.0.I don't want to use any third party component like #ZipLib .I want's to unzip file using .net 2.0 provided classes. Can I do it It were a great sample but where i stuck is refrencing the interop.Shell32.dll. My requirement is that I should n't have any external dll.But from this solution the same thing [like #ziplib library] occurs.I have to add this Shell32.dll ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT and Music
Xact cant import .mp3 .wma or .mid...what do i use to play music then i just read those links and something should be done..i want my game 360 compatible so that means i must use what is given i know i could use direct sound for the windows version but converting a music file to .wav to have a whopping 50 megs is just..no ...Show All
Visual Studio Express Editions no subject
can anyone give me an example as to how to connect and control something from a serial port.....something really simple like a light bulb..... hey maybe this..... I have a teddy bear which runs on batteries when you squeeze his foot he snores.... I would love to connect and control him by the pc any ideas...please ReneeC You cannot expand two bits to 64 or 128 without some hardware in the teddy bear and the hardware is the problem - not the software. I am right now working on the controller chip for a new event driven fieldbus system, which will enable you to connect over 1000 units to one bus and address thousands of measurement values - even in safety systems where life may be in danger (see http://www.inno ...Show All
Software Development for Windows Vista change the text shown when a toolbox item is dragged
In an earlier thread I have asked this question but nobody could help. I am using the designer rehosting example from http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/WFDsgnRehst.asp How can I change the text, that is shown, when dragging activities over the designer surface I have tried to change Name, TypeName, DisplayName, ComponentClassName, QualifiedName but none of them helped. If you think, you know the answer, please provide some example code. Which name du you mean The name of the activities that appears inside the boxes The name of the workflow that appears above the activities ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XInput 1.3 keyboard support
I've noticed that XInput v1.3 now provides keyboard support. Not yet tested this on the Xbox360 (October XDK) with my USB keyboard, however I was wondering if the version present in DirectX9.0c for Windows supports the standard keyboards as an active device If so, how do I set it as an XInput device If not, then could you see about providing support to provide adding devices that would ordinarily be accessed using DirectInput ...Show All
Architecture database watcher ... need suggestions !!
Hi all, i'm trying to develope a windows service which will listen on a database table (Oracle database) , when a record updated ,the service will store it on another database . (Sql Server database) the question is what is the best methodology to detect database update my idea is to run a query periodically and check the update is anyone have a better solution thanks. If you want to catch every version then you will need to use a trigger on the Oracle to post it into another table (which could be inside SQL Server). If you only run a query periodically then you may not catch every version. This will effect performance. However if you don't need to have every version and only want updates every hal ...Show All
SQL Server chi-square test
hi all: do ms sql 2005 have chi-square test sincerly! ...Show All
SQL Server rollback doesnt work in begin try ---catch
Hi , In the below procedure in emp table name column is not null. so when i try to update null value it should rollback previous transactions and should not commit. but it is updating the previous queries and raising error on 3rd query. not rolliing back. I need to rollback previous queries. the xactstate i get here is 1. Please help me with this. ALTER PROCEDURE [dbo] . [tran] AS BEGIN SET NOCOUNT ON ; BEGIN TRY BEGIN TRANSACTION declare @name varchar ( 50) set @name = null update dept set d name = 'ddd' where id=10 update emp set name = 'eee' where id=354 update emp set name=@name where id=354 COMMIT TRANSACTION END T ...Show All
Windows Forms Duplicate component name 'iDKontaDataGridViewTextBoxColumn'. Component names must be unique and case-insensitive.
This is the error, which makes me cry. Everytime i work with datagridview, it makes this error in time. I remove every problematic Columns, but it doesnt work. It seems that designer sees something that no longer exists . For instance iDKontaDataGridViewTextBoxColumn was removed from the designer part of the class. ANd designer still says, that it is there. What may be the sollution of this I would like to continue my work without removing whole tab pages of my forms. Please help. Tnanx for every help. The .resx file can be kind of misleading. It defaults the filter to Images, and unless you've got any buttons with images on them you won't see anything initially in the .resx file. Make sure you change the Filter from "Images ...Show All
SQL Server Restricting Date Parameter Values
Would like to restrict the dates users can put as parameters. For example, I have a report showing all orders in year 2007. I have exposed Start Date and End Date parameters. When users click the 'View Report' button, the report will filter for orders where attribute EnteredDate is >= Start Date and <= End Date. I want to restrict the users from entering a start date greater than today's date. Would also like to restrict them from entering an end date that is less than the start date parameter. How can I do this TIA. ElSalsero Sure, this could be a workaround. However, your original question was how to restrict the users to enter wrong days. This article may help you get started with using the ReportViewer controls to bu ...Show All
SQL Server Deploying a VB.net Application having SQL Server 2005 databse
hi i have made a small application in vb.net 2002 having database in sql server 2005. now i need to create a setup & deployment of my project but cant find a way to do it. plz help me to create a setup of my proj & tell me how to integrate SQL Server database in it so that it can run smooothly on a client having .net framaework ONLY & not sql server. plz help me soon bye ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawableGameComponent: GraphicsDevice
i could be being really dumb, however i have a DrawableGameComponent and i try to access the GraphicsDevice but i get not an instance of object error any help guys if somone has written a basic drawablegamecomponent if u could post it would be ace i work well from examples when im stuck :) thx thx dude i slowly figured it out by your tutorial. but ive uncovered a few more questions. due to the way the components draw methods are called if my component has 1 sprite and i have 5 components it would seem that i have to have 1 sprite batch for each component is this right seems to make them a bit redundant in this case. also im using a texture pool, atm it probally not really nessisary but just so i get things ...Show All
SQL Server Remote Connection Not Allowed
Just installed SQL Express but cannot connect since it says Remote Connections are not allowed ! This worked before. I have tried different protocols and even SQL Authentication. No luck here and I've been up all night... You could also look at this Microsoft KB ... ...Show All
SQL Server Mapping a string field to Boolean output in SELECT clause
Hello, I am facing a problem in a SELECT clause which i cannot solve. In my SQL table ("myTable") i have a few columns ("Column1", "Column2", "TypeColumn"). When I select different columns of the table, instead of getting the value of TypeColumn, i would like to get a boolean indicating whether its value is a certain string or not. For example, the TypeColumn accepts only a number of selected strings: "AAA", "BBB", "CCC". when i do a select query on the table, instead of asking for TypeColumn i would like to ask a boolean value of 1 if TypeColumn is "AAA" and 0 if TypeColumn is "BBB" or "CCC". Also, i would like to make this query while I am ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Lines and curves in 3D
I am looking for a way to draw lines in 3d space using shaders and xna, but so far my search on the internet have been unsuccesful. I want to duplicate the functionality of the Line-class from MDX 1.1, and basically have the option to draw ie an array of vector3's, but with the option of controlling the width. My (so far not so developed) understanding of shaders have gotten me to the point of rendering linestrips with 1px width using a simple shader, but I need more. What I have found out in my search, is that the lines will probably have to be rendered using screen aligned sprites, positioned along the "curve" of the array of vector's. SpriteBatch does not seem to be able to help me do this, unless I somehow come up with eac ...Show All
