BukHix's Q&A profile
Software Development for Windows Vista Vista installation problem on XP
Hi, i recently installed vista beta, the latest one. And i downloaded the files microsoft provided me with the install the beta. So i install it, no problem , then when installation is complete, the box goes off and thats it, nothing else, please tell me how to install vista from here please. Your help is much appreciated. So does your installation try to start, or does it go into the infamous reboot loop My advice for what it is worth would be to boot from the VISTA installation disc and to carry out a complete new install, I assume that you went for the upgrade option You may want to format your ha ...Show All
Visual Studio Team System Counting the number of Methods in the base class
Hi, I need to count the number of methods in a given class in the application and also the number of methods from the inherited class(i.e the base class). here i want to get the members from the classes that are there in my application and not from the .NET framework classes. How to differentiate the .NET framework classes(like system.object, system.arraylist) from the classses that are defines in the application. for example public classA { method1(){} method2(){} } public classB : classA i should get only the methods fromthe inherited class(classA) method1, and method2, and not the methods from the .NET framew ...Show All
.NET Development ADO and Role Base
Hello, I have this question: We know that Enterprise Services (ES) offers secure model i.e. Role Based Security (at a cost of added comlexity) But can one achieve this purely using ADO.NET based model If no, how can I simulate the Role Based Security if we dont want to go the ES route Thanks Thank you SvenC, that was very helpful. I am well aware of the difference between ES amd ADO. The short answer from what you said is the ADO.NET namespace is not shipped with role-security. I guess to achieve similar functionality, i will either have to implement is in-code or rely on the DB/windows groups. Thanks ...Show All
Smart Device Development URLDownloadToCacheFile strange blocking behavior on Pocket IE
I'm working on an ActiveX control for Pocket Internet Explorer. I'm using the URLDownloadToCacheFile() function to dowload external resources to the ActiveX control. My problem: The function seems to block until the container (Pocket IE) triggers a redraw. This means that my control is stuck until I e.g. use the scrollbars and scroll the HTML page up or down a bit... After that, everything is fine and my resources are loaded into the cache. Any hints why the function blocks and what I can do to prevent it Thanks in advance, Ray This is a stretch but I had a problem whose symptoms were similar even though ...Show All
SQL Server Experts required to validate these statements of fact
Hi, Can someone please reply and let us know if these statements are true/false References to articles, help sections etc would be most welcome! 1. Table variable is not efficient for large record sets 2. Nested Selects will (always) cause hash joins 3. SQLServer 6.5 joins should be removed. 4. Select * is not best practice. I have read nothing that says table variables are less efficient than temporary tables for any given size - I know that it gets stored into tempdb if memory becomes a problem ...Show All
Visual C# Pointing to an image file -- "does not contain a definition for Properties"
I wish the background property of my form to point to an image file instead of importing one, but when I try to do so in the property window I get the compile error: "does not contain a definition for Properties" The following code had been generated: this .BackgroundImage = MyApplication .Properties.Resources.myForm; Am I missing a using statement Instead, importing an image goes fine, but I want to allow the user to change the image. Is there an easy way to locate where in System something is, so I can find the necessary using statements myself Regards, Guido Thanks, that's wh ...Show All
Visual Basic Sin, Cos functions appear not declare
I wanted to use the sin function so i searched the code and inputed it under button1_click. The code was sin(number) So i input the code sin(5), but it says function not declared I dont know hwo to use the sin function so here is what i want, can smeone work out the code for me There will be an integer in textbox1 and when i click button1 the number shuld be sined and show in textbox2 Also how can i use the square function and square root function Here is a simple function... Function ConvertDegreesToSin( ByVal x As Single ) As Single Dim SglAngleInRadian As Single Di ...Show All
Visual Studio Team System Email Alerts in Workgroup mode
I can't seem to be able to recieve email. MY TFS is in workgroup mode. I have all the alerts turned on. The pop3 and smtp server are ok (I can send and receive email normally in Outlook). Is this an issue for anyone else Thanks in advanced, John Thanks Larkin, that is a good idea...This is just a demo machine for now.. My though is we will move it to a dc version when we go into production. But i will definately use this for my presentation to mangement next month Thanks again, John ...Show All
Visual FoxPro Additional fields in table exported to txt
Hello, I need to output from a VFP 6 table to a text file. When I use "copy to mytext.txt delimited with ," I get an additional field before and after each of the original fields from the table. This means that in my new text file, fields 1,3,4,6,7,9,10,12,13 etc are empty fields that were not present in the table and fields 2,5,8,11,14 etc are the fields with data. Can anyone tell me how to avoid these "extra" fields please Thanks in advance, Paul. It sounds Like ypu want as CSV File... Why not use " copy to mytext.txt type csv " Dave ...Show All
Visual C++ OK, What is with the statements enclosed inside [] operator regarding threading?
I keep looking around to try and figure this out. I keep seeing code with something like [STAThread] on a line by itself. Now, I have figured out that it sets the type of apartmenting you can do. And you seem to use it like the using namespace statements to define if you are going to hae a sta or a mta, but where in the world does the syntax for this statement come from Is this strictly a COM feature in which it overloaded the [] operator Just wanted to make sure I didn't miss some new language element that I may need. Also, I seem to have gathered that you only need to mark things as STA or MTA usi ...Show All
Visual C++ where can i find Matrix manipulation library
Does anybody know where I can find Matrix manipulation library (such as Gauss-Jordan Elimination, LU decomposition, etc.) for programs by VC++.net (2003). Thank you very much! Thank you! Jonathan. But there is no Matrix library of getting a solution of linear function at boost.org. Do you know any other web sites i can try Thank you very much! ...Show All
SQL Server Trigger that moves records to a logtable after delete
Hi, I would need some help how to create a trigger that moves the records to a logtable after a Delete statement. The table that should have the trigger is called ORDERS_OUT and the logtable is called ORDERS_OUT_LOG. I’m using SQL server 2000. Thanks in advance Magnus Please take a look at the CREATE TRIGGER topic in Books Online. It has many samples that will show you how to solve the problem. Ex: create trigger AuditDelete on ORDERS_OUT after delete as begin insert into ORDERS_OUT_LOG (...) select ... from deleted end ...Show All
Visual Studio Team System Get all changesets number that linked to work items
Hi, How can I get the list of all the changesets that linked to a specific work item with the API Thanks, Michael. It maybe something like this: for (int i = 0; i < workitem.Links.Count; i++) { Link link = workitem.Links ; ExternalLink elink = link as ExternalLink; if (elink != null && elink.ArtifactLinkType.Name == RegisteredLinks.Changeset) { Console.WriteLine("{0}", elink.LinkedArtifactUri); } } The printed lines will be look like " vstfs:///VersionControl/Changeset/9999", where 9999 - changeset number. You can use System.Uri class to ex ...Show All
Visual C++ performance VC++ 2005 vs. VC++ 2003
The code below runs in 17 seconds on my machine when compiled under Release mode on VC++ 2005 and in 13 seconds on VC++ 2003. This is an extract of the code so don't worry it does not make much sense. First I though it was because of checked iterators but it does not make a difference if I use #define _SECURE_SCL 0 or not. What else could it be Thanks, Bumbrlik -------------------------- // #define _SECURE_SCL 0 #include <iostream> #include <fstream> #include <vector> #include <string> #include <time.h> using namespace std ; string ReadString(istre ...Show All
Visual Basic Question about Security Permission FileIOPermission
I generated a program to read an xml file from a network drive, and display the information in a form. The program doesn't quite work until I change the security level in Visual studio (right click on the project name under solution explorer -> properties -> security -> This is a full trust program). So now, when I complie it, it runs, reads and displays data from share drive. Then I close visual studio, run the .exe program under bin\Debug, and I got an error. I don't understand why it reads the network drive file when I am in visual studio environment but not with the .exe file. Can anyone give me a hand on thi ...Show All
