freadomfee's Q&A profile
Visual C++ no appriciate default constructor
Hi everyoune. What's a reason I cannot compile source code which is similar to one following below. VS 2005 compiler generates an error (C2512) error C2512: 'CControlCp<F>::CNodeCallback' : no appropriate default constructor available class Cp { public : Cp(Env env); Cp( const Model model); Cp(CpI* impl = 0); } class CallbackI { protected : CallbackI(Env env); virtual void main() = 0; } template < class F> class CControlCp : public Cp { class CNodeCallback: public CallbackI { public : // CNodeCallback(Env& env): CallbackI(env) {}; // when it's non commented the same error occurs CNodeCallback() {}; ~CNodeCallback(){}; }; ...Show All
.NET Development Passing a Form handle to a class constructor
I'm just starting to use Managed C++ and .NET. I'm still in the early learning stages. Basically, I have a Window Form that has a value for MyClass to use. I thought I could use the following code to pass the Form1 handle to the Myclass constructor. First, the compiler says MyProgram is not a namespace. I've placed the using namespace into the MyClass.h, but this dosesn't help I think it may be a chicked before the egg kind of thing, but want to make sure I'm not missing something. Currently, I have a private member method within the Form1 class called setMyClass( ^Form1 ) which works but this doesn't seem very OOP to me. //---MyClass.h--- #pragma once public ref class CMyClass { public: CMyClass( MyProgram::Form1 ^hFor ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Properties with mulitple values
How would one go about creating a property that has multiple values like the Size property for example. It has a height and a width property contained in itself.. I want to create a property for the drawing color that has 3 ints: red, green, and blue. I don't know how to do the getter method. public int DrawColor { get { } set { red = value; green = value; blue = value; } } It would be easier to do a class like this: public class DrawColor { public int red; public int green; public int blue; } private DrawColor color = new DrawColor (); public DrawColor Color { get { re ...Show All
Visual Basic Express to Pro
Is there a part number to use when going from VB Express to VB Pro 2005 There are several of these, a little confusing, I just want to make sure I get the right one. There is no 'upgrade' path from VB Express to VS Professional. Unless you have a previous version (e.g. VB6, Visual Studio6/2002/2003) you will need to buy the Full Version of Visual Sudio 2005 Professional. ...Show All
Smart Device Development 3D Human
Hi, Could someone please help me to develop a 3D rotating human on a PDA running Pocket PC 2003 and CF 2.0 I am trying to find a way to build the application. I am currently using Visual Studio 2005 or Visual Studio.NET (I have both) with VB as the programming language. However, I am also looking for alternative ways to do it. Any help would be appreciated. Fotis PPC 2003 does not have support for D3DM, so you would have to do everything - from parsing the model to rendering and painting it polygon by polygon - complete 3D engine. I would estimate complexity of such project at 10 man years if done by experienced developers in C++, probably more. It is not impossible and has been done ...Show All
Windows Forms Changed Underlying Table Structure -- How to Update Project Dataset?
VS 2k5 using VB I'm still designing my Windows app and have made some changes to the underlying tables (keys, relationships). I can't seem to find a way to update the dataset in my project with the new table info. I created the db/tables in SQL Express. In Data Sources, I've tried using "Configure Dataset with Wizard" and "Refresh" to see if it will update the dataset with the new info. It goes through the motions, but the new table structure/info seems to be ignored. So far, the only thing that seems to work is to delete the dataset from my project and then add the db/tables again as a new data source... or, if I've only made changes to only one or two tables, I can just delete those tables from the dataset and add the ...Show All
Windows Forms add reference of DLL
used one DLL which i get from C++ application ,i add this DLL in my C#.net application's bin folder and try to add reference of it but .net application can not allow to add that dll in it and it gives error like " This is not a valid assembly or COM components. Only assemblies with extension 'dll' and 'COM' component can be referenced " i can not understand that why it not allowed to add reference of C++ dll in .net application I think P/Invoke is the best solution for such situation because the dll may be unmanaged code at all. Here is a useful link about it http://msdn2.microsoft.com/en-us/library/ksk40b62.aspx ...Show All
Windows Forms datagridview datetimepicker without time format problem
i am using that c# code for datagridview datetimepicker from this link http://msdn2.microsoft.com/en-us/netframework/system.windows.forms.idatagridvieweditingcontrol.aspx but i do not want to print time in date, i want only print the date like "07/02/2007". how can i do that on this code. thanks Have you tried to set the Column.DefaultCellStyle Don't confuse the DateTimePicker as a EditControl of DGV with the Column of the DGV. What you see is the Column not the DateTimePicker until you edit it. ...Show All
Visual Studio 2008 (Pre-release) Disabling Edits/Selections on FlowDocument elements in RichTextBox
Is there a simple way to disable editing on FlowDocument elements hosted within a RichTextBox What I want to do is to mark off certain portions of the document as being non-editable and non-selectable. I've tried using IsEnabled="false" and Focusable="false" but the RTB seems to ignore these attributes. Any help welcomed! It seems that one could derive from Run and create a non-editable run -- is this possible Perhaps derive from Inline element (or whatever it is called) ...Show All
Visual Basic Colour Combo Box
Hi, How do i get a combo box to display system colours As i am using it so the user can select the background colour for a graph. I have tried colourcb.text = color() but this produces an error any ideas Andy Make this change to fix the code: Private Sub Update_ColorList() Try Me .Items.Clear() Dim zArrayList As New ArrayList(40) zArrayList.Clear() The Sub New() and the ColorsToShow() are both calling Me.Update_ColorList when the control is initialized and because zArrayList already exists, the code is not waiting for another new one to get initialized. Edited comment: Well it fixed it in one test. Now I don't know .... ...Show All
Visual Studio Help to select the lexer/parser generators
Hi there, I'm working on my custom package which integrates a new project type and a new language into Visual Studio. I'm using ANTLR as a parser/lexer generation framework. But as I can see MPF uses line-by-line parsing mechanism. I'm trying to interconnect ANTLR way (one-step parsing) and MPF one to each other for now. Does anybody try to use ANTLR already Is it possible in principle or not For now I’m at the very beginning so maybe it’s better to use other generators Maybe lex/yacc What tools can you recommend to write grammars for them Any suggestions/ideas related to lexer/parser generation are very welcomed. Please, drop your minds here. Hi Dmitry, I have never attempted this with A ...Show All
SQL Server POST method for .aspx pages to SRS
I have a few reports that require parameters to be passed for running. I would like to create some .aspx pages with drop downs/list boxes to alow the user to select the parameters and then run the reports (part of an intranet application). I fill these boxes with items from a database. The problem I am running into is if I make the FORM action=http://192.168.0.50/reportserver.... and not have runat=server set, I get an error that the dropdowns must be in a runat=server form. But if I put the runat=server in the form tag, then the page reposts to itself and will not go to the report url. I've tried using response.redirect, but that only works if I build the parameters into the url. I don't want them to show in the url, hence the reas ...Show All
Visual Studio Express Editions remote database
Hi People! Please, HELP ME! I use Visaul Basic express edition and I want to connect to remote microsoft access database. 192.168.54.106 with computer about this IP I want to connect Data Source=C:\software\software.mdb strConString = "Provider=MS Remote;" & _ "Remote Server=http://192.168.54.106;" & _ "Remote Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\software\software.mdb;Persist Security Info=False" This code doesn't work I' am waiting for answer I will be very grateful nobugz wrote: Hey DMan1: almost missed that one too. Why don't you let the thread start mark answers You ca ...Show All
Visual Studio Tools for Office hello, very new to VBA, (?) silly question coming.....
Hi there, and thanks for reading this! I am new to VBA and have an excel spreadsheet with a form in it that I would like to use with a drop-down list to enable people to login to the spreadsheet. I have managed to make the form appear when the workbook is loaded (I told you I'm very new to VBA!) and now have a form that shows a drop-down box and a text entry field. I would like to be able to use the drop-down box to lookup a list from a spreadsheet (preferably an external sheet but it can be internal to the worksheet if this is not possible) to select a list of user names... This is my first hurdle... After that I am hoping that the user will enter a password that will also use some sort of lookup function to the same worksheet ...Show All
Visual Basic How can we lock Texbox,Combobox,Checkbox without disabling?
Dear all, How can we lock Texbox,Combobox,Checkbox from editing Setting Readonly to Texboxes makes it's backcolor grayed. combo.enabled =false or txtbox.enabled = false changes its backcolor to gray. I want the back color or forecolor not to be changed when we lock the controls. Thanks in advance unfortunately, i don't think there's a way you can get all the controls in one function since they have different event handlers that you have to worry about. However, you can group the same kind of controls in the same event handler. Here's an example. I also added "SkipControl" because you may want to have a quick way to enable/disable this 'feature' Public Class Form1 ...Show All
