Whitney's Q&A profile
Visual C++ how to determine if an open file is NUL: or not
Hi, I'm trying to determine if an open file that is passed to me is the NUL: file or not. On Unix, I do: (once) open /dev/null, fstat, and save the st_dev and st_ino values then, in my is_file_null (int fid) routine, I do an fstat() on the passed-in file number, and compare the st_dev and st_ino values to /dev/null's. On WinXP Pro SP2, fstat() seems to return the file number as st_dev (manual implies that, a ...Show All
Visual C# assigning variables with the same value (simplified method)
I would like to assign the same value to 8 variables. Is there any easier way int var1=1; I would like to be able to write like this but dont know how. int var2=var3=var4=var5=var6=var7=var8=var1; or store 1 to var2,var3,var4,var5,var6,var7,var8 Is assigning one by one, a must in C# Any suggestion Thanks, danny Try a = (b = (c = (d = 5))); to assign a,b,c and d to 5. ...Show All
Visual Basic How to Bounce a PictureBox on a Form
I've been trying to create a program (with Visual Basic 2005) to bounce a PictureBox between to arbitrary points on a form, but it was not as easy as I had expected. I can get it to move left and right, but I need to click a button each time. How can I tell the program to bounce the PictureBox a certain number of times without always having to click a button Any help will be greatly appreciated. Thank you ...Show All
Visual Studio VCBuild failure when running msbuild.exe App.sln
I have a solution with a mixture of C# and C++, MC++. I'm using the August CTP of VS 2005 Pro. If I execute: devenv.exe App.sln /build Debug It builds just fine. However if I do this: msbuild App.sln /p:Configuration=Debug /clp:NoSummary then on the 2nd project (MC++) I get the following error: Target Appmix: ________________________________________________ ...Show All
Visual Studio 2008 (Pre-release) how to implement a application like the north face demo on PDC 2005?
In the demo, user can use a mouse to rotate a sports clothes. I am always being attracted and puzzled by it. Can one give me some advice to implement this Thank you. I have not done much with WPF 3D yet, but there is probably a utility class that will do the manipulation. If not a simple conversion of mouse x to rotation angle would be a good first step on rolling your own. ...Show All
Visual Studio VSTS Developer without Team Foundation Server
Hi all I would like to install Visual Studio Team System for Developers in order to have features like Code Profiling, Unit testings, Test Case managment but I don't want to install Team Foundation Server. Is this possible by deselecting the installation of Team Systems Client Tools during the installation process Thank you very much Some of the tools will be available. You will not have any reporting ...Show All
Visual Studio Team System Creating project tree structure, how?
Hi all, i've got installed TFb3, now i want to make a structure for our projects. How could i create something like this: tf | |-Company_A- | |-Project_Aa- | | |-subproject_Aaa | | |-subproject_Aab | ...Show All
Visual C# Questions about Objects in C#
1. Do we need to pass objects by ref, if we want to have the changes made in a calling function 2. And the same question for the objects passed by Remoting 3. Do we really gain performance in calling Dispose method of DataSet while leaving from a function(the dataset is no longer required) If yes, then what does the Dispose do there Is it freeing the memory occupied by the objects If yes, then basic definition of GC itself gone righ ...Show All
Visual Studio Express Editions Visual Basic Express Edition expired..
Just opened a new project for today (12:45AM) and Visual Basic Express Edition Beta 2 has given me a prompt that its' expired.. I thought it never did - can someone help me out here please. Thank you. The key word here is 'beta'. All betas expire. The full version of VBEE does not exire, you should download it, uninstall the beta and install the final release. ...Show All
Visual Studio 2008 (Pre-release) 3D performance problem when animating a mesh
I am simulating the surface of a liquid with moving waves, let's say an ocean. I'm doing this by creating a rectangular mesh with 1000x1000 knots. So my MeshGeometry3D has 1.000.000 positions which I all added like this: mesh.Positions.Add(new Point3D(x, y, z)). Now I want to animate the mesh. All points of the surface will keep their x and y coordinate, only z will change. So instead of creating a complete new Point3DCollection for the ...Show All
Visual Basic AllUsersApplicationData not working when application has been published
It seems that My .Computer.FileSystem.SpecialDirectories.AllUsersApplicationData is not working... : when you debug the application : everything is fine, but when you publish it. It points to the application folder. Which means that if you want to put a configuration file there ... it will be deleted during the next update !! Any ideas The same problem happens with : Application.CommonAp ...Show All
Visual Studio Tools for Office Hide Gridlines in worksheets
Hi, Is it possible to hide gridlines in worksheets without the need to activate the worksheet Mike, who was very helpful, adviced that I should try using the following (my code in c#): //get worksheet called summary and activate it this.defaultWorksheet = (Excel.Worksheet)thisWorkbook.Worksheets["Summary"]; this.defaultWorksheet.Activate(); //hide the gridline for the current active window this.thisApplication.ActiveWindow.DisplayGri ...Show All
SQL Server Northwind, Pubs, others
sql server only comes with adventure works, but many walkthroughs demand others, including Darwish. Where can I download them. I'm sure this has been asked before. I've searched all three. Only pubs showed up, and the request wasn't answered. dennist685 galle, thanks, But I had found them myself. Just at that moment my RSS told me the final product was available. I'm uninstalling everythin ...Show All
Visual C# disabling and/or hiding Windows taskbar
Could somebody post code that disables and/or hides Windows taskbar and enables it when I or user click on the button in Form. Goran I am not sure that above is real solution. If you want true Full Screen app, you need to request it from WinAPI. Detailed explanation is here: How to make Windows Form app truly Full Screen (and to hide Taskbar) in C# (based on: KB Article Q179363: How To Cover the Ta ...Show All
Visual Studio Error when installing VS2005 Beta 2
Hi! I get an error when installing Visual Studio 2005 Beta 2. I choose to install all of the items on the Team Suite DVD. All of it installs, without the SQL Server Express edition.It comes a "Send error report" dialog up, and when the install is finished, it says that the Microoft SQL Server Express Edition April CTP failed to install... What is wrong Ok... But I still have the same problem... I installed Office 2003 but didnt upgrad ...Show All
