Roy Armitage's Q&A profile
Visual C++ Visual C++ 6 lost cpp language setting (language: "none" instead of "C/C++")
Hello everyone, For a couple a weeks now, my visual studio has lost it's language setting for cpp files. whenever I open a cpp file, it appears as all black text (no coloring) and right clicking the document, properties, shows that the language is set to "None" instead of "C/C++". .h, .c and .cxx files are all opened correctly, only .cpp files lost their language setting. I can of course manually change it, but I have to do that for each file, ...Show All
.NET Development Access Data From Multiple SqlSever Instances
Hi I am having two SQL Server instances installed at two different systems and want to fetch data from both of them in a sigle query with joins using the ADO.NET SqlConnection and SqlCommand objects. Kindly help with a code sample. Thank you for your response Jeff, Do you have any idea of joining two sql servers at the admin level. ...Show All
Visual Basic Function for Time Help!!!!
I am trying to write a Shared Function that compare a students score in the mile to a standard score with age and gender as variables: I broke the time into two seperate units, Minutes and Seconds. The problem that I am having is that when the seconds is under the time permitted it kicks to the wrong boolean. Example: Public Function MRPassed( ByVal Min As Integer , ByVal Sec As Integer ) As Boolean Dim a As ...Show All
SQL Server How to pass .net application's parameter to a TRIGGER?
How can i pass my .net application's Userid to the trigger I have a audit trail trigger on myTable. I dont know how to pass the userid (not the sql server user) to the trigger when a user delete a record from the application(.NET Application). The trigger saves the modifications on the table including the userid of one who does the changes. There is no way to send a value to a trigger directly other than in the inserted table ...Show All
Visual Studio 2008 (Pre-release) Nothing works....
OK, I've installed WPF, and I can create a project, and it will run. But I'm finding the designer hard to use ( no copy/paste, no automatic line up of controls, etc ), and if I go to the XAML view, I can't type into it, it shows a character I typed every 30 seconds and never accepts < or >. If I type the text into Notepad and paste it, it builds and runs, what I am typing is valid. What am I missing The design view creates really ugly XAML ...Show All
Visual C++ Visual C++: serial communication and MFC
Where can I find a good example of serial communication in Visual C++ and MFC. i am providing some links that would be helfull for the answer: learn win32API's http://msdn2.microsoft.com/en-us/library/aa363194(VS.85).aspx http://www.codeproject.com/KB/system/cserialcom.aspx http://msdn2.microsoft.com/en-us/library/ms810467.aspx http://ontrak.net/mfc.htm thank you. ...Show All
SQL Server Reporting Services 2000 sp1
hi, I am using reporting services 2000 sp1 with vs.net 2003. I had it all set up ok (create, deploy reports etc). The problem i have is now for some reason i cant deploy and i get the message cannot connect to server. I have not changed anythink is this a know bug or somethink else. I have tried uninstalling and installing again same problem hope someone can help. thanks in advance kered ...Show All
.NET Development Xml.XPath.MoveToNext() not working
I have this simple code: WriteSettings.Load(MainApplication.FileLocation + "settings.xml"); XPathNavigator Nav = WriteSettings.CreateNavigator(); Nav.MoveToRoot(); ...Show All
Visual Studio Tools for Office Macros in Excel for Exporting Tables to Excel
Hi, For my ICT coursework I have created a series of table in Access and I have decided to create a macro that exports the tables to excel. I have managed to create the macro but it will not work because it is on an OLE sever. Could you tell me how to make it work Also would I be able to make this macro work when I am in Excel So I would have a macro button that exports data from Access, and it would be executed in excel. If this was n ...Show All
Visual C# How to Refer a C# dll over the Network into a VB6 Application
Hi , I am using a dll created by a C# project in my VB 6.0 Application. I am refering the dll from the Project-> Refrences from the VB 6.0 IDE the dll which i am using is now in the local system say " C:\Project\MyInterface " can any one help in refering this dll from another machine over the network. Thanks and Regards, Suraj you have to register assembly as COM object on local mach ...Show All
Visual C# Interaction between main program and dll
Hi all! Could anybody give me an example of following: 1) Main program in C# that calls function Foo(Handle_of_My_Form) declared in my dll. 2) Dll in C++ with implementation of Foo that just calls PostMessage(Handle_of_My_Form, WM_USER, 0, 0). 3) Finally, main program catches this messages and show MessageBox "All right! I've caught it!". Please, help - I need to do this task as soon as possible. -- Sincerely, Dmitri ...Show All
Visual Basic Opening
As you can see from my name, im not great at vb, but ive set a target, and im determined to reach it, my progs gonna be a file organizer First off, i need to now how to use the openfiledialog The above code will open the selected file with a Stream, allowing you to read the content of the file. If you don't need to read the content of the file, you can remove the myStream code and simply use openFileDialog1.FileName to get back the nam ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to play a single note?
I'm not sure this is the best forum to ask this question, but I'm going crazy trying to figure out how to solve this problam I have: I'm programming using Visual Studio .Net 2005, and just installed the latest DirectX SDK. My main Programming language is Visual Basic.Net So, to the problam: In a project I'm building I need to have a class/method that gets some information about a musical note (the pitch/register/note+octave(whate ...Show All
.NET Development Authentication with the TCP Channel
Hi there, I'm working with the July CTP of VS.NET and found this article: http://msdn2.microsoft.com/library/59hafwyt(en-us,vs.80).aspx Somebody out there who tried authentication with the tcp channel I have a website that talks over a tcp channel to a marshal-by-ref bussiness layer object that is hosted in a windows service. I want to impersonate my users, so that I can use role-based security in the business layer object. I would really like ...Show All
Windows Forms How to determine if DataGridView rows are accessible?
Is there a 100% accurate way to determine if cells of a DataGridView are accessible before trying to access them I have master/detail DataGridViews bound to a dataset. My code, which tries to access cells of the detail grid during SelectionChanges of the master grid sometimes throws NullReferenceExceptions saying the detail grid columns don't exist. I want to prevent this from happening. I have tried the overly compli ...Show All
