Donald Wm. Johnson's Q&A profile
Visual C# trouble using delegate in WndProc
when i use delegate like this: ----------------- [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void WndProc(ref Message m) { delegate_ReplyFromDataProcess = new PrepareDelegate_ReplyFromDataProcess(ReplyFromDataProcess); delegate_ReplyFromDataProcess.BeginInvoke(m, null, null); } delegate void PrepareDelegate_ReplyFromDataProcess(Message m); private void ReplyFromDataProcess(Message m) { IntPtr pnt = dp.OnReply(UInt32.Parse(m.WParam.ToString()), Int32.Parse(m.LParam.ToString())); } ----------------- i met the error: * ...Show All
Visual Studio Team System Report server error
After a successfully TFS installation any new projects fails showing any of the reports. If we run the reports directly from reporting services, following error are returned: An error has occurred during report processing. (rsProcessingAborted) Query execution failed for data set 'dsIterationPathParam'. (rsErrorExecutingCommand) The Team System cube either does not exist or has not been processed. We have a dual installation with SQL 2005 June ENT and TFS july. How can we correct the error Regards Christian ~ Hi, Has anyone found a solution to this error other than a compl ...Show All
Visual Basic WebBrowser_FileDownload event
I am working on a VB.Net webbrowser named: MicroSE Unite: http://elfsander.cjb.cc/downloads/bestanden/setupUnite.zip Now I want to add my own FileDownload handler but the FileDownload event doesn't return an URL, so I can't use it... Can somebody please help me with this I've submitted a bug for this: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackId=FDBK27565 ...Show All
.NET Development Is a hyperlink containig the word google seen as non accessible?
I've tried several hyperlinks in asp.net 2.0 to anything with the word google in it - <a href="blah.aspx">Google Analtyics</a> And I get an accessability error thrown from this but why Thats a good one! It took us a bit to investigate what was going on, and we came across the issue. The Accessibility Checker looks for certain "bad" words in links. One of those words is "Go", thus if you had tried "Go To Paris" it would have also failed. The easy way to fix this on your machine would be to edit X:\Program Files\Microsoft Visual Studio 8\Common7\Packages\1033\Accessibil ...Show All
Smart Device Development VS2005, .NET CF 1.0, .NET CF 2.0 and WindowsCE 5.0 questions
Hi there I have a bit of a problem. With VS2005 I am creating a WindowsCE 5.0 application based on .NET CF 2.0 but when I try to run it on my WindowsCE 5.0 terminal I get an error that it cant find the file that Im launching or some other components. So now my questions: First: How do I check which version of .NET my terminal is running Second: How do I create a .NET CF 1.0 application in VS2005 if possible Third: How do I upgrade my terminal to 2.0 if second is not possible Supplying information: I do not have access to the WindowsCE image so I cant flush in the .NET CF 2.0 framework into the image directly. I ha ...Show All
Visual C++ Rationale for C++/CLI Value Types not having a default constructor
Given value class X { public: // Not allowed: X():i(100000),s(10000) { } // Allowed void InitializeDefaults() { i = 100000; s = 10000; } private: int i; short s; } How can: 1) X x; x.InitializeDefaults(); be better semantically than 2) X x; for setting the default values of 100000 for i and 10000 for s In other words what is the rationale for removing the natural user-defined default constructor for value types and forcing the user to default construct the value type object to its zero or null values and then have to call another function to set default values which the type may want I read that 2) can not be guaranteed to occur properly in ...Show All
Visual Basic disable DataGridViewCheckBoxColumn
Is there a way to disable a cell in a column of the datagridview control of type DataGridViewCheckBoxColumn Using the three state property and the indeterminated state I get a green rectangle. I want to have a disabled checkbox. Do I need to create my own images in the cell paint event Use the ReadOnly property. Me .DataGridView1.Rows(0).Cells(0).ReadOnly = True ...Show All
SQL Server Verify Database as in Crystal Reports
In Crystal Reports designer, there is a way for me to invoke 'verify database' which basically makes sure the report definition is in synch with the referenced database table. However I can't seem to find such command in Microsoft Report Designer. For example, when creating a report, one of the columns used to be 'Last_Name'. The report is built and deployed successfully to Report Server. When I run the report, the results are displayed as expected. So far so good. Unfortunately, if it happens that the original 'Last_Name' column is later renamed to 'Family_Name'. When I opened the report project in Visual Stud ...Show All
.NET Development Need some suggestions about picking a 64 bit workstation
I'm investigating picking up a 64 bit workstation in the next few weeks. So my question is which would be better, AMD64 or the new P4 6xx series Has anyone tried the 64 bit sdk on either machine Any isses with WinXP 64 (other then the fact it's beta code) and .NETFX64 that could be a show stopper Thanks, Jason ------------ Lois: You're drunk again. Peter: No, I'm just exhausted 'cause I've been up all night drinking. Hi, I think AMD has been selling 64-bit processors for quite a while and hence its a safer choice. I am personally running a Workstation based on Athlon64 3200+ and its been a good experience ...Show All
Visual Studio 2008 (Pre-release) WPF in Feb CTP still breaking wherever!
The last time it threw exceptions when deserializing the BAML left and right trying to run compiled applications, if I was lucky, I managed it to run once, if it was the first WPF application to run on my system. The reason where was that it was a known bug related to non-SSE2 CPUs. Meanwhile I upgraded my machine to an Athlon64 X2, instead of exceptions, the application is dieing now due to simple breakpoints. I still only manage to run it once, in total two times, once on the x86 runtime and once on the x64 one. There are no breakpoints in my project, so they must be inside WPF. Why is THIS now happening It's really getting frustating. It ...Show All
Windows Forms Controlling elements in a seperate C# form
Hi, I'm fairly new to C# and OO stuff, being an embedded C specialist. I'm trying to write an application that can talk serially to several units on a bus. That side of things I can handle, but the windows forms is harder for me! I have the main window form of the application where the user can setup the connection and so on, which will actually do the serial communication, however I need multiple extra windows that not only display information recieved (which one depending upon an ID), but also send data back to the master. IE: there will be one master, and multiple slaves (eg 4) that communicate only with the master. I'm struggling to ge ...Show All
Game Technologies: DirectX, XNA, XACT, etc. frequency spectrum analyzer
Hi, I want to sample an audio file and show it on a graph. so, I need to sample the frequencies between 20Hz and 15Khz. How do I do that with DirectX I just need to know how to sample a file, the methods/functions. (without hearing it,just open in on the memory and read it's content to chart like waveform) thx very much. I'm no audio guy, but I think what you need to do is perform a Fourier Transform on the sound data. That will give you information about the basic sine waves that the sound is made up of; you can group those sines by frequency and use them to create your graph. To the best of my knowledge, D ...Show All
Visual Studio Team System Get TemplateId of Project in TFS
I’m trying to get the process template used to create a project in TFS. I use this code. where "server" is an instance of TemFoundationServer class css = ( ICommonStructureService )server.GetService( typeof ( ICommonStructureService )); string projectName, projectStatus; int projectTemplate; ProjectProperty [] projectProperties; //Obtener la lista de proyectos disponibles. foreach ( ProjectInfo projectInfo in css.ListAllProjects()) { css.GetProjectProperties(projectInfo.Uri, out projectName, out projectStatus, out projectTemplate, out projectProperties); MessageBox .Show( Convert .ToString(pro ...Show All
.NET Development Get UserName and Last Name From Active Directory
Hi, I want to write a function that i give here a username, and my function returns me the user first name, and last name... How can i do that in C# 1.1 I don't know the details but you can look at the namespace System.DirectoryServices, there's a class named DirectoryEntry. Then check it's entry.Children, which has a e.Name. ...Show All
Visual Studio Team System % Time in GC counter getting "stuck"
Been running some load tests and I've noticed that every once in awhile, the "% Time in GC" performance counter from the web server gets "stuck". What I mean by this is you can see the counter tracking normally, but then at a ceretain point, it pegs at a certain value (typically around 40%) and every reading after that comes back with the same value. Tracking from perfmon confirms that the counter is not staying at that level. Anyone see anything like this Matt Not that I've noticed. The weird thing is it's not consistent. I can run several tests w/o it happening and then all the sudden it happens on a test ...Show All
