Tigerwood2006's Q&A profile
Visual C++ Libraries & Header files
I'm trying to make libraries, either static or DLL of subroutines I've written. A point I've so far been unable to find explained is how the program calling the routines is told what library to look in for the subroutine. When I'm calling routines in the standard C libraries I have to include an appropriate header, but when I look at the code in those headers I don't see anything that indicates where the executable code for the routines is stored. Can you tell me where some documentation that will tell me how to get the linker to look in a static library I've created, or how to get an executable to look in a specific DLL I wrote these subroutines in C, but I want the option of calling them from C programs or Visual Basic progra ...Show All
Visual C++ Need help to setup STL in C++
Hi, I want to setup the environment to use STL. However, I cannot do it correctly, always get Internal Compiler Error :(. I download the online .h files at http://www.sgi.com/tech/stl/download.html . All I want now is to setup and use "hashtable". Can someone help me structure of my project folder: ..\Desktop\BoostCLib\ <= contains solution file: .sln \stl & ...Show All
Visual C# Casting a TreeNode
Hi, I have a class that extends TreeNode by adding extra fields that I need: namespace My.Controls { public class MyNewTreeNode : System.Windows.Forms.TreeNode { public MyNewTreeNode() : base() { } public MyNewTreeNode(string text) : base() { } private int severity; public int Severity { get { return severity; } set { severity = value; } } } } My click methods for example are sent an argument from which I can find which Node is clicked by doing e.Node. This node is a TreeNode so I tried to cast it to a MyNewTreeNode so that I could get the severity information from it like so: MyNewTreeNode nodeIn = (MyNewTreeNode)e.Node; However, this gave me a cast exception at runtime saying that I couldn't cast from a System.Win ...Show All
Software Development for Windows Vista Windows Platform SDK SP1
Hi, I had installed the Windows Platform SDK SP1 on Windows Vista Beta2. The installation completed successfully, but failed to install the x86 compilers. When installed on Windows XP, it installs c:\program files\microsoft platform\sdk\bin\cl.exe ; but when installed on Vista, no such file is created. Is there something I'm missing in here Thanks in advance for all the replies. Thanks and Regards, Ravindra Rajaram. Hi Melinda, Thanks a lot. I downloaded the Beta 2 for Windows SDK and I could install it successfully and have the x86 compilers. I had to reset my environment variables as the directory structure seemed to be a bit diffrent from the SP1 release. Apart from that, no issues until now. Thanks fo ...Show All
Visual Studio Team System How to refresh and / or publish a filtered list of work items?
Hi, It appears that the 'Get Work Items' function on the team menu in MS Project is only there to 'create new tasks' in Project. Is it possible to refresh work items in MS Project for a filtered list of work items from Team Visual Studio For example: I would like to exclude tasks in project from being refreshed with a state of 'Closed'. This not only overcomes feature shortcomings of the integration between these 2 systems but it also addresses performance/ speed issues. Thanks. Samar Refreshing filtered list of work items in MS Project is not possible in v1. However, you can set 'Publish and Refresh' field to 'No' for all the work items that you don't want to refresh and then hit Refresh button ...Show All
SQL Server KPI's - getting the second last value
Hi, I have set up a LastNonEmpty measure to get me the most recent reading for a KPI. For example, ( [Measures].[Last RESULT], [Production Units].[Dim Production Units].[Plant 1], [Prod TDV Params].[Dim Production Params].&[CO2] ) gets me the last recorded CO2 reading for Plant 1. Now I need the trend expression - is there a sneaky way to get the second last value without creating a new measure Thanks. Well, one way that I can think of is to define a named query or view for the fact table, which filters out the most recent reading for fixed values of other dimensions. Then a 2nd measure group with a LastNonEmpty measure could be created on this filtered fact table, to get t ...Show All
Windows Search Technologies WDS 3.0 Beta 2 Crash srchadmin.dll
Hi! Every time I try to go into the filetypes in the Advanced option dialog WDS crashes on me. I get up a box saying "RUNDLL An exception occurred while trying to run "shell32.dll,Control_RunDLL "srchadmin.dll"". I used to have WDS 2.5 with some extra IFilters but I removed all that before I installed the beta. Thanks. Matt Matt, It seems that a few people have run into this problem. I'm going to discuss this with the team to see if we can come up with any solution ideas. Thanks, Paul Nystrom - MSFT ...Show All
Silverlight (formerly WPF/E) How can i drawing text, which is repeating some Path.Geometry?
I'm using the <path> object (a line with BezierSegment geometry) and the <textblock> object with some "text" value. How can i drawing the line with text, which will be repeat the line geometry...i.e. the text geometry should be like on the BezierLine. How can i get it Is it possible now or are you'll planning do it in a next release As mentioned in this post , you can't do this with the current CTP. You will have to manually layout the text along the line using transforms to rotate the text. ...Show All
Visual Basic Interop Forms Toolkit - Available yet?
Hello Is the toolkit available already (or soon) Thanks :) Hi all, Jonathans's link does not work, but this one does! (I guess he had a different internal DNS alias for the production website ;o) ) .....but he is right......It is finally here! Follow this link instead.... http://msdn.microsoft.com/vbasic/downloads/powerpacks/interopforms/default.aspx Duncan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. device.Reset and device.Lost not firing.
I'm having problems when i reset the graphics device after a resolution change. Here is how i have the reset and lost events set-up. //handlers for device events device.DeviceLost += new EventHandler(device_DeviceLost); device.DeviceReset += new EventHandler(device_DeviceReset); void device_DeviceReset(object sender, EventArgs e) { LoadResources(device); } void device_DeviceLost(object sender, EventArgs e) { UnloadResources(); } private void LoadResources(GraphicsDevice device) { //set anisotropic filter InitAnisotropy(); debugFont.Reset(device); effect = new BasicEffect(device,null); effect = Effects.InitBasicEffect(effect, device); } private void UnloadResources() { primitiveToRender = null ...Show All
Visual C++ Using hotkeys to select edit boxes
Hi Folks; I've looked (and asked) everywhere and my resource-finding skills have proven wanting. My question is simple as is the answer I assume. I have a number of hotkeys registered in a Win32 app. Hitting those keys should set the caret in one of several text fields though I haven't found anything that shows how to do that. Any suggestions This a standard feature of the IsDialogMessage function, so in a dialog this works if a static control with a text that contains a & before a standard character is placed just before the edit control. The the ALT key and this character is pressed IsDialogMessage moves the focus to the next edit control. So if you are using a modal Dialog this is the standard behaviour. ...Show All
.NET Development DataColumn MaxLength - How can I get this value before creating an instance of my DataSet
Hello, I have a TextBox and a strongly typed DataSet. I want to bind a column in the DataSet to the TextBox, and set the MaxLength property of the TextBox to match the column MaxLength property. So far so good. However, I want to get the columns MaxLength value BEFORE I have created an instance of my DataSet. How do I do this eg. NOT this way... MyDataSet myDataSet = new MyDataSet(); myTextBox.MaxLength = myDataSet.myTable.Columns["myColumn"].MaxLength; ...but rather getting the column properties from the MyDataSet type somehow. Any ideas Many thanks in advance, Ben S. ...Show All
Visual Studio Express Editions clear a drawing with a background
heres what im trying to do, i have a form that has a user can draw lines on, kind of like a Powerpoint pres. but i need to be able to clear the lines and re-set the background image to the same as it was before. this is the code i had been using dim Y as image = me.backgroundimage fromgraphics.clear(color.transparent) me.backgroundimage = Y it doesnt work though, it just sets the screen to black screen can someone help me out ...Show All
SQL Server Question to ytd()
Hi, Ihave a Time-Dimension with 2 hierarchies: (a) Year - Semester - Quarter - Month and (b) Year -Week. Than I have a calculated member in my Cube like: CREATE MEMBER CURRENTCUBE .[MEASURES].[Sales Volume KG (kum.)] AS Sum ( ytd (), [Measures].[Sales Volume KG]), FORMAT_STRING = "#,#.00" , VISIBLE = 1 ; When I browse the cube and I use the (a) hierarchy on the colums, all works fine; I get the accumulated sums over Semesters, Quarters, Month. When I use the (b) hierarchy, in each cell I get the normal week-sum and not the accumulated. What's my mistake Thanks Hans Hello Deepak, Thanks a lot, this works. But please, can you tell me the background, why this c ...Show All
Visual C++ Project : error PRJ0002 In a CLR Windows Forms Application
Hi, when i make a new CLR Windows Forms Application and try to compile it I get this: Project : error PRJ0002 : Error result -1073741819 returned from 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\resgen.exe'. Here is the Build log: Build Log Build started: Project: Ex1_05_1, Configuration: Debug|Win32 Command Lines Creating temporary file "c:\Documents and Settings\Mito\My Documents\Visual Studio 2005\Projects\Ex1_05_1\Ex1_05_1\Debug\RSP00000135603528.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yu"stdafx.h" /Fp"Debug\Ex1_05_1.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" / ...Show All
