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

Software Development Network >> John Sorensen's Q&A profile

John Sorensen

Member List

JCJCJC
jamil
chuck02323
joshtms
veryxRV
Tey Boon Kiat
Stuart Robinson
BJ Custard
Anton Rapoport
Alexey Nayda
Muhammad Essa
Soumya B
Michael Tripp
Kapalic
Salman Maredia
GCDev
Hoguey
Will Merydith
GAlexey
ElectricBliss
Only Title

John Sorensen's Q&A profile

  • Visual Studio Store Visio drawings

    How can I store Visio drawings in SourceSafe We create workflows for a document management system (DMS) in visio which can be exported to the DMS. But we have many people working on the same workflow. Now we store the Visio drawing on a network share. But I wondered if we could use SourceSafe for this. But I cannot find any SourceSafe menus in Visio. I don't even know if it is possible - you may want to post on the Visio forum and ask. Thanks, -Brad Peterson ...Show All

  • Visual Studio Feature request: Referencing Code Samples

    I often add example-code to the code comments showing how to use a certain function. The problem is that if I refactor the code, the example will be incorrect and there is no way of checking the example code with the compiler. Usually what I do is creating a bunch of methods that uses the functionalities and copy/paste that over into the summaries. This is a pretty stupid way of doing it though (because of the human factor involved). So this is what I propose: 1. Create a code sample file that compiles, and has parts of the code marked by regions: public void Example1() { #region Example1 myObject = new myObject (); myObject.Invoke(); #endregion } 2. Reference the region in the code summary: /// <example>Create a ...Show All

  • Microsoft ISV Community Center Forums Excel VBA using ADO

    I am trying to populate an Excel spreadsheet with data retrieved from SQL via ADO but I am getting an error is: Run-time error "3704': Operation is not allowed when the object is closed The code so far is: Const SHEET_NAME As String = "Data" Const SQL_SERVER As String = "SQLServer1" Const SQL_DATABASE As String = "myDatabase" Const STORED_PROCEDURE As String = "spMeasurements" Dim cn As ADODB.Connection Dim cmd As ADODB.Command Dim rst As ADODB.Recordset Dim param As ADODB.Parameter Set cn = New ADODB.Connection cn.ConnectionString = "Provider=SQLOLEDB.1;USER ID=**; Password=**** ;Persist Security Info=True;Use Procedure for Prepare=1;Auto Translate=True;" ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. What one has to do if he has a great game and would like to sell it on X360 Live Aarcade?

    I think that GSE is a great idea. But i'm also pretty sure that there is someone out there already who has so magnificent game idea that it would be worth selling on x360 LA. What is needed in order to achieve this Does the one have to compete with big companies Does he/she/they have to buy a devkit Is that even possible for an individual What are the fees What else has to be met   Pavel Burianek wrote: So let's just suppose that the game is finished, it looks very professional and is successful on other platform. (BTW I am professional game developer working for large company). What the individual would have to do in order to have even the slightest chance to get the g ...Show All

  • Windows Live Developer Forums Photo upload tool please start working in my space !!

    hi.. this is my first post here, and i hope i'll get a beneficial answer from anyone. u see i've got a space in MSN and when i tried adding photos a window poped up and asked me to accept installing Photo upload tool inorder to have the ability to upload pictures to my space. I did install that program and it works well in hotmail when choosing to attach pictures but the problem is in my space. Whenever i try to add a photo, the same old window that asked me to install the tool pops up but it looks blank without any thing, it just blinks every almost 5 seconds. I thought it might need time to appear but i've waited forever and it's still balnky blinky !!! Any bright brains around !!!! am in Microsoft's site .. so i thin ...Show All

  • Visual Studio Express Editions Generating real-mode, 16-bit, DOS executable with Visual C++ 5.0

    I am going over the electronic doc in order to findout information about this but I can't find any answer for this. If anyone can answer me that would be great. Also, I'd like to build 16-bit (Real-mode) or 32-bit (protected mode) DOS applications using the Microsoft Visual C++ Express (5.0) compiler and I'd like to find out if it can support these kind of code generation. Would I need a special linker (such as Pharlap) or any DOS extender for linking 32-bit code thanks in advance! Sylvain P.S: Dont reply back asking why on ewould want to generate DOS based programs in 2006 :) I have a special need for this ! I suppose you are talking about Visual C++ Express 2005 and not Visual C++ 5.0 ...Show All

  • Software Development for Windows Vista Advice on hosting Workflows on Asp.Net?

    Hi, The company I work for are in the middle of building a CMS like system and we want to make extensive use of Windows Workflow Foundation for performing tasks such as publication approval processes and longer running processes such as sending out 1000+ newsletters. Our customers need to be able to run the web application on low cost hosting where the client normally does not have sufficient server access to setup a windows service to host the Workflow Runtime. The runtime must therefore be hosted in a Asp.Net AppDomain. I'm quite a newbie when it comes to threads, handlers, app domains etc., but from what I've understood this is not a recommended practice for the following reasons: 1. There is no guarantee the Asp.Net ...Show All

  • .NET Development xml - excel

    Hi, I have been given an .xml file to investigate how it produces data. Basically there is a file called testData.xml when this file is double clicked, it opens up in excel with data. If you right click and open in excel then a properly formatted excel workbook with two named sheets appear which have both got formatted data in them. I have pasted the first few lines of the xml file for you to see. Could you let me know how this is possible and where is the data coming from < xml version="1.0" > - <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas- ...Show All

  • Silverlight (formerly WPF/E) MediaElement and straming mms

    Hello guys. I know that on a wpf app i can use MediaElement to stream mms content. can that be done with wpf/e too i've tried setting the Source attribute on xaml and with jscript code but i allways get an empty window. thanks. ...Show All

  • SQL Server Strange deadlock

    We have a client-server architecture in development in which clients synchronize their data tables with the server. If we try to sync two clients at the same time we often get a deadlock - which would make sense except for the resource that gets deadlocked: stored procedure xp_regdeletevalue , which is used by SQL Server to delete keys from the Windows registry. According to the trace (capturing all events listed in Profiler + the 1204 flag) right before the deadlock takes place xp_regdeletevalue gets locked and released about 500(!) times in a row (nothing happens between the Lock:Acquires and Lock:Releases). We're not invoking this procedure directly although one of the frameworks we're using (Spring or Hibernate) might be, but I foun ...Show All

  • Visual C++ Custom Dll with MFC linked

    Hello people! Now i have this tricky task: I would like to create a regular dll, but with MFC statically linked and initialized, to use the MFC classes. BUT the MFC library provides it's own DllMain. How can i override the MFC's DllMain, while still linked to MFC The reason i want to do that is that CWinApp doesn't give me an opportunity to handle the THREAD_ATTACH and THREAD_DETACH events. I DID IT But this was tough if you are interested, here is the code: BOOL WINAPI MyDllMain(HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved ) { BOOL retcode = TRUE; __try { if ( dwReason == DLL_PROCESS_ATTACH || dwReason == DLL_THREAD_ATTACH ) { if ( _pRawDllMain ) retcode = (*_pRawDllMain ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How do you pronounce XNA?

    Is it X-N-A or is it Xee-na I think the answer depends on how badly one wants to get punched in the head by his or her fellow developers... :P Since I value my cranium, I tend to stick with X-N-A. But if you're looking to raise the ire of your buddies, don't hesitate to go with Xena occasionally. :) ...Show All

  • .NET Development Bug in CLR

    I don't know where I can send bug report. So.. If 2 threads simultaneously creating another threads this way: using System; using System.Threading; namespace HungsUp { class Program { static void Idle() { while(true) { Thread.Sleep(1000); } } static void CreateThreads() { for(int i = 0; i < 50; i++) { Thread thread = new Thread(new ThreadStart(Idle)); thread.Priority = ThreadPriority.BelowNormal; thread.Start(); } } static void Main(string[] args) { for(int i = 0; i < 2; i++) { new Thread(new ThreadStart(CreateThreads)).Start(); } Idle(); } } } Then CLR will hangs up. Tested on .NET 2.0 with hotfix #1. This is ...Show All

  • Visual Studio Express Editions No Common Controls Showing (Ex; Button, or Labels)

    I am taking a programming course this year in school and we were recommended to download Visual Basic 2005 Express Edition. We were also recommended to download Visual C#. C# works fine everything is shown that should be shown although in Visual Basic it is a whole other problem. In the toolbox on the left hand side no common controls are shown. For example the button or label items in the toolbox are nowhere to be found. I reset the toolbox and it stays the same as it is already. This is a link to how the toolbox looks. I have uninstalled it twice now and the same problem comes up. Any help on getting these functions in would be greatly appreciated, I need them to do my assignments for school. Right cl ...Show All

  • Windows Forms Navigating by Year on the Calendar function?

    Is there a way to navigate by year as well Having to click on each month to get several years ahead is awfully inconvenient. You cannot add controls to the MonthCalendar itself, it is a built-in native "UserControl" in Windows. You can put your own buttons on top of it though. Make them look like the month scroll buttons and nobody can tell the difference. ...Show All

©2008 Software Development Network