Moonshadow's Q&A profile
Visual C# Reflection doubt............
Hello Everybody, Another doubt about reflection........................ I want to get the methods of the unmanged dll in C#. Is it possible I want that in my project very urgently...................Please help me......... It's not something you can automate. The problem is, DLLs don't usually contain enough information to describe the methods they contain. This is one of the things that .NET brings that Win32 never had: enough metadata in your components that you can discover what methods are available. COM sort of had this with type libraries. (The two problems there being: not every COM component has a type library; not everything you can do in COM can actually be represented in a type library.) So if it's a COM ...Show All
.NET Development Missing DWMAPI.dll causes problem with COM interop in c#
I have recently installed IE7, and am now experiencing a problem with COM interop in one of my c# projects. It seems that there is a dependency on a dll called DWMAPI.dll from the COM dll. I have read a bunch of posts about similar problems, and it seems this dll comes with Vista, but is missing on XP machines. For some reason, installing IE7 makes it become a dependency for things like .NET interop. The only solution I have been able to find in the forums and posts is to uninstall IE7. Microsoft has not yet posted anything that I could find in regards to this issue. Does anyone know something I don't Any help is greatly appreciated. Thanks, Dan i think i'm having the same problem with ntwdblib.dl ...Show All
Visual Studio Express Editions How to pass data from a DataGridView to another form?
I have a DataGridView that contains a ButtonColumn. I want to be able to pass the data from the row the button is clicked to the form that is opened when the button is clicked. The names of the columns are Year, Set, Card Number, Number, and Condition. I have tried the following code, but I get a 'NullReferenceException was unhandled' for the line highlighted in red. Public Class Catalog_Form Dim TrackingList As New Tracking_List_Entry_Form Dim SelectedRow As Integer Dim SelectedYear As Integer Dim SelectedSet As String Dim SelectedCardNumber As String Dim SelectedNumber As Integer Dim SelectedCondition As String Friend WithEvents Catalog_FormDataGridView As System.Windows.Forms.DataGridView ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GSE/XNA/C# Express Confusion
Just some thoughts... So if I understand all this correctly even though I have Visual Studio .NET I have to download and use an express version of C# and download GSE Seems silly. If this is really being pushed towards amateurs then GSE and C# express should be integrated so it's one download and one application (aka easy). Otherwise it should be built on the real visual studio. In the current situation it seems both the amateurs that microsoft is trying to attract and the professional "dabblers" are getting the shaft to a degree. I'm also not really sure what the point of GSE and XNA is in the first place. I would think that 360 compatability could be boiled down to a document that tells you what features/API's are sup ...Show All
Visual Studio Express Editions VB express 05 24 hour clock
Hello all I'm as you might suspect a total novice to programing. I'm looking for help with coding in my project. I'm trying to take user input of time started and subtract end time using 24 hour clock Example( start 13:30 end time 15:40) what i'm attempting to do with this input is get the elapsed time and than round that to the closeset1/10 of an hour. A simplistic example of how to do this would be of great help. I have tried to do it using the maskedtextbox fucntion with euro./milatary prop. Thank you This code will take the entries from a textbox and do the same thing....However you are relying upon your users to provide a valid input Dim StartTime As DateTime Dim ReturnTime ...Show All
Visual Studio Team System TF30162: Task "SharePointPortal" from Group "Portal" failed
Yesterday we performed a clean install of Team Foundation Server from MSDN on Windows 2003 Server RC2 and Sharepoint Services SP2. We were able to connect through the network and AD and created two new TFS projects. We rebooted the server and are now unable to create a new project with any user (including the TFSService) user through the network or on the server. We can still connect to TFS and access the two test projects. Here is the error we receive in the Team Explorer when we try to create a new project. Error The Project Creation Wizard encountered an error while uploading documents to the Windows SharePoint Services server on ATLTFS01. Explanation The Project Creation Wizard encountered a problem while upl ...Show All
Visual C# Unique ID
The index is not unique for array's items, when you can delete and insert items to your array. There is a class in Delphi which you can search your array by an ID generated and managed by Delphi. How can I set a unique ID to my array's elements in .NET If you want to create your own ID look into creating a GUID. That way you are guaranteed unique values as the id. To build on PJ's suggestion: string ID = Guid.NewGuid().ToString(); Dictionary< string , string > myHash = new Dictionary< string , string >(); myHash.Add( ID, "This is radio Clash"); myHash.Add(Guid.NewGuid().ToString(), "On pirate Satellite"); foreach (KeyValuePair< string , string > ...Show All
.NET Development help understanding gacutil.exe and the dll path issue
I have this code in a VS2003 setup Project mySetup.exe that registers the TranslatorHttpHandler.dll in the GAC: string strCmdLine; strCmdLine = @"/C C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\gacutil.exe -i TranslatorHttpHandler.dll" ; System.Diagnostics.Process.Start("CMD.exe",strCmdLine); Is this command going to look for the file TranslatorHttpHandler.dll in the same folder where mySetup.exe is runing. What I don t understand, even if I rename the TranslatorHttpHandler.dll to another name the registration (setup project) runs without a problem. Thanks a lot. ...Show All
.NET Development Pinchanged event
If I start with DSR connected to DTR and then break the connection, the pinchanged event fires just fine. However it executes several more times after I close the connection again. Is there something I need to do to "reset" the state of that pin so the event fires just once PinChanged might fire multiple times to tell you about not just DSR but also CTS and DCD changing. Use e.EventType to filter for the one you're interested in. Beware that PinChanged fires on a non-GUI thread, well after the actual signal change occurred. DCD is normally only used by modems (data carrier detect, only modems can detect a carrier). Non-modem devices often jumper that signal, most commonly to either DTR or DS ...Show All
Visual Studio Report in Asp.net(c#)
Hi, I want to create Reports in c# Asp.net without using Crystal report concept. How can I implement it.Please give the solution....(Database is SQL). It is an Application oriented project.I want to create nearly 50 reports.When implementing crystal report it will take more time.How can i solve this problem in a effective manner.Somebody told me to use sql server Reporting service or gridview. Which one is better. Any other effective way.... Thanks.... ...Show All
.NET Development Get signal strength in C#?
Is there a way to retreive the wireless signal strength Thanks, my bad, indeed it should be theSignalStrength - not string so replace all theSignalString to theSignalStrength (including the variable declaration) as for the last error, do this: theSignalStrength = theSignalStrength + Convert.ToDouble(currentObject["Ndis80211ReceivedSignalStrength"]); ...Show All
Visual C# Random input testing
On a previous project, I did development for the Palm OS. There is a testing tool from Palm that runs your app and generates random text entry and click events. Does a similar tool exist for windows applications you could create your own! :-) I think you are looking more of an automated system take a look at this: http://msdn.microsoft.com/msdnmag/issues/03/01/UITestAutomation/ I'm sure there are more ...Show All
Visual Studio Team System Running VSTS unit tests, according to priority?
Hi, I am currently working on a project with hundreds of unit tests that can take a long time to complete. We are using VSTS unit tests. I am interested in running only tests of a certain priority as part of our interval builds throughout the day. I am aware I can set an attribute assigning them a priority, but how can I tell MSTest to only run tests of priority 3 (for example.) Thanks for your help. Hello, Unfortunately you are hitting another issue that we currently have in RTM (and don't have a clear repro for it). That vsmdi file shouldn't get created again. There is a workaround for your issue, and it is in this other thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=513572&SiteID=1 Any information th ...Show All
Visual Studio Express Editions Autoclick submit & hyperlinks on webpage
Using a webbrowser control, I navigate to a login page. Assuming my username and password is stored in a database or hardcoded... How can I automate the login by programmatically setfocus to the loginID and password fields and then autoclick the submit button, get to page 2, autoclick a hyperlink, get to page 3, autoclick hyperlink, etc. basically get the user to a page in the webbrowser by automating the login. Thanks for any help. There are about three ways to do this. The simplest and least reliable is to use send keys. The remaining two modes require more skill. One way is to correspond with page a using the HTTP Webrequest class. When a page is stable and it elements are known you can post ...Show All
Visual Studio Express Editions from SplashScreen to form1 [VB 2005 express]
hi in the bebinning i have a SplashScreen and after a few seconds i want to close it and load a form1. how to do that please help sorry for my english Add a splash screen to your application (My Project -> Application: Splashscreen). Hint: The splash screen will stay as long as the main form is loading. ...Show All
