Boris C's Q&A profile
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) ...Show All
Visual Studio Express Editions Learning C++
Where would be the best place to learn C++ >> I wouldn't consider any resume that has listed as his or her primary education reading books. I have done no courses at all, ever. I consider that sort of rejection a lucky escape, I regard any interview as going two ways, and anyone who regards how I learned to be more important than what I know, I'm glad not to work for them. I learned entirely by reading books. I got my first pro ...Show All
.NET Development Is it possible to convert XML into a Class?
Given an XML stream as below, is there any possibility to convert the same into any treditional class style with . (dots) as seperator of the nodes of the xml file... for instance bank.code.tostring() should reslut me " 5070 " and bank.description.tostring() should result " ICICI - Bangalore " bank.location.destination.code should result " MB " bank.location.zone.code.tostring() should result " ...Show All
SQL Server un-named assertion fired for component processing error
I am getting an "un-named assertion fired for component processing" error in RS 2005 when running a report that allows a null parameter value. If I supply a value, the report runs ok. When I run the query in the data designer, leaving the value null, the results return as expected. It only bombs when I run the report with a null parameter. A couple things: The report contains a subreport with parameters, none of which are the one th ...Show All
.NET Development commit changes from dataset to Data base
Hello, My problem consist of: I made a dataset throug the VS 2005 designer, then I added an objectDataSource to retreive data ,I stocked this data in a datalist which permit to me to update the data in the DataSet , the problem is I don't find the way to commit the changes to the DB ; because I can't manipulate the instance generated of the dataset by using the acceptchanges() method. So what can I do H ...Show All
.NET Development Event Log Problem
Hi, I am trying to test event logging in .net. Here is the sample code Dim EventLogName As String = "Test" If (Not EventLog.SourceExists(EventLogName)) Then EventLog.CreateEventSource(EventLogName, EventLogName) &n ...Show All
Windows Forms Inherit from DataGridViewLinkCell - Editing control doesn't appear
Hi, I'm creating a new DataGridViewColumn that uses a new DataGridViewCell type that inherits from DataGridViewLinkCell. It displays data as I want, but I can't get it to show my edit control. Is it possible to implement an editing DataGridViewLinkCell Thanks in advance, Fran Hi again, I found the answer in a thread about DataGridViewCell. You must override OnMouseClick and call DataGridView ...Show All
SQL Server Cubesize dependent on number of records?
Experimenting a bit I've constructed two cubes with identical measures, dimensions and aggregation design. The difference is one processes 1 million records and the other one 100 million. The first cube ends up 48,28 MB in size while the other is 4210,30 MB. From where is this difference coming Considering the number of cells should be equal as they both have same dimensions with same members and each cell have the same measures stored I would'v ...Show All
Visual Basic Updating a Access Database from Visual Basic
Hi. I'm havng trouble with updating my Access database from Visual Basic. There are no problems when populating datasets from the database, but as I try to update it after some changes, nothing happens.. Anyone got an idea Hege Hi Could you paste the code you are using for the update Thanks ...Show All
SQL Server Failed SQL 2005 SP1 installations (Hotifx.exe crashes)
I am seeing repeated failures installing SP1 database services with crashes in hotfix.exe being reported and the following appearing in log files: Property(S): SqlUpgradeMessage = SQL Server Setup has encountered the following problem: [Microsoft][SQL Native Client][SQL Server]Cannot find the object 'dm_exec_query_resource_semaphores', because it does not exist or you do not have permission.. To continue, correct the problem, and then run SQL ...Show All
Visual C# Generic methods and warning CS0184: The given expression is never of the provided '%typename%') type
In the given example... public virtual type GetUser< type>() where type: class { if ( typeof ( type) is User) { // do something } string temp = typeof(type).FullName; if( temp.CompareTo( "User") == 0) { return _myUser as type; } throw new NotSupportedException( "Type is not supported"); } Why does the C# compiler generate the follow ...Show All
Windows Forms How to remove a class/form in VS project?
Hi all, How to remove a class/form in a Visual Studio project I try to delete the file manually, but that is not OK. Any help, Thanks. Right click on the file in the Solution Explorer. Exclude From Project removes it from th ...Show All
Windows Forms Panel.visible
Hi! I put some Label and TextBox Controls on a panel to switch collectively their visibility. When I ask for the state of visibility to layout the form I allways get "false". public partial class InputControl : UserControl { public InputControl () { InitializeComponent (); panel1.Visible = true; panel2.Visible = false; DoLayout (); } private void DoLayout () { if ( panel ...Show All
Visual Basic Migrating usage of VB6 control arrays to 2005. How do I do this?
Hi again. Need some advice and I'm new to VB2005. In VB6 I used control arrays a lot, and there are no control arrays in 2005. I found out how I can do the same thing by referencing the handles in a sub, but I have another scenario not covered in MS's migration page. To make it simple, let's say I have 10 labels and I want to pick one randomly and display text in it. In VB6 I could have all these labels in an array and do this (quazi code) I = ( ...Show All
Visual Studio 2008 (Pre-release) Message protection for an arbitrary function?
I am looking for the easiest way that I can make the contents of a particular method signed & encrypted. I need this behaviour as we want the administrators to be able to configure whether or not our system uses protected links (so they can squeeze out more performance if all their machines are in a trusted network). Hence we cannot guarantee that our links will be protected in the usual manner. The problem is there are certain messages that ...Show All
