ti_m's Q&A profile
Visual Studio Express Editions Null reference exceptions
Hi People, I've been programming for a few years now and am still plagued with Null reference exceptions cropping up. I've nearly always managed to get round them by playing about with my code but never properly understanding HOW I've fixed it and why it works but didn't earlier... Can someone please explain in noob words why the following code returns a null reference exception :- Dim g As Graphics Dim text As String Dim font As New Font("Arial", 6, FontStyle.Bold, GraphicsUnit.Pixel) Dim returnValue As SizeF text = "abcdefg" returnValue = g.MeasureString(text, font) Many thanks in advance ...Show All
Visual Studio Tools for Office Office 2007 add-in problem
I have installed VSTO 2005 and also Office 2007. However, I cant find the Microsoft.Interop dll files when I am trying to develop my own customized ribbon. After searching in the web, I get to know about the Office 2007 PIA, so I download and double click to install it. However, the things still remain the same after installation progress... So, anyone has any ideas about the solution and my problem Please guide me ... thank you. Did you look for Microsoft Excel 12.0 (for example) in the COM tab of the Add Reference dialog box The PIAs appear in the COM, not the .NET tab of this dialog box. And you have to add the reference in order to access the Interop. However, if you install the VSTO 2005 SE for Add-ins and choose an Office A ...Show All
.NET Development System.Net.WebException: The operation has timed-out.
I have a very simple web service built with Java and deploy on Websphere server. The WS just receive a string array and return an integer value. I have another .Net client which has to call this WS, the client is deployed on a windows 2003 based Citrix MPS server, and all users has to logon to this server in order to use the client. The MPS server and websphere server is on the same network, there is no network problem between them. What I have spent two months to solve is that some users can call the WS through the .Net client perfectly, but some of users always fail to do that with this exception: System.Net.WebException: The operation has timed-out. at System.Net.HttpWebRequest.GetRequestStream() ...Show All
SharePoint Products and Technologies Auto Permission Granting
Is there a way of automatically granting users existing a list permission to access the site Example: Lets say that we have a list of employees information. The list contains general information of all company employees. If a new employee is created in this list, he/she should automatically be granted permission to the Employees site. Thanks in advanced. Hi, The solution you describe really depends on what version of sharepoint you are using and how authentication is being used. You will have to deal things like which authentication provider is used, if you can use eventhandlers, etc. Can you give some more information about these things Grtz, Mart ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Any books coming out ?
First off, I thin XNA is an amazing idea, I love the idea of bringing back the bedroom coder mentality! However, I've got a fair amount of experience of using Visual Web Developer Express with vb.net and I have to admit I have no idea where to start with XNA express. Just tried messing with the space war demo a bit but really can't work out how everything fits together. So, I was wondering if anyone like Wrox or 'for dummies' are going to be producing a book on the subject for beginners I know it's early days but authore often work closely with developers of a new language and have one out pretty early. Several publishers are working on this, but I doubt you will see anything before final release. For very ...Show All
Visual C++ File streaming.
Hey, I'm having trouble with file streaming. I just need my program to write all of its data to a file instead of a command prompt. However most of my outputs are with in functions. Here is an example (please ignore improper coding ect on everything except file streaming. #include <fstream> int main () { int this = 0; int that = 1; fstream record; record.open ("data", iostrunc); traverse (this, that); record.close(); } void traverse (int this, int that) { record << this << that << endl; } Do I need to pass "record" in as a parameter If so, how I would appreciate if you could show me by editing my sample or something ve ...Show All
SharePoint Products and Technologies When I edit a document it opens as Read Only
Hi: Does anybody knows why if one user is administrator of a site and edits a Word or Excel document, it opens as Read Only He is opening the document with the 'Edit with Microsoft Office...' but he cannot save the document, and it is necessary to delete and upload it again, and he has to do it every time he wants to modify it. Regards. We had asked our ASP who hosts our SPS3 site to enable Integrated Authentication so we could automate a job having to do with moving data out of the SharePoint database into another one. This seems to have caused the read-only problem. They are now running both Basic and Integrated Authentication and the problem seems to have gone away. ...Show All
Windows Live Developer Forums More tiles, please?
Greetings, I see from the API that there's a way to implement a custom tile layer. Pretty cool, but for the project I'm brewing, I need more tiles (it's a granularity/server resource issue) at all zoom levels than the map engine uses. Is there a way I can implement this, or should I just roll my own tool Cheers, Bradford This is worth a read: http://viavirtualearth.com/vve/Articles/WorldWind.ashx John. ...Show All
SQL Server Can we change the name of the instance ..
Can we change the name of the instance (SomeSQLInstance1, Some SQLInstance2) to be "SomeSQLStdInstance" while upgrading to SQL 2005 from MSDE 2k or SQL 2000 Yes. You can change the name of an instance as long as the server is not clustered. For more information, visit the following Microsoft Developer Network (MSDN) Web site: http://msdn.microsoft.com/library/default.asp url=/library/en-us/instsql/in_afterinstall_5r8f.asp Thanks ...Show All
Visual Studio Visual Studio 2003 uninstall
Hi, I've had Visual Studio 2003 for a while, but have now got Visual Studio 2005 Beta 2. I don't have enough space on my system drive, so I need to uninstall Visual Studio 2003. When I try, it says "Setup is unable to determine a valid ordering for the installation. See the error log for further details". I don't know where this error log is. I have tried repairing prior to uninstalling, or uninstalling the components, but I still get the same message. Does anyone have any ideas Is there a way to tell the installer what to uninstall - I did a full install originally as far as I remember. Many thanks, Jonathan Stratford Great :) Very much obliged on this, I have one more thing to try tonight and if i sti ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Beta 2 announced (date 'in a couple of weeks')
http://blogs.msdn.com/xna/archive/2006/10/23/announcing-xna-game-studio-express-beta-2.aspx I made myself a template for VS2005 Pro, and use that. If you want, I can send you the template(just a small ZIP file). Works perfectly fine. THe other benefit of that is that you can just go into the solution file, change one line, and now the solution file loads in the the express edition and works just fine - i do that ocassionally to test whether it will compile in EE. So, need that template ...Show All
Internet Explorer Development Difference between Browser restart / page refresh in IE 7
I would like to know the difference between Browser restart / page refresh in IE 7. I am installing Activx control in one of my web page. After Installation , if I close the browser and open it again , I can detect whether Activx is installed or not. But if after installation of Activx if I just refresh the page , I am again prompted to install Activx. What could be the possible solution I am detecting ACtivex by the following code in Javascript. try { viewer = new ActiveXObject('Adobe.SVGCtl'); } catch (e){ viewer = null; } My Html Page only has single span tag. All Activex Installation code is in Javascript . ...Show All
SQL Server ERROR IN SQL SERVER ENGINE
I have a problem starting my SQL Server engine. Its service has been stopped. It was working properly till evening “ December 8, 2006 ”. But when I came to office at 10:00 AM, it did not start. When I checked the service in “Services.msc”, it was stopped. So, I tried to start the service “ SQL Server (MSSQLSERVER) ”, but it failed with message “ Error 1069: The service did not start due to a logon failure ”. I opened “Event viewer” and looked the list in “Application” log to find out what had happened. There was an entry for “SQL Server” source with type “Failure Audit”. There was a message “ Login failed for user sa ”. What went wrong….Can someone help me Plz its urgent…. Hi Ritesh, I think the problem is with you ...Show All
Visual Studio Express Editions Formulas like excel
Can anyone tell me how a program like excel handles formulas. From what i can see it looks like it stores the formulas somewhere away from the database. How does this work Or am i even close Can someone tell me how to create something similar Hey.... I think I just found something of interest for you. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1145714&SiteID=1 ...Show All
SQL Server Visual Studio crash at Analysis Services Project
I have implemented SQL Server 2005 Developer Version at Windows XP Home. I'm working on localhost. I want to do an assoziation analysis and creating data source and data source view is successful. But when the data mining wizard comes to the point where to choose the data mining algorithm, the visual studio crashes- the application is not responding. No error code is given, so I don't know where to start. Analysis Server is running and the connection to the data source is made. Hope someone can give me a hint. Are you able to connect to your Analysis Services instance and browse cubes from other clients Try SQL Server Mgmt Studio and Excel. I'm not aware of any issues with XP Home - however, t ...Show All
