TechGeek1234's Q&A profile
Visual C++ "site code" "machine ID"
Hi, guys, Do you know how to get "site code" and "machine ID" using C or C++ language thanks a lot. I almost get that the Machine ID is created by some combinations of - The serial number of the primary harddisk - The MAC address of the network card - Perhaps serial numberof CPU (if you can retrieve that) -... Thanks anyway. ...Show All
Smart Device Development termination
I'm developing an application with several modeless forms. The project starts in SUB MAIN which calls the first form. Each form closes itself and starts the next form. All that works except I can't get the application to terminate properly. Is there a single call I can use from within the last form to execute that terminates the application Is there any other way I can do it I tried to find something on how to call TerminateThread from my VB app and haven't got a clue. I'm not even sure I can. Can anyone point me to some information ...Show All
Windows Forms Updating Listbox Items
Short and Simple: How do I do this ;) Nope. my own stupid fault. No problem. Works fine. It's not that. That text works fine. Here's my form. Listbox looks like this: Me.ListBox1.Items.AddRange(New Object() {"Mike", "< xml version=""1.0"" encoding=""utf-8"" >", "Ken ", _ "P"&q ...Show All
Visual Studio VS 20005 Multi project template
Is there any way to change or parametrize project name in multi ptoject template ...Show All
Visual Studio Team System Possible false positive for ValidateArgumentsOfPublicMethods
I added an == operator to a class. Its method signature is public static bool operator ==(Table table1, Table table2). FxCop throws the ValidateArgumentsOfPublicMethods error and asks that I check the parameters for null. OK, so I did. if( table1 == null || table2 == null ) { return false; } FxCop is now happy. When I run my unit tests though, I get failures where the tests are throwing a StackOverflowException. Upon further analysis, it appears that testing for null within the == operator introduces an infinite recursion situation. What is the best way to handle this ...Show All
Windows Forms Regionmaster Controls updated
I made an update to the <a href="http://www.windowsforms.com/ControlGallery/ControlDetail.aspx Control=219&tabindex=9">RegionMaster Controls</a> today to fix a bug in the CurvedPanel's designer. Basically, after the first build or code gen, any drag changes to a corner's radius in the designer weren't persisted. As a bonus side effect of this fix, all drag radius changes are ...Show All
Visual C++ Version 6??
My son is teaching himself game programming in C++. The books he is using all work with C++ version 6. Can we still get C++ version 6, or does this matter Any assistance will be gratefully received! Visual C++ 6.0 is no longer available or supported but you should definitely try out Visual C++ 2005 Express Edition: http://msdn.microsoft.com/vstudio/express/visualC/default.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Format48bppRgb Textures
I am running into problem when trying to render bitmap to texture. an image edited in Adobe using RGB 8bit/channel ( Format32bppArgb ) is displayed fine, ahowing appropriate alpha transparency as well. But the one edited using RGB 16bit/channel ( Format48bppRgb ) is not displayed properly. Color information is not interpreted properly. I am using following code: System.IO.FileStream fs = new System.IO.FileStream(fileName,System.IO.FileMode.Open,System.IO.FileAccess.Read); Bitmap bmp = new Bitmap(fs); bmp.MakeTransparent(alphaColor); texture = new Texture(device,bmp,0,Pool.Managed); What code could supoprt both formats ...Show All
Windows Forms User Control That Could Contain Controls Dragged On It At Design Time
I want to make a new control that acts like the Panel but with some other functionalities. What code do I need to make a control dragged onto it to be its child at design time Any help would be appreciated. Decorate your user control with this attribute- [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))] public class MyControl : UserControl { } This works with VS.net 2005. http://support.microsoft.com/default.aspx scid=kb;en-us;813450 ...Show All
Windows Forms Custom MainMenu control positioning
Is it possible to customize the location of the MainMenu control I'm not positive but I think the MainMenu control is drawn in the non-client area of the form. What I'd like is a MainMenu that draws itself lower in the form. An example of this would be Internet Explorer, where you can place the MainMenu below the toolbars. In m ...Show All
Visual C# Creating desktop application help.
Hi, I need to make an help for a desktop application developed in C#. I know that C# support html and compiled html help files. Can someone give me some tips about editors that can edit the html help files and compile them into a *.chm file. Many thanks in advance. search your common7/tools/bin path for HTML Help Workshop: hcrtf.exe Mine is in my VS2003, but it says it comes with 2005 as well. ...Show All
SQL Server How do I to submit a "Report Parameter" when doing a snapshot
Hi, I need to pre produce (sanpshot) reports and the following line of code works perfectly and the snapshot and its accompaning subscriptions are duly created. RServ.UpdateReportExecutionSnapshot("/InfraTest1/StoresList") However I also need to supply runtime parameters to the report (not just the defaults). How do I do this ...Show All
Visual C# Comparing generic List's
I would like to compare two list's, listOrginal and listModified, see code below. Is there a established good way to do this The purpose is to see the "difference" and update a data base according to the "difference" information. //regards //lars Class Person { public int PersonID; public string FirstName; public string LastName; .... .... } ////////// { ... ... private List<Person> listOrginal; private List<Person> listModified // Compare list... } It all depends on how much information you want from the comparison. For instance do you need to know only ...Show All
Smart Device Development How to subclass a combobox?
Dear guys: In my ppc project ,I need to replace the dropdown list in combo box with a tree control,for the pocket pc doesn't support the ownerdraw property,what should I do Thanks! Why don't you create a brand new control, comprising of a textbox, a button with an arrow on it, and a tree control which you show and hide ...Show All
Visual C# Active Directory Events
Hello. I need some help with Active Directory changes tracking. I find an example in MSDN, but it's in C++. So... How can I track changes from C# Has someone example code for this or similar task Thanks. Yes, of course. But I cant find any events there... ...Show All
