Zeba's Q&A profile
.NET Development IO.Compression.DeflateStream compression
Compression.DeflateStream using compression. when i compress a file to an already open stream that needs to stay open for further writing, my deflatestream doesnt seems to end correctly. i need to close it to have the full compressed stream. so as a workaround I ended writing an intermediate file so that i can close the deflatestream and then copyback the compressed stream to my main filestream. is there a bug or something i did wrong byte [] rBuffer = new byte [( int )fread.Length]; FileStream fout = n ...Show All
SQL Server INSERT Not Working via Emulator SmartPhone WM 5.0
It would be great to get some feedback on this, I've wasted nearly the whole day trying to figure it out. I've created a simple test database called test.sdf. It contains a few tables but no data. My plan is to populate the database programatically; however, the INSERT command does not seem to be working correctly. I can see that the data actually gets added to the database when I add it and iterate over it programatically (using SqlCeCommands), but after the program completes and I look at the Table in "Server Explorer" via VS 2005, the data is no longer there! Now note that the location of the sdf is in the Emulator's " ...Show All
Visual Studio Express Editions Selecting from a Combo Box
I have a combo box with 5 pre-defined items. When I execute my code, no matter which item I select from the drop-down, the code always executes the first selection. cbxLength contains the values 10, 15, 20, 25, 30 which represents the # of years, and I multiple their selection by 12 to calculate the number of months. Why is the code always selection (0) as the index Thanks for any help you can provide. If cbxLength.Items(0) Then NumberPayment = 10 * 12 ElseIf cbxLength.Items(1) Then NumberPayment = 15 * 12 ElseIf cbxLength.Items(2) Then NumberPayment = 20 * 12 ElseIf cbxLength.Items(3) Then Nu ...Show All
Smart Device Development Windows CE 5.0 Command Prompt doesn't work properly
When I start Windows CE 5.0 Command Prompt on my PC no environment variables seems to have been set so I get errors whenh trying to run "build". I had to add the Bin directory where build.exe is at to the path otherwise it didn't find it. The _TGTCPU, _TGTCPUFAMILY, WINCEDEBUG... variables are not set. How do I get the Windows CE 5.0 Command Prompt working Setting up a command-line build environment based on a PB Workspace is described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wceosdev5/html/wce50tsksettingupbuildenvironment.asp Or just lauch 'wince.bat' (loca ...Show All
SQL Server Custom Code Error
I'm receiving an #ERROR where I've call a function created in the custom code section. The reports works fine in development debug mode, only errors after deploying to SSRS. Note the custom code contain code that access the database using the SYSTEMS.DATA.SQLCLIENT namespace classes. Is there a security access problem in SSRS reports server I had the same problem.. I've created a custom assembly for that.. Imports System.Data.OracleClient Imports System.IO 'Important to get it work within a report <Assembly: System.Security.AllowPartiallyTrustedCallers()> Public Class DB 'Write do Database Public Shared Function writeBack(B ...Show All
Smart Device Development How to use cookie in HttpWebRequest?
Hello, every one! I have met a problem when I ported the code from .net to .net compact. In .net, I can use the CookieContainer propertary of HttpWebRequest to save the cookie which is return by HttpWebResponse and then in the following web requests I can reuse the cookie. But when I copyed the code to .net compact, I found that CookieContainer propertary is not supported .So I thinked out another method, the following is the code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Uri); request.Method = "GET"; request.AllowAutoRedirect = true; request.MaximumAutomaticRedirections = 1; HttpWebResponse respons ...Show All
Visual Studio Team System Sharepoint Permissions error When Creating New Team Project
I'm having trouble adding users as TFS Administrators. From what I understood in the documentation, a TFS Administrator needed to be added to the TFS Security Group as a TFS Admin, an Admin for Sharepoint at the top site level and a content manager for sql server reporting services. I have done that however, I still receive the following error: Error Insufficient permissions on the Windows SharePoint Services at ekta to create a new site. Explanation The permissions granted your user name and ID on the Windows SharePoint Services at ekta do not allow you create a new portal site. You must be granted specific root perm ...Show All
Game Technologies: DirectX, XNA, XACT, etc. converting mouse 2d to 3d space problem
hello guys , sorry for reposting the same question . iam unable to get 3d co - ordinates here is my code case WM_LBUTTONDOWN : GetMousepos(&point); Device->GetTransform(D3DTS_VIEW ,&viewM); Device->GetTransform(D3DTS_PROJECTION,&projM); D3DXMatrixInverse(&InverseProjM , NULL,&projM); D3DXMatrixInverse(&InverseViewM,NULL,&viewM); later i dont know how to convert 2d coordinates to 3d co-ordiantes . actually this is continuous process i.e case WM_MOUSEMOVE: above code dont mind this is basic question . because iam a 4 mont ...Show All
Visual Studio I want VS automatic stop when var a=b
When debug in C# 2005 ,I want VS automatic stop when var a=b , how can i do that Thks Set a break point somewhere where a and b get changed. Right click on the breakpoint, select condition, enter a == b in the textbox that pops up, leave condition checked and Is True selected. Of course, I don't think you can do this in the Express edition. ...Show All
SQL Server Get FlatFile Columns through ConnectionManager
The CreatePackage sample provided with SQL Server programmatically creates a package that has a source type of OLEDB to a flat file destination. I am building exactly the opposite, source=flatfile, destination=SQL Server. I expect that will be a more common scenario is using SSIS. The problem I have is populating the source columns in the FlatFileSource connection manager programmatically. I know it can be done because it happens when you build a package in Visual Studio. What I'd like to know is how to do it programmatically in the object model. How can I interrogate the datasource through the connection manager to find out what columns ...Show All
Visual C# MySql error: should be string, but is seen as double
Hello, I've been getting errors with MySqlParameters and the execution of the query. I want to insert program-names into a database, but these names mostly contain a dot e.g. 'program.exe'. When adding the name by using the MySqlParameter, it apparently converts it to a double because of the dot in the name. I tried specifying the DbType as DbType.String, but it still sees it as a double. Here are some code-snippets: /* the query-class is a shell for the MySqlCommand, the constructor sets the query itself, the rest is set in the class itself. There's a method to add parameters: AddParam(MySqlParameter param). */ this.insertQuery = new Quer ...Show All
Windows Forms Custom Performance Counters
Does anybody know of any issues with creating Custom Performance Counters I have tried, using the examples in the online help but have problems updating (incrementing) a counter. The category and counter are created ok, I can see then in PerfMon, but when I try to read the counter and exception is thrown telling me that the category does not exist ! Also&n ...Show All
Visual Basic form inheritance
I want show the keyboard accelerator keys in all my forms, so I create a base form with that functionality, then I have other forms inherit from this base form, the base form does not have any control on it, when I step through the code, it works, but after removing the break point, it stops working. I have to add a control (such as a button) on the base form and the Visible Property of the control must be true to make the functionality work for other forms, which is not desired. I am stuck here, any suggestion will be greatly appreciated. ...Show All
Visual Basic Non-working keys in VB 2005 Express editor
My previously working 2005 Beta version expired so I uninstalled it and reinstalled VB 2005 Express Edition per the instructions. Now the backspace, arrows, Enter and some other keys don't work in the editor (same result whether a new project is created, or an old one loaded). Any help would be appreciated. Try Tools -> Options Then Select Environment -> Keyboard from the treeview and then select reset. This should reset the keyboard mappings. This may help. ...Show All
Visual Studio Tools for Office DOS
Hello All, I'm using a dos application - a phonebook - and i'd like to know how can i fill in every input lines from an excel file. I mean the dos program is asking for some data that i need to fill in from an excel table. Eg: the table: Name: Address: Mail: Mike Somewhere Somebody@server.com Andy Here &nbs ...Show All
