nvendi's Q&A profile
Visual C++ reading binary data using fseek and fread
I'm trying to get computer model in C originally written for Unix to run under VC++. It to reads a binary input file with climate data (precipitation) for every time step (year). For every year 12 items are read (1 for each month). The first two years are read correctly, but for the third year only 7 items are read. After that, for some years the data is read correctly, for others not. When read with MatLab for example all years are read correctly. The problem does not occur when the program is compiled with the GNU compiler for example, so I assume the problem is in the difference between the compilers. Below I have 'extracted' the pa ...Show All
SQL Server When creating a Report Model, I get a Timeout error.
I'm trying to build a Report Model for a Data Source View that has a table in it with a little over 1 billion records. When I try to create the new Report Model, the process fails while trying to get a row count on the 1billion+ table: An error occurred while executing a command. Message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Command: SELECT COUNT(*) FROM [dbo].[Sor1_PageHist] t This timeout occurs at 5 minutes. Where is the query timeout setting for building the model in Visual Studio The timeout setting is in your Data Source. I was running into ...Show All
SQL Server Time Dim Linking in Data - best practice?
Hi All, After some advise here on how best to tackle an issue when trying to link one my my fact tables into the time dimension at the dsv level. I'm looking to split the date down into D, M, Y, but the date comes from a string field and is stored yyyymmdd so 20060206 for today. I've tried linking in a view, however it wont allow me to do this due to the data type, as the Month_Number field in the time dim, is an int and mine is a string. If I then try and cast the view's field as an int, it then moans about a MaxLength field when you try and refresh the field changes in the DSV. I'm now looking at creating an Insert trigger t ...Show All
.NET Development UserID and PWD sent to Webservice
I have this code in my client app "windows forms": CredentialCache cc = new CredentialCache (); WebService ws = new testApp. WebService (); cc.Add( new Uri (ws.Url), "Basic" , new NetworkCredential ( "userName" , "MyPwd" )); ws.PreAuthenticate = true ; ws.Credentials = cc; MessageBox .Show(s.HelloWorld()); Now, in the server side "web service", how do i retreive the user id and the pwd i added to the credentialcache.. i tried User.Identity.Name but it showed me the name of the current windows user that uses the Client app.... Thanks This will solve y ...Show All
Visual C++ AMD64 compilation with Visual Studio 2005 Beta 2
Hi, I was using Visual Studio 2005 beta 1 for doing my compilation on AMD 64 bit programs. This was being done on a rented machine sometime back ( 2 months back ). I recently bought a new machine ( AMD64 ) and tried reinstalling my older version of beta1 which suggested me to upgraded to beta2. When i managed to get CDs for Beta 2 installed on AMD64 machine ( windows 2003 server .. with great difficulty ), i was upset to see no support for AMD64 build ( Tools->Configuration manager ->.. drop down box for Itaniumx64 only ). Can somebody suggest what went wrong and where i am desperately looking forward to test my applicati ...Show All
.NET Development difficulties in distributing the application..
well.. i juss created an application using VC# > Windows app. (in .NET 2003) but im facing trouble distributing it.. is it necessary for the other user..who will run my application.. to have .NET Framework installed isnt there any way to create some sort of installer that can include all the necessary lib. n stuff.. does microsoft provide any tool for this task or do i have to get .net framework installed to every user.. before he/she can run my application.. .. Hi, Yes, the target computer should have a .net framework installed for your app to work. I suggest you bundle the framework on your install ...Show All
Windows Forms How to enable Ctrl+C, Ctrl+V, Ctrl+X?
Hi, I've already set the ShortcutsEnabled property to true but still cannot use keyboard shortcuts to do "copy", "cut", "paste" ,"select all", "undo" , "redo", etc. Did I miss anything Thanks in advance ps. i'm using VC# Hi, TextBox by default can work with clipboard shortcuts, Ctrl-X for Cut, Ctrl-V for Paste and Ctrl-C for Copy. Alternatively, the control has methods you can use to perform these clipboard operations: textBox1.Cut(); textBox1.Copy(); textBox1.Paste(); As for SelectAll, Undo and Redo, textBox has methods for this operations as well: textBox1.Undo ...Show All
Software Development for Windows Vista How can I start instalation a Windows Vista os
How can i start instalation of Windows Vista OS. I burn a DVD image, but i can not open it. I can read only a README file. What shall I do What does the Readme file say ...Show All
Smart Device Development Can't connect emulator to localhost
Hi, i'm currently creating a web application in c#. Its not a web service but an asp.net web app. My 2003 pocket pc emulator can connect to the internet however i'm having trouble connecting it to the localhost. The address line i use is http://localhost/OnlineMusicStore/index.aspx. Where localhost is the directory where my web app is residing. OnlineMusicStore is the directory name and index.aspx is the file i want to retrieve. Whenever i enter that line, i keep getting a message that says the requested url is not found. Can someone help me solve this problem Its funny because i can connect to the internet but not to my pc. I've even tried ...Show All
Visual C# How can I get the value of a dropdownlist box and assigne to a hidden textbox in javaScript function?
I was looking to get a selected value from a dropdownlist box and assigne it to a hidden text.here is the line code of code in my javascript function but it return the value 'undifined'. document.Form1.elements['cPIsNameHidden'].value = document.Form1.elements['cPIs'].selectedIndex.value; Thank you in advance. Here is the solution from yassin abdi document.getElementById("cPIsNameHidden").value = document.getElementById("cPIs").value Tnx Yas! Ephi ...Show All
Visual Studio Team System CA2000 Dispose temp resource question
This is my first foray into code analysis, so please be gentle ;) I have a component that utilizes several performance counters. Upon dragging the counter onto the design surface, the following designer.vb code is generated (pared down for applicability)... Private WithEvents myPerfCounter As System.Diagnostics.PerformanceCounter <System.Diagnostics.DebuggerStepThrough()> _ Private Sub InitializeComponent() Me .myPerfCounter = New System.Diagnostics.PerformanceCounter CType ( Me .myPerfCounter, System.ComponentModel.ISupportInitialize).BeginInit() Me .myPerfCounter.CategoryName = "Some category" Me .m ...Show All
Windows Forms ClickOnce and Apps that dynamically load assemblies without knowoing in advance what they are
I have an application (VS2003 currently) that dynamically loads dll's which contain data entry forms, reports and other classes for a variety of tests. Each test has a separate dll. The dlls are not compiled into the application, but dynamically loaded. Here is how that works: Each dll is named with a pattern that includes the test name: eg FieldTest_ABC.dll or FieldTest_XYZ.dll. Based on the user selecting which test to load up, the test's name (eg "ABC") is passed into a routine which checks for the existince of file FieldTest_ABC.dll and if it does exist, loads it up using reflection. SO....I have used the version 1 ...Show All
Visual Studio Express Editions Error when trying to create new project
Hey, maybe a strange question, but I couldnt find the answer anywhere. I downloaded the VB 2005 Express Edition beta 2, and registered. I was hoping to be able to use it for the trial periode and then see if I would buy it. After activation, I still get this error when clicking at "new project" The number separator information specified in the NumberFormatInfo is ambiguous for parsing. Now my English isnt very well so I would have no idea what that means. --------------------------------- Also a little extra question, from the videos I have seen of the 2005 Express Edition, it looks very good, can I already order it, because I only see ...Show All
Visual Studio 2008 (Pre-release) design question regarding generated proxy classes/DataContracts
Hello all, I have a design question not neccessarily directly related to Indigo: Let's say I have two services dealing with Customers, both will use a (or the same) Customer class as arguments in a servicemethod like == [Serializable] [DataContract] public class Customer{ private int _id; [System.Runtime.Serialization.DataMemberAttribute(Name = "Id")] public int Id { get { return _id; } set { _id = value; } } == Now users of the service can generate a proxy with svcutil and svcutil will generate a Customer class that can be used by the serviceuser somewhat like that: [System.Runtime.Serialization.DataContractAttribute()] & ...Show All
Visual Studio Team System FxCop 1.32 Source Code
Hi, Many rules in the FxCop 1.32 are applicable to my scenario... and some of them not. Is the source code of the rules available to customize it... (drop rules that don't apply... localize messages... learn how rules are built... ) I think this will be very useful specially for whom are trying to create many custom rules, like me. Carlos Figueroa Microsoft MVP ASP/ASP.NET Carlos, We do not have plans to release the FxCop 1.32 rule source code. However, there are a number of sample available on the web: On GotDotNet: http://www.gotdotnet.com/community/usersamples/Default.aspx ProductDropDownList=FxCop&SortDirectio ...Show All
