johnnygoodface's Q&A profile
Visual Studio Report Viewer control
Where do i get the detail how to using the report viewer control in .net 2.0 How complex the report viewer control Can use it to do a very complex report .. and export to excel. hi , as you have worked on reports . i just want to ask is the reportdesigner inbuilt or do we need to download it .i can't find it in my visual studio 2005 toolbox.and also throw some light on how to use it plese. ...Show All
.NET Development Threadpool Issue with WaitHandle.WaitAll FatalExecutionEngineError
I have a process that goes out to each machine on the network and executes a few WMI calls. In the case that there is an error it takes about 5 seconds before it continues forward. 5 Seconds X 3000 Computers is more time that I have available. So, I have been messing around with ThreadPools. My thought is that I will kick off the WMI calls for 10 different machines then wait for them all to return. This way it only takes 5 seconds for each group of 10 machines. I have been using the Fibonacci Example to come up with the test code below but on my WaitHandle.WaitAll I am getting a FatalExecutionEngineError: Error: FatalExecutionEngineError was detected Message: The runtime has encountered a fatal error. The add ...Show All
.NET Development How do I set mouse cursor across applications (globally)
I need to set the mouse cursor until a certain method is complete. The cursor should be the same for the whole OS, ie: even if the user hovers over other windows. SetCursor API doesn't seem to be doing anything. Thanks ahmedilyas wrote: to select a window an application Window if you want to select an application Window and active it, use the FindWindow and SetForegroundWindow API's: http://www.pinvoke.net/default.aspx/user32/SetForegroundWindow.html http://www.pinvoke.net/default.aspx/user32/FindWindow.html Yeah sorry maybe I failed to mention that I have managed to get the app working 100%, except that I thought it would be better looking if it had a cursor to select the window with. I have tried ...Show All
Visual FoxPro About the median of a grouped frequency distribution
hi, I have a urgert problem about the median to be solved. I have the table like this age_group frequency cumulative frequency 1 18 18 2 24 42 3 39 81 4 23 104 5 12 116 6 8 124 What program code should I write to get the median Thanks. Let's see. The first thing that comes to mind would be an easy solution using XBASE code. Maybe not the most elegant but it should work. First index on cumulative frequency, then seek using NEAR ON which if it does not find, sends you to the next value instead of EOF(). Then if not at EOF() check to see ...Show All
Windows Search Technologies WDS 3.x keyboard shortcut
The default keyboard shortcut to search for anything in WDS 3.X is Windows key - Shift-F Is it possible to customize this I can't see anything in the options. You can define additional shortcut keys by going to the WDS link (visual shortcut) and right click and select properties. Go to the shortcut property tab and there is a shortcut key value. There you can add a new shortcut key. cheers, Ed ...Show All
.NET Development Server connection timeout
Hi guys, I am using the code below to connect to a server. This works fine on all the machines I have ever tried to connect to but a new server has recently been added on which it seems to timeout randomly. It would normally take 8secs to connect & retrieve information from a server but this takes 2 minutes on those random occasions. I believe that it may be the server timing out & responding a bit late as it might be busy or something.How could I possibly work around this and find out what is wrong I am using a third party SSH library to connect. I would appreciate any help StringBuilder output = new StringBuilder(); //SSH connection from 3rd party library (SSH2) //SSH Reader from 3rd party Socket s = new ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quaternion Multiplication is Broken
I believe that quaternion multiplication is broken. While you write matrix multiplications (to happen in order) as A * B, you have to write quaternions the other way around, qB * qA. I was chasing a "bug" in my animation code for the longest time before I found this! Here is a code sample that clearly shows the bug: class Tester { public Tester() { Matrix m1 = Matrix.CreateFromAxisAngle(new Vector3(1, 0, 0), (float)(Math.PI / 3)); Matrix m2 = Matrix.CreateFromAxisAngle(new Vector3(0, 0, 1), (float)(Math.PI / 3)); Matrix m3 = m1 * m2; Quaternion q1 = Quaternion.CreateFromAxisAngle(new Vector3(1, 0, 0), (float)(Math.PI / 3)); Quaternion q2 = Quaternion.CreateFr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cannot get a list of Lobby aware applications (C#)
Good evening all, I just cannot seem to get a list of Lobby aware applications registered on my system. I know there are two games that are listed on dxdiag's Network tab, and shown as Lobbyable applications. But when I execute: Microsoft.DirectX.DirectPlay.Lobby.Client.GetLocalPrograms() and try to attach to a listbox, nothing happens. The array is empty. Any idea why I have DX9 installed. Is it backward compatibily issue or something I'm missing Regards, Shuhrat There are few DirectPlay experts life out there so you might not get much help. Plus DirectPlay is no longer supported so you can't even get official support. One thing you could try is to get an old SDK that had s ...Show All
SQL Server [SSIS] : STDEV in Derived Columns
Hello, Does anyone have already tried to calculate a standard deviation (STDEV) in a derived column Any help is welcome ;-) Cheers, Bertrand Haven't calculated standard deviation in a derived column, but rather in an Async script component (i.e. Synchronous Input Id = 0 on the first output). The data being passed in to this transform is DT_CY data type (currency) called TotalDue. The data passed out is a DT_R8 on the output called StdDev. Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper Public Class ScriptMain Inherits UserComponent Private rowCount As Integer = ...Show All
SQL Server Error when Save A Copy of Pakage in SQL Server
Dear All, I just created SSIS in my local computer. It is successfully run if trigger manually. I want the SSIS triggered by SQL_proxy_agent. So, I try to save the copy of SSIS pakage in SQL Server but there is an error appear: Error Code 0x80040E09: Execute Permission denied on Object ' sp_dts_getfolder', database 'mdsb', shema 'dbo' Could anyone clear my doubt. Thank you. You need to either: a) Connect to the SQL Server using Windows Authentication on an account that has administrative rights b) Connect to the SQL Server using SQL Server Authentication on an account that has sysadmin rights, or any account that is permitted to access sp_dts_getfolder (sysadmin is the surest one). HTH ...Show All
Visual C# Calling C# DLL from a Java application (or even another C++ or VB app)
I have a C# DLL that needs to be called from a Java application. I suspect that this can't be done directly, but perhaps through a JNI wrapper to a C++ DLL which in turn calls the C# DLL I am looking for an answer that provides the simplest of examples that I can compile and test. (e.g. a C# class with a simple method that inputs one string and returns another....and those inputs and outputs are passed down and up through the layers). Do we need COM involved in this If so, how Unexpected issue... I got this working useing the links you provided. At least, when I compiled in Debug mode. But when I switched to Release mode I got errors during the compile: " D8016 " /clr and /m ...Show All
Visual C++ The error Message "This application has failed to start because MSVCR80.dll was not found. Re-installing ..."
Dear Forum Members After installing Intel OpenCV 1.0 library, I got the error message "This application has failed to start because MSVCR80.dll was not found. Re-installing ..." for an application which is linked with this library in VC++ 8.0. I repaired VS 2005 installation. The required Dll is available under the MS VS205 several directories. But the error still continues. What can be the possible cause for this error and How can I fix this Sincerely Cem DEMiRKIR See if any of the comments in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=15808&SiteID=1 are of help to you. ...Show All
.NET Development regarding columns in dataset
Hi, I want to know how to retrive each column in a dataset.and how to add new column into a dataset. I f anyone knows about this, please give me a detailed description. Thanks in advance. Hi, DataSet is not containing Columns/rows directly- its collection of Tables you can say and each of tables contains collection of columns and rows. So, To access all columns: "yourDataSetObject.Tables[0].Columns" or "yourDataSetObject.Tables["YourTableName"].Columns" To add new column : yourDataSetObject.Tables[0].Columns.Add method - this add method has 4 overloaded forms so use whatever is usefult to you. For more information about DataSet and DataTable manipulation ...Show All
.NET Development Why expression evaluation in conditional block is different in C#.NET and VB.NET
Here I paste the same code in both language. Do I missing something here Why they behave differently C#.NET using System; using System.Collections.Generic; using System.Text; class Program { public static void Main( string [] args) { if (func1() == false && func2() == true ) Console .WriteLine( "check" ); } static bool func1() { Console .WriteLine( "func1" ); return true ; } static bool func2() { Console .WriteLine( "func2" ); return false ; } } VB.NET Module Program Sub Main() If (func1() = True Or func2() = True ) Then Console.WriteLine( "check" ) End I ...Show All
Visual Studio Express Editions attention newbies... Rowfilter
refreshtable("info") With ds.Tables("info") .DefaultView.RowFilter = "LastName = 'Mojica'" .DefaultView.Sort = "ID DESC" End With i want to search a certain reord.... but nothing happen... Help please VBAddict wrote: refreshtable("info") With ds.Tables("info") .DefaultView.RowFilter = "LastName = 'Mojica'" .DefaultView.Sort = "ID DESC" End With i want to search a certain reord.... but nothing happen... Help please lets try to work with this. Basically as suggested, you could use a DataView. Then perform your query and finally bind the result to say a datagridview. n ...Show All
