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

Software Development Network >> Mark Visneskie's Q&A profile

Mark Visneskie

Member List

Sicundercover
AmyGr
Chase Mosher
Teggno
Hansi Henningson
andris11
MTness
JFLund
Justin-M
Dan Vallejo - RampGroup
nigel.uk
SCM_Dude
Pockey
iccle
karande23
mako_123
Greensombrero
Michael Gates
MA2005
Ed Lorenz
Only Title

Mark Visneskie's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. World to screen conversion.

    Hi. Something weird when trying to covert world to screen coordinates. Vector3 res = Vector3.Transform(worldPoint, Camera.View * Projection); I get the result vector with values greater than 1. Aren't the values post projection supposed to be clamped Both the view and projection matrices are valid (and are used to display on screen). Cheers I know it must be something stupid on my part but... Vector3 p = new Vector3(0, 10, -1500); Matrix proj = Matrix.CreatePerspectiveFieldOfView((float)Math.PI / 4, 800 / 600, 5f, 3000f); Matrix view = Matrix.CreateLookAt(new Vector3(0, 0, 20), Vector3.Zero, Vector3.Up); res = Vector3.Transform(p, view); res = Vector3.Transform(res , proj); What is res supposed to be Isn't it supposed to be [0, 1] ...Show All

  • SQL Server Same effect as Cross Join?

    How can I achieve the same effect as a cross join (since the merge operator doesn't have a cross join) Situation is this... a flat file has some header and footer information that I need to keep and attach to each row. So for simplicity sake of an example lets just say header has only 1 thing we care about - a row that says DATE=01/01/06. I take the file and run a split to split into "Date" "Data" and "other" (other has all the throwaway rows in header and footer I don't care about). Then I use a derived column object to get all the columns out of the "Data". Finally I want to add that Date metadata back to every row in the data... I thought this would be an easy thing to do.. but I can't s ...Show All

  • SQL Server Error: Could not find stored procedure !!

    Hi, Error: Could not find stored procedure. I Installed the SQL Server SP2 and the error still occurs when ever I call the stored procedure from my windows app!!   Any Help Now try: exec ThisMonthRecords and post the results ...Show All

  • Windows Forms pictureBox1_Paint() doesn't draw

    Hi, I am making a scrolling text with transparent background. However, the  pictureBox1_Paint() seem to draw nothing! Any idea       public partial class Form1 : Form     {         private String drawString = "Sample Text";         private Font drawFont = new Font("Arial", 31);         private SolidBrush drawBrush = new SolidBrush(Color.White);         private int textX = 0;         public Form1()         {           & ...Show All

  • Visual Studio Tools for Office How to combine two ranges?

    Hi All Do you know any method that can combine two ranges Using following code I can't achieve this because COMException is raised with HRESULT 0x800A03EC: using Microsoft.Office.Interop.Excel; Range r = sht.get_Range( "B2,C3" , missing ); // faires COMException with HRESULT = 0x800A03EC: Steve Hansen wrote: Interesting. Perhaps it is something to do with the culture issue as even in a shared add-in I can use the technique without issue. OK, I changed my windows Regional settings to en-us (which is what Excel wants to have) and indeed, the syntax now works. So it is a problem with Culture Info, and apparently the approach described in the MSDN article doe ...Show All

  • Visual Studio 2008 (Pre-release) using WPF in MTA applications

    My application runs in MTA thread. WPF needs STA, so I created a new STA thread that creates and shows a window. This works, but only one time. If I start this thread one more time, I get this exception: System.InvalidOperationException was unhandled Message="The calling thread cannot access this object because a different thread owns it." Source="WindowsBase" StackTrace: bei System.Windows.Threading.Dispatcher.VerifyAccess() bei System.Windows.DependencyObject.GetValue(DependencyProperty dp) bei System.Windows.Controls.GridViewHeaderRowPresenter.CreateAndInsertHeader(GridViewColumn column, Int32 index) bei System.Windows.Controls.GridViewHeaderRowPresenter.OnPreApplyTemplate() bei System.Windows.Fr ...Show All

  • Visual C# timing and "scheduling"

    i have to write an application to do some stuff, firstly i need it to be "always on" and i need to be able to   have "schedules" in the application, every 20 minutes, once or twice a day at certain time etc....   i guess that using a windows service and utilising the system.threading.timer class would be the best way to go about this... are there any other, maybe better, ideas about how to tackle this A few issues spring to mind: You've got a race condition here - if you happen to schedule a job that's due to run almost as soon as it's scheduled, there's a chance the timer will fire in between you constructing the ScheduleJob and attaching the event handler. Two possible solu ...Show All

  • Windows Live Developer Forums Trying to create a best fit map

    I would like to create a map based on latitude and longitude coordinates that is on the highest zoom possible and contains all of the coordinates. I've looked through the SDK and haven't found anything of use yet. I did try out IncludePointInView() method, but haven't been able to work this one. What can I try to create this map Thank you Ha... I feel stupid now, out of every method I scanned through... I missed SetMapView() .... I was going to kill someone for this Oh well.. Thank you very much. I appreciate it. ...Show All

  • Community Chat Native C++ cross thread call framework

    If you're a C++ developer, with an interest for threads and interlocking, I'd be greatful for any input (be it comments, suggestions, criticism) on a generic framework I've been working on. I wrote a quick article about it, and included full source code + examples at Codeproject: http://www.codeproject.com/useritems/threadsynch.asp . I find that not too many seem to share my passion for that specific subject, so by asking here, I hope some thoughts are presented (or perhaps provoked). The very reason for me to put the framework onto Codeproject, was to enhance it through feedback and collaboration with other devs. Anyway, as I said: all thoughts are welcome. Should I include some diagrams to better explain how the framework does it's ...Show All

  • .NET Development WSE: Including a username with MutualCertificate11Assertion

    How can I propagate the user's identity when using MutualCertificate11Assertion I want to include it in the headers, signed so it cannot be changed. The user logs into web application which consumes a web service. I want the certificates for mutual authentication between web application and web service, and I want the username to be propagated to be able to do desicions in the web service depending on who the user is. While I understand how to add a new header, I can't make it work at the receiving end. What do I have to implement here A new SecurityPolicyAssertion with Send and Receive SecurityFilters ...Show All

  • Visual Basic Current Line Colored by IDE (VB.NET)?

    I was wondering if anyone knew a way to make it so that the line the cursor is currently on could have a different background color from all the other text. It greatly increases visibility and ease of use (anyone who has used a text editor like TextPad can attest to this being quite useful when you have huge nests and you want to, for instance, paste right at the line the cursor is on). I don't see any options in the IDE, but maybe someone has made a plug-in Thanks. Oh, I should note that I'm using VB.NET and VS 2005. ...Show All

  • Visual Studio Team System Is there any configuration we need to do in VSTS to run the 64bit dll on 64bit OS?

    Hi,   We have the 64bit dlls and other files. We registered those dlls successfully. Now we want to launch that application on the 64bit OS(Win2k3) machine. We are using the VSTS to launch the application. But we are unable to open it. It throws the error message saying that "The file specified is not found". Actually the file is located there.  But if we create normal windows application and try to execute the same code then it opens the application. Is there any configuration we need to do in VSTS to run the 64bit dll on 64bit OS   Please suggest me in case of any one is having solution for this.   I am using the following code for this.   ...Show All

  • Visual Basic Deleting a row in an SQl database

    I am trying to delete a row duing run-time but everytime i go to save the program I get an error message saying: "Update Requires a valid DeleteCommand when passed DataRow collection with deleted row." Does anyone have an idea on what code would work, by the way I'm using Visual Studio 2005, (Visual Basic Code) Any ideas Hi, Open your dataset (the .xsd file) using the vs designer. Click on the table adapter of the table that the delete command does not work and verify the SQL code in the (properties window). Charles ...Show All

  • Windows Forms ShowDialog() or Show()

    I have a form with many user controls on it. When I load a particular user control I need to check for a particular condition, if that is false i display "Try Again" form. This try again box should check for condition and then display the same box if condition false: I wrote the following code: In user ctrl of Form1: if(condition false) { TryAgain t = new TryAgain(); t.ShowDialog(); } In "try again" form: this.Close(); // when clicked try again close dialog and check condition if (condition false) { TryAgain t = new TryAgain(); //display dialog again as condition false. t.ShowDialog(); //here is some problem } ...Show All

  • Microsoft ISV Community Center Forums Business Scorecard Manager to Sharepoint deployment

    Hi, I have setup all necesary things in BSM and SPS, but when I deploy, the the pulldown with the "sharepoint site url" is empty, as well as the "document library" pulldown. Are there steps in Sharepoint necesary to maken the http://localhost site available for BSM deployment I figured this one out: start the newly created (and extended - by SharePoint) site and apply a new template (one that includes a document library). Scorecard builder will find it after you've published your scorecard to the server. ...Show All

©2008 Software Development Network