csaba legany's Q&A profile
Visual C# C# COM question
I have a dll that I use in VB 6. I create a variable called DB, I access the records in the DB like this DB(index).PutStringField("data") when I try that in c# I get an error is a 'property' but is used like a 'method' I have no idea what to do because I have not done any COM interfacing in C#. Is it a simple syntax problem or do I need a different version of the dll that I have always used ANY help is greatly appreciated. It’s a syntax problem. In C#, the indexer is surrounded by square brackets, not round ones. Bruce Johnson [C# MVP] http://www.objectsharp.com/bl ...Show All
SQL Server Pivot Error
Hi : I am getting the following error message when I am trying to do the Pivot operation. Msg 265, Level 16, State 1, Line 1 The column name "FirstName" specified in the PIVOT operator conflicts with the existing column name in the PIVOT argument. Msg 265, Level 16, State 1, Line 1 The column name "LastName" specified in the PIVOT operator conflicts with the existing column name in the PIVOT argument. Msg 8156, Level 16, State 1, Line 1 The column 'FirstName' was specified multiple times for 'Pvt'. My SQL Query is: SELECT UserID , FirstName , LastName FROM ( SELECT UserID , First ...Show All
Visual Studio Suggestion for class designer
I'd like a "Show as Custom Collection Association" option for properties and fields. Here's an example: I have a class called Order which has some stuff about it. I then have a class called OrderCollection which inherits List<Order> and overrides/adds a property or method of some sort (otherwise we wouldn't need it). I then have a customer class that has a property of type OrderCollection. If I show that property as an Association, it links to the OrderCollection. If I show as an Collection Association, it links to the Order class. The only want to link OrderCollection to Orders is to show the indexer (this[]) as an associ ...Show All
SQL Server noob syntax question
What am I doing wrong : DELETE FROM tblmainacs2 WHERE tblmainacs2.IDnum = Meter.id I get this message: Msg 4104, Level 16, State 1, Line 1 The multi-part identifier "Meter.id" could not be bound. Is Meter a table If so you do contain an explicit reference to it in the DELETE statement in the FROM clause or part of subquery for example. You can write it like below assuming you want to perform a join: delete from tblmainacs2 where IDnum in (select id from Meter) ...Show All
Windows Forms Databinding of datagrid & combo box
Hi everyone, i have 2 qns which i need helps from you guys. 1) i have to databind a dataset to the datagrid. The dataset contain a table with 2 colums : CateogryID and CategoryName. After binding it to the datagrid, i would allow the user to make changes to the CateogryName and update to the database. The Qns: how do i make the ID c ...Show All
Visual Studio crystal reports and .net resource files
I am a complete newbie when it comes to crystal reports. I am working on a project where I am going to make 3 realatively simple reports. However, the application is multilingual. I'd rather not make one report for each language (I just made one, and it was a drag to format because it is realtively crammed with infomation), so I am looking for a way to dynamically read from a resource file into my crystal reports. Is this possible If it is, how do I do it Well, I guess that my question was so trivial that either people did not understand it or they did not bother to answer it I guess I also should have formulated it differently, how d ...Show All
Visual Studio problem with SS utility
Hello I have ssexp.exe version 6.0c build 9447, and ss.exe 6.0c build 9350. In Dos prompt I type: ss Checkout $\sv201\db\dbcmd.cpp -IC -c- The file is checked out (I can see it when I hit F5 (refrash) at the UI VSS) The problem is that the attrib of the file stays read only. I type again ss Checkout $\sv201\db\dbcmd.cpp -IC -c- I get "You currently have file $/sv201/db/DBCMD.CPP checked out." But I can't edit the file cause it is still read only!!! Any hints Thanks OM The location where ss.exe checks out a file depends on Force_Dir variable defined ...Show All
Visual Studio Can someone explain to me this command line syntax ?
Hi guys i am debugging a existing code promotion program at my work place and currently i am trying to understand how the previous programmer downloaded a copy of a certain project based on the label onto his local machine/server folder. However due to the lack of documentation and comments, i am having a relatively hard time trying to deciper this command. I tried looking at the GET command within the VSS MSDN however i found several options that were not inside the MSDN but found inside this commandline. Could any of the VSS gurus pls help me out with this explanation please assum ...Show All
SQL Server calculations aggregating also Hidden Members
Hi everybody, I'm trying to apply a calculation to a cube, in the Standard Edition. Dimension "Mesi" has got hidden members, which I don't want to see in my reports, but that should be aggregated. If I use the following code to aggregate the "first" member across the "Mesi" dimension (a Time dimension), the "Descendants...item(0)" function applies only to the visible items, whilst it should apply also to the hidden members (I mean that the item(0) could be also a hidden member and it should be considered). I have the same problem also using the OpeningPeriod function. I don't understand ...Show All
.NET Development Monitoring and changing varibles in a process
I was wondering how to get a value form a running process, lets say MySimpleProcess.exe that is running in memory. If i made a integer that was value of 15 and lets say I click the button and it drops to 10 then 5 then 0. I am trying to make a program that tracks an address in memory and its value. lets say address is B74EC4 value is 15 (4 bytes) Click B74EC4 is now 10 etc.. Are you talking about managed or native code There are several ways to get a value from a process. 1. Use the debugging APIs (aftearll, this is what debuggers do). 2. Manually track a pointer to your value of int ...Show All
SQL Server OLAP administrators group.?
hi all.. i have a problem about sql server analysis. i try to connect sql server for OLAP but i can't. sql server analysis give this error "unable to connect to the registry on the server or you are not members of OLAP administrator groups on this server" i use Windows Xp Pro and Sql Server Developer Edition. how can i solve this problem.. Please provide more details Same machine for Analysis Manager and Analysis Services or different machines Service Pack 3 or greater on both machines if different machines ...Show All
Software Development for Windows Vista Invoking one workflow from another
I want to invoke one workflow from another and get some back some return values from the second workflow. I tried the InvokeWorkflow activity but have some issues with that. 1. If I use a workflow in the same project for the InvokeWorkflow activity then I get the following error "You cannot invoke a workflow compiled in the same project as the invoking workflow." Why is this not allowed 2. I invoked a workflow from a different project but that other workflow had some "out" and "ref" params so that it can return a value back to the calling workflow. However I got the following error: "Workflows with Out or Ref parameters cannot be invoked fr ...Show All
Visual C# Compiling my source file with VStudio 2005
Hi guys i'm an new VStudio user and i've an doubt about as i can it compile my source file using the VStudio 2005. I created an simple source code for it test, but i not find the option for compiling the file. Someone can help me Hi! It can compile, run and debug. Check Debug menu and look here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=304751&SiteID=1 ...Show All
Visual Studio Express Editions Problems with controls Position
Hi I am new with VB Express. & for .NET Environment. Please Leave this post if it is silly. I tried to place three buttons in the form. I Placed it, compiled it and ran the form, and it worked properly. After I tried adding another button in the form. I rearranged the buttons to a new location. saved, compiled and when executed, the three was still on the old location , and the new button in the new position. I tried re arranging the again and again . but still the three buttons were on the old location only and the new button in the new location. I also tried to accomodate the new button with the three button itself. I ...Show All
Visual C++ Is partial redistribution of VS 2005 DLLs allowed?
We're looking at migrating our applications from Visual C++ 6 to Visual Studio 2005. We link in the MFC and the C-runtime DLLs. Since users download our application over the Internet, we need to minimize the download size as much as possible. We would need to redistribute the VS 2005 DLLs as applocal. Does the license agreement for redistribution require that the entire contents of the Microsoft.VC80.CRT and Microsoft.VC80.MFC be redistributed if any of them are needed Or would it be possible to just redistribute mfvcr80.dll and mfc80.dll and their manifests appropriately modified, since that's all we need at this po ...Show All
