mnemon's Q&A profile
SQL Server How to change a field's type?
Hi, How could I change the field type through T-SQL I have tried Using the ALTER: ALTER TABLE tblName ALTER COLUMN myID int It didn't work... And also, how could you rename a fieldname cheers, Paul June A. Domag Hi, Sad to say, it didn't work. I searched the BOL of SQLServerCE and the IDENTITY_INSERT switch isn't available. Guess, I'll have to find other means to solve this problem ...Show All
Visual C++ Does 8.0 (2005) support __asm on x86-64?
One of the biggest problems we're currently having in porting our graphics code to x86-64 is that VC++ 7.x doesn't support __asm on x86-64. We need it because we must reference various C++ structures from within the assembly code, and converting all our header files to MASM would take a long time. It would also make it difficult to maintain the code, as structures would need to be modified in two places. We haven't tried VC++ 8. ...Show All
.NET Development Getting a File's size on disk
After a few hours of wondering why a FileStream read was failing on a parse I found that the length I was getting wasn't the length to expect. On right-click of an image file in Windows Explorer you can see 'Size' and 'Size on disk:' The value I need to get from my C# application is the 'Size on disk:' - I have done a dozen tests and sure enough this is the crux of my problem -- so how do I get the 'Size on disk:' from .NET Thanx, ...Show All
Software Development for Windows Vista Keyboard settings
I installed with a Swiss/French keyboard, but keep getting a US one (for logon, and all new users). I know where to edit the registry, assuming it is as in XP, but wonder if there is a better way to resolve this (question mark which I cannot find) My standard environment (foreign companies working in Swityerland) will be Swiss keybaord with UK English time and list settings. Same problem here. Swiss-french keyboard only enables itself ...Show All
Visual Studio Problem with underline Text in Crystal Report in justify Alignement
Hi All, I have a Windows program written in C# using VS2003 and used crystal report for reporting purpoe. I am facing problem in underline Text in Crystal Report in justify mode. Problem is that underline breaking between Two Word Like ( Crystal Report for Visual Studio ). I want continous underline ( Crystal Report for Visual Studio ). There is no problem in left and right align. Do I miss any thing How to I make the Continous und ...Show All
.NET Development looking for suggestions
um...web services forum ...Show All
Visual Studio 2008 (Pre-release) Adding Custom Control to Cider Toolbox - Is it possible?
Hello- Is it possible to add a custom WPF control to the Cider toolbox I have tried creating a WPF custom control library and then pointing the toolbox "Choose Items..." wizard at the compiled dll, but it just reports that there are no control that can be added. Is this feature supported in Cider Beta 2 (May) If so, how are custom controls added I have done a lot of searching on the web, but no luck. Thanks for any help, Bill ...Show All
Windows Forms Confusion on user settings in 2.0 (config vs app.exe.config etc)
Michael was kind enough to help me get a handle on the Application settings in .NET 2.0 in this thread http://forums.microsoft.com/msdn/ShowPost.aspx PostID=109943 , but now I have some questions about creating specific user settings that are stored in a config file in <username>Local Settings/Application Data/... Basically I want a user.config file that I can read and write to. I was able to do this successfuly following th ...Show All
Windows Forms .NET forms with VB6 parent
Hi, I'm using some .NET created forms from within VB6, and I was wondering if it is possible to have them become MDI childs of a VB6 MDI form Thanks hi WinFormsUser, sorry sorry for interrupting this thread...but i am looking for what you have successfully done (apparently) ...c ...Show All
.NET Development Discrepancy between how Uri class parses URL and the way Internet Explroer does it?
Here's a Google Desktop URL: " http://127.0.0.1:4664/&s=8lD6KsMwZ1Zd3ZWWqfZb327gN6g&q =". Internet Explorer properly treats everything after the last '/' as a query string (even though starting query string with '&' instead of ' ' is odd). To prove this is the case just look at the page sorce and see google desktop logo <img> has relative src=hp_logo.gif, which corresponds to http://127.0.0.1:4664/hp_logo.gif URL (ch ...Show All
Visual Studio Express Editions Beginner Code help
I need to read from a text.txt file If "C:\standards" exists within the text file I want to replace it with "P:\standards" else If "P:\standards" exists within the text file replace with P:\standards Mike Public Class Form1 Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load   ...Show All
Windows Forms Date Format in DataGridView
Hello everyone, Can anyone tell me if I'm being really stupid here or maybe missing something really simple I have a datagridview on a windows form that is populated by various data tables from an SQL Server 2000 database. When a Date field is loaded in to the dataset the values are shown in the format MM.DD.YYYY which I would call American format. In VS2002/3 the dates were always displayed in the system default, which in my case (in Scotland) ...Show All
Windows Forms DataSet ReadXML path
I'm new to Windows Forms and I'm having problems with the XML file path when calling ReadXML. DataSet ds = new DataSet(); ds.ReadXml("data/cases.xml"); dataGrid1.DataSource = ds; The exception states file not found. In ASP.NET, I would do something like Server.Ma ...Show All
Visual Studio 2008 (Pre-release) Petzold & functional construction
Hi everyone, Petzold expresses some discomfort with object creation via code (vs XAML) in WPF over at his blog ( http://www.charlespetzold.com/blog/blog.xml , "XAML, Code, and TextBlock" and "XAML Rules (but Code Suffers)"). I was just reading the XML stuff the LINQ team is doing and am wondering whether what they call functional construction would solve that problem. They are in the business of constructing XML element trees. Typically this l ...Show All
Visual Basic Reading text from a file
Hi, I am trying to read a text file and pull out each line from the file in a do...loop procedure. According to the help file, i should use stream reader, however i can't seem to get this to work. Using this, instead of reading a line and waiting, every time i hover over the variable, it changes, so it seems that is is constantly moving on and on. My text file is just a simple list.... TEST1 TEST2 TEST3 I have corresponding folders created ...Show All
