Grant_csi's Q&A profile
Windows Forms Storing custom class in Application Settings
I would like to store a class defined by me in the "windows from application settings". This is not easy to do, but it seems to work, mostly: 1) Open Settings.settings with the Settings Designer. Because the dropdown list doesn't allow me to chose my own class, I just use a property of type string. Close the Settings Designer and save the changes. 2) Open Settings.settings with a text editor. Change the type to my class. save the change. 3) Open Settings.settings with the Settings Designer. A property wiht my the type of my class is displayed. Nice :-) From my code, I can create a new instance of my class and assign it to the application settings, save them and read them again. This works for all fields in my class wh ...Show All
.NET Development When will x64 mixed mode debugging be supported
I've found posts that indicate "Orcas Timeframe" Is this true and when will that be Thanks NIK OK, thanks for the info. This is the thread that I picked that idea up from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=54877&SiteID=1 ...Show All
Software Development for Windows Vista Designed for Windows Vista Logo on a .NET Component
Hi All, I want potential customer to know that our component is 100% compatible for windows vista, and therefore with .NET 3.0 What certification program shuold I enroll I tryed with the standard Windows Vista App program but it looks like it does not support .NET components... Thanks so much for your time, Alberto ...Show All
Visual Studio Express Editions Accept-encoding : gzip
How can I utilise the Accept-encoding : gzip in the following bit of code when i attempt to put it in the with loop it gives a "Operator '-' is not defined for type 'System.Text.ASCIIEncoding'. " error message Code Dim LoginReq As Net.HttpWebRequest = Net.WebRequest.Create(domain & "/gamex/DepositFundsPopup.do;jsessionid=56q4bge77qwj2" ) With LoginReq .Method = "POST" .Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*" .ContentType = "application/x-www-form-urlencoded" .UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0 ...Show All
Visual Studio Team System Build with tests fails with no indication of where
I have setup two builds on my TFS project - one to run when code is checked in that only verifies that the code will build, and one to be run automatically that will run our tests. The first build appears to work correctly, but when I run the second (from my VS) it fails. When I look at the BuildLog.txt file, I can't see any failures, and the build results in VS show red "X"s next to the "Running tests" and "Running tests for Any CPU/Debug" entries. I have looked at this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=673795&SiteID=1 and based on that tried installing VS Test edition on the build machine, with no change in the results. I am running Team Suite on my machine. Can anyone ...Show All
Visual Studio Express Editions Resourcing AVIs
Basically, is it possible Can I include an avi in my program rather than have to link to an external resource Thanks, SlickRed I take it this isn't possible I am using a media player component in my program but rather than link to an avi stored elsewhere I'd link to include it in the program. SlickRed ...Show All
Visual Studio Team System Managing permissions
Is there a way to restrict a user's ability to create, edit and delete labels or branches What I want to do is to have only certain users to have permission to manage labels and branches. Can this be done I have posted this in connect.microsoft.com as a feature request. All who agree with the above user(s) comments as well as mine that branching operation should have it's own security bit then please go vote for and validate this item. The link to the request is: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=201543 ...Show All
Visual C++ Passing Managed Array to VC++ and Back
I am having a bit of a frustrating problem. I am trying to pass an array of unsigned short to a c++ .dll which the dll will populate and return. I have tried to convert it to a managed dll, but I am still having issues. The debugger in the vb.net side( 2k5) is returning 'getMeasurement' has a return type that is not supported or parameter types that are no supported for the below highlighted statement Any help/advice is greatly appreciated! Here is the code I am using: vb 2005 code Public Shared usSampleBuffer() as UInt16 Public Shared iResult as Integer Public Property bReadingStatus() as Integer Get Return iResult End Get Set (ByVal iHold as Integer) ReDim usSampleBuffer(256000) Dim lRoutine as New RoutineDLL.cl ...Show All
Visual Studio Express Editions variabels in a name
I 've got a question: is it possible to set a variable in a name I 'll give an example of what I want! I want to add some text in textbox5. and variable x = 5... Textboxx.text = "example" You see I know this code isn't working but I wanted to give an example of my problem. Is there anyone who know (if it is possible) how you can get variables in a name thx Hi, the following code will set the Text property to the control, named TextBox5 and put directly on the form ( Me .Controls...) To look for a control in other container, use its name instead (e.g. Me.Panel1.Controls) or try finding your control with the Controls.Find() method. Dim x As Integer = 5 Dim myTextBox As TextBox = TryCast (Me.Con ...Show All
Visual Studio Team System Code Analysis Error on MeasureString (CA0001)
I get the following Code Analysis Error on this piece of code: Error 22 CA0001 : Rule=Microsoft.Globalization#CA1303, Target=DXGameEngine2.GivesCAError.MeasureText(System.String):System.Int32 : Object reference not set to an instance of an object. DXGameEngine2 public int MeasureText( string textToMeasure) { Microsoft.DirectX.Direct3D. Font font = new Microsoft.DirectX.Direct3D. Font ( DXGame .DXDevice.Device, new System.Drawing. Font ( "Arial" , 10.0f, System.Drawing. FontStyle .Regular)); return font.MeasureString( null , textToMeasure, Microsoft.DirectX.Direct3D. DrawTextFormat .None, System.Drawing. Color .Black).Width; } Can anyone tell me what I'm doing wrong Thanks... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. persistent backbuffer OR renderTarget (on 360) possible?
I want to disable backbuffer clear. Though I have removed the Clear from my draw func it still gets cleared to black on Xbox360. Run the same thing on PC and the mystery clear doesn't happen (stuff I'm drawing correctly smears across the screen). I also tried to workaround w/ ResolveBackBuffer to a texture and draw this back at the beginning of each frame but thats not working for me either. In this case my Draw() looks like: Draw Backing Texture using Quad Draw new items ResolveBackBuffer -> Backing Texture I even tried double buffering the backing texture w/ no luck. Thirdly, I tried RenderTargets, but they also seemed to be getting cleared each frame as well! I would think there's gotta be a way for rendertarget contents ...Show All
Visual C++ function pointers..
i'm not sure how to declare an array of function pointers this is what i've got so far: typedef vector<int>::size_type (*arr[5])(const string&); arr[0] = hashfn1; //Line #44 arr[1] = hashfn2; arr[2] = hashfn3; arr[3] = hashfn4; arr[4] = hashfn5; error message: hashing.cpp:44: parse error before `[' Any suggestions Well, here is what worked for me: vector<int>::size_type (*functions[5 ...Show All
Visual C++ DLL with C++ - Design question
Hi, I come up into a question about which method would be better to write my DLL. 1. Write it purely in C 2. Wirte the class in C++, then use C function wrapper 3. Write everything in C++, and export the whole class Can anyone kindly point out the pros and cons of the above alternatives, and if there're other designs, please kindly let me know too. Thanks! My DLL will provide functions for other application, the language of the client is not know. I am familiar with singleton, but where should I initiate the class Is there any "OnLoad" events for the DLL library The three calls method provided by Alex is not suitable in my case, because I want everything to be done in one sigle call only. ...Show All
Visual Basic My namespace (accessing default printer)
I am not able to find any printer related settings (get the default printer, change the default printer etc.) in the My namspace May be there is no printer related methods available within My namespace (My.computer) Please correct me. I thoughts so but when I viewed this from VB program manager on the MSDN I got confused http://channel9.msdn.com/ShowPost.aspx PostID=13368 ...Show All
Visual Studio 2008 (Pre-release) Suggestion: Role-based styling
So far, so great. WPF is really coming along wonderfully and I can't wait for it to pick up traction in the industry. There is one thing that I would love to see in WPF, in a future release... Right now styling an app requires you to either specify an element's Style by key or have a style which applies to all instances of a specific type (or you can use inline styles). This is all fine and good, but it does not lend itself well to creating "skinnable" apps, where with the change of one global setting the entire app uses a new theme. Currently one could respond to the "skin-swap" by explicitly altering the Style of every element. Obviously that is time consuming and error prone. Alternatively one c ...Show All
