Bhaskar Vasudevan's Q&A profile
.NET Development WMI MSNdis_80211_ServiceSetIdentifier query returns garbage
Hello, I am using the below code in order to retrieve information about the WLAN network environment. Unfortunately only the first result in the ManagementObjectCollection seems to contain valid information. The other objects seem to contain garbage. Does retrieval anybody know of any issues with WMI and the MSNdis_80211_ServiceSetIdentifier retrieval ManagementClass mc = new ManagementClass ( "root\\WMI" , "MSNdis_80211_ServiceSetIdentifier" , null ); ManagementObjectCollection moc = mc.GetInstances(); foreach ( ManagementObject mo in moc) { string wlanCard = ( string )mo[ "InstanceN ...Show All
Visual Studio 2008 (Pre-release) Inverse Transparency
Ok I made a post before about 'super' transparency. This is something else I've noticed: Create a WPF user control with some animation. Host this in a winform. (At this stage I need to resize or minimize/restore to get anything to show, but it's then fine) Now set the transparency key to the forms background colour to get a transparent winform. Now it's just black, like in plain WPF. But drag the window around and it will paint the animation from under the window onto the screen. Even better, put another window in front and now the animation appears in this window (any type wpf, .net) Also when the screen saver comes ...Show All
Visual Studio Tools for Office Deleting a line break
Hi All, I'm writing a Word Add-in which finds for a string in the document and deletes if there is a line break just before it. Can anyone help me on this TIA Pavan Hi, You can search for a paragraph mark + the string, and replace it with "nothing" or replace it with just an empty paragraph mark if you want to retain it. For example, if the string you're looking for is "find string". Search for "^pfind string". Kathleen McGrath http://blogs.msdn.com/vsto2/ ...Show All
SQL Server How to Manage Security in SQL Express (2005 CTP)
Is there a tool or mmc snap-in to manage security for Sql Express I've got the express manager (XM) but it doesn't it doesn't provide a means to manage logins. I suppose I could resort to T-SQL, but it seems that there should be a tool somewhere for such an obvious function. Try the following link: http://www.microsoft.com/downloads/details.aspx FamilyId=C7A5CC62-EC54-4299-85FC-BA05C181ED55&displaylang=en ...Show All
Visual C++ Problem compiling a program
How do I compile my code When I open a file, it won't let me debug or run the file. And if I manage to get that, as soon as it runs, it just says: Press any key to continue... then it quits. windows.h is part of the PSDK headers which is not installed with the VC 2005 Express SKU, you will need to install it separately. Check the below link for more details on how to proceed: http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx Thanks, Ayman Shoukry VC++ Team ...Show All
Software Development for Windows Vista How to display a Workflow in a Avalon Application?
I try to embed the Workflow Designer to a avalon application. < Mapping XmlNamespace="wfi" ClrNamespace="System.Windows.Forms.Integration" Assembly="WindowsFormsIntegration" > < Mapping XmlNamespace="wf" ClrNamespace="System.Windows.Forms" Assembly="System.Windows.Forms" > <Window x:Class="AvalonWorkflow2.Window1" xmlns=" http://schemas.microsoft.com/winfx/avalon/2005 " xmlns:x=" http://schemas.microsoft.com/winfx/xaml/2005 " Title="AvalonWorkflow2" xmlns:wfi="wfi" xmlns:wf="wf"> ...Show All
Visual C++ Structure deletion?
I got a dynamic structure array in a class. In that classes destructor I delete a pointer to the said array. That deletion causes an error! After that, I tried to free(pArray) but this also causes an error. Is it necessary to delete this pointer at all Hey, is it better to use a class instead of struct Does this represent a better programming practice ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation about the z-axis...
I have a square on screen (2 triangles), and I'm experimenting with rotating the thing. Rotating about the x and y axis works as expected (the thing spins horizontally and vertically), but when I rotate it about the z-axis, it goes up and down, deforms a bit, and just looks weird. As for how I'm doing it right now, I'm using Matrix.RotationYawPitchRoll(x, y, z) to get my rotation matrix. Well, you could try using Matrix.RotationZ to see if the Z-angle you're using isn't causing any problems. Other than that, we really need to see some more of your code to be able to tell what ...Show All
Visual Studio 2008 (Pre-release) Group by count
This is my query select TagId, count(TagId) from ProfileTags Broup by TagId I tried to translate this query in Dlinq as: var q= from t in db.ProfileTags group t by t.TagId into g select new {TagId=g.Key,Count=g.Group.Count()}; but it results in the folowing compile error: Error 49 The type arguments for method 'System.Data.DLinq.QueryExtensions.Count<T>(System.Data.DLinq.Query<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. C:\DEV\SkynetProfiles\SkynetProfilesDataLayer\Dal.cs 133 42 SkynetProfilesDataLayer When is the next releas ...Show All
Software Development for Windows Vista SQLWorkflowPersistenceService
I just went through the AtomicTransaction lab (#8) and I was trying to figure out how the SQLWorkflowPersistenceService worked. I put some breakpoints in the code and was trying to spy on the data in the WorkflowStore tables: CompletedScope and InstanceState. However, whenever I looked at the tables, they were empty. Is there any way to spy on these tables and see what is going on under the hood Now, I should say that the example worked correctly and whenever an error occurred within the TransactionScope activity, the data was rolled back correctly. Any insights would be appreciated. Thanks, Ned ...Show All
Windows Forms Unable to activate application.
Does anyone know what this error means. It occurs if I try to uninstall tha application or update it. PLATFORM VERSION INFO Windows : 5.2.3790.0 (Win32NT) Common Language Runtime : 2.0.50215.44 System.Deployment.dll : 2.0.50215.44 (beta2.050215-4400) mscorwks.dll : 2.0.50215.44 (beta2.050215-4400) dfdll.dll : 8.0.50215.44 (beta2.050215-4400) dfshim.dll : 2.0.50215.44 (beta2.050215-4400) SOURCES Deployment url : http://applications.ccusa.com/DAS3_Beta1/MailMan2/CCUSA.DAS.MailMan.application &nb ...Show All
SQL Server Using MS Access 2003 Project with SQL Server 2005
I continue to receive an error that states "The version of Microsoft Access doesn't support design changes with the version of Microsoft SQL Server your Access project is connected to. See the Microsoft update website for the latest information." I'm using Access 2003 that I ran a database through the Upzinging Wizard with a copy of SQL Server 2005. I have searched the Office Update pages and can't locate anything that helps, although I'm sure I'm probably missing something. Any suggestions Thanks in advance, Mike Duke Bill, Mike , I have similar related problem. I am using MSSql Express 2005 (I uninstal ...Show All
SQL Server Souce and Dest auto-mapping
Hi, in my package there are several Connection Managers linking DB2 databases and there is one "fake" CM which copies the connection string of one of the other "real" CM depending of the need. Then I've made a Data Flow containing an OLE DB Source and a Destination Adapter. The Destination has a "table name from variable" access through a fixed Connection Manager, and the Source has "sql command from variable" access and uses the "fake" Connection Manager, which has "inherited" the connection string from one of the "real" CMs. The point is: When I drag the arrow from the OLE DB Source to the Destination, some mapping metadata are set, and th ...Show All
.NET Development Socket BeginAccept Method Memory Leak?
Hi, After copy and pasting the code from the MSDN sample "Asynchronous Server Socket Example" - http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconnon-blockingserversocketexample.asp into a Windows Library project (DLL) for use in a server I'm writing, I'm finding that each request from my client application causes a growth in memory of 4-8KB in the server application. This doesn't seem to be reclaimed at all, it just continues to grow. Since I'm writing a server that must run unattended for long periods of time this will be a problem for me. After googling the problem I found a forum on dot ...Show All
Visual C# count number of objects crated in runtime
hi in my application there r many classes and runtime so many objects r created of diff. classes. and i want to know how many objects r created at runtime.is there any utility in c#.net to know number of objects created at runtime. plz help me thanks and regards kavita You could read the articles on these pages: http://msdn.microsoft.com/msdnmag/issues/03/01/NETProfilerAPI/ http://msdn.microsoft.com/msdnmag/issues/01/12/hood/ to give you a clue as to how the Profiling API works. ...Show All
