Tommy_030's Q&A profile
Visual C# Who is referencing this object?
Hi all, Before disposing an object I'd like to know if there are other objects referencing it, because otherwise it will not be destroyed by garbage collector. Any idea Thanks in advace Andrea I have one to many situation, where my object is referenced by different types with several instances. Some of those types uses a field or a collection to reference the object. I do use IDisposable , however each type ...Show All
Visual FoxPro hiding Logon information....
I have an online MySql Database that I will be connecting to in a distributed app. The user will Log in and all remote views will be filtered based on the userid. I have set up a user for my app that can access ALL the data. I can’t figure out how to hide the user name and password in the connection object in the DBC. If I use dbsetprop it actually updates the DBC Connection. Anyone with access to the dbc can access all the data! ...Show All
Windows Forms Curious about security architecture in TaskVision
I am fairly new to web services security. I learned a lot from the authenticationTicket method used in Task Vision and have even started plugging it in to a pre-existing Windows Forms Client/ Web Services Data provider app that I deployed a few ...Show All
.NET Development SQL in Visual Studio 2005
I am using Visual Studio 2005 Express Edition. I have a windows form that gets info from a database. And outputs. I want to make a search capability that a user can input in a text box and the SQL query checks the database for the right row in the database and output the results chosen. In this case, docName and docLocation on my form. My SQL query for the search is not working properly. SQL statement: SELECT ID, docName, d ...Show All
.NET Development Excel Import Truncates Data
I'm using the Jet OLEDB to import an Excel spreadsheet and I've run into the well-documented truncation problem, where text beyond 255 characters are dropped, if my column does not contain any data in the first 8 rows of my spreadsheet. I've tried setting MAXROWSTOSCAN to 0 in my connection string, and it doesn't work. According to the KB ( http://support.microsoft.com/kb/189897/en-us ), it sounds like modifying the TypeGuessRows Registry val ...Show All
Visual Studio Team System Managing Shared Components between VSTS Projects
How would one share component development between two VSTS Project teams Is this possible For example a team may be responsible for common UI components shared between between other projects. This development may be in tamdem. If you have a component that is common to multiple projects, one option is to use a separate team project for that component and only share the built component (binary reuse) with oth ...Show All
SQL Server Reporting Local mode images and text
I am attempting to put an image on a report and place a textbox over top of the image. The image is a certificate of completion and the textbox is the person's name. When I put the image on the report it forces the textbox to print under the image. It sounds like you're using the Webforms viewer. Overlapping report items are not supported when rendering to HTML. If a report item overlaps another item, the items ...Show All
Visual Studio 2008 (Pre-release) Problem looping trough IEnumerable of QueryResult
Hello I have a strange effect and wonder if someone can explain me what can cause this. var q = from a in b ...<fetchs something from database>.... System.Collections. IEnumerable e = q.Take(q.Count()); List<MyType> l = new List<MyType>(); foreach ( object o in e ) l.Add((MyType)o); The foreach gets executed one time (one object in the list) and then an EmptySequenceException ...Show All
Visual Studio Tools for Office Can open Word file in J#, but not in C#
Hi; I need to read the word document of the file being edited from my Add-In. I have the following two lines of code (only called if Document.Saved == true): java.io. InputStream jis = new java.io. FileInputStream (ThisDocument.FullName); procRequest = new ReportRtf ( new FileStream (ThisDocument.FullName, FileMode .Open, FileAccess .Read)); The first line works returning a java InputStream that can read the file. The second throws a ...Show All
Visual Studio 2008 (Pre-release) ASPnet_RegIIS ?!!
If i install the IIS after i install .net i would run the aspnet_regiis to register the handlers to handle asmx and aspx files. Same way if i install Winfx and then the IIS. How can i add handlers to handle the .svc files to the IIS Installing this will register .svc in machine.config, web.config, and all the other necessary places for WinFX stuff to work for you: http://www.microsoft.com/downloads/details.aspx FamilyId=F51C4D96-9AE ...Show All
Game Technologies: DirectX, XNA, XACT, etc. what is the use of D3DXVec3Unproject() function
can any body answer what is the use of D3DxVec3Unproject () function how can i use this function to get mouse coordinate in 3d world Hi, D3DXVec3Unproject simply projects a point (vector) from screen coordinates (screen space) to world coordinates (object space). To get your mouse in a world coordinate: D3DXVECTOR3 * D3DXVec3Unproject( D3DXVECTOR3 * pOut , CONST D3DXVECTOR3 * pV , CONST D3DVIEWPORT ...Show All
Visual Basic Create Object by Name
I'm upgrading an Application from VS 2003 to Vs 2005 and one part of the Application stops to working. In VS 2003 I have: Dim typ As Type = System.Reflection.Assembly.GetExecutingAssembly.GetType( "XPT." & nome_relat) cr = CType (Activator.CreateInstance(typ), ReportDocument) and everything goes ok. In Visual Studio 2005 it didn't work. Any idea of how to solve this Where i ...Show All
Visual Basic Array Of Classes Problem
Hi, i am having a small problem with an application that i am developing. the problem is that i need an array of classes: [code] Friend Class Connector Public aNodes() As Point Public iNode As Integer End Class Public Class frmMain Private Lines(20) As Connector ... ... End Class [/code] The problem is that when the code that accesses the array Lines, the program halts, with ...Show All
.NET Development DirectoryEntry.Invoke("Groups") is inconsistent
Hi. I have a fragment of codes that retrieves the groups of a certain user. A call to the DirectoryEntry.Invoke("Groups") is fine in domain at home but not in the office. I am indeed able to retrieve all the expected groups of a user. The domain at the office always throws an exception saying "There is no such object in the server". At first, I thought my binding is not successful but retrieving the properties ...Show All
Visual C++ program not exiting properly when compiled using VC8 (this is not a duplicate!)
Hi - (this is not a Duplicate of http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=426552&SiteID=1 - this is a different problem i am trying to fix!) I have a "multi-threaded DLL debug" (debug configuration) program that compiles and builds without any errors. when i run the program, it executes properly, but when it has finished doing its job, it crashes when exiting. it looks like it has something to do with cout. this is ...Show All
