joynerCN's Q&A profile
Software Development for Windows Vista Duplicating a socket to a service....
This is yet another question about passing information from a client application to a service application. What we need to do is pass a socket from a client to a service, and the problem is that this fails because the client can no longer open up a process handle to the service process. Winsock is designed in a way where the client must duplicate the socket to the target process - thus the service can't just do the duplicate itself. You pass in a process ID on the client side, and get back a data blob that gets passed via some IPC mechanism to the target process, and then the target process calls WSASocket() with the data blob. So the question is, how is a client application supposed to duplicate a socket to a service process I filed a b ...Show All
Visual C# Delegates calling overhead
Hello, I need to retrieve the value of an object’s property but the member property is not known at compile time e.g. I have object of Type Foo with properties FirstX, SecondX and ThirdX. So instead of having multiple if-else statements then having x = foo.SecondX (depending on some condition) , now I have something like x = pfoo.X where pfoo is simply a type that dynamically maps to a set of properties on Foo. The X property on pfoo is nothing more than an open instance method delegate that explicitly supplies the hidden first argument as the instance of Foo. Here is how pfoo looks like: class FooMapper { private Foo foo; private TypeUtility<Foo>.MemberCallback<int> x; public Foo Foo { ...Show All
Visual Basic Warning With Large Revision Numbers
I'm getting a warning from the vbc compiler which I believe is spurious: vbc : warning BC40010: Possible problem detected while building assembly 'T1.A.B': The version '6.5.0.65538' specified for the 'file version' is not in the normal 'major.minor.build.revision' format This version number was built using the Version class... You crossed the magic 65535 value, the largest value that can be represented in a 16-bit integer. Time to increment the minor version number perhaps. Or don't let the IDE automatically increment the revision value (don't use '*'). ...Show All
Windows Live Developer Forums Live Messenger installer Bug
when ever I open messenger it will sign me in then an installer box pops up tries to install somthing (I don't know what it just says windows live messenger with a green loading bar) then closes and closes messenger with it. This is a clean install of xp sp2 with IE7 rc1 and media player 11 beta if that helps at all. Has anyone elese run in to this problem and how do you fix it We have a user with the exact same issue. No beta software running on this PC, though. We found that if you add the user to the local Administrators group, the Intstaller does not run, and there is no problem. However, if you remove him from the Admin group, the problem reocurrs. Uninstalling/reinstalling does nothing to correct the problem. Live Messeng ...Show All
Game Technologies: DirectX, XNA, XACT, etc. can be used PixelShader for post-processing in XNA 2D SpriteBatch?
I am new programming pixel to shader in HLSL U__U and have looked for information on using these with spritebatch for the post-processing of the 2D XNA sprites. somebody knows if it can or since I can do it some example:) THK My Shader (Embossed) uniform extern texture UserTexture; sampler textureSampler = sampler_state { Texture = <UserTexture>; mipfilter = LINEAR; }; float4 MyShader( float2 Tex : TEXCOORD0 ) : COLOR0 { float4 Color; Color.a = 1.0f; Color.rgb = 0.5f; Color -= tex2D( textureSampler, Tex.xy-0.001)*2.0f; Color += tex2D( textureSampler, Tex.xy+0.001)*2.0f; Color.rgb = (Color.r+Color.g+Color.b)/3.0f; return Color; } technique PostProcess { pass p1 { VertexShader = null; Pixe ...Show All
Visual Studio Team System how to enable Web Test template
I was trying to create a Test project for load and stress testing for web app. When I tried to record a web test via Test --> New test --> "web test" template was missing. Please advise me how to configure or Add "web test" template so it will available as above Thanks in advance, CNP Hello, Can you provide more informtation like which product you installed What other template can you see Thanks, Anjana [MSFT] Microsoft Developer Support This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Visual Studio Team System Build with tests fails with no indication of where
I have setup two builds on my TFS project - one to run when code is checked in that only verifies that the code will build, and one to be run automatically that will run our tests. The first build appears to work correctly, but when I run the second (from my VS) it fails. When I look at the BuildLog.txt file, I can't see any failures, and the build results in VS show red "X"s next to the "Running tests" and "Running tests for Any CPU/Debug" entries. I have looked at this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=673795&SiteID=1 and based on that tried installing VS Test edition on the build machine, with no change in the results. I am running Team Suite on my machine. Can anyone ...Show All
SQL Server Browsing cubes through interfaces other than the BI Studio?
I've built a cube, deployed it and processed it. I can use the brower in the BI Studio to see the data subsets and can manipulate it. How do I get this cube to the user without having to install BI Studios on their computer Basically how do I get the cube into IIS so the user can just open a web browser and go to it Similar to how cognos does it with their cubes. Or is this not possible I see no way to view the cube unless you are using the BI Studio to open it. Am I missing something Could you point me to some documentation on or the correct direction to being able to view the cubes through a web interface I'd like to be able to use strictly Server 2003 and SQL 2005 and be able to deploy these cu ...Show All
Visual Studio Express Editions This is puzzling, well it is to me?
I open MSWord and create a document with formatted text Red, Blue, underline etc I then copy it to the clipboard, then paste it in to my program where it appears with exactly the same formatting as it had in word, so far, so good. I now switch back to MSWord and save the document, back to my program and open the document but now all the formatting has gone, so it must be the way that I am opening the document is wrong. Here is the code that I use, already been posted in another thread, but I feel it's better to keep all info in the same thread. Case "doc" objWord = CreateObject( "Word.Application" ) objDoc = objWord.Documents.Open(OFD1.FileName) objDoc.Select() rtbText.Text = objWord.Selection.Text objDo ...Show All
Windows Forms save control user to xml file
hi, i want to know how can i save user control like textbox (i want to save the textbox as a control user not the value of the contorl ) in a xml file and when i press button named load from xml file he load the textbox on the from (ie. create the textbox) please any one help me thanks, Hi sir: I have create a demo for adding controls in form load event as follows; for ( int i = 0; i <= 3; i++) { TextBox TB = new TextBox (); TB.Location = new System.Drawing. Point (42, 20*i); TB.Name = "textBox" +i.ToString(); TB.Size = new System.Drawing. Size (80, 20); TB.TabIndex = i; this .Controls.Add(TB); } and if you want using xml , we ...Show All
Visual Studio MPF GetFileNamespace method contains a bug
Hi there, In MPF file <VSSDK>\2006.09\VisualStudioIntegration\Common\Source\CSharp\Project\TokenProcessor.cs there is a line of code (313) : string projectPath = Path .GetDirectoryName(node.ProjectFile); This line returns an empty string. I think there shoud be a following line instead: string projectPath = node.ProjectFolder; From my point of view that is a bug. Isn't it Hi Ole, Thank you for the tip – I‘ve found this problem too. I have implemented following logic of AddFileFromTemplate method (see below). As you can see, I use my own private GetNamespace method because of GetFileNamespace one of TokenProcessor class does absoutelly strange things. J Also I recreate a new instance every tim ...Show All
Visual Studio Team System putting lib files in another directory
Hi How do I put my generated lib files in a subfolder, and use them in the next projects using tfsbuild in my lib project i set Output directory to $(SolutionDir)$(ConfigurationName) librarian output file to $(OutDir)\lib\$(ProjectName).lib And the lib files end up in the correct folder \lib But my C++ project then fails because it looks in $(OutDir)\$(ConfigurationName) and fails beacause it cannot find the lib. Im using project reference to the lib project. I have an environmentvariable LIBPATH the includes the correct lib folder. If I just put the lib files in the outdir there's no problem, but how can I move them regards Kim Carlsen Hi If I open ...Show All
Visual Basic combobox has no TopIndex Replace???
Is there a method replacing the topindex method in vb.net 2005 that vb6 had with the combo box control. No the topindex is used to get the position of virtual combo box that scroll with the real combo index for index to display a virtual tool tip of the relating customer in the real combobox. Public Sub SetItemToolTip( ByRef i As Integer , ByRef s As String ) Dim rc As RECT Dim lTemp As Integer Dim n As Integer rc.Left_Renamed = 0 rc.Right_Renamed = VB6.PixelsToTwipsX(ComboBox().Width) \ VB6.TwipsPerPixelX lTemp = SendMessage(ComboBox().Handle.ToInt32, CB_GETITEMHEIGHT, i, 0) 'UPGRADE_ISSUE: ComboBox property ComboBox.TopIndex was not upgraded. Click for more: 'ms-help://MS.VS ...Show All
Windows Forms Two active forms
Hi! I'm developing an application which needs 2 active forms at the same time - something like Photoshop with af form at top of the screen (the mainform) with a menu and a toolbar which can open different childforms. What I wan't is to have the mainform and one of the childforms to be active at the same time so that I can activate the menues and toolbar of the mainform with just a single mouseclick and shortcut keys from the keyboard while a childform is active. I don't wan't to use a MDI form and childforms. When I open a childform I add it as a OwnedForm to the mainform. Is there a way to have 2 forms active at the same time Thanks! Brian Tricky problem. I've found a solution but it i ...Show All
Windows Forms interacting text boxes & events question
hello: I have a user form in vb.net 2.0. When a user enters a price in one of 10 price fields, their corresponding percent fields and dollar fields(which are read only fields) are computed based upon the change in price. These computations involve a cost and a quantity field also on the form. In addition when either the cost or quantity fields are changed, all read only fields of the 10 price fields must change since these computed fields involve cost and quantity. So I have an event each time a price is changed to compute that price's read only fields, and I have an event to change the read only fields of ALL the prices if the cost or quantity fields are changed. I was thinking of putting these in the validating event routines ...Show All
