qt1h00's Q&A profile
Software Development for Windows Vista Named Pipe Connection Problems
I have a service that creates a named pipe for application programs to connect to and read from. Works fine on XP. On Vista, when the client attempts to CreateFile() to the named pipe, if the desired access is GENERIC_READ the CreateFile() returns a valid handle. If the desired access is GENERIC_READ | GENERIC_WRITE, the CreateFile() returns access denied. After CreateFile() I call SetNamedPipeHandleState() to set PIPE_READMODE_MESSAGE. In the case where I have a valid handle from CreateFile(), SetNamedPipeHandleState() returns access denied, presumably because I don't have GENERIC_WRITE set on the handle - the documentation for SetNamedPipeHandleState() says I need GENERIC_WRITE, so this is expected. As an experiment I changed th ...Show All
SQL Server Overlay of textboxes are not rendering properly
In the page header I have a rectangle that has 2 textboxes on the same line and both are the full length of the page. One textbox has text centered and the other has text right justified. When I render report in Studio or print it, the text appears on the same line and justified like I want, but when the report is rendered when I call the report by URL, the textboxes wrap, like it's taking the width of each textbox in account. Has anyone seen this Any suggestions on how to overlay text on the same line and the text keep their own individual characteristics I am having this problem too. I have a template with a standard heading including one image and 4 textboxes. The template includes a boolean parameter ...Show All
SQL Server Date out of range?!
Greetings! I have a data source that gets generated based on a variable with the following SQL : "select * from result where deletion_ind = 1 and when_deleted >= '" + (dt_str, 50, 1252) @[User::Last_Run_Date] + "'" But when I run my package I get an error message saying: The conversion of CHAR to DATETIME resulted in a DATETIME value out of range The Last_Run_Date variable is set to '2006-06-25 14:35:05.450' When I run the code in a QA session it works, but in the package it complains! What am I doing wrong Thanks for your help in advance. You've already told me further up this thread that the error is getting thrown by SQL Server when you issue that query from SSIS. You have 2 ...Show All
Visual C++ Problems with CFileDialog
I can't find where I can make CFileDialog display a specific directory when I open it. It always defaults to the last folder I opened a file from in my app. I think this has something to do with seriliazation I'm not sure. What I need to know is how do I get it to display a folder that I specify when it opens. ...Show All
SQL Server Does "Current time member" on the KPIs designer do anything?
The "Current time member" on the KPIs designer is poorly documented and that's an understatement. Does it actually do anything or is it unfinished code Has anyone else come to the conclusion that KPIs in SSAS were never "finished" We've found numerous holes in the way KPIs have been implemented. I have moved some KPI:s, for a client, from ProClaritys KPI Builder, to SSAS2005 KPI:s. So far this have worked fine and we are able to show KPI:s in other tools than ProClarity. As an example the coming Excel 2007 release supports SSAS2005 KPI:s. These KPI:s can also be imported in to Business Scorecard manager/server. If you need additional functionality I recommend the Business Scorecard Server inste ...Show All
Game Technologies: DirectX, XNA, XACT, etc. mesh scale and move problem
hi all, How to scale and move my mesh in DirextX Best Regard, D3DX utility library supplies D3DXMatrixTranslation & D3DXMatrixScaling the function Use D3DXMATRIX to create your translation & scale matrix as following: D3DXMATRIX matWorld; D3DXMatrixTranslation(&matWorld ,xPos,yPos,zPos); d3d_Device->SetTransform(D3DTS_WORLD, &matWorld); ////Render your mesh Same goes for scaling use: D3DXMatrixScaling(&matScale, sx,sy,sz); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cannot run XNA projects
I have directx sdk august 2006 release and .net 2.0 framework, c# 2005 express, & xna express Creating a new project, without adding any additional code, the project will not run under start with/ or without debugging. I have tried the multiswap fix in other posts. Okay, thanks alot for the help though. I have a laptop and another computer to try it on. Sorry about the earlier mult-posts, my browser kept showing the posts didn't go through!! :) Tried it on the laptop at home, runs fine with no problems!! Thanks ...Show All
Visual Studio 2008 (Pre-release) Generate Proxy classes
Hey! I are building a chat client/server with WCD and it works grate. But when i Added A Datacontract(chatMessage)(Instead of simple string) i cand generate the proxy class to the client This is how my Contracts looks like: [DataContract] public class chatMessage { [DataMember] private DateTime mSent; [DataMember] private string mSentBy = ""; [DataMember] private string mMessage = ""; public DateTime sent { get { return mSent; } set { mSent = value; } } public string sentBy { get { return mSentBy; } set { mSentBy = value; } } public string message { get { return mMessage; } set { mMessage = value; } } } //The interface the service expose ...Show All
Visual Studio 2008 (Pre-release) how to use Claim.CreateRoleClaim for a role with clientCredentialType=windows
Hi, I'm using wshttpbinding with message clientcredentialType of windows. When I decorate my operation with: [ PrincipalPermission ( SecurityAction .Demand, Role = @"domain\role" )] this works. (although changes in active directory are only picked up after a reboot of my machine ). Now I'm building a more flexible system, which will look at the claims provided and will compare it to a claim of my own (like in com-430): Claim requiredClaim = Claim .CreateRoleClaim( "domain\role" ); However, when using a comparer like this: ClaimComparer comp = ClaimComparer .GetDefaultComparer( requiredClaim.ClaimType); in an iteration of the claims, it will not be found. The claimset provided is mostl ...Show All
Windows Live Developer Forums WinForm Thread
Hello, I have a problem using the VirtualEarth in WinForms using threads. I want to us a thread for putting Pushpins oEn the map. When i dont use a thread it works perfectly but the application stops responding which i dont want. Therefore i want the pushpins put on the map using a different Thread. But it keeps failing at : Private Sub executeScript( ByVal scriptName As String , ByVal ParamArray parameters As Object ()) Try BrowserMap.Document.InvokeScript(scriptName, parameters) Catch ex As Exception MsgBox(ex.Message) End Try End Sub Everyting seems ok but when InvokeScript is called it gives me a very strange exception. Invalid cast exception. But the scriptname and parameters are c ...Show All
Visual C++ synchronization in c++
Hi all, I was just wondering wat are different methods provided in c++ for synchronization between 2 process....i.e., if one process is writing into the buffer then how can i stop the other process from reading from that buffer n if it doesnt read the value then wat does it read kunal The simplest way for this purpose, use mutex. Create a mutex with the same name in both processes: This code is the same in both processes: HANDLE hMx = CreateMutex(NULL, false, "My mutext name"); ............................ if(WAIT_OBJECT_0 == WaitForSingleObject(hMx, INFINITE)) { . . .. . .. . ... ... . .Write or read. ReleaseMutex(hMx); } .................... ...Show All
Windows Forms PropertyGrid useage questions?
Hello, I have the folloing question about using PropertyGrid, would you please to teach me how can I do that 1. How can I show a customize property description rather showing the property name in the PropertyGrid 2. How can I display the property in PropertyGrid in a specific format For instance, if the property is a password, I want it to show teh "*" instead of the plain password. 3. I want to use PropertyGrid to config the system. If the data type of the property is "Boolean", it will allow user to select "True" or "False" in the value column. Is it possible to let the user to select some value if the data type is String or others Would you please to show me the examples about ...Show All
Commerce Server Porting an SQL query from Commerce Starter Kit to CS2007
I am trying to translate a SQL query (pasted below). written for Commerce Starter Kit into its equivalent for CS2007. Basically, this query is returning daily sales aggregate. Could some help me to translate this query I am quite new to CS2007. Also, will it be the same query for the CSharpSite and for StarterSite Thanks in advance, Joannes Lokad.com , sales forecasting provider select CSK_Store_Product.productID as [ProductId], CSK_Store_Product.sku as [Sku], CSK_Store_Product.productName as [ProductName], DATEADD(dd, DATEDIFF(dd, 0, CSK_Store_Order.orderDate), 0) as [OrderDate], Sum(CSK_Store_OrderItem.quantity) as [Quantity], row_number() over (order by CSK_Store_Product.sku) as [RowNumber] from CSK_Store_Product inner j ...Show All
Visual C# Implementing undo and redo operations in C#
Hi, I am trying to implement Undo and Redo Operations in C#.NET. Can anyone of you give me an idea how I can perform this Regards, spshah Try something similiar like: public class Rectangle { private Stack _stack; private int height = 10 ; private int width = 10 ; public void BeginEdit() { if (_stack == null ) { _stack = new Stack (); } Hashtable state = new Hashtable ( 4 ); state[ "height" ] = height; state[ "width" ] = height; &n ...Show All
Windows Forms disposed method not responding . how to i force destructor.
hi i have these methods that work properly if i create the form and close it. but if i try create again, it still works okay, that is i cannot make a second instance of the form, but then when i close the form, the _closed or _disposed doesnt repond. why is that and then i chek my list.count which remains 1 even though the form is closed. Private WithEvents po As POManager Private Forms As New List( Of String ) Private Sub NewForm( ByRef i As Form) If AddToList(i.Name) Then i.MdiParent = Me m_ChildFormNumber += 1 i.Show() End If End Sub Private Function AddToList( ByVal i As String ) As Boolean If Forms.Contains(i) Then Return False End If ...Show All
