Stevo Guy's Q&A profile
Visual C++ Templates and LNK2005
In a header file, I have a template with some inline methods: template <class BASE> class ServiceTmpl : public BASE { virtual string const& name() const { return name_; } ... }; Another file has an abstract base: class IInstrumentFactory { virtual void variousMethods() = 0; }; Then I have two classes: class NullInstrumentFactory : public ServiceTmpl<IInstrumentFactory>; class G3InstrumentFactory : public ServiceTmpl<IInstrumentFactory>; Now I'm getting LNK2005 errors, because apparently ServiceTmpl<IInstrumentFactory> is being instantiated twice. How can I avoid this problem ...Show All
Software Development for Windows Vista Designtime changed values (by code)
Hello, I have an other problem with the dependency Properties. I have a custom Designer for some of my custom activities. On DoubleClicking the Avtivitiy a form is shown with wome different inputs for the user. On Closing the form the entered values will be saved in the Properties of the activities. The Problem is first time i change the values everything works correct. But if i try to change the values after reloading the workflow, they don`t change their values anymore. It only works if i type the values directly into the Property Grid. Example of saving the values in the form: private void btnOK_Click(object sender, EventArgs e) { ...Show All
Visual Studio Team System TeamBuild error compiling websites (FILE)
I am gettinh this error when try to compile my website in TeamBuild ASPNETCOMPILER(0,0): error ASPCONFIG: The specified module could not be found. (Exception from HRESULT: 0x8007007E) Any suggestion The problem was solved installing the C# language tools in the build server. Initially, I just installed the SDK and the tester tools. Thank you BFC ...Show All
SQL Server How is InstanceSelection set on a report model based on a OLAP cube ?
When autogenerating a report model from an OLAP cube, what is the criteria used by the SQL engine for deciding whether the InstanceSelection tag should be List or DropDown. As far as I can see, this decission is pure magic. E.g. <Entity ID="udm:Entity_Dimension_Person_Ulykke_Arbeidsoperasjon"> <Name>Person Ulykke Arbeidsoperasjon</Name> <InstanceSelection> List </InstanceSelection> <Entity ID="udm:Entity_Dimension_Person_Ulykke_Stilling"> <Name>Person Ulykke Stilling</Name> <InstanceSelection> Dropdown </InstanceSelection> ...Show All
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Develop a console program that calculate and displays the charges for each customer who parked a car in this garage yesterday. ...Show All
Windows Forms Custom Control With SelectedValue Property - How to determine correct "default" data type to return?
I have a custom control that has a SelectedValue property. It is basically a ComboBox control, if that helps. Anyway, I have a business object that I'm binding to this control. In some cases, the business object property that I'm binding to the control is a System.GUID, in other cases, it is a System.Int32 or System.String. My delimea is that if the custom control's internal _selectedValue member is Nothing, because the user never selected a value or the selection was cleared, I want to return a valid data type to my custom business object. So if I'm binding to a property on my business object that is a System.GUID an ...Show All
Windows Forms unable to pre-select a value in my combobox column
Hello there, need your help, i have a unbound combobox column in my DGV and i populated it using the following code dgCboTask.DataSource = _ds.Tables["_dsTask"]; dgCboTask.ValueMember = "code"; dgCboTask.DisplayMember = "codedesc"; upon load form, i bind my DGV in using the following code dataGridView1.DataSource = dsGridData; dataGridView1.DataMember = "dsData"; dataGridView1.VirtualMode = true; How could I display/pre-select a value in the combobox after form load. I have hidden column in my DGV that contains the ID w/c must be the selectedValue to be displayed in my DGV combo box. ...Show All
SQL Server Can't connect to Report Server via Management Studio
Hi, I have a local installation of SQL Server 2005 (Developer Edition) on XP Professional SP2, with Reporting Services, Integration Services, and Analysis Server installed. I can connect to Integration Services and Analysis Server via the SQL Server Management Studio, but not to the Report Server. I can access and use the Report Server installation via http://localhost/Reports and http://localhost/ReportServer , and everything checks out on the Reporting Services Configuration tool, so the server appears to be working fine. I've uninstalled/re-formatted/reinstalled the services (with all default options, and services running a ...Show All
.NET Development Show JPG image
Hi everyone, I first would like to warn you that I'm a newbie programmer. So if I have left out important code for you guys to determine what I'm doing wrong, let me know. I am making a PocketPC application using C# and an XML file as a database. I would like to display the corresponding JPG image in a PictureBox, or somewhere on the main page. A sample of my xml file. The bolded line is the picture reference. < fragenkatalog > < ca_id > 4 </ ca_id > < ca_titel > head ap </ ca_titel > < ca_bildurl1 > kopf_ap.jpg </ ca_bildurl1 > < ca_disabled > 0 </ c ...Show All
Visual C++ Converting byte counted strings to null-terminated strings
Does anyone know an easy way to convert byte-counted strings to null-terminated strings I'm trying to pass a filename as an argument in a custom made worksheet function defined in an xll created in C++ 2005 express. I think the problem I'm encountering is that excel is passing a byte-counted string and the function in C++ needs a null-terminated string. So it comes down to finding an easy way to convert byte counted to null-terminated in my C++ code. Any ideas are appreciated. Thanks. One approach is to first extract the byte count, then traverve to the first element in the string. Kuphryn ...Show All
Visual Basic exporting data to excel
Hi, i need to export a query result to excel. I did it using a few methods but it seems that it is taking to long if loading large amount of data like 1000 rows. I did looping a datatable and write the values to excel via excel object 11.0. - 20 secs for 1000 rows exporting the data to CVS but i will have problems formatting the data. using copyfromrecordset using adodb. But they want it to be done in .net Are there any better and faster ways Must be done programmatically using vb.net. thanks I recently had the same problem, although i could have used the adodb option, i ended up g ...Show All
Windows Forms stretching backgroundimage
hi everyone....... i'm developing a system (winform). it is best viewed in 1024x768 resolution. this system have a banner (in a groupbox) that docked at the top of the program. i have 3 images (.jpg) that i will use as the groupbox background. These 3 images has different colors (blue, green and silver) based on the windows xp theme. this program can d ...Show All
Visual C++ Convert wchart_t to TChar
Convert the type of wchar_t to TChar A newbabie, can you teach me how I can convert wchart_t to TChar Thanks ...Show All
Visual Studio how to set to open different files with different editor
After working with sourcesafe, I am a hard believer that it sucks. I have all kinds of files checked in sourcesafe like xml, java, jsp, txt,pdfs and css. Each time I double click the file it asks me how to open a file. i.e. with which editor. (I know I can set the options using options to open/edit or check out). I have set one editor as default. But if I have to open a different types of files, I have to choose editor from radio buttons. Isn't it a pain Software should allow us to define what type of file we want to open with which editor. i.e. we should be able to define that after double clicking Source safe should open ...Show All
Visual Studio VB6 + Crystal Reports 9 without installation
I would like to know if there is a possible to open an application on Visual Basic 6 with Crystal Reports 9, from a mapped drive without installation on each computer. Thanks, Seven Know Could you perhaps explain what you are trying to do. You want to open a VB6 application containing a Crystal Report And without an install of what exactly ...Show All
