labtech's Q&A profile
Visual Studio Team System Workaround:: Content Files Bug
This *release* version of VS2005 is dog and I just can't take it anymore. Here is the 3rd bug I've found (I never found any at all in Everett)... Create a test project add an app.config file to the root of the project add another app.config file called reallyImportantFile.config to the root of the project set reallyImportantFile.config to BuildAction=Content and CopyToOutputDirectory=Copy Always compile the project and peek out /bin/debug (it is there) write a unit test that checks to see if the file exists (File.Exists(fileName)) watch the test fail BECAUSE TEAM SYSTEM DOESN'T MOVE THE 'COPY ALWAYS' FILES INTO THE OUT DIRECTORY ...Show All
Visual C++ calling managed dll from native dll and keeping a static ref
What issues should I be aware of when doing the following: End scenario: Native dll needs to hold a static reference to a managed class (written in c#) throughout the lifetime of the native dll. I have written a slight wrapper in managed c++ (technically c++/cli) in whidbey. This all seems to work fine and dandy, but there always seems to be a "gotcha" in the managed c++ world. When I compile I get this warning: Warning 1 warning C4251: 'RequestHandler::wrapperClass' : struct 'gcroot<T>' needs to have dll-interface to be used by clients of class 'RequestHandler 1. Can this be ignored in this case since the native class shou ...Show All
Visual Studio Team System Sampling profiler: is there some way to see a disassembly view?
I just found out about these tools today, and I'm pretty impressed. Nice job! I was wondering if there's any way to see disassembly (e.g. with number of hits on the instructions) ... And/or is it possible to somehow extract the actual raw data (e.g. EIP's, module info: base-address, version) from the .vsp thanks much, Jon You indicate that you will have source line profiling in the next version. Can you provide an expected date for the release of the next version ...Show All
.NET Development Problems with creating Structures in .NET
When I try to create the following structure in VB.NET... <StructLayout(LayoutKind.Sequential)> Structure Struct1 <FieldOffset(0)> Public Unk1 As Short <FieldOffset(35), MarshalAs(UnmanagedType.ByValArray, SizeConst:=23)> Public unk2() As Char <FieldOffset(97), MarshalAs(UnmanagedType.ByValArray, SizeConst:=23)> Public unk3() As Char &nb ...Show All
SQL Server Dialog Security and Message Encryption
I understand that Dialog Security + certificates can be used to encryption individual dialogs. I have several demos working now that do just this.However, I don't fully understand exactly when the messages are encrypted, and if they are ever written to a queue on the initiating service prior to being encrypted. I want to make sure that admins can't simply query the transmission queues to get clear text messages, because I have strict requirements that I encrypt all personal data that is stored anywhere in a database. BOL is a little unclear on this topic. The relevant doc reads: For a dialog that uses security, Service Broker encrypts al ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Video on 2005 WinForm
What gives Works fine in vs2003 but not in vs2005 with current version of DirectX. Any ideas and directions would be appreciated. <vs 2003> Dim vid As New Microsoft.DirectX.AudioVideoPlayback.Video("C:\Temp\u.mwv") <Vs 2005> Dim vid As New Microsoft.DirectX.AudioVideoPlayback.Video("C:\Temp\u.mwv") <Error message> DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. ...Show All
Software Development for Windows Vista windows Vista Installation Build 5308 help
i was installing my windows vista with the upgrade mode and when it was finshed the screen size was 600x480 4 bit, It also took me 3 hours to install. help oka ...Show All
Audio and Video Development blend image use VMR9
I blending an image on the video use VMR9,when the video is rendered in it's native size,the image is ok,but when the video is resize(such as 320X240 to 640X480),the image is blured. What is the size of the image that you are blending I assume the native video size is 320x240. When you stretch it to 640x480 you should see slight blurring (or specifically aliasing) of the video also. Are you seeing that the image is getting blurred worse than the video Sumedh ...Show All
SQL Server File System Task: Move/Rename
I can use the File System Task to Move a file from one directory to another and to rename a file, but is there a way to do this in one step, i.e., move file named 'c:\foo.txt' to 'c:\backup\foo_bkp.txt' OK, maybe I'm being dense ... but how I have both Source and Destination set to variables. The "Move File" facility only accepts a directory as the Destination because when I coded it with a new file name, I got an error due to the destination file name being ["DestVariable"]\["SourceFileName"] so it looked like: c:\backup\foo_bkp.txt\foo.txt ...Show All
Visual Studio Team System How can i create a new work item category?
Hi for every one, I need some helps, I want to create a some new work items categories, how can i do that in my Team System , I'm tried on MsProject but i don't know how can i imports from MsProject :( to my Team. Any idea TKS! What do you mean by new categories A new work item type, like bug, task, scenario Or one of the fields on a specific work item type ...Show All
.NET Development Load Balancing Socket Connections
Hi, I don't know if this is even possible but here is the scenario I have: I have a server/client application connected via TCP. Lets say I have 5 clients applications. I have 2 server applications running behind a load balancer. Since it's TCP, lets say 2 of the clients make a socket connection to server 1 and 3 of the clients make a socket connection to server 2. Can I have server 1 send a message over the socket connection to each of the clients The clients make the connection to the server...so I can't just open another socket connection from the server to the clients... Make sense Is that possible ...Show All
Visual Studio 2008 (Pre-release) Pre/Post Operation Invokation Extensibility
I am looking for a way to set up some state in thread local storage immediately before operations are invoked and then to clean it up immediately after they have completed. (i.e. the pre/post operation code must run on the thread used to service the request). What would be the best way to do this Thanks. Frank, The IOperationBehavior and IOperationInvoker interfaces will do it for you. The following are the major steps: 1. Create your Invoker class derived from IOperationInvoker and implement its method object IOperationInvoker.Invoke(object instance, object[] inputs, out object[] outputs ...Show All
Visual Basic ListView Column Limitation/Bug ?
I am not sure whether this has been reported before or this is the right place to report. I am using Microsoft Visual Studio 2005 Version 8.0.50727.26 (RTM.050727-2600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Basic 2005 55603-000-0000016-00187 Microsoft Visual Basic 2005 Cannot add more than 20 columns in listview control. Actually it will let me add more than 20 Header objects but when I try to add a listviewitem with more than 20 items, it errors out with follwoing exception. Item cannot be added to the listview I am also including a sample code to demonstrade the issue. Just add a VB application projec ...Show All
.NET Development Intermediate NullReferenceException when calling DataRow.EndEdit()
Hi there I have got an application with the following cateristics: * A datatable is populated with records from a database. * A set intervals the database is checked for changed records, and the corresponding DataRows in the DataTable is updated accordingly. * Invoke is used at all times for the update to ensure that the update is done by the the thread that created the window handle. * A DataView is connected to the DataTable. * A GridControl (Xceed) is connected to the DataView (readonly) The following is a snippet of the code used to update the DataRow: private void updateRowFrom(DataRow row) { try &nb ...Show All
Windows Forms Install Task Vision Server in a Domain
The task vision server app comes up with an error besause it tries to log (I suppose to log into SQL server) as COMPUTER_NAME\ASPNET when that name doesn't exist. The user that really exists es DOMAIN_NAME\ASPNET. In machine.config file I have as user DOMAIN_NAME\ASPNET . The installation should read information from that file (machine.config), and should not supp ...Show All
