goPlayer's Q&A profile
Visual Studio Express Editions How do I know if the text in a text file has changed? How do I program Save and Save As?
I am trying to create a notepad-like program. I noticed that on Notepad, when I go to File | New, Open, or Exit, the program displays a message box saying that the text has changed. I was wondering how I make the program recognize the text has changed and put it into a MsgBox Another problem... I know how to program Save As, but how do I program Save Finally, Notepad is able to display in the title bar just the filename, and I was wondering how to do that. For example, I want it to say "Sample - Notepad", not "C:\Documents and Settings\Administrator\Desktop\Sample.txt". Any suggestions Thanks a lot. Such changed booleans are often called 'Dirty' or 'IsDirty' (e.g. if IsDirty = True then...), since you ma ...Show All
Visual C# Valid Windows File Name
Any down and dirty tricks to test a string First Check for length as Brenden has suggested and then make sure it doesnot contain these characters: " \ / : * " < > |" You can use string.IndexOfAny() to check this and take the decision. Best Regards, Rizwan ...Show All
.NET Development Access Database and x64 OleDB Connect
Hi, i've written a programm wich access an .mdb Database with OLE-DB. Under Win x32 everything works fine Under x64 no Database is found. Is there no way to access an mdb Database from x64 Hi, Jay Harlow came up with a simplier solution. In my project complier tab press the advanced compile options button and set the target cpu to x86. That will force the program to use the 32bit drivers. Ken ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Custom Vertex and Transformed vertices.
Hello all, This is my first post so sorry if I did something wrong ;) I have a little problem with porting my "framework" that used mdx1.1 to xna (I am still using Windows.Forms). The problem is that i didn't do a lot shaders in a past and now things are more difficult to me. I had a lot of objects like gui parts and splashscreens which used my "quad" (2 triangles with texture in screenspace). And that is the problem. I used transformed vertex so i could give screen coords and now I can see only positioned. Is it possible to use screen coordinates somehow You can use Transformed vertices if you want to. You need to create your own vertex type with a VertexElement that has VertexEl ...Show All
SQL Server parameters arent refreshing
hi, im using RS 2000, i have a report that gets sent an SQL statement as a parameter. this works fine once. but lets say i send "SELECT * FROM table WHERE col1 = 'blah'" (and out put is correct) but then i send "SELECT * FROM table WHERE col1 = 'foo'" the second one still returns the results from the first query. this happens no matter what parameter i send - including null and blank. anyone know a solution to this i would really appreciate it. thanks. note: i dont think this is a cache problem but im not sure. cache execution is set to use most recent data, no snapshots are stored. i think its something to do with the stored procedure keeping the first parameter. but then if i knew what it was, i wouldnt be asking here woul ...Show All
Visual Studio Help going to home page
Hey everyone. Any time I click on help. Be it through the start menu or through a app menu it skips the help file and instead navigates to my home page. So I can not access any help or documentation. Any help would be appericated. There may be a problem with those two specific collections. There first one you indicated is Patterns and Practices and the second one is WSE (Web Service Enhancements). Both of those are fairly old content and their installations may have been corrupted for some reason. Have you tried doing a repair on either one of those from Add/Remove Programs Also, when launching help from Visual Studio, can you tell me which version of VS you are working with Have you also tried doi ...Show All
SQL Server When using FILTER: #Error The function expects a string or numeric expression for the argument. A tuple set expression was used.
Here is the MDX that I'm trying to implement: WITH MEMBER [Measures].[Filled Order Sales] AS 'FILTER([Measures].[Order Price], [Measures].[Order Price] > 0)' SELECT NON EMPTY { [Measures].[Filled Order Sales] } ON COLUMNS from sales The second argument doesn't look like a set to me - but am I mistaken How could it be rewritten Also, why are the error messages, well, broken I updated to SP1, but still have the issue: #Error The ( ) function expects a string or numeric expression for the ( ) argument. A tuple set expression was used. Is there a hotfix for this Filter function returns a set, so your query can be rewritten as WITH SET [Filled Order Sales] AS 'FILTER([Measures].[Order P ...Show All
Audio and Video Development ihdsim crashes
ihdsim crashes after 3 or 4 times refreshing (ctrl+r). Using V6.0.5285.0. ...Show All
SQL Server Sql Management Studio Express
I recently installed Sql Server Management Studio Express on my computer. I am unable to connect to a remote instance of Sql 2005 using this program on my computer. I have shut off windows firewall as well as my third-party firewall but have come up with the same error message. TITLE: Connect to Server ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53) I installed Management Studio on another computer and was able to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. flicker in 1280x800
Hello guys! I'm writing a simple game using xna game studio express and in 1280x800 resolution I have a flicker effect :( My graphics card is an ATI Radeon Xpress 200M with 128mb what's happen tks! Shinji ^___^ I found the problem! A duplicated SpriteBatch was causing the flicker, SyncronizeWithVerticalRetrace wasn't necessary!!! Thanks ...Show All
Visual C++ Unicode newline using TEXT macro?
Somehow I feel stupid for not being able to figure this out, but here goes: I want to include a newline in a string literal that's being converted to Unicode inside a TEXT macro. The converted string gets passed to DrawText. I've tried a variety of different escape code literals (like \n, \r, \n\r, \0\n, etc.), and none have had the desired result. Anybody know the correct arcanity to solve this problem Thanks, Barry Unfortunately, \r\n runs into the same problem as the rest. Apparently, the problem is that DrawText is not properly interpreting the newline. This happens even with DT_WORDBREAK. Coincidentally (or perhaps not so), DrawText is also not breaking the line to prevent overflowing the bounding r ...Show All
SQL Server How to set douplicate id in sql server 2005?
Hi There, Some one please help me to achieve this task. I have task to join 2 tables and insert values.The table which i am inserting values has typeid column which is primary key column.I supposed to insert values except this column(TypeId).When i m trying insert values its throw an error saying Error: Cannot insert the value NULL into column column does not allow nulls. INSERT fails. Please let me know ther is a way to set duplicate id for this rows Thanks in advance. Hi Phil, I have gone thru your articles i got the ideas to do. But i am facing problem while using theis scripts. i have no.of sql statements i have droped no.of execute sql tasks for each statements.Please find the below script, select ...Show All
SQL Server System Variables in a SSIS package
hello all, I am having a hard time referenceing system variables. Can some one give me a quick lesson I am trying to save system variables suck as StartTime finishtime and processes ran I want to store these items into a table for use later. FATSO wrote: This is what I have been trying to do. Declare @MyProcess as char SET @MyProcess = 'Zrocess 1' INSERT INTO dbo.ProcStat (Starttime, Process) VALUES (@[System::StartTime], @MyProcess ) Should be simple, but it is not working. Your best bet would be to create this as an expression on the Execute SQL Task's SQLStatementSource property. The expression will look something like this: "Declare @MyProcess as char SET @MyProcess = 'Zrocess 1' INSE ...Show All
Windows Forms Info pls: Resource File Name property/managed resource compiler tool
I'm sure you've all seen the warning in Form1.h (VS 2005 Express) about changing the class name of the main form. I'ld like to know how to solve the problem. This isn't hypothetical. I did change the class name of a form, and the Designer seemed to get quite upset. It would be good to know how to set that Resource File Name property Did you ever get an answer I see the same warning when initiating a C++ Web service in VS 2005. I would like to change the class name to something reflecting the purpose of the class, but first I need to know how to make sure that name change is reflected in all phases of the project. (I have delt with the negative impact of changing class and/or filename in ASP.Net projects, ...Show All
Visual Basic Intellisense problem: Type is not defined but build is successful.
Hi, Some of the types in my project have squiggly underlines that indicate the types are not defined. The types are actually defined in the same namespace as the class where they are used. The project builds successfully despite the squiggly underlines. "Go to definiton" functionality of intellisense stops working for the class because of the error indicators. I have tried deleting the intellisense database file but to no avail. Does anyone have experience with similar problem The problem is not critical, however, very annoying. I am using MS Visual Studio 2005 Team Edition. Thanks. I got rid of the problem. The problem seemed to originate from the vbproj file that was somehow corrupted. What I d ...Show All
