petra17's Q&A profile
Visual Studio Team System How to find Const in the Fxcop1.32 rule?
I am using Fxcop 1.32. I have an urgent requirement to make all the private const variables in my class file should be camel case. So i am able to retrive that a variable is private but i am not able to retrive the const part. So my requirement is how to find that a variable is "const" or not could you please provide me pointers in this direction. Regards Ravi Kumar Just to amplify on Dave's (correct) answer a bit, you can use the field.IsInitOnly metadata in order to determine whether you're looking at a readonly value (in case that analysis is important for your custom rule). Michael Fanning VSTS Development: Code Analysis ...Show All
Windows Live Developer Forums Receiving contact status change events in C++?
Hi there, I'm writing a C++ app that needs to initiate Windows Messenger conversations, and receive status change events for its contacts. I've found lots of information describing how to accomplish this using C# and .NET, but very little guidance for C++. I've been able to get my app to send new instant messages, but so far, I have not been able to find a way to receive the status change events. So I have 2 questions: 1. Is the C++ Messenger API still "supported" by Microsoft, and if so, where can I find the libraries and header files I've found the documentation on the MSDN site, but there don't seem to be any links to the actua ...Show All
SQL Server NullProcessing and Reference Dimensions
Have a Measure group in a fact table. This fact table links to the project dimension and the time dimension. In the project dimension there are some additional dates like ProjectStartDate and ProjectDueDate. So I create a new time dimension for these dates. So for the Measure Group / Time (ProjectStartDate) combination, I define the dimension usage as a reference to the project dimension. But when I process I get som errors on ProjectStartDate that date values (the NULL date) not exist time dimension (which is correct). To solve this I try to set up the NullProcessing for these dimensions. But in contrast with a regular dimension th ...Show All
Smart Device Development Environment SpecialFolder invalid operation
Hi. This works fine on .NET Framework 2.0 but wondering why I am getting an exception when implementing this same code on .NET CF 2.0, on WM5 smartphone. if (Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Programs))) { ... } A first chance exception of type 'System.InvalidOperationException' occurred in mscorlib.dll 'Environment.GetFolderPath(Environment.SpecialFolder.Programs)' threw an exception of type 'System.InvalidOperationException' base {System.SystemException}: {System.InvalidOperationException: InvalidOperationException at System.Environment.GetFolderPath() at DMe_2006_Mo ...Show All
SQL Server SOS..Pagination issues.. help needed
Hi My report consists of multiple sub reports . The report seems to be breaking up ( creating a page break) in the middle of nowhere on the master. I have checked the sub reports for page break settings, played around with the page layout properties but couldnt make it stop breaking. In the xml, I noticed a tag called <InteractiveHeight> set to 11in by default. Changing this seems to resolve the issue but I dont know whether it will break anything. Does any one know what this tag is for Thanks in advance Shai InteractiveHeight is only supported on RS 2005. Opening a report in BI Development Studio of ...Show All
Visual Studio Express Editions I think the solution is simple:
Im just trying to get for loops to work properly and just basically messing around. This does actually work properly; yes i realize the names are retarded but they just came out :P Basically in this program you highlight an item in the textbox, and when you press ok that selected item will come up in a messagebox and say "you have selected so and so" Anyway... my question is how would i get this to display "You have selected nothing" when the user clicks the ok button and nothing is selected in the listbox. for ( int counter = 0; counter < listBox1.SelectedItems.Count; counter++) switch (li ...Show All
Visual Basic Form_Closing Function
Hi, How do you get a form closing function to stop closing the form I mean when you click on the Exit button on the right hand corner of the form, how do I stop it from closing I want to put a message box asking "Do you really want to quit " and of the result is "No", then how do I go about cancelling the action of closing the form Regards, Arun. Hi Jenson, Thank you so much for your response. I have a lot to learn about the intricacies of VB . Thanks again. Regards, Arun. ...Show All
Visual C++ Tips for speeding up debugging (stepping through code)?
I've got one particular large C++ project that, in VC 2005, when stepping through code in the debugger, it takes approximately 2 seconds for each hit of the F10 key (i.e. each line of code) to be executed. I've tried many things to attempt to speed it up: disable intellisense, renaming feacp.dll, removing all additional output windows, watch, breakpoints, etc, removing navigation bar from text editor window, disabling anti-virus on the machine, closing all other apps. It's always the same speed. Running on a dual P4 2.8 gig with 1 gig of memory, and hyperthreading enabled. Are there any other tips for speeding up debugging in the ...Show All
SQL Server Beware the UNION ALL - it can swallow rows...
Just for all you June CTPers as a warning.. I have a UNION ALL that, at random, decides to swallow row count.... Tried deleting and recreating task Unable to Repro Along with the buffer leaks and the looping errors.. bring on the NEXT CTP.. ! ! ! Giri, Can you send me a package that reproduces this issue We're unaware of any UnionAll issues with CTP15 and I'd love to fix these. thanks ...Show All
Software Development for Windows Vista CurrentStateId is always null
Hi! I have created State Machine Workflow and CurrentStateId is always null. My question is - does CurrentStateId must show the Id of the current state (activity) in the State Machine Workflow or not What I did to query the state is to define a variable called currentState in the IOrderService interface, and define a methods that set/get the currentState (i.e. getCurrentState() and setCurrentState(String s)) Then within each state in the state machine, I add in a InvokeMethod activity which invokes setCurrentState with the currentStateID. The external program that invokes the workflow will also be ...Show All
Visual Studio Express Editions installation problems... can't install Visual Studio Express
1) I tried to install. Message: deinstall Microsoft SQL Server and .Net Framework 2.0 Beta 2 2) I don't have Microsoft SQL Server, but I deinstalled .Net Framework 2.0 Beta 2 3) Second try. Now I the error was at the download: no connection possible. (I don't use a Proxy or something. 4) seached in Services for the BITS. Not found in the list. 5) downloaded it, ERROR: You don't need to install because your Service Pack has a newer version or something. 6) restarted the PC 7)Now the Message 'deinstall Microsoft SQL Server and .Net Framework 2.0' comes again. Deinstalled .Net Framework 1.1 too. 8) Tried the 5th time. deinstall Microsoft ...Show All
Smart Device Development Who has a PPC-6700 Sprint AudioVox Mobile 5 (Can I use GPS?)
I have the Sprint AudioVox PPC-6700 and I know that it has the built in GPS chipset but everywhere that I search I can not find out how to actually access the API. There are a few of the GPS API references throughout msdn & msdn2 but none have an actual walk through. It is very easy to access the phone API's and contact lists/appointments and whatnot but the GPS is not to be found. As far as the GPS is conserned one could argue that it isn't ment to be programmed or something but the fact is that in all documentation it says that e911 can use the gps and also applications that need your location (such as movie times or resteraunts ...Show All
Visual C++ how to embedded c code in vs2005
I used to coding in C in VC++6 ==> now I have to move to VC2005 and there are so many differences. I got the error after the compile (which was good under VC++6). I just found out that LIBC.lib and wininet.lib are not available in VC2005. So is there any body kindly help me with this proble that I ran into. Error 2 fatal error LNK1104: cannot open file 'LIBC.lib' TCDTest Warning 1 warning LNK4044: unrecognized option '/wininet.lib'; ignored TCDTest Thanks in advance, I believe this is answered at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=218107&SiteID=1 . Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Deployment folder won't get copied.
In my test project I have a folder with a few xml files which I set the properties to be content/copy always. I added this folder to the additional files and directories to deploy window in my .testrunconfig file. When I run my test, all xml files are copied to the out directory but not the folder. So it basically flattens the directory structure on deployment. How do I tell it to preserve the directory structure Thanks. The directory structure is maintained beneath the directory that was selected for deployment. However, the selected directory itself is not created in the deployment directory. Thanks ...Show All
SQL Server SSIS Custom Component DerivedColumn programmatically problems
dear experts, i'm trying to build a package programmatically from client c# application. I'm working to create three dataflow components: - OleDB Source - Derived Column Transformations - OleDb Destination. My package works good, but i have several problems when insert an expression as Value of an IDTSCustomPropriety90 object, like this one: [LEN](#firsname.lineageID) > 5 <<if true>> : <<if false>> Simple expressions like concatenate strings, for example "#firstname.lineageID" + "#lastname.lineageID" seem to work good. Thanks a lot in advanced. Paganelli Francesco ...Show All
