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

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

Mazzie

Member List

ClaudiaHelpOnVSTO
Vipin-kartik
pappascd
E.Ganesan
Stefan Gabriel Georgescu
ruleDWorld
Steve Severance
PeterZ
Andy Ho
stang4lyfe
bhavu
m_nille
John_Wesley
zagy
itsryan
den2005
George Clingerman
Jeremy Schneider
MariaD
veryxRV
Only Title

Mazzie's Q&A profile

  • Software Development for Windows Vista Mutex across multiple sessions

    I have created a mutex inside a service using TCHAR sznam[] = "Global\\mutex_hello"; ServHand = CreateMutex(NULL,FALSE,sznam); SetNamedSecurityInfo(sznam, SE_KERNEL_OBJECT, DACL_SECURITY_INFORMATION, 0, 0, (PACL) NULL, NULL); now i want to use this mutex from application running in diffrent session. serv = OpenMutex(MUTEX_ALL_ACCESS,TRUE,"Global\\mutex_hello");; DWORD abc; if(serv == NULL) WriteLog("file not found"); abc = WaitForSingleObject(serv,INFINITE); if(abc == WAIT_OBJECT_0) MessageBox(NULL,"object signaled","object signalled",MB_OK); else if(abc == WAIT_TIMEOUT) MessageBox(NULL,"WAIT_TIMEOUT","WAIT_TIMEOUT",MB_OK); else(a ...Show All

  • Visual Studio Team System Possible bug in XML comments tag creation?

    Hello, I've been creating a few rules to validate the presence of XML comments in my code for methods, some members, classes, etc. A few times in the past, I noticed that some functions would show with comments and some within the same file with comments as well in the code, would not be detected by FxCop. By this I mean, the comments are present in the actual XML file but FxCop doesn't detect them. I ran my rule in debug mode and noticed that the Documentation node was indeed null. Surprisingly, for other functions in the same library and file, the comments were detected properly. After looking into it a bit more, I noticed a pattern that seems to explain this miss. When running in debug, I noticed that the "DocumentationID" ...Show All

  • SQL Server XML Import into SQLServer 2005

    Hi folks, I am creating an application that uses SQL2005 as the data store. I need to carry out a bulk insert of data into the database once my app has created it. In the past, I have simply used a transac bulk insert statement with a csv file as the data source. I would now like to use XML instead but I'm not really sure how to go about this. Also, do we think this is over kill Last time I did this type of thing I simply created the data in excel and then saved as a csv. If I enter the data into my database on my dev machine, is there any easy way to get sql server to do a bulk export (in xml format) so I can simply bulk insert the same data into a separate database Cheers Mark you have ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Making games forward-compatible with Content Pipeline?

    Hello, I was wondering if there is any documentation explaining how the Content Pipeline API will work. I want to make sure my code will be as forward-compatible as possible when it's finally released. Thanks, Tom If it isn't too late to revive this one . . . I was wondering if you have any examples of how animation will work, and if you know if XNA will support blendshapes and/or weighted meshes bound to a skeleton. Thanks, Tom ...Show All

  • Visual C# How to convert DateTime to Double?

    I want to convert the DateTime.Now to a double number...However, it seems Convert.ToString(DateTime.Now) does not work... Any method Hi I I think this snippet shoul do the trick:- private void ConvertDate_To_Double_Click( object sender, EventArgs e) { try { double date = Convert .ToSingle( DateTime .Now.ToOADate()); MessageBox .Show( "Date to Double is : " + date.ToString()); } catch ( Exception ex) { MessageBox .Show(ex.ToString()); } } hope this helps ...Show All

  • SQL Server Cannot start SQL Server Browser

    Hello, I use SQL Server 2005 for multi-user access. In the Surface Area Configuration, I changed the protocol from TCP/IP to Named Pipes and restarted the service. Then I went to SQL Server Browser, stopped it and clicked on Start to restart. I am getting a message "An error occurred while performing this operation". I am not able to get the Browser started. Any help would be greatly appreciated. The key one is "The SQLBrowser service port is unavailable for listening, or invalid.". So what happens is SQL Browser starts up and enumerates all network interfaces and attempts to bind to UDP port 1434 on each one found. If it cannot bind to any of the network interfaces, you will ...Show All

  • Windows Forms A Simple GUI Question

    I have an application which requires saving data. But user do not need to open a file or save a file. But I need a save and exit. Do I still have a File Menu Intuitively, File menu is for saving files. What does the guideline say Thanks much There is no 'set' way to create a method to save a file and exit your application. You can do this however you want. From what you explained it sounds like you want to save the file when the program exits. If so then you can use your Forms FormClosing Event to save the file. System.IO.File.WriteAllText( text you want to save ); ...Show All

  • Visual Studio Team System How to tell where I put CustomDictionary.xml?

    Hi I don't want CustomDictionary.xml to be placed in the install directory or along with the project file. How can I tell FxCOp where I placed my dictionary /Louise Wouldn't it always be better to add the custom dictionary path to the .FxCop file, instead of specifying it on the command line to FxCopCmd.exe This way the custom dictionary will be used for both the GUI and command-line tools. ...Show All

  • Visual Basic Combobox Question

    Heres access for you! How do you retrieve (dont let me loose you here) I am used to me.combobox1.column(2) to retrieve data from the third column in a record I noticed that either it doesnt exist or it is name something different How would you retrieve data from a record from 3 columns over from the first Davids Really Learning I did some reading, tried a few things and I still just havent had any luck(maybe its the heat,I dont know its a toasty 103F, I have to bounce around here inside/out, check on people and learn this at the same time). Not making excuses! anyhow I tried this I set my datasource of the combobox to MyTableBindingSource I set the DisplayMember to a field in ...Show All

  • Visual Studio 2008 (Pre-release) The project type is not supported by this installation.

    After having installed all the RC1 parts, including "Orcas" and try to create a new project in VisualStudio 2005 (Windows Application, XAML Browser Application or Custom Control Library) I get an error message: "The project file '.....' cannot be opened. The project type is not supported by this installation." I've tried reinstalling everything but it's still giving the same error message. Could it be because I'm running a swedish version of Windows XP Although I haven't had this problem with other releases. Nothing to do with the Swedish version - I have the same error on my US-English version. Really hoping to get an answer on this one. ...Show All

  • .NET Development Browse database objects

    How can I browse database objects (tables, views for example) in .NET In ODBC API there is a SQLTables() function. Can some one give me some suggestions on how to create such table browser say i have the servername, how do i go about creating, say a treeview or something, that displays the available databases, tables and columns thanks ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Official Update

    Now go register!!   Actual contest details to come the week of Feb 5th Plese, Someone at Microsoft.... the drembuildplay site, even though the competition should be global, does not allow non-US people to register. I don't live in the U.S., so I can't choose any state, the zipcodes in my country are 6 digits long, and the telephone numbers are not in the US format.  Edit: didn't see errolian's post before i posted this. P.S. did I mention I passed from neutral state, to exalted state and then down to low-morale state in about 2 minutes .... does this make me emotionally unstable ...Show All

  • Software Development for Windows Vista Accessing workflow instance members from WorkflowInstance (runtime event handlers)

    Hi All, Is there a way to retrieve a strongly typed reference to the actual running workflow from a WorkflowInstance instance More details: I have a runtime event handler (loaded, idled) that receives a WorkflowEventArgs parameter. In that method I would like to access some of the instance properties (DependencyProperties) of my own workflow class. The only object I have in that method is a WorkflowInstance with an InstanceId. So the question is, how can I get a MyWorkflowClass instance if I have an InstanceId Thanks in advance. I started a previous thread stating the same complaint. This is rediculous design (IMO). Honestly, I am not saying this to offend - but it is my perception - Stop p ...Show All

  • SQL Server The request failed with HTTP status 401: Unauthorized. (Microsoft.SqlServer.Management.UI.RSClient)

    I know that another thread dealt with this error message before but after trying all the suggestions of that thread without success, I thought my problem may be different. I have SSRS 2005 installed on my local machine (TAH112) and it worked flawlessly for months. Suddenly it stopped working today. The Reporting Services Configuration tool shows everything is normal (green buttons all the way except for encryption keys button that is blue and Execution Account button that is yellow). When I try to connect to the server with SSMS, I got the following error: TITLE: Connect to Server ------------------------------ Cannot connect to http://tah112/reportserver . ------------------------------ ADDITIONAL INFORMATION: The requ ...Show All

  • .NET Development TransactionScope and Jet OLEDB

    I'm doing some POC work on System.Transactions and I am having some difficulty getting it to work via OleDb with the Microsoft Jet 4.0 OleDb provider. I can use DBTransactions just fine against my test database, but if I try to use TransactionScope, I get an error message stating that the ITransactionLocal interface is not supported by the Jet OleDb provider. However, I found the following on MSDN http://support.microsoft.com/default.aspx scid=kb%3Ben-us%3B221071 that claims that Jet 4.0 does support ITransactionLocal. I am going to try against MySql, but didn't want to get to far in to this if System.Transactions only supports SQL Server (which, so far is the only DB I can get it to work against). Thanks ...Show All

©2008 Software Development Network