Alfy's Q&A profile
Visual C++ __gc* equivalent in VC++ 2005
I understand that the equivalent for __gc in VC++ 2005 is ref keyword. Similarly can anyone update me on the equivalent for __gc* in VC++ 2005. Thanks in advance MadhuSri wrote: I understand that the equivalent for __gc in VC++ 2005 is ref keyword. Similarly can anyone update me on the equivalent for __gc* in VC++ 2005. Thanks in advance A^ a = gcnew A( ); The A^ is a handle to the managed object A (similar to __gc* in MC++) ...Show All
Software Development for Windows Vista Beta2 Installation problems
I am trying to install WWF Beta2 (in fact i have been since last Friday). Anyway i manage to load all the components until i attempt to install WWF beta 2 it fails with the message : " the following platform components failed to install and will need to be manually installed before setup can proceed: Windows Workflow Foundation: The installation source for the product is not available. Verify that the source exists and that you can access it. Check log for details" I then try to run WinWFSDK_x86 probably not a wise decision but im desperate. It loads but it tries to open VS2005 which now fails! WWF Beta 2 appears to have b ...Show All
Visual C# execute another app in installer?
Hi there. My application requires the DirectX runtime files (Microsoft.Directx.dll and the Microsoft.DirectX.Directsound.dll files only) Because of licensing, in order to distribute these files I need to either: 1) include the entire Microsoft DirectX distributional setup file for end users 2) refer the user to the Microsoft DirectX website to download and install the end user/runtime files IF I decide to go for 1) - how can I execute another application (perhaps a batch file) within the installer, giving this batch file some arguments Is it possible Basically, When the installer is doing its job, I want to extrac ...Show All
SQL Server Web Synchronization wizard
I'm trying to configure web synchronization using the wizard, It errors out on step "Setting The snapshot share permissions". The error I get is The operation completed successfully. (Exception from HRESULT: 0x80070000) Then all the other steps rollback. I'm using the default location for the snapshot i.e in REPLDATA folder. When creating the publication I used a UNC path to specify the snapshot folder. For testsing purposes I'm using a windows account that has admin privilages on the box that is running IIS. I'm just testing this merger replication over https, so I have IIS and the distributor on the same box. I created the ...Show All
Visual Studio Express Editions Append text file c#
StreamWriter sw = File.AppendText("C:\\some.txt"); sw.WriteLine(buffer); sw.Close(); Using this when the buffer is saved..C# will always add a newline to the file: Hel lo In VB....it would be saved to the next position in the file : Hello WriteLine adds a new line... Any way to do this in C# Thanks I'm sorry, can you elaborate a little on your code In your example, does buffer = "Hello", and it's printing two lines Or are you trying to figure out how to print to a stream without a new line being printed If so, use Write instead of WriteLine . Josh ...Show All
Windows Forms DataSet dissapears
When I design a form that has a dataset component in it. I want to localize the form and so I make it Localizable true. Then when I change the Language and localize the form and then switch back to (Default) or any other language my dataset component dissapears from the form. There is no exact number of switches that I have to make. Sometimes one is enough, sometimes more than one switch. I wonder why Any help would be appreciated... Thanks in advance, Nistor ...Show All
Visual C++ How to add print support in CformView
Hi, I just create a MDI MFC application using CFormView as the base class for the application view. It becomes a disaster when I want to print this form to printer. According to the MSDN document: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore/html/vcconcreatingforms-basedapplication.asp No printing support for a form-based application! I tried to add ON_COMMAND(ID_FILE_PRINT, OnFilePrint) to enable print function in File/Print , and override OnPrint() ; however, it gave me the error message like this: Debug Assertion Failed! Program:!K\test.exe File: viewprint.cpp Line: 157 Fo ...Show All
Windows Forms skins for forms
hi frnds, i want 2 create different themes /skins for my forms which enables us to change the shape of the forms as well what exactly should i do i m a newbie to c# thanx in advance ...... Hi, check this tutorial: http://www.geekswithblogs.net/kobush/articles/CustomBorderForms.aspx ...Show All
.NET Development Querying a DataSet (multiple Tables) - No attached Database.
I have two tables in a dataset, which are both filled when the user opens a source file. One table contains customer names, the other contains transaction information I want to display a datagrid/datagridview of all customers who have transactions records between a certain date. All the records are in each table and linked via a relationship (customer account code) I can't work out how to generate a query without using a seperate database. At this stage a seperate database is not a viable option. Can anyone help please If I understand correctly what you're asking, I think all you need to do ...Show All
Visual Studio Team System errors in load test ("Object reference not set to an instance of an object")
When I use the following code to enumerate dependent requests, I dont get the error "Object reference not set to an instance of an object" foreach ( string s in LastResponse.HtmlDocument.DependentRequestUrls) { WebTestRequest loopRequest = new WebTestRequest (s); yield return loopRequest; } if I add in the following check, I get an "Object reference not set to an instance of an object" more frequently. debugging shows LastResponse.HtmlDocument.DependentRequestUrls coming up as Null. foreach ( string s in LastResponse.HtmlDocument.DependentRequestUrls) { if (s.EndsWith( ...Show All
Windows Forms Browser object within a windows form ... how?
I'm a Web Developer working on a windows forms project. I have a listbox that displays a list of items. When one is chosen, I'd need to read in an xml file and display the contents of the xml in a specific format (different fonts/sizes/colors, etc). I figured I could use xslt to transform the xml into html and display the format ...Show All
.NET Development Custom Form Movement
i want to create a form that has no Default control box instead i have put a picture on it and i want that picture box to act as its control box like user can move the move by that picture box........as this can be seen in MSN Messenger 7.0... Hi, I think you are looking for this: http://www.thecodeproject.com/csharp/CustomForms.asp ...Show All
Visual Basic Is there a way to highlight code?
Is there a way to highlight lines of code in the VS IDE It would be cool to be able to highlight individual lines or blocks of code in custom colors. ...Show All
SQL Server sql server help
Hi, every time i try to make a database it makes it then asks what to connect to and then comes up with error messages. How do i fix this http://img400.imageshack.us/img400/6744/error5qm.jpg << the message [Microsoft Visual C# 2005 Express Edition Beta] Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. I get the same error using c# express. Reininstalling didn't help. The frustrating thing it works fine for a friend. My sql server express failed to install properly, might be something to do with that. Unfortunately the sql server exp ...Show All
.NET Development Signing Web Application with StrongName
I want to Sign my Web Application with a StrongName. So that I want to assign some permissions to that application. I have followed the steps as found at http://blogs.ugidotnet.org/markino/articles/24955.aspx So, I have included compilerOptions in page directive, And my key file is c:\WebOffice.vb <%@ Page Language="vb" compilerOptions="c:\WebOffice.vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApp2.WebForm1" %> But it is giving the error as follows Compilation Error Description: An error occurred during the compilation of a res ...Show All
