OmegaMan's Q&A profile
Visual Studio 2008 (Pre-release) Difference between SQLMetal and DLinq Designer
I have just gotten into using Dlinq and am not sure of the difference between SQLMetal and the Desinger...at first they seem to do the same thing...which looks like to create the class's for the tables. Correct Thanks Harold Technically speaking, they do the same thing. They generate entity classes to manage your database. But, there are few differences: 1) DLinq designer generates code different from the SQLMetal tool. Moreover, it contains at least a bug (see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=443175&SiteID=1 ). 2) SQLMetal doesn't provide table selection, it will create entity classes for each database table found in the target DB. Dlinq allows you to select single tables. ...Show All
.NET Development How to display an image of the resources in an assembly in the WebBrowser control?
Hello, does anybody know how to display an image of the embedded resources in the WebBrowser control In VisualStudio 6 and the IE-control this worked like this: Code: "<IMG src=\"res://ErrorDialog.dll/Error.jpg\">" I tried it this way in .NET with the WebBrowser-control: I Code: "<IMG src=\"Properties.Resources.ImageError\">" but it doesn't work... Is there a way to do this Best Regards B. Ritter nobugz wrote: The C# and VB.NET IDEs no longer support native resources. This blog entry shows you several alternative. I just edited my previous post ;-) Actually it does work! ...Show All
SQL Server Slow connection. ASP page querying a linked server on MSSQL 2005
Creating a web application. Running a simple query "SELECT username FROM vwCustomer" vwCustomer is a view built on top of an Access DB which is set up as a linked server. Within SQL Server that view responds immediately. But when I try to access it from an ASP page it takes over 20 seconds to respond. Used the following to create the linked server: EXEC sp_addlinkedserver 'DBName' , 'Jet 4.0' , 'Microsoft.Jet.OLEDB.4.0' , 'c:\databases\database.mdb' GO EXEC sp_addlinkedsrvlogin 'DBName' , FALSE , NULL, 'Admin' , '' GO The view is simply(this works fine in SQL Server): SELECT * FROM DBName.db.dbo.customer The ASP page: SELECT * FROM vwCustomer Can anyone give me ...Show All
SQL Server Reporting on a Cube -- Time Dimension Issue
Hello, I have an Analysis Services Cube that I would like to report on. However, the Time Dimension currently only has four columns, Day of Month, Month(name) , Year, and DateKey (DateTime representation at midnight for every day). Thus when I drag the month attribute onto the report, it is sorted April - August - December - etc. instead of Jan - Feb - Mar. How do I fix this I remember reading something in the MSDN Library about it but I can't find it again now. Thomas Hmm, I haven't added any sorting, this is just drag-and-drop from the list of dimensions in the "Report Builder" tool for Reporting Services and in Visual Studio. So I haven't added any sorting, however in VS I can modify the User ...Show All
Windows Forms How to only show one instance of a form
Been having some issues showning only 1 instance of a form (for each of it's parents). The difference here is have classes with classes and a want a single instance of a form for each class not just a single instance of the form for the whole application. Here is the structure of the app MainForm (GUI) ServerClass ServerGeneralForm (GUI) DatabaseClass For each MainForm I will have mulitple Serverclass's and for each ServerClass I will only have one ServerGeneralForm but because I have muliple ServerClass's on the screen I could have muliple ServerGeneralForm (1 for each). I have tried the public static FrmServerGeneral Instance { get { // Uses "Lazy initialization" ...Show All
Visual Studio Team System Editing WITs in an existing project
Hello, I've been reading posts in this forum and also reading MSDN articles about editing Work Item Types on existing projects. I understand how to download/upload existing types, but I'm confused about the actual editing. Here's what I want to do. I want to edit the existing Task Work Item Type and change the behavior of the State and Reason fields. What we want to do is allow for additional information via the Reason dropdown when a Task is in the "Active" State. Examles additions to the dropdown list would be "In Development", "Not Started" etc. Is this something that is normally done with typical WIT customiztaion or do I need to edit the process template to do this Thank you as always, Graham ...Show All
Visual Studio Team System Error when running tests: Column 'TestType' does not belong to table test.
I and everyone on my TFS team is getting the following error message box when trying to run unit tests: --------------------------- Microsoft Visual Studio --------------------------- Column 'TestType' does not belong to table test. --------------------------- OK --------------------------- I checked the TFS databases, and I couldn't locate any table named test, so I'm not really sure where else to look. Has anyone seen this before We've been able to run tests before and this just started happening today. We are using the RTM version of Visual Studio Team System with TFS Beta 3 Refresh. This seems to be a bug that we cannot reproduce internally and we would appreciate any help. Can you please enable tra ...Show All
Windows Forms Using VK_RETURN to toggle between a child and a parent window
Quick question that I've been racking my brains out over. I have a program I'm making and I want to be able to toggle the focus between the child window(in my case it's an edit class child) and the parent windows solely by hitting the return key. In other words, hit enter to get into the edit child window and when I'm done typing, hit enter to as a return to go back to the parent. I'm able to SetFocus(hWndEdit) without any problems, however when I'm trying to catch the message with a WM_KEYDOWN, I never get the focus back to the parent. I'm thinking that it's probably a very simple solution, but I haven't been able to find any help. Any ideas would be appreciated, Thanks, ...Show All
Visual C++ C++ call to a Fortran subroutine (DLL) using multidimensionnal arrays as arguments
I am still trying to build a program that makes a call to a Fortran subroutine accessible in a .DLL. I currently can work calls (and manage the linking) to simple subroutines that use strings, integer and double types of arguments. I cannot however work around calling a subroutine that expect multidimensionnal arrays (by ref I expect ). I am aware that colum and row majors are inversed between Fortran and C++, but cannot find any clear examples anywhere. Here is an example that works. First the Fortran subroutine: SUBROUTINE FORTRANSUB (STRING1, VAR1) CHARACTER *(*) STRING1 REAL (KIND=8) VAR1 and the C++ function prototype and call: ... extern "C" void __stdcall FORTRANSUB1(char * string1, int string1 ...Show All
Visual Studio Express Editions Increasing Form Transparency from 0 to 100
Hello every1 How can I Increase my form transparency from 0 to 100 I have wrote the code bellow in the tick event of my timer1. and I`ve set the timer1.Interval =1 , and it is working, But it is very very very slower than 1 mili second. I know there must be a little delay for running the code of tick event, but it is so slower than the interval as 1 second . ohhhhhhh pls help me on this. Am I supposed to use the "user32.dll" If Yes how can I use that What is the differences between setting the form transparency by using "user32.dll" and my way at all Private Sub Timer1_Tick( ByVal sender As Object , ByVal e As System.EventArgs) Handles Timer1.Tick Me .Opacity = i ' variab ...Show All
Windows Forms Binding DataGridView to a DataTable - skipping binding some of the columns in the DataTable
Hi, I have an instance of DataTable named Customers with the columns "Name, Address, City, State, ZipCode", sitting inside a dataset MyDataSet. I have a BindingSource associated to the MyDataSet/Customers. Without creating another instance of the table, I want to bind it to a data grid view, and only have Name and Address columns show up in the DataGridView. One way I know I can do it is to do a Visible=false on DataBindingComplete event for columns that I don't want displayed. But I am trying to avoid all that unnecessary adding of columns and hiding them when my requirement is to not deal with those columns at all. Just wondering if there is a way to bind a DataGridView to an already available instance of a DataTable and limit ...Show All
Software Development for Windows Vista How to make driver works both on WinXP and Vista?
Hi All, I have developed a driver in WinXP. But it can not work in Vista. I build the driver with WDK under the environment of ' Windows Vista and Windows Server Longhorn x86 Checked Build Environment'. The driver can be installed in Vista. After launching the corresponding application, the Vista is end with blue screen without any message.( In Win 2k&XP there will be some message on the blue screen) How to make my driver works on Vista Any comments is appreciated Oliver, thanks for your quickly reply! Here is more info to you: For mutiplatform, my Vista PC is 32-bit and I build my driver with the environment of 'Windows Vista and Windows Server Longhorn x86'. The driver built with 'Windows XP enviroment' works ...Show All
Visual C# C# Programming->Structure
HI why we can't initialize the variable inside the structure. Because field initializers are effectively moved to a contructor, but you can't have a parameterless constructor in structs. You can define an explicit constructor with parameters and put the initialization code there. ...Show All
Software Development for Windows Vista Transparent images?
When performing TC 31 on our managed .NET2.0 application it breaks into WinDbg when loading a .gif Image. From a user perspective the image loads into the application just fine, but as I understand it the break into WinDbg will disqualify the application from Logo certification. Oliver Lundt stated in another post that "One thing to note is that I had the experience of AppVerifier catching a memory heap exception on a transparent image". I suspect this is exactly the issue I am experiencing, so I have two questions: 1. Does this mean that use of transparent images is not supported 2. As a positive answer to 1. seems unlikely, does anyone know how to avoid the exception The WinDbg analyze printout is as follows: 0: ...Show All
SQL Server formating integer
hello. A question please. I am new on Sqlserver. Could anyone say me how must I format an integer to string. example I have: 0001 (integer field of 4 positions) and I'd want to see it "0001" (string) Thanks... It seems like there is a better way of doing this, but one way is something like: select right('000'+convert(varchar(4), 1), 4) as [4-digit integer] -- 4-digit integer -- --------------- -- 0001 ...Show All
