ManojS's Q&A profile
Visual Studio 2008 (Pre-release) Do we have a master page function like ASP.NET 2.0 in WPF?
Do we have a master page function like ASP.NET 2.0 in WPF Chester ...Show All
Visual C++ How to access a program ported from C from other .net project?
Hi, I am pretty new to C++ .Net and I need help on how to let my .Net programs accessing functions ported from a C program. What I have now is a solution that contains two projects. The first is a C++ .Net class library project and the second is a VB.Net project (doesn't have to be VB, it can be any other .net languages). What I need is to have the VB test program call functions from the C++ program. The C++ project is created by porting an existing C program. What I did was that I created a class library project using the C++ wizard. Then I added my existing C program (without any change at all), MyLib.c, into the project and removed all those generated files that I don't need. After fixing some issues, now I have the project co ...Show All
Visual Studio Express Editions Oracle Connection Error
Hi, The problem is when we try to connect database its throws an exception ...requires Oracle Client 8.1.7 or Greater... But the problem is the application was workin both 2 machines which have Oracle 8.1.7 Client and Oracle 10 Client... One of the machines, we installed "Oracle Enterprise Manager Console" than this machine started to throw exception.. Its so clear that this application changed something in registery or ORACLE_HOME directory... But i don't know what exactly changed. So, I want to ask that why should i take that exception while my computer has relevant oracle client Thnx... ...Show All
Visual Studio Remote debugging a mixed DLL
Hello, I've written a mixed DLL in Managed C++. This DLL is loaded from a native win32 service. I would like to remote debug managed code in this DLL. In VS2005, when attaching to the remote process : - Process Type for the service is T-SQL,Managed,x86. - "Attach to" edit box shows "Automatic : Native" So in this mode, I could only set a breakpoint in the native part of my DLL. This is working fine. But, even if I manually select Managed and Native checkboxes in the Code Type dialog, I'm still unable to set breakpoint in Native code (No Symbol has been loaded for this document) Sure there is a way to achieve what I need. TIA. Ok, found de solution myself... The PDB file must be copi ...Show All
SQL Server Database Diagrams, SQL Server 2005
Hi everyone, I was wondering if there is any way to generate a database diagram with foreign key relationships automatically generated between tables in SQL Server 2005... My initial investigations has yielded no, but I'd like to be sure. Thank you Chris The database diagramming tool won't automatically create foreign key contraints on your tables. You can explicitly create foreign key relationships in a diagram by clicking on one table and dragging the relationship line to the related table. If you have two existing tables with a foreign key relating them, the relationship line should automatically display in the diagram as soon as you add both tables to the diagram. Hope this helps, Steve ...Show All
SQL Server Unable to retrieve column information in Flatfile connection within foreach loop container
Hello, I am getting very frustrated! I have got a Foreach loop container which I am processing files within a folder. I have a flatfile connection manager which I have set up using a test file and have updated the expressions attribute to be the package variable I set up in the collection for the loop container however everytime I run it I get the error: 0xC0202094 cannot retrieve the column information from the flatfile connection manager. I can only guess that it is either the variable being passed to the connection manager or the way I set up the connection manager. When I msgbox the variable in a script component before the dataflow step, the variable for the file seems fine. Any suggestions are REALLY appreciated. Yours Jayne ...Show All
SQL Server Instance and Application databases?
Hi... I came across the terms "instance database" and "application database" in a book "MCITP 70-444: Optimizing and Maintaining... SQL Server 2005". Up until now, I thought there were "user databases" and "system databases." I found an article about these new terms here: http://msdn2.microsoft.com/en-us/library/ms166482.aspx Are these terms specific to Notification Services Thanks.... this book is talking about designing a database for the first time and giving consideration to long term growth. The "application-" and "instance databases" then came way out of left field and confused me. I have added this note about Notification ...Show All
Visual Studio 2008 (Pre-release) Change the color of page border in a FlowDocumentReader control
Hi, I want to change the color of page border in a FlowDocumentReader (when the ViewingMode is TwoPage, of course). Any suggestions to do this Thanks ...Show All
Visual C# Centering one form inside another
Another Newbie question.... How would I need to write the code to open form2 centered within form1 when form2 is selected from a menu item on form1. forms1 and 2 are regular forms not MDI parent or child. I tried that and it didn't work, form2 still opens off somewhere else on the page. Is there some relationship I need to establish first to designate form1 as a parent and form2 as a child If so what's the code to do that Also, should I be setting the StartPosition property from the form2_load event or should it go somewhere else Thanks, Richard ...Show All
Windows Forms Multi language help please
how can i add a combo box were people select the language they want and it will transform it al into that selected language any help is appreciated thank you Hi you need to do a few things: - create a new windows project - add a combobox on the form - in the form load event handler, place the following code: foreach ( CultureInfo culture in CultureInfo .GetCultures( CultureTypes .InstalledWin32Cultures)) { comboBox1.Items.Add(culture); } - in the combox selected index changed event handler place the following code: CultureInfo selected = ( CultureInfo )comboBox1.SelectedItem; if (selected != null ) { Thread .CurrentThread.CurrentUICulture = selected; } - add culture specific values ...Show All
Visual Basic Storing an Array
I want to store an array into a field of an Access Database, so that I can access the Array at a later date. I have create the database table using an OLE Object as the datatype for the field. I use the following code to store the array into the field named "array" Dim cnn As New Connection Dim rst As New Recordset Dim myArray() As Integer = {0, 1, 2, 3, 4, 5} rst.AddNew("array", myArray) rst.Update() This causes a {Type Mismatch} error on the rst.addnew line of the code. Any suggestions A couple of issues: 1. you should use ADO.NET 2. The OLE Object type requires that you read and write the bytes of the object: http://msdn.microsoft.com/library/default.asp url=/library/en-us ...Show All
SQL Server deleting a data viewer causes BI Studio to crash
Is there any way I can remove the data viewer (or even the whole data flow task) so that BIDS doesn't crash. Whenever I delete the data viewer, or the objects that the flow is linking to, or the data flow task, or even the sequence the data flow task is contained in, BIDs crashes. thanks See! Crazy stuff. Do you get results in the data viewer If you can identify where it thinks it is, add one there and delete it. It seems to me that when that has happened to me there was no data displaying in it. The problem is that you can't replicate the scenario that causes this problem, so you can't open a ticket with Microsoft because they won't be able to reproduce it, even though many of us have had this problem ...Show All
Windows Forms Insert Statement fails , but works in MS access
Hi, can someone help> This insert statement in my code does not work, the error message i get is 'Error in the Insert Into', but if I copy and paste the insert statement and run it inside of Microsoft Access Database it works. So I'm kind of lost on how make this work....Can anyone help Below is my code. Public Function NewErrorRecord( ByVal ErrorDect() As Object ) As Boolean Try Module_Type,ErrorID,Error_Descr,Module,LineNum,Filename InsertErrRec = "INSERT INTO Error_Tracking (Error_ID,Module_ID,Error_Descr,Module,LineNum,Filename) " _ & "VALUES('" + ErrorDect(0).ToString + "','" + ErrorDect(1).ToString + "','" + ErrorDect(2).ToString + "','" + ErrorDe ...Show All
Visual Studio Team System Get Latest Changeset for a specific Team Project
Hello, I am looking for a way to get the lastest ChangeSet for a specific project. Reason being, we use continuous integration builds, and I would like to send an email to user who checked in the code that kicked off the build when that build fails. Currently, I have a solutions that gets the latest ChangeSetID for the entire server. I thought it got the latest ChangeSet per project but that is not the case. What I have now does work b/c currently we only have a small number of our developments using TFS. Below is my current code to get the name of the person who kicked off the build. This work only if no one esle checks in to any of the Team projects we have during the minute or so in between when the developer checks in and the build ...Show All
Visual Studio Express Editions How to change the user settings without recompiling
Hi, I have a query. I want to change the user setting string by opening app.config file in a notepad and change the value. However, if I run the complied exe, without opening the project, it does not change. I have to recompile again. How can I do this without recompiling. I don' t want to change the value programatically but manually in the app.config. Any suggestions would be highly appreciated. Regards, Noorul Noorul Ahmed, Based on your app.config file, I suggest you to change the user settings in your program which means that you can make a interface and program to manage the app.config keys. The following link show an article about modifying the configuration settings at run time and hope tha ...Show All
