Jimmy Koo's Q&A profile
.NET Development Adding ellipsis to directory path
Before I start writing code, does anyone know if there's a method buried in one of the .NET classes to convert a directory path to one with ellipsis I thought there was, but I haven't been able to find any references to it. I need to display a directory path in a label control, and setting the "Allow ellipses" in the label control only adds the ellipses to the end of the string. TIA, Richard I needed the same thing, but I believe that going the OnPaint route introduces a whole world of complexity. Here is some trivial code to make your own path ellipsis: string path = <whatever>; System.IO.DirectoryInfo dir = new System.IO. DirectoryInfo (path); string ellipsisPath = ...Show All
SQL Server i have a practice!
create a table and name it Salary Information. Add an Employee Name and Salary column to the table. Create a column in the Employee table and name it Salary. Create a trigger that updates the Salary table with the employees's name and salary each time u insert data into the Salary column of the Employee table. I tried but it didnt work! Pls, help me! Thanks man, but i would like to let you know, if you find the suitable answer, please mark it as ANSWERED, so that others can have the view of the problem, whether its been sorted out or not Thanks. Gurpreet S. Gill ...Show All
Visual C++ Is __assume() supposed to crash application?
Can someone tell me why the following code crashes in release mode builds with optimization in VC2005/SP1 #include "stdafx.h" #include <stdio.h> void func1(int i) { printf("func1(%d)\n", i); } int _tmain(int argc, _TCHAR* argv[]) { int p = 3; // The following example is almost identical to the Microsoft Help at // http://msdn2.microsoft.com/en-us/library/1b3fsfxw.aspx switch(p){ case 1: func1(1); break; case 2: func1(-1); break; default: __assume(0); // This tells the optimizer that the default // cannot be reached. As so, it does not have to generate // the extra code to check that 'p' has a value // not represented by a case arm. This makes th ...Show All
SQL Server VB.Net 2005 Setup creation gets error using Microsoft.SqlServer.Dts.Runtime
I have a very small project written in VB.Net 2005 using the SQL Server 2005 SSiS DTSx package. I migrated a SLQ 2000 DTS package using the SQL 2005 Legacy tools and saved the package as a local .DTSx package on our file server. I need to run the package from a clients PC. I added the reference Microsoft.SqlServer.ManagedDTS so I could then use the Microsoft.SqlServer.Dts.Runtime so I can execute the commands: Dim oApp As New Application Dim oPkg As New Package oPkg = oApp.LoadPackage(g_DTSx_Directory & "AOC copy Generic1 CSV to AOC_verify_file_1.dtsx", Nothing) Dim oResults As DTSExecResult oResults = oPkg.Execute Ok. That works fine and is basically the entire app. It executes without a hitch in debug and ...Show All
Visual Studio Changing the web debugger.
Strange question. I installed Firefox a while ago but have since uninstalled it in favour of IE7 but now I can't debug ASP.NET applications in Visual Studio 2005 as it can't start Firefox (it doesn't exist). I just wondered where I could find the setting to change the debugger to run so I can change it from Firefox to IE. Cheers ...Show All
Visual Studio Express Editions slideshow
how can I alter this code so it displays a different image every minute.....like slideshow thanks PictureBox1.Image = Image.FromFile _ (System.Environment.GetFolderPath _ (System.Environment.SpecialFolder.Personal) _ & "\Shell2.jpg" ) Hi renee thanks for the reply..... can you tell me why this error .......next is not a member of single thispict = rnd.Next(0, picList.Count) ...Show All
Visual Studio 2008 (Pre-release) SQL 2005 XML data type DLINQ failure
I'm creating a sample project using patient data is stored as an XML data type in an SQL 2005 server on a Windows 2003 SP1 server. I am able to get the data out and bind it to a grid, but when I attempt to SubmitChanges it fails with the following error "SQL Server does not handle comparison of NText, Text, Xml, or Image data types". The table has one column with an XML data type, and it fails regardless of whether or not that was the column modified. public partial class Form1 : Form { DataGridView _grid = new DataGridView (); PersonObjectsDataContext _dataContext = new PersonObjectsDataContext (); public Form1() { InitializeComponent(); ConfigureGrid(_grid); } private voi ...Show All
SQL Server A data source instance has not been supplied for the data source
Hi Guys, I have create a report and it works in development mode. But when I call this report from aspx page it give me above error message. Please let me know how can I setup datasource of this report at runtime. Below is my code Regards ReportParameter [] rptPara = new ReportParameter [1]; rptPara[0] = new ReportParameter ( "rDate" , WebDateChooser1.Text, false ); ReportViewer1.LocalReport.ReportPath = @"C:Business\RPT585.rdl" ; ReportViewer1.LocalReport.SetParameters(rptPara); ReportViewer1.LocalReport.Refresh(); http://blogs.msdn.com/bimusings/archive/2005/07/01/434659.aspx I think this article should answer your question. I was experiencing the same error and Russell ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game and GameComponent Feedback
We've been combing the forums and the Connect database for bugs, feedback and suggestions around the application model. We still have a small amount of time to consider any other feedback you may have. So this is the thread that you post your latest likes or dislikes with Game, GameComponent, services, etc. Please scan the other threads before posting here, I'd like to just gather things that haven't already been discussed or reported elsewhere. Thanks! I believe that patterns of standard applications can be reused in games applications, but I believe that all standard patterns is not good or useful to make games, I believe that a handling of the nodes based exclusively on events can have a bad performance. I believe that ...Show All
Visual Studio Multiple tables in the same database causing problems
So I have 3 tables inside one access database that im trying to create a report off of. My problem is that when I have fields from more than one table in the report, the report will not pull any data from either table. Its almost like its confused on how to access the data. It looks like its cuz I have some drawn lines in the main report. Is there a way to put a border on a section, do you think that would fix the problem. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. training in the UK
It has been noted that several universities in the U.S. are to promote courses for XNA game studio. Are there any plans for training or seminars in the UK. I know Microsoft are pretty good at providing free seminars on their products ( I had a free day using M.O.M.) and it would be good to see various events in the UK. Any comments Hull University do an MSc in Games Programming, as do several others. I noticed on the gamefest video that Hull are also taking up XNA, as they have a close association with Microsoft. Andy. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem loading a Blender exported .X file
I've been searching these forums and on Google looking for a solution to my problem but have yet to find an answer. I have created a simple model in Blender and now I want to load it into XNA. From within Blender I use the DirectX exporter which creates a .X text file (not binary). I then add that to my XNA project (essentially just following the first 3D tutorial in the XNA help). However, upon trying to compile and run the program I get the error message "Could not read the X file. The file is corrupt or invalid. Error code: D3DXFERR_BADFILETYPE". I have tried a number of different combinations with the exporting settings in Blender, but I always get the same result. I found a tutorial on the web that had a .X file for download ...Show All
Architecture architecture guidance.
hi everyone, iam planning to do a project and iam in analysis phase of the project. desc: it is a very simple project. lang: asp.net ,C#,oracle9i. i completed all the ui related parts.the project is very simple get the datas from the database,update those data or insert new data.uploading and downloading of files.excel uploads and downloads.user administration. now iam going to design the business logic and data access logic. i need to implement form based authentication. can any one provide me guidance for desiging the data access logic ,security logic thanks for your valuable information If you're using .NET 2.0, you should look into a membershipprovider for your security. It basicly handles all oper ...Show All
SQL Server Bulk insert into an IDENTITY column
I have this table in my SQL2005 DB CREATE TABLE StringTable ( StringID int, LanguageID int, Category smallint, String nvarchar(max) ) I also have an Excel spread sheet that contains the above columns. I can insert the rows from the spreadsheet into the table using the sql client class SqlBulkCopy. No problems so far. However, I have now changed the above table so that the StringID column is an IDENTITY column. I haven't changed the spreadsheet at all. I still want to insert the same values as before. So I now do this (in code using a SqlCommand object): SET IDENTITY_INSERT StringTable ON <...do the bulk copy as before...> SET IDENTITY_INSERT StringTable OFF Theoretically a sound plan I think so... excep ...Show All
Windows Search Technologies Windows Safe Search Filter - Application Error
I use Windows Desktop Search and recently starting getting an error message. Details: WindowsSafeSearchFilter.exe - Application Error The exception unknown software exception (0x0eedfade) occured in the application at location 0x7c812a5b Followed by the error: Runtime error 217 007F0EEE What do these errors mean I am also getting this error message: exception unknown software exception (0x0eedfade) occured in the application at location 0x7c812a5b Runtime error 217 at 0213ebf1. It happens every time I open Adobe. I tried to follow the posted instructions but could not find the Adobe.pdf lFilter. Where is this file located ...Show All
