RobertC..!'s Q&A profile
Visual Studio Express Editions Hash Table Question
Hi, what I need is as follow. I have a class that contains a string. ref class WordObj { public: String^ string; Int32 info; // further data }; Now I want to add such WordObj to a hashtable. myHT.add(wo->string, wo); As you can see, the string inside the WordObj is the key. Is it possible to prevent the hashtable object to store the string twice Once as key and a second time as part of the stored object. It is important, that the string stays part of the object. Thank you, Bernd String class in .NET is immutable. It means that it can not be modified. You can not change t ...Show All
Visual Basic Get MAC from IP
Hi, I am writing an app that requires the MAC address of computers connected on the local network. I have gotton the computer names and the IP that corresponds to that name, but I need the MAC for each. Is there a way to get the MAC address. I dont want just a list of MACs because the program wont be able to know which blongs to which computer. I have the Computer name and IP alvailable. I need it to be in either C# or VB.NET 2005 or 2003, prefrebaly VB.NET. Thanks. Ahh. I have finally found everything I need. Thanks to a simple search on thecodeproject.com, I have found exactly what I need. Thank you for re ...Show All
Visual Basic Problem in image compression
I'm trying to compress an image and all my code looks correct, but I'm not sure it's 100% correct. My understanding was that compressing an image would reduce the quality.. Is that not correct My code does decrease the size of the image, but even when 100% compression is selected there is no change in quality. [code] Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.Scroll compression_rate = TrackBar1.Value * 100 Dim qualityParam As New Imaging.EncoderParameter(Imaging.Encoder.Quality, compression_rate) Dim jpegCodec As Imaging.ImageCodecInfo = GetEncoderInfo("JPEG&q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX (Dec 2005) Working with D3DX
I just upgraded to the latest and greatest DX SDK, mainly because I really wanted be able to use the Direct3D.Font.MeasureString method (although I'm a bit confused as to the parameters it takes, but I should probably ask that question in another thread). Anyway, I added a reference to the Microsoft.DirectX assembly labelled with the version 2.0.0.0 and runtime 2.0.50727. Now I can't seem to find where the TextureLoader class has gone to. It seems the Microsoft.DirectX assembly doesn't include the Direct3DX namespace, which was where it was in the older version I had. According to the docs, TextureLoader is now a member of the Microsoft.D ...Show All
Visual J# What is the official url for the vjsredist install?
Hi; What url should we point people to in our installer thanks - dave Hi, http://msdn.microsoft.com/vjsharp/downloads/howtoget/default.aspx is the place where you can find links for all three redists versions versions (1.0, 1.1, 2.0) shipped to date. Thanks. ...Show All
Visual Studio Team System TypeInitializationException error
I have created one DLL file and added it to the references of my projects. And i tried to execute the my source code (in C Sharp) which calls up the dll file file. Now i tried to execute without debugging and encountered with the following error : "Unit Test Adapter threw exception: System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ConsoleOutputRedirector' threw an exception. ---> System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.diagnostics: The given assembly name or codebase was invalid. (Exception fro ...Show All
Visual C++ Can't include afxsock.h if WINVER 0x400
Trying to compile a project converted to VS2005 from 6.0. Defining WINVER to 0x400 to allow win9x. including afxsock.h gives many errors, pasting first few: J:\Microsoft Visual Studio 8\VC\atlmfc\include\atlsocket.inl(116) : error C2065: 'IPPROTO_IPV6' : undeclared identifier J:\Microsoft Visual Studio 8\VC\atlmfc\include\afxsock.h(381) : error C2065: 'SOCKADDR_STORAGE' : undeclared identifier J:\Microsoft Visual Studio 8\VC\atlmfc\include\afxsock.h(381) : error C2146: syntax error : missing ';' before identifier 'sockAddr' J:\Microsoft Visual Studio 8\VC\atlmfc\include\afxsock.h(381) : error C2065: 'sockAddr' : undeclared ...Show All
Visual C++ NAFXCWD.LIB
Now i am using microsoft visual C++ but i need the NAFXCWD.LIB that required in my project is that have any way to alternative or to solve this problem because i don' t have the license of Microsoft Visual C++ 6.0 Pro Edition I get this every now and again. Usually I get it when I switch to/from MFC or threading models. It's a real pain and would be nice if Microsoft fixed it. Check this article out on ways to fix your project: http://support.microsoft.com/default.aspx scid=kb;en-us;q148652 . Let us know if that works for you. ...Show All
Visual C++ Porting-to-Unicode Issues
Hello, I recently installed Visual Studio .NET 2005 Beta 2, and was very quickly very pleased with the IDE. As a step to test the new IDE, I import an old project I did, including a String class I developed. When I tried to build however (with Unicode enabled, as it is by default), I got about 70 errors from various header files, such as atlbase.h, atlconv.h, and statreg.h . When turn off Unicode support, all the errors disappear, and all problems go away. Has anyone else seen this, and possibly know what can be done about it Thanks, -Chris Yes, that is largely what is happening. One is used by the s ...Show All
Visual Basic compile questions, help needed
How to fix the errors. Thank you. F:\>vbc upload.vb Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4 for Microsoft (R) .NET Framework version 1.1.4322.2032 Copyright (C) Microsoft Corporation 1987-2002. All rights reserved. F:\upload.vb(5) : error BC30002: Type 'Scripting.FileSystemObject' is not define d. Dim fsoSaveFile As New Scripting.FileSystemObject ~~~~~~~~~~~~~~~~~~~~~~~~~~ F:\upload.vb(6) : error BC30002: Type 'Scripting.TextStream' is not defined. Dim tsSaveFile As Scripting.TextStream ~~~~~~~~~~~~~~~~~~~~ F:\upload.vb(8) : error BC30807: 'Let' and 'Set' assignment statements a ...Show All
Windows Forms Terrarium Server Temporary Difficulties
I am trying to access the terrarium server without much luck. I get the following message on the screen. The Terrarium server is experiencing temporary difficulties. This is why you are probably not receiving any animals. Please bear with us while we get the issue resolved. I do not know if this problem is truly with the server or if it is ...Show All
Windows Forms How to get all mouse clicks in child controls
I have a parent user control. I want to capture all mouse clicks within the control, even if the mouse click is on a control within my parent control. How do I do this You can try and look for WM_PARENTNOTIFY and WM_MOUSEACTIVATE event. What I suggest you do is,create a WinForms Application and then change the property of the project to Console App,so that you can see the Console Window. In your user control, protected override void WndProc( ref Message m) { Console .WriteLine(m); base .WndProc( ref m); } you will see all the messages coming up in the Console.When ...Show All
SQL Server Kontakt z Mirkiem Sztajno
Witam, je eli kto to przeczyta i zrozumie, prosz o jakik kolwiek informacj o Mirku Sztajnie. To jest moj e-mail: zero23@wp.pl Dzi kuj za pomoc YOu should write in the common language used here: english. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Sorting DataGrid (.Net 1.1) programatically
How to sort DataGrid (no DataGridView) by program For example, I would like that my DataGrid automatically (without click of the user) presents the lines of a DataTable sorted according to increasing numerical values of column 3 . Thanks I sought a long time without finding the solution. Many Thanks fmardani to have indicated it to me. In the final solution the "sort" is done on DataView: TabEcart1.DefaultView.Sort = "ColumnFieldName" Good ! ...Show All
Visual Basic Searching for Values in a SortedList
Hi I have a Generic SortedList of my class Product, with a unique identifier as the key. Each product has an itemcode property which may not be unique for each product (this is essentially just a part of the Key field). I would like to be able to search the SortedList and retrieve the index of the first matching product. I have implemented IComparable on the Product class however I am always getting -1 returned when using the IndexOfValue method - what am I doing wrong here Also, will this method of retrieval be efficient if there are a large number of products in the sortedlist, say 10,000 I will also need to be able to do a wildcard sear ...Show All
