Paul Tew's Q&A profile
.NET Development Return argument has an invalid type - security issue?
Hi, We have a .NET remoting application server, which works great by itself. We are currently evaluating a commerical automated testing tool, that loads the application server's API assembly and simulates a client connection to the server. However, under this scenario the proxy object does not succeed in dealing with complex objects, and we get the "Return argument has an invalid type" error in return. We figured it has something to do with security issues but couldn't find any solution. We are using a tcp binary channel with typeFilterLevel=Full. The interface for the complex object AND the complex object itself are defined in a separate assembly (ApplicationServer) then the API (ApplicationSeverAPI). Thanks, Ron ...Show All
.NET Development Is object pooling available in .NET Remoting?
I've tried to find some sample code about object pooling in .NET but didn't find one. I need the object pooling application like in COM+. Anyone has any suggestion Is it still available in .NET Or is there anyway to implement it I've implemented something like this some time ago: http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=e0710854-7dbe-4ddd-8f4e-13b3072d4e5e ...Show All
Windows Forms Print form
How do you print all the data in a form See the PrintDocument class. The data in your forum is an implementation detail of your application for which we can't offer much detail. Regardless, your best bet is to use the PrintDocument class to format your data to the printer. ...Show All
Windows Networking Development Does qWAVE support WMM
I have a wireless router which support WMM. Which qWave API can I use to utilize the WMM function of the router Thanks for any help. qWAVE absolutely supports WMM. Please read my 4-part series on WMM which discusses all the details in the QoS subsection of the Network Developer blog: http://blogs.msdn.com/wndp . I encourage you to read this blog often as members of the core networking QoS team post often: The specific posts are: WiFi QoS Support in Windows Vista: WMM - http://blogs.msdn.com/wndp/archive/2006/06/28/650363.aspx WiFi QoS Support in Windows Vista: WMM Part 2 -http://blogs.msdn.com/wndp/archive/2006/06/30/WiFi_QoS_Support_in_Windows_Vista_part_2.aspx WiFi QoS Suppo ...Show All
Software Development for Windows Vista Application Opens By Itelf Fine, But When Opened With Process it fails to load components
Hey Guys I am trying to find out why this happens. If I try to open an application written in vb6(yah I know) under vista using a .net component using Process.Start it fails to load some components properly. But When I open it from explorer it opens up just fine and does what it is supposed to do. Any reason/explaination of why this may happen. Using Windows Vista Enterprise Edition. I am thinking it has something todo with security but honestly I don't know. Thanks for any help offered. What version of .NET are you using It appears there are some issues using 1.0 and 1.1 related to ActiveX objects. See http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1039273&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar Camera
I've just noticed something about how Spacewar works which I've never noticed before and I'm a little confused. In the Evolved game the models for the players are 3D models. If this is the case, then surely the game is 3D and so there is the camera. The camera will be looking down on the models. If the model is in the dead centre of the screen (I know it can't because of the sun) then we should be looking straight down onto the top of the model. Then, if the model is moved to the far left of the screen the right hand side of the model should become visible because of the camera's perspective but this doesn't seem to happen. It always seems as though we're looking straight down onto the model. How is this done Or is it just my eyes playing ...Show All
Visual C++ Fstream file input
The following code stores the words of ifstream object into a vector template and then counts them. It works when the file that the ifstream object contains is "words.cpp" . //words.cpp #include "stdafx.h" #include <string> #include <iostream> #include <fstream> #include <vector> using namespace std; int _tmain( int argc, _TCHAR* argv[]) { ifstream in( "C:\\C++ Projects\\dev.txt" ); vector<string> words; int i=0; string word; while (in >> word) words.push_back(word); while (i < words.size()) i++; cout << i << " words in file" ; cin >> i; return 0; } The problem is that no matter which file ...Show All
Visual Studio Team System Getting Associated work item for a change set
I'm looking for any hints on what the most efficient way (through the TFS API) to get related work item for a change set The end goal I am trying to archive is; based on the position in a branch ($\MyProject\Development --> $\MyProject\UserTesting) retrieve a list of pending change sets and related work items user selects a Work Item then merge related change sets to the destination branch by selected work item To do this, I need to find a list of available work items with pending change sets for the selected branch. The problem is cause by many users making multiple change sets for one work item. Merging then becomes a nightmare since request come in by work item ("Can you merge work item 123 into the user ...Show All
SQL Server Left Joins
My understanding of relevant topics as well as SQL Books Online definition of left outer joins is that each record in the left table will be retrieved and where no associated right record exists then null values will be displayed for records in the right hand table but I've obviously misunderstood and would be grateful if someone could show me how to produce the required effect. My scenario is pretty simple: 2 tables DiningTables and Reservations with columns as follows: DiningTables: TBL_ID and TBL_Location - TBL_ID is the primary key Reservationss::RES_TBL_ID and RES_Diner_Name - RES_TBL_ID is the primary key There are 8 records in DiningTables and 4 records in Reservations and the objective is obtain the following output: ...Show All
Windows Forms AxWebBrowser Changed?
Hello, for some reason i started using the axWebBrowser coltrol about a year ago, i got the Visual Studio 2005 and the axWebBrowser has been changed to just WebBrowser and all the control calls have been changed, for instance AxWebBrowser1.LocationURL; is no longer available, its changed to WebBrowser1.URL; Also Im having Compilation Errors with the MSHTML.dll this line mshtml.IHTMLDOCUMENT2 doc = new mshtml.IHTMLDOCUMENT2 as WebBrowser1.Document; this line tells me that it fails to convert Document to IHTMLDOCUMENT2 because it has to implicit Conversion. Can anybody explain what to do how to use this new webBrowser...or get the old one back awesome thanks guys i appreciate the he ...Show All
Visual Studio 2008 (Pre-release) tried making a new service with 1 method that simply calls and gets a string from the sql database
Hosted in IIS right now, directory security is set to anonymous and everything else is unchecked. My service methods all have impersonate.required attributes and principlePermission(securityaction.required,role="mydomain\domain users") on them. however, i keep getting security exception and it faults out. here is my web.config servicemodel info. < system.serviceModel > < bindings > < wsHttpBinding > < binding name = " wsHttpBindingConfig " > < security mode = " Message " > < transport clientCredentialType = " Windows " proxyCredentialType = " Windows " /> </ security > </ binding > </ wsHttp ...Show All
Smart Device Development Deleting a custom ContextMenu causes error.
I have created a new component that inherits from ContextMenu but when I try to delete it off the form it gives me the following error "An error occured while processing this command. Unable to cast object of type 'Microsoft.CompactFramework.Design.UnsafeComponent' to type 'System.Windows.Forms.Menu'. Is there anything I need to do from a component standpoint so this error doesn't occur This is in a .NET Compact Framework 2.0 class library. I tried creating a new Component from the New menu so that I get a testcomponent.designer.cs file and then change the Component to ContextMenu and it gives me the same error when I place the component on the form and try to delete it. Thanks, Kenneth Take a look at this t ...Show All
Visual C++ MFC: Right click toolbar button.
Hi! I would like to be able to both left and right click a couple of toolbar buttons. I was thinking of using "UINT nFlags" to detect that. But I don't know how a MESSAGE_MAP would look like for that kind of function. Right now I'm using ON_COMMAND for the buttons which is the default. Thanks Hello The right place for your question is probably the MFC newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc&lang=en&cr=US OTP Thanks Damien ...Show All
Windows Forms Can Deployment Project Automatically increment build #?
Is there a way to increment the setup version (Product Code is recommended also) automatically with each deplyment project build I've found that this is the only way RemovePreviousVersion will work. Of course, there's probably a way to edit the .vdproj file using a script during the nightly build. I'm looking for something more built into VS. Any comments are welcome. Thanks, Dave Great! I will give it a try. Thank you. Best regards, BB ...Show All
Windows Forms selecting more than one rows of datagrid in framework 1.1
Hi, I am using framework 1.1 How do I select more than one rows in a datagrid even if I am able to change the row color of datagrid then this will work too.. Thanks, The datagrid does support having more that one row selected. Take a look at the datagrid's Select , UnSelect , and IsSelected methods. ...Show All
