rsws's Q&A profile
Visual Studio Express Editions How to make a simple function
Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks The code Dim ckBox As CheckBox = sender ckBox.checked = Not ckBox.Checked makes an infinite loop, but now i know how to use sender which should be very useful, thank ...Show All
Software Development for Windows Vista Installation problem in windows vista
I am facing problem during installation in vista beta2 OS. Windows installer is throwing error during registration of few dlls. These dlls are marked as "self registered" and are build in VS 2005. Also I have included the dependent vc8 merge modules along with the package. I tried to install in a clean XP SP2 OS. It installed with out any problem. Then I tried to install it in vista beta2(5342 and 5384 builds). It throws error while doing the self registration. After the first error message pops up, I checked the WinSxs folder for the dependent mfc dll. That time it was not installed. I ignored all message and finally able to see the mfc dlls in the WinSxs folder. Assuming next time it will install correctly as already depende ...Show All
Visual C# Is it possible to find the time taken to run the project file?
How can I find an exact timing taken for run the project files I am using devenv.exe to run the application. I need to hold the till the project gets run. Here is the code I had tried. Please help. foreach ( FileInfo file in d.GetFiles ( “*.csproj” ) ) { string Arg = string .Format ( "\"{0}\" /run /out \"{1}\"" , file.FullName, d.FullName + "\devenv.log" ); Process p = new Process(); p.StartInfo = new ProcessStartInfo( devLoc + @"\devenv.exe" ); p.StartInfo.Arguments = Arg; p.StartInfo.CreateNoWindow = true ; p.StartInfo.ErrorDialog = true ; ...Show All
Visual Studio Express Editions Resourcse question
ok i ahve a wav file embedded into my project and i am wanting ot know hwo to get it to play it is embedded as a resourse and i have this much of the code figuered out but i ahve no clue if its wrong or not adn i would like some help and on what else i need to do cuz it wont play when the project open and where is it in the form1 dose the code need to be placed it is in the event.Load part befor it or where i jsut need help on getting this done and my project it dose Dim theStream As System.IO.Stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(Application.ProductName & ".Young Joc - Do Ya Bad.wav" ) Dim player As New System.Media.SoundPlayer(theStream) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating a terrain using ContentPipeline and XmlImporter (or a custom importer / processor)
Here's my situation: I want to create a text file describing terrain attributes, like heightmap file (raw or an image format), colormap, detailmap and splatting maps. Only the heightmap file and format will be required in this file, so the colormap, detailmap and splatting maps are optional. I then want to add this file to my XNA game project and have it pack a .xnb file containing this data. Ideally, when I do this in my game's LoadContent method: Terrain t = contentManager.Load<Terrain>(@"Content\Terrain\Test"); I should get the terrain object back ready to use, with whatever options I set in it. I couldn't get custom importers and processors to work, so I'll come back to that later, but I did get XmlImporter working with ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision Detection Cont.
Hello, as some of you may know, I'm working on a collision detection system, and thanks to PolygonSoup, I've gotten a lot further allong. In my tests, speed does not seem to be affected at all by my method of going through every triangle in the level if I base my collision on a single sphere, but I have problems with the collision itself. I used a rough (and horribly incorrect) algorithm to detect if my sphere is even remotely close to the triangle. What I'm looking for is a formula that will tell me the distance between point [X,Y,Z] and triangle [(X,Y,Z),(X,Y,Z),(X,Y,Z)]. After that, I will simply determine if the distance is less than the radius of my sphere. Thank you. Thank you! You're code works perf ...Show All
Visual C# Show Startup Programs
How can i show the startup programs from: HKLM, HKCU, and the startup folder i made this, but it's totally wrong, neve tried switch before ! private RegistryKey GlobalReg; private void Read() { switch (startup) { case "HKEY_LOCAL_MACHINE" : GlobalReg = Registry .LocalMachine.OpenSubKey( @"Software\Microsoft\Windows\CurrentVersion\Run" ); break ; case "HKEY_CURRENT_USER" : GlobalReg = Registry .CurrentUser.OpenSubKey( @"Software\Microsoft\Windows\CurrentVersion\Run" ); break ; } foreach ( string programas in GlobalReg.GetValueNames()) { ...Show All
Visual C++ count the number of occurences of an item in a binary search tree
hi, i am currently implementing a binary search tree which stores double numbers in his nodes. now i want to write a function which counts the number of occurences of a specific item. i tried it in that way: [code] template <class Item> typename bag<Item>::size_type bag<Item>::count(const Item& target) const { size_type answer = 0; binary_tree_node<Item> *cursor; cursor = root_ptr; /* STUDENT WORK */ while(cursor != NULL) { if(cursor->data() > entry) cursor=cursor->right(); else if (cursor->data() < entry) cursor = cursor->left(); else if(cursor->data() == target) ++answer; } return answer; } [/code] Is that the right way or ...Show All
SQL Server Help me Deploying rdl Report
Hi I am new to SQL Reporting Services. I have developed an rdl report in SQL Server Reporting Serices 2005. It works very fine in development environment. But now i want to include this report in an exisitng project running at our client in some remote location. This report 'll be accessed by several clients from different offices. To view reports locally I have added myself as an administrator on the local Report Server. But how would i authecticate specific users that i want to grant access to the report. I have a database table that stores users that have access to that report. Also how do I upload these reports with all these users settings on the client's Report Server. Looking forward for ur good response. Regards ...Show All
Visual C++ The difference of user-defined dll and system dll ?
I build a big project file by vc. and I use Dependency Walker to check all the dll which it depend. But I want to know which dll is user defined dll and which one is window system dll Please tell me the easy way to indentify the difference of them I apprecaite your help. I don't think that there is difference. Maybe this looks stupid, but Google search on Dll name always helps - if this part of Windows, you can see this. For example, this is second link from user32.dll Google search: http://www.liutilities.com/products/wintaskspro/dlllibrary/user32/ ...Show All
Visual Studio 2008 (Pre-release) Change the image dynamically from the Style
Hi all, I've just started a dive from the "learning cliff" into the WPF, so bear with me. I am creating a style for the TabItem to display icons with the text by modifying template from SDK samples. It looks like this: <Style TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Grid> &n ...Show All
Visual C++ when I upgrading a project from vc6.0 to vc2005 ,I wonder if it is necessnary for me to add reference of those dlls to the proje
In vc2005, when using a dll or a lib in a project ,it is necessnary to add reference of that dll to the project.But when I upgrading a project from vc6.0 to vc2005 ,in the additional dependency of general option of linker of configration property, I can see all the dll and lib files.In the situation, I wonder if it is necessnary for me to add reference of those dlls to the project ,or just keep the project setting no changing I appreciate your help. Adding references is something you have to do when you are working with CLI projects (in other words, using .NET technology). With a native project, you would either instruct the linker to load the .lib (e.g. in the linker options, as you mention), or use a combination of LoadLi ...Show All
Software Development for Windows Vista IfElseActivity built within ActivityToolboxItem (Designer Drop)
Hi I am trying to create an composite activity that has its child activities added as it is dropped onto the designer. I use a ActivityToolboxItem and override the CreateComponentsCore in order to achieve this. this worked well for most activities untill I tried the IfElseActivity - or more specifically the conditions of the branch. MyActivty has a boolean property that will be bound to other activities by the designing user, this should then be used as the condition of the IfElseBranchActivity. Users can't add this manually as MyActivity will have an activity designer attribute that hides the IfElseBranchActivity (and I don't won't them to either). I can't find a way of creating this condition/rule inside the ActivityToolboxItem. ...Show All
.NET Development Error while unloading appdomain. (Exception from HRESULT: 0x80131015)
Hi, I am using Wiasrc.dll component for displaying a selecting dialog box on user machine.Its web base project.It runs fine in vs2005 which use built-in web server.But when i run on IIS. It give a following error after 5 to 10. Error while unloading appdomain. (Exception from HRESULT: 0x80131015) System.CannotUnloadAppDomainException was unhandled Message="Error while unloading appdomain. (Exception from HRESULT: 0x80131015)" Source="mscorlib" StackTrace: at System.AppDomain.Unload(AppDomain domain) at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(Object state) at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(E ...Show All
Visual Studio Team System Unlocking a checked out file
A developer has checked out files for edit but locked it during the checkout process. How can I, havine administrative permissions, unlick this file so other developers can check the file out The "lock" item in the context sensitive menu is greyed out. In fact, can I disable the locking at all Thanks, Maggie Maggie, I'd download and use the Status Sidekick component of the Team Foundation Sidekicks product from Attrice Corporation. I use this often for just this purpose. The tool is free and can be found at this URL: http://www.attrice.info/cm/tfs/index.htm - Steve ...Show All
