Petrus's Q&A profile
SQL Server Sorting parameter listbox on analysis services datasource
Hi all, How must I change the mdx that is generated for the available values for a user parameter in order to get the content sorted Regards, Henk BTW the exact mdx query is given below (and the label field of the parameter is set to 'ParameterCaption'), but I would already appreciate an example of a simple mdx. MEMBER [Measures].[ParameterCaption] AS '[Organisatie].[Level 5 naam].CURRENTMEMBER.MEMBER_CAPTION' MEMBER [Measures].[Nummer en Naam] AS '[Organisatie].[Kosten Nummer].CURRENTMEMBER.MEMBER_CAPTION +": "+ [Organisatie].[Level 5 naam].CURRENTMEMBER.MEMBER_CAPTION' -- MEMBER [Measures].[ParameterValue] AS '[Organisatie].[Level 5 naam].CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ ...Show All
SQL Server UnsupportedBufferDataTypeException
Hi, I have several columns in my Buffer. For some of them I keep getting an UnsupportedBufferDataTypeException Looking for infos of the columns, these are DT_WSTR. For every column I check buffer.IsNull(<columnIndex>) so it should not be null. Some Columns who have DT_WSTR in the same buffer work perfectly. Any ideas Some strange behavior. In my bufferLoop, I got two more cols as in my preExecute(). So, my colIndexes are not in sync and the dataTypes of a specific column index are different. I dont add columns myself! ...Show All
Visual Studio 2008 (Pre-release) Warning as Error Shutoff
How do you shut off the "feature" and go to normal warning as warning. I have some variables that are assigned nut not used yet and I can not test because i get an error now. Help You can control this setting by going to Project->Properties->Build->Treat Warnings as Errors->Never. New C# projects should be set to *not* treat warnings as errors by default. Thanks, Luke Hoban C# Compiler Program Manager ...Show All
.NET Development casting problem
hi all, I fail to cast the following to VC++.Net in VS2003 anybody can help ------------------------------------------------------------------------------------------------------------------- //Origanal BYTE Buf[1024]; PSP_DEVICE_INTERFACE_DETAIL_DATA pspdidd = (PSP_DEVICE_INTERFACE_DETAIL_DATA)Buf; ------------------------------------------------------------------------------------------------------------------- //What i have converted, unable pass the compiler Char Buf[] = new Char[1024]; PSP_DEVICE_INTERFACE_DETAIL_DATA *pspdidd = (PSP_DEVICE_INTERFACE_DETAIL_DATA )Buf; ------------------------------------------------------------------------------------------------------------------- //This one can Pas ...Show All
Audio and Video Development Why ihd sim doesn't work on my computer?
When i open a sample's playlist in the jump start, there is only black background in the ihdsim.exe window, no buttons, no menus, nothing displayed, what's wrong with it I installed ie7, wmp 10 on my computer. Anyone can help me Hi, you need Windows Media Player 11 Beta. Also check this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=900474&SiteID=1 ...Show All
SQL Server Error: Subreport could not be shown.
I have a problem with a report containing a number of subreports not running successfully when deployed to the Report Server. The report runs successfully every time in the VS Development environment, so parameters are all setup correctly and the result is as expected accross the whole report. No errors or warnings are listed when building or deploying. All subreports are in the same project as the main report and deployed to the same folder in Report Manager. All the individual subreports run successfully both in VS Studio (Preview Tab) and in the Report Manager portal. About 50% of the time, the main report runs but shows the error "Subreport could not be shown" for some or all of the subreports. Running S ...Show All
Visual Studio Tools for Office VS 2005 Pro + Free VSTO 2005 SE - what's wrong with this picture?
First, I'm excited by the news that the VSTO 2005 SE will allow Outlook developers to target both Office 2003 Pro and Office 2003 Std versions. I'm equally excited that after paying ~$500 for VS 2005 Pro I don't have to pay the same again for VSTO 2005 just to target OL2003. Do I have this right Second, the download page for VSTO 2005 SE states: "no document-level customizations or other functionality that is part of the full version of Visual Studio 2005 Tools for Office (VSTO 2005) is installed". I've looked at the feature comparison but could someone explain what important "other functionality" is missing for developers targeting Outlook 2003 Third, could someone please, please update the broken links in ...Show All
Visual C++ Why doesn't PDH work?
Hello, I've been trying to develop an application that reads the CPU load from the computer and the free RAM memory available. To do so, I was primarily thinking about using the PDH interface, since we are building to Windows Server 2003 and Windows XP, both of which already come with the PDH.dll. I downloaded the platform SDK from Microsoft's site, and I am using Visual Studio 2005. My dilemma is, every time I try to compile the source code, it gives me several errors, even with example codes taken from Microsoft's site. It gives me several unindentified objects in _main (it cannot understand/localize the commands, datatypes and so on). I don't understand why. I tried copying the pdh.h and pdh.lib to the main i ...Show All
Windows Forms error: An item with the same key has already been added.
In the VS2005 DataSet Designer i get the following error when adding a certain combination of tables: "Failed to add TableAdapter An item with the same key has already been added." This error does occur if i add tables one at a time. But if i select several tables at once and drag/drop them the error does NOT occur. What i need to know is what is causing this error in case it has something to do with the data source of if manually creating the data set will be necessary. Curtis Found out the solution to proceed though not a solution to problem. Go to the project right click and create add item, idd dataset, This will create xsd file. Inside xsd file create tableadapter, it will allow you to co ...Show All
Visual Studio Express Editions Newbie Scope Question
Please could someone explain the flow on loading a form please. When you open a new form with the form show event does the class run before the load event If something is within the load event does that have form wide scope or is it only things in the class Thank you so much Ahmedilyas this is what I was looking for and also the explanations have improved my understanding as well. ...Show All
Software Development for Windows Vista problem with TBS API function Tbsi_Context_Create
Dear all, I have a PC with a Broadcom TPM 1.2 chip. I can call the Vista TPM Management Tool to show the TPM chip information and to call TakeOwnerShip. Now I wrote a sample code using the TBS API functions: TBS_CONTEXT_PARAMS pContextParams; TBS_HCONTEXT hContext; TBS_RESULT rv; pContextParams.version = TBS_CONTEXT_VERSION_ONE; rv = Tbsi_Context_Create(&pContextParams, &hContext); BYTE data[10] = {0,0xc0,0,0,0,0x0a,0,0,0,0x50}; BYTE buf[512]; UINT32 buf_len = 512; rv =Tbsip_Submit_Command(hContext,0,TBS_COMMAND_PRIORITY_NORMAL,data,10,buf,&buf_len); rv = Tbsip_Context_Close(hContext); But the function Tbsi_Context_Create returns always TBS_E_INTERNAL_ERROR . Do you have any idea Than ...Show All
Visual C++ Replacement of CComModule in VS2005
Hi, I'm porting one of the dll from vc6 to vc8. In doing so I have created a complete framework to create a dll and subseqently add atl objects. By default the framewaork adds the follwoing code in the main app file class MyClassModule : public CAtlDllModuleT< MyClassModule> { public : DECLARE_LIBID(LIBID_MyClassLib) DECLARE_REGISTRY_APPID_RESOURCEID(IDR_MYCLASS, "{7C00C752-3DA7-4CB9-B721-7F39F9FEDD2E}" ) }; In previos versions of ATL CComModule _Module was used which has been replaced by CAtlBaseModule. Problem: There was an extern declaration as extern CComModule _Module in stdafx.h and definition in main app file as CComModule _Module . How do I replicate the above behaviour in t ...Show All
SQL Server AS2005? PeriodsToDate - How to release hand break?
Hi Yukon Gurus! I have a simple query with periods to date --Sample 1 WITH member [Date].[Calendar].[Column 1] as AGGREGATE ({ PeriodsToDate ([Date].[Calendar].[Calendar Year], [Date].[Calendar].[Month].&[2004]& )}, [Measures]. CurrentMember ) SET [RowSet0] AS {[Customer].[Customer].[All Customers]. children } SET [RowSet1] AS topcount ([RowSet0],100,([Date].[Calendar].[Column 1],[Measures].[Internet Sales Amount])) SELECT {[Date].[Calendar].[Column 1]} ON COLUMNS , CROSSJOIN ({[Customer].[Customer].[All Customers],[RowSet1]},{[Measures].[Internet Sales Amount]}) ON ROWS FROM [Adventure Works] It takes almost 40 seconds on my 3,0 Ghz bo ...Show All
.NET Development I want results of xslt.Transform() to be an XmlDocument or string, not written out to an intermediate disk file.
I would like to have the results of xslt.Transform() in an XmlDocument or string, rather than having to specify a file (xyz.xml, in the code below). static void Main( string [] args) { string strxml = @"< xml version=""1.0"" encoding=""utf-8"" ><myroot><Price>15</Price><Price>25</Price><Price>35</Price></myroot>" ; XmlDocument doc = new XmlDocument (); doc.LoadXml(strxml); // test XmlDocument... // Console.WriteLine(doc.OuterXml); //do xslt... XslCompiledTransform xslt = new XslCompiledTransform (); xslt.Load( "output.xslt" ); xslt.Transform(doc, XmlWriter .Creat ...Show All
Visual Basic Multipage Tabs
I want my tabs to be on the left, top to bottom. WHen I align left, the text is sideways. Why Ok...that helped with the coloring of the tab and putting text into the tab if I put it on the left. However, I am new to this platform and I can't seem to figure out how to control the font then. I get a weird font now. Also, with the tabs on the side, all I want is to create stacked rectangles on the left to act as tabs. I can't seem to compress the height beyond 24. Also it keeps the same width as the whole form. Then I see the large buffer or unused area to the right of those rectangles. I can send a screen shot of the goal and what I am currently seeing. I hope I can get a fast response to this. ...Show All
