Jeff Blake's Q&A profile
.NET Development What method can be used to get the list of all the attributes present in a class in C#
What method can be used to get the list of all the attributes present in a class in C# System.ComponentModel.TypeDescriptor.GetAttributes() ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Hi Martin, can you clarify on what you mean when you say, " Are you sure that WinDoctor is right ".... I know its installed correctly, up to date and functioning properly if that's what you meant. ...Show All
SQL Server Data Flow Task - Conditions to add value for a field.
Hi: I have a data flow task in which i have multiple OLEDB sources going to a one OLEDB destination via UNION component. I also have a derived column component sitting behind the union, because there are some columns, which exist in the destination table, but are not coming from source, but I am responsible of providing values for those fields. The question is that some of those values are conditional, for eg. Lets say we have a column called RecStatusCode in the derived column component. The value for that column depends on a condition/criteria, so I need to query a db and based on the value of another field, I set the value of the recstatus code. How do i accomplish that I am thinking expressions, but I need clear direction in steps i ...Show All
Visual Studio 2008 (Pre-release) Fuzzy "out of focus" text in drop down menus
Hi, Most of the ClearType text used by WPF running on XP normally looks at least "OK" to me. But the text in the drop-down part of menus of the samples looks blurry, fuzzy or "out of focus". See the link below to the screen capture of part of WpfNotepad. You need to view the largest size to see the problem: http://www.flickr.com/photos/52602162@N00/376915412/ Notice that the text in the drop-down portion of the menu is using "grey-scale" ClearType (looks fuzzy to me), while the text on the main part of the menu is using the normal "colored" ClearType (looks OK to me). Is there some way to get the drop-down text to use the normal "colored" ClearType The drop-down menus on Blend itself use the "colore ...Show All
Visual C++ String to char
I have something like this: String* test; test=getMD5String("something"); and how can i "test" convert to char array I assume getMD5String() uses MD5.ComputeHash(). It requires a Byte[] and returns a Byte[]. To convert your String to Byte[] (and back), use one of the System.Text.Encoding classes, like UTF8Encoding. You convert to Byte[] with the GetBytes method and from Byte[] with the GetString method. Of course, whomever uses the hash should use the same encoding... ...Show All
Visual Basic Is there any way to autoclick with the mouse?
Hi. It's me again. I was wondering, (and I'll probably get a simple answer that I could've figured out on my own.) is there any way to make the mouse move to a certain point on the screen, and then click by itself Thanks. Thanks everyone, but I need to know the mouse coordinates for when I'm developing the program, not running it. Like, if I wanted to click the mouse at 100,100 on the screen, and I wanted to know what would be there, I would minimize VB 2005 and open that program, and it'll tell me where the mouse is. Not when MY program is running, but when I'm developing the program. Let's say there's a button my program will click, but I need to know where that button is so I can enter the X,Y coordinat ...Show All
Visual Studio 'Unable to find the emdedded reports auto generated wrapper class'
Hello, I have just upgraded my VS2003 project to VS2005. Had a million things to fix, but I'm finally down to the last few. The biggest remaining problem is my Crystal Reports don't work. The error message is below... On googling it the answer seems to be I have to include the *.rpt's as an embedded resource. However, and this is the really odd bit, the properties that should show up in VS2005 to allow me to do that are simply missing! No matter how I fool around with it, there is no Build Action property when I select a file in the Solution Explorer. I notice that if I create a Windows application in VS, the Build Action property (and 3 others in the Advanced category) are available. Just not when I'm working with web projects. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. ViewPorts - Splitscreen
I am trying to get a splitscreen to work and it does sort of. The problem is the models drawn now look messed up, like the zbuffer is messed up or something. Here is what I'm doing: protected override void Draw(GameTime gameTime) { cameraPosition.Z = 5000; graphics.GraphicsDevice.Viewport = topViewport; Draw(); cameraPosition.Z = -5000; graphics.GraphicsDevice.Viewport = bottomViewport; Draw(); } In the Draw function I am clearing the viewport to CornfolowerBlue and drawing the models. What am I missing here. you have to set your viewport's minDepth and maxDepth according to the values you used in the projection matrix. Like this: viewport.X = 0; viewport.Y = 0; viewport.Width = thi ...Show All
Visual Studio Express Editions about count?
hi there how do we use or execute a command in label which you can count the number of output.... for example "Select count(*) from user" (number in query in a datagrid) and the output must be seen in textbox or label... thx in advance newbie din ako...i'm just trying to share to others what i have learned so far...cp is not allowed here in our office so i suggest magpost ka na lang dito ng questions and i'll try my best to help...:) ...Show All
Visual Studio Team System MSF Sample Tempates
For all MSF forum specialists... When can I download the MSF Sample Tempates v3 working edition that includes all documentation, presentations and project examples that can be opened from the MS Project application. In a library that was downloaded from the MSDN portal I can't see nothing, Can someone tell me how we can order all documentation from Microsoft Thanks in advance Leonid Niraev Hi Leonid, These documents are not yet part of MSF for Agile Software Development or MSF for CMMI Process Improvement, but you can find some like those in the Patterns and Practices area . However, since now MSF is part of Patterns and Practices team at Microsoft, there might be some cross collaboration on existing guides ( ...Show All
Visual Studio 2008 (Pre-release) List DependencyProperties?
How can I get a list of DependencyProperties from an object That's handy code, but I'll offer some caveats for it. * The typename that was chosen for the illustrated class has potential for name collision with another class DependencyPropertyHelper that is already defined in System.Windows: http://msdn2.microsoft.com/en-us/library/system.windows.dependencypropertyhelper.aspx Depending on how you do your references/includes etc., you might want to use a different class name if you wanted to add the code in this post to your application or library. * The way the GetProperties is written, it doesn't exclude the attached properties. Semantically, attached properties are dependency properties (at ...Show All
.NET Development round of a decimal
Hi, I need to round a decimal to 2 significat digits let me tell you an example i take a number and convert it into bytes,KB,MB,GB,TB etc for numbers <0.01 and >0.0001 i am trying to print #.#### but if i take a number 0.000000000234 - i need the result 0.00000000023 if i take a number 0.000000256 i need the result 0.000000266 how can i do this Thank you ...Show All
Visual Studio Express Editions Display URL in Textbox
I have a tabbed browser. That when I open a new tab it opens a new browser. key to that is: Dim tx as new webbrowser How would I display the URL of this new webbrowser in a URL, for viewing purposes I dont want to be able to input a url just display the current URL. Try using a Label control, displayed above the tabs. Note how Internet Explorer and Firefox use a combobox to allow the user to enter a URL by hand as well as navigate back to previous URLs... ...Show All
Visual C# How Can I retrieve The real Ip
hello I have a problem .. my project like a Messenger and I want to register The real Ip Of my machine When I login The internet But I Use DsL !! How Can I retrieve The real Ip Not Virtual Ip you could do that but thats bad practice - the website may not exist, some issues with the website and so on - but perhaps reasonable for a temp solution. The added expense being Regex ...Show All
.NET Development SetClientCredential && SetPolicy are inaccessible
I created a simple web service within VS2005, like follows: public class MyService : System.Web.Services. WebService { .. } and call it from my test harness web project, using the following code: TestProject.MyService proxy = TestProject.MyService(); // proxy.SetClientCredential(token); // proxy.SetPolicy("usernameTokenSecurity"); proxy.DoSomething(); Somehow I can't call neither SetClientCredential, nor SetPolicy, for the instance of my proxy, as those methods don’t' exist. When I checked the auto generated proxy class, using built-in reflector, I found that it's inherited from SoapHttpClientProtocol , thus providing no support for those two methods. Is there anything I'm doing wrong thanks ...Show All
