Software Development Network Logo
  • SharePoint Products
  • Visual FoxPro
  • Visual C++
  • Windows Vista
  • IE Development
  • Microsoft ISV
  • Visual C#
  • Visual Studio
  • Windows Forms
  • SQL Server
  • Visual Basic
  • VS Team System
  • Audio and Video
  • .NET Development
  • Smart Devicet

Software Development Network >> mcdonaldn's Q&A profile

mcdonaldn

Member List

Santhoo
Mike D12995
NCAnand
dorkes_malorkes
Wasim
AlexFreitas
jambi
thezepp
Stuart Robinson
Nikhil Vaghela
Ted.
ProjectDev
reservoir
withers
Amos Soma
learnerplates
IIM
JanSchreuder
net_ravikumar
Visual Basic Expert
Only Title

mcdonaldn's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. ModelMesh in regards to Effects and renderstates

    I just want to put this suggested change up for discussion, since I'm not entirely sure if it even is a potential preformance booster. As it is now Effects used by ModelMesh are cloned from the one loaded from the ContentManager. This is so that they can hold unique effect parameters set in, say, an .x file. In practice that means that even though a ModelMesh has two parts which use the same Effect they will not be the same instance of the Effect. As a consequence you can't make your own draw routine which draws all objects using the same FX file in a batch inside an Effect.Begin / End clause with just changing of EffectParameters and doing CommitChanges. I assume that approach would be much faster than calling them one by one in som ...Show All

  • Visual Studio Tools for Office Slow performance while accessing MailItem fields using VSTO

    Hi, I'm developing a C# based Outlook add-in using VSTO 2005. This add-in collects information from multiple Mail items, so I've a simple code like this: Outlook. MAPIFolder inbox = this .Application.ActiveExplorer().Session.GetDefaultFolder(Outlook. OlDefaultFolders .olFolderInbox); Outlook. Items items = inbox.Items; foreach (Outlook. MailItem mailItem in items) { resultList.Add(new FoundMessageItem(mailItem)); //Takes some fields from the mailItem like subject, sender, recipient } Running this loop on even quite small mailbox (about 100 items) takes a long time (about 10-12 seconds) which is unexptable in my case. What can be done to improve the performance Thanks in advance, Maxim ...Show All

  • Windows Live Developer Forums Newbie. I want to enhance the image quality.

    Hello, this is very basic, but I need to know the power and flexibility of this tool. I need to see in a superior level of detail, in 3D view, a city with a few mounts... ( I don't need buildings, just the terrain ) But everything that is at a certain distance from the camera looses quality (geometric detail level and image quality). I know this is done in order to increase render speed, to save memory and bandwidth... but I need more quality, and I'm ready to pay the cost. Is there a workaround to increase the quality, someone knows a website, parameter, anything that might help me please I need it, even if it takes quite a long time to display one single image. I need excellent quality. Thanks in advance! Albert G ...Show All

  • Software Development for Windows Vista PTGetPrintCapabilities

    Hi, I am working on getting the PrintTicket/PrintCapabilities inside a WIN32 applications using the PTGetPrintCapabilities() WIN32 API and ran into few things and need help. Using the sample PrintTicket xml from MSDN, I created a xml file and created a new DOM and loaded the PT xml file and from that created a IStream. I am passing this IStream to the Win32 API PTGetPrintCapabilities() to get the PrintCapabilites IStream, but I keep getting E_INVALIDARG error. Did any of you run into it Did anyone of use the Win32 API PTGetPrintCapabilities() successfully Thanks, --Ram Ram M wrote: Hi, I am working on getting the PrintTicket/PrintCapabilities inside a WIN32 applications using the PTGetPrintC ...Show All

  • SQL Server Restore 2005 to 2000 Database

    The machine I do development on has SQL Server 2005 installed. My client, however, is running SQL Server 2000. When I tried to restore the database, I got the error: The backed-up database has on-disk structure version 611. The server supports version 539 and cannot restore or upgrade the database. How can I restore a SQL Server 2005 database to a SQL Server 2000 database it is possible when you export the data from sql2005 then import to SQL 2000. An alternative method for this is to create 2 named instances within same computer. 1 for SQL 2005 and 1 for SQL 2000 on the same server. Then export DB from SQL2005 to SQL2000. Afterwards backup your database in SQL2000. It worked for me.. Yes i agree i ...Show All

  • Visual Studio Team System Failed to generate reports

    Hi, We have some problem with the report server after change the account of TFS This error appears when we watch the raport. Une erreur s'est produite lors du traitement du rapport. (rsProcessingAborted) Query execution failed for data set 'dsLastProcessedTime'. (rsErrorExecutingCommand) Query (3, 10) Analyseur : La syntaxe pour = est incorrecte. We have already rebuild the OLAP Cube but nothing has change. How can i fix it Thanks PS: Sorry for my bad English Hello Xavier, These are the following places where the Report reader account is used. - Report Server Data Sources. - If you go to http://localhost/reports in your applica ...Show All

  • Windows Forms Building a Form Manager

    Hey All, I have seen numerous posts where people mention building a form manager to keep track of open forms and other settings. Can anyone point me to an example of such an animal I want to build a manager that when a new form is opened, it is stored in the central location. I also want to be able to go to a central location to check the "Current User" as this is an application class, and is easily and frequently switched on the fly by the user. Basically a central location to go to that is up to date with the current environment. However, I am not quite sure where to start, and an example of one would be nice. Thanks, Hammy OK. I have already been looping through open for ...Show All

  • Windows Live Developer Forums Status property on AdCenterCampaign

    Hello, When are we going to get the status property on the AdCenterCampaign object I can pause and resume a campaign using the UI. It's very anoying that we can't see this using the API and that we cant pause/resume a campaign. Simulating campaign pausing, by pausing the orders is an ugly hack, when you guys could probably implement campaign pausing/resuming in 15 minutes on your side. Best regards, Peer Jakobsen I didn't know you couldn't pause or resume orders once the monthly budget is spent. That is a huge problem, I'll have to look at that. Have you verified this lately, or was this an older issue I seem to recall our MSN contact saying that had been resolved, but I haven't verified ...Show All

  • Windows Live Developer Forums Retrieving Lat & Lon from an address without a map

    I have a web form that enables users to enter an address, and is supposed to return a latitude and longitude for that address. Unfortunately, I've been unable to find any articles or code that can return these values. Any help is greatly appreciated. Thanks! Hi, I am trying to convert your code to vb.net However, I am having trouble understanding the following code Could you please explain char [] chArray1 = new char [0x100]; for ( int num1 = reader1.Read(chArray1, 0, 0x100); num1 > 0; num1 = reader1.Read(chArray1, 0, 0x100)) { string text2 = new string (chArray1, 0, num1); text1 = text1 + text2; Thanks ...Show All

  • Visual C++ unresolved external symbol

    I'm coverting a project from VC 7 to Visual Studio 2005 but get the following errors: some.lib(some.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::Init(void)" ( 0Init@ios_base@std@@QAE@XZ) some.lib(some.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::~Init(void)" ( 1Init@ios_base@std@@QAE@XZ) Any hints Only these two <> header files are already included. #include <iostream> #include <windows.h> ...Show All

  • Visual C# Error : Rejected Safe Mode Action

    Hi, i am trying to open an existing Excel file using windows service.. the code is as follows : Excel.Workbooks objBooks = objApp.Workbooks; Excel._Workbook objBook; objBook = objApp.Workbooks.Open(FilePath,0, false , 5, "", "", false , Excel.XlPlatform.xlWindows, "", true , true , 0, true , false , false ); when i run this service i get the following error in event log : Rejected Safe Mode action : Microsoft Office Excel. Faulting application excel.exe, version 11.0.6560.0, stamp 4296b6f2, faulting module mso.dll, version 11.0.6568.0, stamp 42e18ef6, debug 0, fault address 0x0003446c . how can i correct this Thanks in advance, Sajitha You can do it with Ole ...Show All

  • Visual C++ ClassWizard Automation Tab Equivalent - Where ?

    I created an MFC application via the App Wizard in VS 8. Iv selected Automation support. I want to add some automation methods - but i dont want to do it by hand. In VS 6 the ClassWizard had an automation tab given the selected class supported Automation. You then added methods etc via a dialog Is there an equivalent to this in VS8 or do you have to do it by hand Thanks. it's discussed here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore/html/vcgrfWhereIsClassWizardInVisualCNET.asp To add methods and properties to automation interfaces In Class View, right-click an interface that supports automation. On the shortcut menu, click Add and t ...Show All

  • SQL Server Automatic failover failure

    Hello, we're running a mirrored database with High Availability for Automatic failover including a Witness instance for a web application. When doing a manual failover on the database in Management studio, the roles are switched correctly and the database is in "Principal, Synchronized" and "Mirror, Synchronized/Restoring" mode. The web application has no problems switching servers by using client failover with the jdbc driver. There is no problem accessing the database with Management Studio. However, if we stop the SQL service on the Principal server the role is automatically failed over to the Mirror server by the Witness. The database is then in the mode "Principal, Disconnected" which should be f ...Show All

  • Windows Live Developer Forums display pin info

    hello is there a way to display the pin info as soon as you add the pin instead of the mouse hover over thanks. Yeah its been a busy week, wrong bit of code there. Here is a full working example, I've added it to the wiki for the future. http://viavirtualearth.com/Wiki/ActivatePinonAdd.ashx <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js" type="text/javascript"></script> <script type="text/javascript"> var map = null; ...Show All

  • Visual Studio 2008 (Pre-release) How to select text in a RichTextBox using code

    How can I select text in a RichTextBox using code TIA Eli use the textrange.Select property something like RichTextBox rtb = new RichTextBox (); TextRange tr = new TextRange (rtb.Document.ContentStart, rtb.Document.ContentEnd); tr.Select(rtb.Document.Blocks.FirstBlock.ContentStart, rtb.Document.Blocks.FirstBlock.ContentEnd); ...Show All

©2008 Software Development Network