Santhosh Pallikara's Q&A profile
Architecture What is the difference between Convert.toString and .toString()
What is the difference between Convert.toString and .toString() Just to give an understanding of what the above question means seethe below code. int i =0; MessageBox.Show(i.ToString()); MessageBox.Show(Convert.ToString(i)); We can convert the integer “i” using “i.ToString()” or “Convert.ToString” so what’s the difference. The basic difference between them is “Convert” function handles NULLS while “i.ToString()” does not it will throw a NULL reference exception error. So as good coding practice using “convert” is always safe. ...Show All
Microsoft ISV Community Center Forums I need help please
In the past 25 minutes my computer has locked up 5 times. When I go in the Event Viewer theres no errors on system, but there is one for application this is the error Product: Windows Operating System Event ID: 1000 Source: Application Error Version: 5.2 Symbolic Name: ER_USERCRASH_LOG Message: Faulting application %1, version %2, faulting module %3, version %4, fault address 0x%5. If anyone can help me with this..I'd appriciate it. This is getting to be very frustrating for me. ...Show All
SQL Server String data to int
I'm trying to import a student id in one database (nvarchar(7)) to int in another database. No sure whether I need ato use cast or convert. Anyone have some examples Have you tried using a Derived Column Task The expression would be something like (DT_I4)([ColumnToConvert]) Not going to work unless you know for sure that all data in the [ColumnToConvert] column can be converted. ...Show All
Visual C++ Smartbridge Alerts
I too am receiving the "entry point not found" message. I have very little technical knowledge and would appreciate assistance in any fashion. thanks. Helen McLaughlin Jonathan....thank you for your interest. The error message is: The procedure entry point GetProcessImageFileNameW could not be located in the dynamic link library. I have absolutely no idea what it means. Helen ...Show All
Visual Studio How to ensure no file handle exists in my build directories.
Hello, I'm invoking a couple Targets in my main build task My process is pretty straight forward ----------------------------------------------------------- Clean my: Source directories, Working Build directories Build my Source directories, Working Build directoreis Get the latest from my source respository Process Version information Build the projects Copy Outputs to Target Workign build directories Build Installer Deploy Installer ----------------------------------------------------------- I'm getting intermintant file io access issues when attempting to Clean my Source directories. "MSB3231: Unable to remove directory "D:\Blah\Blah". The directory is not empty." So I'm assuming that either a) subversion is not ...Show All
Visual Basic former issues, revisited: FileSystemWatcher
My understanding of the FileSystemWatcher is that it can only watch a single directory, and either one file type or all file types (nothing in between). If that is true, I am looking at a different approach, if it is not true, perhaps someone could expand my limited knowledge. In short, here is what I want to accomplish. I have big files being uploaded to our FTP server (located in our office), by various speed IP’s (including dial-up) to over 30 unique folders, and I want them swept into a central location. Obviously I have to be concerned about whether the files have completed their upload before they are moved. I was thinking about an app that has a timed event to check all of the files in each named directory for the “da ...Show All
Windows Forms Clickonce app published to fileshare, to change to CDROM
We have an application that was published to install from a file share say \\myapp\epi . It has been set to work offline, and a shortcut on the Start menu is created. A large number of users have installed the app from this fileshare. The application has been set to check for updates, for which the same file share has been given and all the users have done1 upgrade also from this file share. We now have some users who have poor bandwidth, and are unable to install from the fileshare. We want to send them a CDROM to do the install, and want these users to get the updates from the existing file share. This means that the same application has really been published for fileshare and CDROM, with users doing the install from either, an ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Infinite projection matrix
Hey guys. I've the last couple of hours tried to implement an infinite projection matrix without succes. So I took a step back to see if I could even make some sense of the "normal" perspective projection matrix used by XNA. Normally I used the CreatePerspectiveFieldOfView() method to create the matrix. Here is what I've tried so far. What is XNA left-handed or right This code works but the view aspect is fu**ed up. Anyone who can clearify or better show how it's in XNA The infinite matrix that is. float Q = drawParameters.Far / (drawParameters.Near - drawParameters.Far); float yScale = 1 / ( float ) Math .Tan((drawParameters.CameraFov) / 2.0f); float xScale = drawParameters.ViewAspectRatio * yScale; infinite.M11 = xS ...Show All
Smart Device Development Filtering DataGrid
Hi, I have developed a application on Pocket PC using c# CF 2.0. I have binded a dataset to the datagrid. Say for example employee table which has EmpId, EmpName,Dept. Now what I want to do is place 3 textbox on top of the grid and when the user enters data in empid then sort the grid and display all the employee's which starts with that entered data. Similar for other two textboxes. For ex: If emp table has below data empid empname dept 00001 Smith Computer Science 01000 Rave Electronics 20000 John Electronics When first time we bind the dataset with this grid we will show all the rows, but when say for example 0 is entered into first textbox for example say 0, then it sho ...Show All
Architecture 2-Tier Problems Accessing Remote Data
I have a 2-tier architecture question. What are the problems associated with accessing data remotely in a situation where a client application is directly accessing a SQL Server database over the internet There are obviously security issues related to preventing unwanted access to the database, but what about performance issues Are there connection reliability issues, network limitations, etc., related to the effectiveness of a direct remote connection to SQL Server An alternative architecture we are considering is a 3-tier model with a middle-tier application server (web service). Thanks. I agree with the positives Z.Y.S defines. One of the downsides of moving to an n-tiered model (usually ...Show All
SQL Server Is it possible to prevent user to edit parameters in adress bar?
I have reports in report server which are accessed by url access with parameters. When the report is generated the whole url string is displayed in the adress bar with parameters. Is there any way to prevent the user to change the parameter value Any ideer whould be very appreciated! You could use a html form and use POST instead of using GET via the url. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=301748&SiteID=1 ...Show All
SQL Server Calculated Members are not displayed in SQL Server 2005 Management Studio
Hi, all here, I am having a question about the visibility of calculated members. Why we can not see the calculated members from SQL Server 2005 Management Studio But when we browse cubes, we can see the calculated members. But why Management studio dose not display the calculated members Thank you very much for any helpful guidance and advices for that. With best regards, Yours sincerely, Yes Calculated members are only visible i BI-Developer Studio and in Management Studio if you start a MDX-query. The idea is to make all changes to the solution in BI-Developer Studio because you actually make scripts of all parts of a cube there. In management studio all your changes are not scripted but directly implemented. You can ad ...Show All
Smart Device Development Resources help
I am wanting to add my pictures as resources to my project. I believe, could be wrong, that will will deploy the images with the exe. If this is the case, how do I reference the images within the software and deploy them with the exe. If there is a better way to deploy my images with my exe, please let me know. If you add images as resources, they become a part of the assembly (.exe or .dll) You reference them using <Any object belonging to that assembly>.GetType().Assembly.GetManifestResourceStream(resourceName) To figure out resource name use the following rules: If your assembly uses default namespace (in the project properties) of say MyNamespace.MyResourceAssembly and the images ...Show All
Windows Forms change splitter color
i am using the splitContainer and i want to change the color of the splitter change the BackColor of the splitContainer to the color desired for the splitter bar. Then change the BackColors of the corresponding panels (ie. splitContainer.Panel1, splitContainer.Panel2) to what you want them to be. ...Show All
Visual Studio Tools for Office fastest way of naming huge number of cells
Hi, In our VSTO application we have to give individual cell name for huge number of cells (more than 100000 cells) and we found giving name to a cell is taking time specially when we have already 50000 named cells in our excel. What is the fastest way to providing name in this scenario. Please help. Manash, You need to be aware of that no matter of approach it will take time to create a huge number of names. I'm not sure if it possible or not as it's rather uncommon to operate with that number of names. Anyway, the following is created in VSTO and for a managed add-in but can easily be converted to a code-behind workbook solution. Friend Sub Create_Names() Dim p_wbBook As Excel.Workbook = Globals.ThisAddIn.Applica ...Show All
