sl0140's Q&A profile
Visual Studio merging several language projects
Hi! I want to merge a c++ (with CLR support) project to a managed c#. I added small C++ project into a C# based solution, and I set the dependencies. When I said build all to VS, the unmanaged dll was correcly created before the c# code was compilled by right of my dependencies settings. The problem is that if I modify the C++ code, doesn't appear any changes when I call the changed C++ method form C# (for example, if I change a function name form c# it reamins the same, also in the snippet window and compilling time) . And form the other side I cant't insert breakpoints into c++, because the compiller passes over them, and I can't navigate (find definition) betwen project. I tried to link the C++ as a static library, but the problem is t ...Show All
Visual Studio Team System SQL Server instance not installed
I just installed the CTP of Team for Database Professionals with no problem. However, when I try to create a SQL2005 project I get a message box saying "The SQL Server Instance (MSSQL$COMPUTERNAME\sql2k5) is not installed and the the project creation fails. This named instance in fact does not exist (as the message box says, very good work). The problem is: why is the CTP is trying to connect to a non-existent instance and why can't I create the project. Any help on removing whatever I need to get this to work would be helpful. Could someone please help me solve this problem I understand that for a named instance the naming convention will be computername\sql2005name but how do you name when it is ...Show All
Software Development for Windows Vista "Unclassified software" warning in event viewer
Hi all, After installation of my product Vista creates a Warning in the Event Viewer saying that I should check the software and decide if I trust it or not. Looked through the article "Keep Windows Vista Secure with Windows Defender" at http://www.microsoft.com/windowsvista/community/windowsdefender.mspx , and it seems my software is just not in the Defender's "base", so it considers my product as some kind of MALware, SPYware, but not as normal SOFTware :) It says that I should analyze the software that made the changes for potential risks and decide whether or not allow to run it ir to remove it from the computer. Of course, I trust my own product :) and do not want to delete it, but it is not good if s ...Show All
Visual Studio XML documentation tags support in Sandcastle
Currently Sandcastle supports C# recommended tags as defined by http://msdn2.microsoft.com/en-us/library/5ast78ax.aspx . As per the forums posts at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=629715&SiteID=1 we plan to supports the custom nDoc style tags in our ERTW release. As per http://ndoc.sourceforge.net/usersguide.html the tags we need to support are the following: <event> <exclude> <overloads> <preliminary> <threadsafety> <note> Please let me know if this list is complete Also we will provide documentation on adding user defined tags. Anand.. I agree on you comment "But the best strategy is to make it possible for users to contribute ...Show All
Visual C++ How to use __readmsr(int address) to get MSR of CPU
Hello~ I used MFC to get some MSR of CPU, I included "intrin.h" and used "__readmsr()", but it had error messages that "Privileged instrction". I think OS maybe has protected it. So, how to do that I can access MSR of CPU or where has some relative information of this Please someone can kindly tell me! Thank you! Best regards. As mentioned in MSDN documentation, this function is available only in kernel mode. This means, you need to write driver to call this function. ...Show All
.NET Development UI Language and system literals
I'm trying to find a way to access the dictionary of the system's current UI language phrases, but I've had no luck so far (e.g. how do I know what text the system will display on "Cancel" buttons). The suggestions I've seen are all based on custom dictionaries, but of course there must be a way to directly tap into whatever Windows itself is using. Any ideas There are a bunch of reasons I can think of (Windows API, security, stability, piracy, legacy, compatibility), I just not sure which is the true reason. Perhaps localizing an entire operating system takes a bit more than a dictionary. The fact remains, each and every Windows .exe and .dll stores its language sensitive strings as strin ...Show All
Visual Studio Express Editions Arraylist sorting
I have an arraylist of alphanumeric items: C1,C2,C3,C10,C11,C20,R1,R2,R21,RN1,RN2,etc. When I use array.sort they come out C1,C10,C11,C2, etc. I want to sort them grouping by the alpha character but numerically in sequence. I've written a bubble sort function but that gives me the same result as array.sort. Is there an " easy " way to get this sorted like I want Thanks, Cote ...Show All
SQL Server handling special characters using oledb to oracle
hi, i am using oledb to connect to oracle. i want to know if there is a way to handle different character sets in this type of connection. for sql to sql, i have been using auto translate in the connection string. what about for sql oledb to oracle how can i make sure that the data from sql to oracle is transferred as is many thanks. You might be better off asking this on the Data Access forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=87&SiteID=1 -Jamie ...Show All
Windows Forms Using Font Dialog to change font
Hey, how would I make it so that one you select a font in the font dialog the font in the richtextbox changes to that font here is what I have so far: fontDialog1.ShowDialog(); Thanks:) Hi, try it with the following code: fontDialog1.Color = richTextBoxCtrl1.ForeColor; if (fontDialog1.ShowDialog() != DialogResult .Cancel) { richTextBoxCtrl1.SelectAll(); // If you want all text with that color richTextBoxCtrl1.SelectionFont = fontDialog1.Font; richTextBoxCtrl1.DeSelectAll(); // If you want all text with that color } Andrej ...Show All
Windows Forms Automating MSI
Hi, I have an MSI file created using VS 2003. I need to change the MSI property 'RemovePreviousVersion' to true using an automated script. Is this possible. An MSI package is a database of tables that can be manipulated using the Windows Installer SDK. Download the SDK from the platform SDK web site and look in the samples folder for a sample vbscript that can run your SQL against the MSI package. ...Show All
Software Development for Windows Vista How to handle exceptions in a State Machine Worklow?
Hello, I'm trying to create a State Machine workflow, but I cannot get the exception handling working. In Sequential workflows the Visual Studio Workflow Designer has three icons in the lower left corner of the workflow where you can switch between the workflow and the "Fault Handler View". In a State Machine workflow, I'm missing these icons. I'm using the July CTP of the .NET Framework 3.0 and RC4 of the WF Extensions for Visual Studio. I tried a different way to handle exceptions, but with no luck: I added an EventDrivenActivity to my root-state (the whole state machine). On that EventDrivenActivity I right-clicked and chose "View Fault Handler". In that FaultHandlerView I placed one FaultHandlerActivity with ...Show All
Visual Basic How to Hide a DataGrid Column
Hi, I am currently building a VB.NET windows form application. I am using a DataGrid with a DataView as DataSource. The DataView has 5 columns so the DataGird does too. But I want to Hide the Columns 0, 1 and 4. Can't figure out how, does any one have an idea I also want to allow the user to select a row in the datagrid but I dont want to allow the data modificatin , how can I do that Thanks for helping I am using a System.Windows.Form.DataGrid with VisualStudio 2003 it does not have the "Columns" propertie. :-( Oh and the columns are autogenerated, so if this is the problem I would like to have an example on how to create my own columns. I would also like to know how to get the selected row and how to access its it ...Show All
Smart Device Development Active X Control registration
Hello All I am new to the Mobile app development.I am developing an application using VC++ MFC dialog based application for Windows Mobile 5.0 smartphone in Visual Studio 2005. I have to use shockwave flash and Windows Media Player ActiveX control in it. When I am adding the control in the dialog and building the application it builds the solution properly. but while executing it the run time error appears illustrating that the component is not properly registered. The error is mentioned beneath: CoCreateInstance of OLE control {D27CDB6E-AE6D-11CF-96B8-444553540000} failed. >>> Result code: 0x80040154 >>> Is the control is properly registered I have found out that the Active X control need to be registere ...Show All
Visual Studio Express Editions Help with time
I want to be able to display the average number of hands palyed (BlackJack Game) per hour and the average profit made per hour. But im struggling with the coding for this. Can anyone help me with the coding the varibles I have are Sessionstart as date Gamesplayed as integer Sessionprofit as single This is fairly simple: Dim SessionStart As Date = Date.Now() Dim GamesPlayed As Integer = ' you will need to get this value Dim SessionProfit As Single = ' same here. When you want to display the average here's what you do: Dim SessionEnd As Date = Date.Now() Dim SessionSpan as TimeSpan = SessionEnd - SessionStart Dim AverageHands = GamesPlayed / TimeSpan.TotalHours Hope this helps, ...Show All
Visual C# How to avoid page call back in ASP .NET 1.0
Hi i am having a problem when using ASP .NET 1.0 I have 2 dropdownlist. The second one depend on the first one. For example: The first one have the alphabet list. When i choose A the the secong dropdownlist will show all the artist with the name begin with A. With ASP.net 1.0 the page will be load again. In ASP.net 2.0 we don't have this problem. I have found some solution like: using java script to load all the data and fill this again when the dropdownlist 1 is selected. However, i have to load so much data to client side. I am trying to avoid that problem. can you please tell me how to implement a solution to avoid that problem in ASP.net 1.0 If you have some example code that will be very helful! Thanks a l ...Show All
