TA123's Q&A profile
SQL Server I can't debug my SQL Server project
I'm coding a TVF in C# and the debugger doesn't stop at all. It used to work when I was coding scalar functions, but it stop working since I removed my assembly from the DB and register it manually to test my SQL scripts. I removed the assembly again from my DB and re-deployed it with VS.2005 hoping that will fix it, but it didn't work. Right now I can't debug. Have anybody had a problem like this before Any help will be appreciated. Got it. There was a problem with a commented section in query. Thank you. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Bug with SpriteBatch.Draw scale?
I'm working on a particle system. While experimenting, I created some scale and rotation tests to make sure the particle system is working as expected. For these tests, I am using both positive and negative values for both the scale and rotation factors. With rotation, a positive value rotates the sprite clockwise and a negative value rotates the sprite counterclockwise. That's fine. I then tried scaling. When I increased the scale factor, the sprite enlarged as expected. However, when I decreased the scale factor, the sprite shrank but ONLY WHILE THE SCALE FACTOR WAS POSITIVE. As soon as the scale factor became negative, the sprite began to enlarge again! In mathematical terms, it appears the sprite is using the Absolute Value of th ...Show All
.NET Development Reflection and parameters...
Ok here's what I want to accomplish I just can't seem to figure out how to do it... 1) I have a class library that I need to reflect from my main application (Plug-in kind of deal) 2) The base class needs to get data from the main app that is always changing so I assume passing a class is the best way to do this through a method. However when I do so I get a "Blah" type cannot be converted to "Blah" type although they're identical in methods/members. Right now I have an interface my class library inherits, I want to be able to design a class in my main app that uses this interface and I need to be able to pass a class form my main application to my class library so I can get live data from my main application. ...Show All
Software Development for Windows Vista I don't think this is a Video Driver or Bios Problem.
I'm having a problem with Windows Vista Ultimate 64 bit edtion on my HP laptop, when i close the lid but i have set up what windows does when i close the laptop to do nothing, but when i close the lid, and re open it, the screen is off/black, cant shutdown it properly and must do hard reboot. Laptop is HP Pavillion dv9000nr AMD Turion 64x2 Nvidia GeForce GO 6150 1gb memory How did you create a sleep button I have a few custom shortcut buttons on my vaio, but I don't see any way to activate them in vista. I have just been hitting the windows key to open the start menu, arrow-right to select sleep, and hit enter. Then when the power goes off I hit the power button to wake it back up. Takes ...Show All
.NET Development BiDi32.dll...
On VB6 I used this function BiDiConvertOemToAnsi to transfer from "DOS hebrew" into "Windows Hebrew" I tried working with the function and dll on .NET but got this message: A call to PInvoke function 'Test1!Test1.Form1::BiDiConvertOemToAnsi' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. Can someone help me work this out Try using code page 862 , it looks like the OEM code page for Hebrew in MS-DOS. Do *not* use the conversion function, .NET already does the conversion for you. I think... ...Show All
Windows Forms Datagridview Binding
Hi, I've got an XML file that is basically a lookup table that has a fixed number of items (37 to be exact). Each item has 6 elements inside it. for example here is one item: <root> <item> <element1>foo1</element1> <element2>foo2</element2> <element3>foo3</element3> <element4>foo4</element4> <element5>foo5</element5> <element6>foo6</element6> </item> </root> What I want to do is populate a datagridview with this data. I have 6 columns where each column corresponds to the values from the elements. But here's the problem. I want the first three columns to be drop down comboboxes. I have a static number of rows (8 ...Show All
Visual Basic Problems with streamread
I discovered a really great problem when using streamread function in visual.... The special characters, such as a, e, i, o, u, €,.. etc are not even readed from the file i try to read from... so, a line like this: I want to be a great programmer is transformed to this: I want t be great programmer Does anybody know why this happens and also if there is some other way to read and write from simple text files that dont reperesent this problem Thanks How can i guess the encoding i need I know is not utf8, neither unicode....... Anyway, really thank you for the help !!! ...Show All
Visual Studio 2008 (Pre-release) Change the spellcheck language
I can't find this info anywhere in the docs. Please let me know: 1) What languages are currently supported by the SpellCheck class. 2) How to specify the language to be used by the SpellCheck class (a code snippet would be great). Thanks! I've asked Lester and Ben to confirm that this answer is correct for v3. It was likely true when Lester blogged it in 2005...but I think we have a few more languages working... ...Show All
Visual Studio Tools for Office how to create a new Tools.Word.Document object?
Hi Cindy, Thank you for your repply. There is another question: If I already have a ThisDocument class in a project, can I get its instance by passing a IRuntimeServiceProvider object to its constructor in another project If it is possible, what the IRuntimeServiceProvider is How can I get it I wrote a new class which implemented the interface, and return null in the GetService() method, but it was no use... Thanks, -Noah Hi, Creating code-behind objects such as Microsoft.Office.Tools.Word.Document directly from code isn't supported. Moreover, these types aren't remotable so you could not pass instances between projects since they would be running in seperate AppDomains. If you are try ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there a way to get the color of the pixel under the mouse pointer?
Hello! Is there a way to get the color of the pixel under the mouse pointer I’m new with C#. This looks like it will be a nice platform to work with. I like to make 2D board games (Like RISK). I have worked in VB6. I need to be able to click on a land mass and identify it. And with the land masses I work with, they have very rough edges. Here is one way to do it: Create a copy of your map texture where each country is a solid, different color. Load this into a seperate texture than what you are using for the map (it is probably best not to use a texture at all since CPU access to them is slow, but in this example here I'm only reading a single pixel from t ...Show All
Visual Studio 2008 (Pre-release) Scroll ListView to the top (reset)
I'd like to scroll a ListView to the top (set the position of the scrollbar to zero). Why: Say I've got a ListView containing 10000 items. Now I want to clear the very same ListView and fill it with 100 Items. If the user scrolled down to the bottom of the ListView, only the last of the 100 items will be shown, and paging does not work very well for a few PgUps since the Scrollbar size still is set for 10000 items. So I'd like to reset the ListView to position zero when I refill it. I tried to if (MyListview.Items.Count>0) My Listview.ScrollIntoView(MyListview.Items[0]); but it did not help, scroll position still was down :( thanks, Sam Matt, I clear the ListView like ...Show All
Visual Studio Team System Custom Bin Directory
I have a large solution that contains around 15 projects. One of those projects is a Service Project that has an PostBuild event that copies it's dlls from it's bin\debug folder to a global BIN folder availible to all projects (about 4 directories up). I have a web service that references those dlls in the same solution. I am trying to get this to work with TFS Build and not having any luck. Question: why is the BIN directory non-existant on my build server (where this solution is being built) Should it be there I am only seeing the "obj" directory under the project directory Thank you for your reminded. I know that overriding the CoreXX tasks is not a good idea (especially CoreCompile ). ...Show All
Visual Studio Changing Graph Legend values
Hi, I’ve been trying with no luck to change the values on a graph legend in run time. I can retrieve the name using [GRAPHOBJECT].SummaryFields(1).SummarizedField.name Where Graphobject is the graph as an IGraphObject, but I need to set this value as it is being displayed as “sum of table.AMOUNT1”. Another way for me to be able to change the legend would be to use formulas and change the text at run time, but it seems to be when i change the text the report gets an error. Has anyone figured out a way to do change the Legend values at run time Thanks Andrew ...Show All
SQL Server Can I retrieve a result set from a sp into a variable within a Execute SQL Task?
Can I retrieve a result set from a sp into a variable within a Execute SQL Task agentf1 wrote: I am passing the sql in a variable and have a resultset set up to retreive the output/result set from the SP. So where exactly is the problem If you need the sql statment to be dynamic; you may want to use an expression inside of the Execute SQL Task to set the SQLStatementSource property: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=662860&SiteID=1 Now the second part would be to get the SP output into a SSIS variable; for that you can follow Jamies sugestion. If the SP returns more than one row you will need a SSIS variable of Object type. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help Please, kinda alot of questions in here
Hi, im a complete beginner with any kind of coding and i want to make a simple game to start learning how to code. I'm very fluent in 3ds max and want to put some use to the models i've made and put them in my own game... I want to make a simple space ship flight game. I've done the 3 tutorials for moving models but I dont really know how to apply them to my own game. heres mainly what i want; 1. I want the camera to rotate around my model using the right thumb stick. 2. the gun on top of the ship to rotate with the camera view. (when you look up and down the guns would aim up and down etc.) I have bones going through the gun on the model. 3. want to press up or down on the d-pad to toggle 3 different speeds. 4. steer the ship with the lef ...Show All
