hye_heena's Q&A profile
Software Development for Windows Vista Going from WDK5308 to WDK5320, now getting U4004 warnings
I'm trying to build my project from the command line under WDK 5320 and now I'm getting warning U4004 ("too many rules for target") for a target in my makefiles when previously under WDK 5308 everything built without any warnings. The makefiles have not been changed between updating the WDKs and the build process has remained the same. Why are my makefiles suddenly broken under this new WDK To be a little more specific, I have a target in many different leaf directories in my source called LastStep, which basically copies objects and executables to another location and does some clean-up. This same target is in many different makefiles in different directories and always worked without any kind of warning in WDK 5308. ...Show All
Visual Basic Illeagal Characters In Path Error.
Hi, I have this error, Illeagal characters In path. I figured out it happend when the FILE NAME had spaces in it, so It took me one week to make it change the spaces to "_". In the debug I didn't have the problem any more. Now I installed the program, and it happend. I don't know the exact line, but if it's because of space it's in the Folder's name. SPACE ISN'T AN ILLEAGAL CHARACTER! Why does it happen Is it a bug in VS How can I fix it Thanks. Of course you can! At the very least you can use Try and Catch and pop up a messagebox with error messages. Or you can dump the call stack to a file, or capture a screenshot. The best thing you can do (if you're using VS2005) is use the " ...Show All
.NET Development Determining Primary Key When Inserting Parent Table For Foreign Key Insert on Child Tables
I've search many postings regarding retrieving the Identity value from a table after it has been inserted. I have a slightly different situation. I am performing an insert on 6 tables within a given transaction. Table1 is the parent and the Table2 - Table6 are (so called child) tables. On Table1 we have a ID field which is the primary key (float), hence I cannot use the SCOPE_IDENTITY. I have 6 SqlDataAdapters with 6 corresponding DataSets. How do I retrieve the Primary Key on Table1 to be used as a foreign key on Tables2 - 6 using a disconnected DataSet My code looks something like this: SQLTransaction trans = cn.BeginTransaction(); Adapter1.InsertCommand = new SqlCommand( "INSERT INTO Table1(Name) VALUES("@Name ")&q ...Show All
SQL Server Transactions - Back to Basics
Hi all, I am having no end of trouble with transactions in the package which i am building. I now just want to go back to basics and see if someone can tell me where i should set specific transaction options. Firstly, my package runs a for each loop which loops through a directory of directories. In each of the sub directories there are 2 files. The first steps in the loop are to check if a folder has been processed previously, if so then it moves it to a specified directory. The reason that this is done first is that i cannot move the directory whilst it is being read in the foreach loop, so i pass the path to the next iteration of the loop. There is another file system move directory task outwith the foreach loop to deal with the last di ...Show All
Visual C# RTF Encoded Caret Position
Hi all, I am looking for a way to insert text into a RichTextBox at the current caret position. The trouble is that I am trying to preserve the rtf formating in the box. The obvious answer (first I tried): rtb.Rtf = rtb.Rtf.Insert(rtb.SelectionStart, "Hello!"); The problem is that SelectionStart returns the caret position in the unencoded text, while the string represented by the Rtf property has all of the rich text control words as well. So the essential question is "How do I find the current caret position in the encoded rtf of a RichTextBox " Irephin, if you want to insert a string into a RichTextBox, you can simply assign the "SelectedText" property. When ther ...Show All
SQL Server Possible to use a Sharepoint List as a Datasource?
In Reporting Services 2005, is it possible to create a data connection to a sharepoint list If so, what connection type and connection string do i use for this The exception you see being thrown is usually a wrapped exception that occurs in the call in the request/response phase, most likely a permissions issue. Check the log files for more information about this exception. Also, regarding the ElementPath: Try setting the IgnoreNamespaces attribute to true on the ElementPath element: <ElementPath IgnoreNamespaces="true"> Answers to your questions: 1. Unfortunately, no, there is no tool at this time. 2. After you set the attribute mentioned above, try making the ElementPath less restrictive and to return the Xml as is ...Show All
.NET Development GetHashCode and Equals once again
I do not see how GetHashCode() and Equals() can ever successfully be implemented given the guidelines. I am assuming that one of the guidelines, apart from the well-known one of two objects being equal ( Equals() ) returning the same hash code ( GetHashCode() ), is that GetHashCode can not change during the lifetime of an object. Given this assumption it appears to me that GetHashCode must either be implemented on a totally immutable class, or that it must only use immutable data members of a class. Since this is the case, the Equals() function must also depend on either a totally immutable class or only use immutable data members of a class. To me this need to rely only on immutable data in a class defeats the entire purpose of object eq ...Show All
.NET Development Create Comma Seperated Text File with C#
Dear All, I am new to C#, so apologise if this question sounds a bit simple. I am required to create a console application, that will allow the user to enter stock information. The application is to read in a stock file (maststck.txt), and update the file with an amendment file (amend.txt). Both files need to be comma seperated files. The stock file contains the following info; Product code; 4 digits Quantity: 4 digits Buying Price; 4 digits Sale Price; 4 digits. The amendment file contains the following info; Product Code: 4 Digits Amendment Type: 1 Character ('I' for issue from stock, 'R' for a addition to stock, 'B' for a new buying price, 'S' for a new selling price, 'D' for a deletion of ...Show All
Windows Forms How to share an object instance through all forms just like vs6.0's global variables?
Now I am doing a c#.net 2005 database project.At the begining, I want to design a login form and after user successfully logon, I will store its account and something else such as Sales Month selected. But I found that c# is purely object oriented language and there is no gloabl varialbe. I wonder how to do this. I have been used to web design and this is my first real winform project(Before only some simple projects). So there are many questions during my design. Another problems: After I new a child window in its Mdi parent, I want to transfer some information to the child, how can I do Now I am trying to define some members and methods to manipulate them in the child form, and so I can invoke the mothods to transf ...Show All
Visual Studio MS SQL 2005 RS
What would I gain for the SQL Reporting Services if I purchased the Visual Studio 2005 Pro or higher Does it give me any extra tools or anything for the Reporting Services for SQL 2005 Visual Studio 2005, Standard or higher, includes ReportViewer controls. There is a Windows Forms version and an ASP.NET version of the control. The controls can be embedded in your application and they can either display reports that are hosted on a Report Server, or they can process and render reports locally, i.e., without needing a Report Server. In local mode you can supply data using ADO.NET DataTables, or a collection of business objects. ...Show All
SQL Server Auto-Generate MDX Query from Cube OWC Settings?
Can I somehow auto-generate an MDX query based on current settings in the AS OWC cube browser Why If so, I will want to use the AS OWC cube browser to filter the data down to < 66K rows, then auto-generate an MDX query from the current browsed settings, copy and paste the MDX script into MS Excel's OLAP query, and use it. I'm trying to avoid the 66K row limitation in Excel 2002. If this is innappropriate, is there another way, besides raw MDX hand-coding, to accomplish the same thing You can start a trace using the SQL Server Profiler, and see the MDX query created by OWC. Then use that query in Excel Chris. ...Show All
Visual C# How to design a class which can be used as "Enum"?
Example: public Enum Type{T1, T2, T3}; Type myType = Type.T1; string typeFromDatabase = "T1"; myType = typeFromDatabase; // This is a obvious error!! Can I design a class whose functionality is just like "Enum" and much more powerful Oh...yeah... I could not rember Enum.Parse is the better solution... myType = (Type) Enum.Parse(typeof(Type), stringFromDatabase) ...Show All
SQL Server Saving a Cube Structure
Hello, I'm looking for a solution to save a cube stucture(and virtual cube) , in order to import it to another server (servers aren't accessible each other...). Thus, I won't have to redo the cube from scratch in the other server. Thanks !!! From my memory, regarding AS2000, you can archive and restore the database, not on a single cube. But after a restore to the new server you can delete the cubes that you do not want. The scripting tool demands some tests and learning. Kind regards Thomas Ivarsson ...Show All
SQL Server Errors in the metadata manager
Good afternoon, I'm having the following error when I run my mining model. Errors in the metadata manager. The dimension with the ID of 'TMP ~MC-ID' cannot be found in the '' database. I think the error is in caseprocessor.cpp at the ProcessCase method. There's a code snippet below: The intention of the following code snippet is to run over the attributes of a case and put them on a vector that holds all the cases. for (UINT iAttribute = 0; iAttribute < _cAttribute; iAttribute++) { if(iAttribute == 0) continue; if(iAttribute == 1) continue; if(iAttribute == 2) continue; if(iAttribute == 3) { vet_termos.push_back(rgdmstatevalue[iAttribute].ch); continue; if (iAttribute == 4) vet_dados. ...Show All
Windows Forms Help please! Table Adaptor does not allow Edit, (update insert delete)
Hi, I am building a website in visual studio 2005, I made a dataset with a table adaptor, however the table adaptor does not seem to autogenerate the UPDATE, INSERT and DELETE.. it only generate SELECT for me. I went to advanced options and checked the boxes for generating those statements in the query building when setting up the table adaptor. Furthermore, it says the columns are READ ONLY in my query builder. Anyone have any idea why I cant generate the update and insert statements Is it because i am doing an inner join of 3 tables or perhaps it has to do with SQL server 2005 security settings All my settings are defaut. Thanks in advance to anyone that could provide me with some insight. ...Show All
