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

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

Chefbrenner

Member List

Kajal Sinha
Challenger10
Vitalijus
Aditya Kirloskar
zrumchik
soung
Marcello Gribaudo
NumberKruncher
Scott_t
SUMEET_1876
Alxenen
Brian Tucker
George2
Tammt
Indigox3
thomaskremmel
PedroSimao
Asbjørn
m3rLinEz
Carl Daniel
Only Title

Chefbrenner's Q&A profile

  • .NET Development Performance: Passing large arrays from .NET to COM components

    Hi, I am working on a COM component in C++ that will be used by .NET clients. Clients frequently pass large arrays of points in Cartesian coordinates (i.e. XYZs) to the component. I'd like to know the most efficient way to do this. My tests show conformant arrays are ~7 times faster than safearrays. Safearrays were ~6 faster than sending the array's data one point at a time. So I'd like to use conformant arrays, but I want to make sure they are "safe." Here is my IDL struct Vec3 { double x; double y; double z; }; HRESULT SendData ( [ in ] int numPts, [ in , size_is (numPts)] struct Vec3 pts[]); And it is called from C# with code like this: GCHandle gcHandle = GCHandle ...Show All

  • Audio and Video Development HDDVD_E_INVALIDOPERATION when switching tracks

    In the HDiSim, I'm getting an error most of the time I switch to play another title. The error is thrown when a new title is called like so: Player.playlist.titles["title1"].chapters[0].top(); This only happens if a title is currently playing. Do I need to stop a title before starting a new one Video playback is not HDiSim's strongest point, unfortunately. Do you have a supported graphics card, etc. (from the readme) Have you tried using low-quality video as a placeholder ...Show All

  • .NET Development Thread.Abort()

    I know a lot has been said about this method and I am of the firm belief that calling this method or designing my applications around this method (for clean up work) is just plain old evil. Anyway, I was wondering what would happen if the method were to be called from the worker thread itself, and the not the parent thread So something on the lines of: try { Thread doWork = new Thread(new ThreadStart(ProcessData)); doWork.IsBacground = true; doWork.Start( ); } catch (Exception) { } protected void ProcessData( ) { try { // Do Work } catch {Exception e } finally { try { Thread.CurrentThread.Abort( ) } catch (Exception) { // Do Nothing } } } My intuition tells me that this model is evil, but my mind tells me that there is nothing wrong with t ...Show All

  • Visual C# I'm in datagrid how make ENTER key, Arrows, TAB to open my function

    Hi I can't use ENTER, TAB and arrows from keyboard in my datagrid by my way. keydown, keypress, UIcues does not respond on this keys and they only move between data in my datagrid. I want only to move accross rows and when i click ENTER i want to open a new dialog. you can handle KeyDown event here is an example that open a new form when you press Enter private void dgvSupplierList_KeyDown( object sender, KeyEventArgs e) { //If user press enter if (e.KeyData == Keys .Enter) { Form1 frm= new Form1(); frm.ShowDialog(); } ...Show All

  • Visual Studio Express Editions Open Specific File

    Hi all, How can i open a file without using the OpenFileDialog and i know the location to display a text file into a rtf box Any Help will be appreciated, Thanks in advance MW200675 interesting, I am unable to reproduce the problem from my end. Maybe someone else can if i find anything ill be sure to post sorry i could not be of much help ...Show All

  • Visual Studio Tools for Office How to migrate word template from vsto 2005 to vsto 2005 se ?

    Hi So I downloaded vsto 2005 se and installed it on my dev notebook and now I would like to make my word template ( http://www.codeplex.com/THBAuthoring ) working on both Word 2003 and Word 2007. How can I do that Thanks VSTO 2005 SE is extending the existing set (document level add-ins) with the application level add-ins and provides some fixes for the existing codebase. Basically the message is that VSTO 2005 customizations (document level add-ins) still work for Office 2007 so you should be fine with what you already have. -= Maarten =- ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Strangest 'Bug' I've Found Yet

    Hi, I'm still trying to draw large gridmap terrains on the 360 and so far am having a lot of success. Performance seems to be a lot higher than my 6800GT, perhaps by about a factor of about 4. The issue I'm having though is really rather strange and I've been wondering for the last couple of hours quite how it could be happening. I create a huge vertex buffer (as big as XNA allows before throwing an UnauthorizedAccessException at me) for the gridmap and draw the entire world (4million polygons) in a single draw call. Except the frame rate is good under some circumstances and bad under others, and the factors that make the frame rate plummet really shouldn't affect the frame rate at all. If I create only this one VertexBuffer and try ...Show All

  • .NET Development Writing/adding elements to a xml file

    Hello! I want to add another book (book4) to the xml file below. What I did: XmlDocument document = new XmlDocument(); document.Load("info.xml"); XPathNavigator navigator = document.CreateNavigator(); But how do I navigate to the required node and add another book Hopefully someone can help. Thank you. info.xml: < xml version="1.0" > <Info> <Author> <FirstName>John</FirstName> <LastName>Boy</LastName> <EmailAddress></EmailAddress> <Gender>Man</Gender> <Birthday></Birthday> <Address /> <ZipCode /> <City /> <Country /> <Telephon /> </Author> <Books ...Show All

  • Windows Forms Achieving high refresh rate on C# winform application

    My current C#.NET project is MDI-based. I am using a user control that has 10 textboxes. This user control is repeated 20 times on a screen. (that gives 200 textboxes on the screen) When I refresh the screen, I can see every textbox being drawn to the screen from top to bottom. The desired behaviour is that the screen should appear in a flash without any rollover effect. Currently, the screen gets refreshed at a rate of 35 milliseconds. We need to minimize this to 2-3 milliseconds. I found that When one textbox of the usercontrol refreshes, internally Paint Event of that control is raised. The textbox Paint Event internally raises its container's (user control's) paint event. Subsequently, the user control raises paint event ...Show All

  • Software Development for Windows Vista StartWorkflow() function - ss.RunWorkflow(wi.InstanceId) - Error

    hello, I am getting error in Controlling ASPNETWFPageFlow projrect which i download from samples. The default page working fine, When I click the Start button, I get error. NullException It is ocuring in the Module.cs --> StartWorkflow() --> ss.RunWorkflow(wi.InstanceId) please help me vijil bangalore Dear Karthik, I am using Beta2. And Vs2005. The Os is Xp pro. please send ur Emailid to my EmailID, just I mention below. vijil vijil.jones@craftsilicon.com Bangalore. ...Show All

  • SQL Server SQL Server 2005 Install fails on Vista

    During the install, I get the following message: Setup has detected a problem with Microsoft .Net Framework installation and cannot proceed. Microsoft .Net Framework 2.0 is either not installed on this system or is corrupt. I cannot uninstall 2.0, as its part of the Vista. I have tried repairing it. I tried downloading 2.0 and installing it, but it says that its allready installed. I was able to install Visual Studio with Sql Server 2005 express. I am stuck. Is the case that Sql install dosent know about the latest version of 2.0 that came with vista I provided contents for 3 logs from my most recent attempt to install which resulted in the same error with .net 2.0 configuration, [_Core], [_Core(patched)] and [_Su ...Show All

  • SQL Server IIS and SQL Server 2005 Express Edition

    hi Currently have SQL Server 2005 Express Edition installed. Wanted to install reporting services, but wouldn't let me re no IIS as I only have Windows XP Home Edition. My question is therefore: Is there any way of installing IIS to allow me to install Reporting Services for SQL Server 2005 Express Edition Many thanks Tim Leicester, UK Thank you for your clear answer I see that if you do not install IIS before SQL Server, it's impossible to use reporting services. All i regreat is that Microsoft nowhere warns about that problem except at the beginning of the installation of SQL Server with a meagre warning. I hope that Microsoft will correct this absence in the documentation to a ...Show All

  • Smart Device Development CF.NET datagrid column size...?

    hello, I have written a project which shows data on the grid but I want to resize the column width programmatically.In WinForms datagrid control,there was a property to do these kind of things but in CF.NET datagrid control, I couldn't find this.How can I do this Thanks in advance. That is done the same way as on desktop - by setting size on column's ColumnStyle and adding these styles to TableStyle which is added to data grid. Please see this: http://www.inthehand.com/forums/viewtopic.php t=96 http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/search group=microsoft.public.dotnet.framework.compactframework&q=DataGrid+column+width&qt_g=1&searchnow=Search+this+group ...Show All

  • Visual Studio Express Editions Synchronouse method invocation

    I have the following question, and I really appreciate your help if someone knows the answer: This is my understanding of synchronouse communication: If method A invokes method B using synchronouse communication, object A must wait until object B completes. Is the following possible to do or ture Assume that we have three methods A, B, and C. Would it be possible to do the following: A invokes method B using synch. communication and before B finishes and return to A, method A invokes method C also using synch. communicaiton Thanks. Thanks Carsten; I appreciate your input. I read the material at the web site you sent me, and it is helpful. Is BeginInvoke method an asynchronous method It seems to me that Invoke method is a synchron ...Show All

  • SQL Server Access 2003 and SQL Server Express

    Does anybody know if there is and update for access 2003 which could make it compatible with SQLServer Express. Actually XML Field are not supported, Diagram too, and surely much more. Any help would be appreciate. No, the special features are actually not supported. Only the SQL Server 2k compatible features are available. HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

©2008 Software Development Network