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

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

Kennon2005

Member List

Abu Yaman
Roger Lipscombe
tylerpro
_Pero_
Julie Lerman
Jens K. Suessmeyer - MSFT
voxanBoxer
dgolds
Barrios
BenCh1
M.D.A
dbasharon
CSWong
jena
khawaja
My Vizai
C. Charpentier
ec
ccote
Eric123456
Only Title

Kennon2005's Q&A profile

  • Visual C++ How can I prevent my application from being launched multiple times simultaneously?

    Basically, I want my application to detect whether it's already running and shut down if it would be the 2nd copy. I think the solution might use COM objects, but I can't make any sense out of the COM documentation in VC++ 6.0. Hi, One way is to use (named) kernel objects. Suppose if you have dialog based application, During the Initialization, you may have to create a mutex for synchronization. But before creating that you should try to open the mutex you are supposed to create. if open call is success. simply return from the function and end the dialog. pseudo: if(OpenMutex(....."MyMutex")) return FALSE; // else CreateMutex(...."MyMutex"..); .... // do further. Note: Using Ker ...Show All

  • .NET Development .NET 2.0 causes failures debugging

    Hi, When attempting to debug a COM class implemented in VB .NET 2003, it is necessary to set the executable for debug to a C++ Release-compiled application. This C++ application was ported from VC 6, but is currently also compiled using the VS 2003. When debugging is intiaiated from the aforementioned COM class, the application appears momentatrily but then diasppears. This only happens when VS .NET 2005 (and hence .NET 2.0) is installed alongside VS .NET 2003. If one uninstalls VS .NET 2005, theis behavior goes away. Since this exe is ours, I was able to put in logging statements to find that AfxOleInit returns false, causing the application's InitInstance to return false. Has anybody else encountered this Suggestions for resoluti ...Show All

  • .NET Development Role based security: IIS based remoting server doesn't hold my principal

    Hi, I have a VB.Net Windows form based user authentication system. The form authenticates the user info against a server through Remoting that is hosted by IIS. The authentication process runs well all the time. Once the authentication is done, I set up my customized identity and principal and set the principal to the current thread on the server before returning the call back to the client. The thing that suprises me is that, when my client gets back to the server the next time (client gets back through a remoting reference to the same server object that did the authentication), the security principal of the current thread on the server has changed! It went back to Windows principal again, instead of my own principal I just set. ...Show All

  • .NET Development Newbie (?) questions about C# from an intermediate-level programmer...

    I'm reading (and re-reading) the book, Programming C# (4th edition) by O'Reilly. It's a really great book but I have a bunch of questions even after re-reading several parts of it. Here are my questions: 1. Static constructors are only guaranteed to start running before the first instance of your object is instantiated,so is it possible an object can be instantiated before the static constructor is finished running 2. Are constructors (static and non-static) and finalizers automatically thread-safe 3. Do objects with finalizers get garbage collected twice The book says objects with finalizers are put in a special queue when created but I'm confused because it seems like they get collected twice... (eg. first collection calls F ...Show All

  • Visual Studio Tools for Office Using Custom Images in your Office Ribbon

    I have posted this in the forum but haven't had any replies so i'd though i'd try here. Subject: Using Custom Images in your Office Ribbon   11/29/2006 5:13 PM PST  In:    microsoft.public.office.developer.com.add_ins     Hello, I have developed my own tab in Word and im having difficulty in getting the icon's to load up in the ribbon. I have been following Exercise 3 on Andrew Whitechapel's "The Visual Studio Tools for Office 'v3' Community Technical Preview - Tutorial". I keep getting an exception error ehrn the BlankCD.ICO file is being converted: image = new System.Drawing.Icon(stream).ToBitmap(); the error is: Custom Runtime Error An exception error occured while calling 'GetImage ...Show All

  • Microsoft ISV Community Center Forums Calling procedures from a procedure

    Hello there I hope this question is not too stupid. I am formatting a contractual document using some simple VBA. According to the options a user chooses in a window, Word should select one of sixteen ways to format the doc when OK is clicked. Having all sixteen 'formatting scripts' in one procedure with the accompanying IF.. THEN... ELSEIF statements was too long, so I have made each 'formatting script' a procedure. Trouble is, when I try to call the procedures, nothing happens. What am I doing wrong Here's what it looks like: ------------------------- Private Sub cmdOK_Click() frmContractSetup.Hide Unload frmContractSetup If chkUseRetainer = True And chkQuebec = True And chkLarge = True And chk ...Show All

  • Visual Studio VS 2005 DataSet Designer TrueType Exception

    I've built a dataset using the DataSet Designer in Visual Studio 2005 (with SP1). I find that I need to add a constraint, go to load the DataSet's XSD, and the Designer throws the following exception and fails to load: "Only TrueType fonts are supported. This is not a TrueType font." So I figured I had a hosed up instllation of VS 2005. I cleaned Visual Studio (including SQL Server, MSXML, MSDN, etc) off of the box and re-installed. I also upgraded to SP1 hoping that this was a bug fixed within the pack. Loaded up my project and the Dataset showed up correctly in the Designer, yesterday. Today, despite no changes having been made VS settings, project settings, or fonts on the machine, I'm back to receiving the excepti ...Show All

  • Visual Studio Sandcastle: Is <exclude> now supported and--if so--could you demonstrate its use?

    I know there have been several questions about support for the <exclude> tag, but I'm having trouble figuring out whether the latest Sandcastle release now supports it. If so, could someone provide an example of how to use it I'd like to exclude items at the member/method and at the class level. For classes, would I need to do the following public class foo: base_foo { /// <summary> /// <exclude /> /// Constructor for foo /// </summary> public foo(string message) : base(message) { } } Or am I getting the syntax wrong Much obliged! Walt Hi, Well, DocProject supports external sources as well as project references , so you can use a single project for ...Show All

  • Windows Forms Weird about box problem

    I created an about box using the AboutBox form template. The only thing I changed was the default name of the form, and the text in each of the labels and the textbox. Then I added the "About" menu option and inserted the following two lines to display the aboutbox: Form awform = new CardWeave. AboutWeave (); awform.ShowDialog( this ); For some reason it displays the default aboutbox without any of my modifications. Any ideas on what is causing this problem Thanks! Dan No, should I I'll try it and see if that makes a difference. So far, all I've done is changed the Text property. Dan ...Show All

  • Smart Device Development hi

    Hi I am currently using CreateFontIndirect Api where in i am tryingto set the font family like cursive,helvetica and so on... Can anyone let me know what are the exact members of the LOGFONT structure that needs to be filled so that i can see the font family being reflected. as of now i am not able to get the font- family reflected. Hi, Here is some sample code that may help you prepare you font structure. Here we assume that IDS_DEFAULT_FONT has the font name to use. ( it must be available on the device ) LOGFONT logFont; memset(&logFont, 0, sizeof(logFont)); logFont.lfHeight = -12; logFont.lfWeight = FW_BOLD; logFont.lfPitchAndFamily = VARIABLE_PITCH | FF_SWISS; CString strDefaultFo ...Show All

  • SQL Server Paging file size for server with 128GB memory

    Hi, Anyone knows what the size should the Paging File be for a 8 P 16 Core Opteron server with 128GB memory installed The server will be running SQL 05 Ent and IIS, on top of Win2k3 R2 x64 Ent. Please also give the reason for that size. Regards, dong On a SQL Server you want the page file size to be as small as possible so that SQL Server will be using real memory instead of slower virtual memory. SQL Servers are resource-rich centralized beasts. That's one of the reasons they are faster than a desktop database or btrieve library. The optimal size would be 0 but you need a pagefile big enough to hold any memory dumps your server might create. If you can handle just getting mini-dumps which are just 64K, you could set your pagefile ve ...Show All

  • SQL Server SQL Server 2005 Status

    How much of an impact does it have on performance if you have a number of applications in a sleeping status Thanks The answer in this case is "it depends". If all you have is an idle connection holding no database resource then the impact would be very small. They will consume some amount of memory for structures necessary to keep the connection alive, as well as a port or pipe on the OS to communicate back to the client, but overall you wouldn't notice these things. However if those connections are sleeping with open transactions and locks associated then the impact may be very large. More importantly you want to understand why you have connections in a sleeping state, and whether ...Show All

  • Software Development for Windows Vista New xp pro machine, MSDTC not installed or configured?

    Hello everyone, I purchased a brand new shiny development machine last weekend (one of the new dual core 2 processor machines...two thumbs way up!). The operating system on the machine is XP Pro. I am coding a C# 2005 winforms application which requires MSDTC and after opening my C# project and running it I noticed that MSDTC is not installed on my new machine. I thought MSDTC was installed on every windows machine but apparently that is not correct. So when I go to component services to look at the Distributed Transaction Coordinator the "my computer" icon has a red arrow over it instead of a green arrow which makes it look like there is a problem. If I click on the "distributed transaction coordinator" folder under co ...Show All

  • Visual Studio Any bodies have any idea about following error

    Error 2 Unknown section header E:\\TempProject\\DSLTestAgain\\DslPackage\\CtcComponents\\..\\GeneratedCode\\GeneratedCmd.h 1 DslPackage I’m install visual studio sdk 3.0 and open a DSL project while I’m start debugging I’m getting this error Thanks, that’s great…I’m found that in my PC I was not installing c++ of VS 2005 but install VS 6.0 with VS source safe and VSC++. I remove VC++ but keep VS source safe and reboot and create a new DSL project and getting some fatal error then I’m installing VS 2005 C++ project reboot and create new DSL project..WOW!! Every thing OK… SO visual source safe can be running with DSL…. ...Show All

  • .NET Development OnShutdown not firing

    I've written a Windows Service in C# that needs to call the OnShutdown event when the PC is shutdown or restarted. I've tried logging to both a text file and to the event log when this happens, and it appears the event is not firing. I've set CanShutdown to true, but it doesn't make any difference. Any ideas on what else I can do to make it work It is the service controller that initiates the OnShutdown callback. This will only happen when your service is not in one of the "pending" states. Check if you respond quickly enough to the Stop request... ...Show All

©2008 Software Development Network