GregMaxey's Q&A profile
Visual Studio 2008 (Pre-release) Session Sharing with ReliableSession
Hi, In the .NET 3.0 SDK documentation is an example of how to share the same session between two clients. In the example the clients use a custom message header for inserting an id in the message. By sharing this id between the clients, the session can be shared. I'm currently implementing the exactly same thing, however I'd like to reuse the reliableSession binding that comes with WCF for maintaining sessions. Now, the problem is, that I can not simply take the custom header from client1 and put it into the message I'm sending with client2 because I don't have a custom header. Essentially, what I'd like to do is the following: ChannelFactory<IOutputChannel> cf = new ChannelFactory<IOutputChannel>(binding); IOutputChannel ...Show All
Visual C++ COM/ATL object with implementation in a .cpp, LNK2001 !!
Hello all, I'm writing a COM object using ATL, I have been writing both definition and implementation in a single .h file and everythink went fine, but now i want to place implementation in a .cpp file and the linker complains with a LNK2001. //.h file with class definition template < typename T, typename Itf> class IMBaseImpl : public CMBaseImpl, public Itf { public : IMBaseImpl(); ~IMBaseImpl(); STDMETHOD(Init)(IMApplication** pApp, BSTR strName); STDMETHOD(get_Name)(BSTR* pVal); STDMETHOD(put_Name)(BSTR newVal); IMApplication* getApp(); }; //.cpp file with class implementation #include "stdafx.h" #include "IMBaseImpl.h" templat ...Show All
SQL Server Cannot read the next data row for the data set abc.
Dear All. I am facing the above mentioned error quite frequently. I am using SQL 2005 reporting services and my database is in SQL 2005. I am using a stored procedure and pass the parameters to the SP through the report. The SP returns the results in about 4-5 seconds at max but when the report is run, it usually takes a long time for processing and then it throws the following error: Cannot read the next data row for the data set ABC. A severe error occurred on the current command. The results, if any, should be discarded. Can anyone from Microsoft please specify the exact reason for this error and how can we solve it Also there is another problem, some of my reports use SPs. When the SPs are run independantly, they return th ...Show All
Visual Studio 2008 (Pre-release) What's wrong with my "IsOneWay" method?
Hi, I am making a p2p messenger using WCF netTcpBinding, I write some method marked as "IsOneWay=true", but it just don't be "oneway", when client calls the method, client's thread is blocked as the remote service's thread is blocked. Why contract: 9 [ ServiceContract ] 10 public interface IMessenger 11 { 12 [ OperationContract (IsOneWay = true )] 13 void SendMessage( string message, Guid senderGuid) I referred Windows SDK's sample, found I just forgot one attribute: [ ServiceBehavior (ConcurrencyMode= ConcurrencyMode .Multiple)] ...Show All
Visual C++ Switching from BETA to RELEASE VS 2005 gets me an error!
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(1814) : error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject' This diagnostic occurred in the compiler generated function 'CCmdTarget::CCmdTarget(const CCmdTarget &)' I think instead of changing parameter type CEdit to CEdit * , and then any call of function from edit1 to &edit1 , it is also possible just to change the parameter type to CEdit & (or const CEd ...Show All
SQL Server center images?
Hi, maybe it's just me, but does anyone know how I can automatically center a dynamic image in a cell This is about a KPI image, so one that's loaded based on the status of the KPI. I would like to have that image centered, and not (like it's now) aligned to the left of the cell. Anyone Have a look at this: http://blogs.msdn.com/chrishays/archive/2004/10/27/CenteredImages.aspx ...Show All
SQL Server Views Very Slow!
Hello, From what I have read from various sources, views as an Oledb Source component source are very slow. In practice I have experienced this as well - they are painfully slow. One of the most recent books out on SSIS documents this fact and says to use an ad hoc query instead. I'm curious if someone from Microsoft could expxlain why this is in more detail. I have clients ask this question, and would like to know for my own purposes as well. Further it would be nice to know if this is expected to change in v.next. Thanks much dcb99 wrote: Darren, I'm asking why _Microsoft_ says that you should use a SQL statement within the Oledb Source instead of a view. They exp ...Show All
Silverlight (formerly WPF/E) Mouse Click ?
Would WPF/E support a "MouseClick" (mouse button down - mouse button up without drag) event With work-arounds so far I have been able to handle all possibilities, but it would have been so much easier to be able to count on the mouse-click event as in most other environments (SVG comes to mind). ...Show All
SQL Server SECURITY ON MULTIPLE DIMENSION MEMBER COMBINATIONS. OLAP Experts, Please Help me
Hi, I have got 2 dimensions to enforce security . 1. Company 2. Division Data in Fact table is available as mentioned below. Company Division Amount Company 1 Division 1 100 Company 1 Division 2 200 Company 2 Division 1 300 Company 2 Division 2 400 I have got a user. So I need to create a role with following options. ([Company].[1],[Division].[1]) and ([Company].[2],[Division].[2]) He should not be able to see ([Company].[1],[Division].[2]) or ([Company].[2],[Division].[1]) In Summary, My question is, How to implement dimension security (Static/Dynamic) on multiple dimension combination (MSAS 2000 or MSAS 2005). I am to ...Show All
.NET Development Can you push files onto a server in c#?
I am trying to upload a file using the HttpWebRequest class and the put command but I must admit I am a little new at it so I am not even sure if I am going about this the right way or not here is some code that I have written to try and get the file up to the server try { HttpWebRequest uploadRequest = ( HttpWebRequest ) WebRequest .Create(uploadUri + @"/" + fileName); uploadRequest.Method = WebRequestMethods . Http .Put; requestStream = uploadRequest.GetRequestStream(); fileStream = File .Open(fileName, FileMode .Open); byte [] buffer = new byte [1024]; int bytesRead; while ( true ) { bytesRead = fileStream.Read(buffer, 0, buffer.Length); if (bytesRead == 0) { break ; } ...Show All
Visual Studio Express Editions Finding row by value using string expression
I seem to have a problem with replacing a value in the select like statement instead of using 'A%" I want to have a string to do the select with strfindcust This returns a error Cannot find column [strfindcust] I am using vb express It is probably very simple - i've just been away from programing quite a while Private Sub btnCustLookup_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCustLookup.Click Dim strfindcust As String Dim foundrows() As Data.DataRow strfindcust = InputBox( "Enter customer name: " ) foundrows = Me .DsCustomerDataSet11.Tables( "customer" ) _ .Select( "Name like strfindcust" ) End Sub ...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. Good reference for the different versions: http://msdn2.microsoft.com/en-us/library/b4z62wxz.aspx ...Show All
Microsoft ISV Community Center Forums use inputbox to choose cells for plots in excel
Hi all, The below code would I like to change so I can use the inputbox arrays 'usr_choice_x' and 'usr_choice_y' (instead of the range "A68:B89" as it is now) for the plot. How do I do that Grateful for ideas usr_choice_x = Application.InputBox(Prompt:="Select x cells ", Type:=64) usr_choice_y = Application.InputBox(Prompt:="Select y cells ", Type:=64) Charts.Add ActiveChart.ChartType = xlXYScatterSmoothNoMarkers ActiveChart.SetSourceData Source:=Sheets("MDO_061013_LHS_HP").Range( _ "A68:B89"), PlotBy:=xlColumns ActiveChart.Location Where:=xlLocationAsObject, Name:= _ "MDO_061013_LHS_HP" With ActiveChart .HasTitle = False .Axes(xlCategory, xlP ...Show All
SQL Server LastPeriods
Hello, I am trying to retrieve the last 3 periods from the current month (ie Sept, Oct, Nov). I am thinking that LastPeriods function might work, but I am getting the following Error " The LASTPERIODS function expects a member expression for the 0 argument. A tuple set expression was used. " Here's the code. SELECT { LASTPERIODS (3, TAIL ( nonempty ([Week].[Week].[Week Name]. Members )) ) } ON COLUMNS FROM [GMDSummary] Maybe something like that SELECT { LASTPERIODS (3, TAIL ( nonempty ([Week].[Week].[Week Name]. Members )).Item(0).Item(0) ) } ON COLUMNS FROM [GMDSummary] ...Show All
Visual Basic Microsoft Visual Basic 2005 Express - New Project dialog is empty!?
Look at this screenshot: http://hjem.get2net.dk/dondata/Empty.gif I have allready tried to Repair the installation, and allso completely uninstalled VB and the installed it again, but the dialog is still empty. What is happening here That sounds very interresting. Yes I had the Beta installed and then uninstalled before i installed the final. However this tool gives me somekind of error. After I click "Yes" the app displays this message: < xml-stylesheet type="text/xsl" href="C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\IXP000.TMP\issues.xslt" > - < Issues > - < Issue > < Name > Uninstall Visual Studio ...Show All
