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

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

rofu

Member List

lizital
keshavbs
ozhonetech
BhuttCrackSpackle
DarrenARBell
Yeshia
Kevinmac
ZardoS42
Thymen
Merryhu
Alexei_shk
DeveloperFrankie
Jon Stroh
GoodCoder
Philippe Caron
DavidLong
Sailesh Rathi
cracklestudios
Zep--
Smalldust
Only Title

rofu's Q&A profile

  • .NET Development Date Format

    Dear all, How can I format a Chinese date format to a English(United States) date format(01-Mar-06), It means how can I make a date format regardless of Computer's Regional setting Thanks you "01-Mar-06" is no the English(United States) date format. It's "03/01/2006". If you want to display format similar to "01-Mar-06" you can use the method that Hans described: DateTime.Now.ToString("dd-MMM-yy") although, specifying the en-US culture is somewhat redundant. If you simply want to display the English(US) date format use: DateTime.Now.ToString("d", System.Globalization.CultureInfo.GetCultureInfo("en-US").DateTimeFormat); ...Show All

  • Visual C++ How to trap all exceptions?

    Due to bugs in my code, users experience crashes. When this happens, they get a window saying "<MyApp> has encountered an error and must close", and offers to send a report to MS. I want to have my pgm get control when one of these errors (such as an access violation) occurs, so I can create and store my own report. How can I do this I tried _set_se_translator (complied with /EHa), but this did not work, at least when I run the pgm in the debugger. If I run the pgm without the debugger, I get a JIT debugger dialog. Have you put a try/catch block around your code in main There are a few Win32 and CRT tricks (like set_terminate_handler), but in general they are a bad idea. You can al ...Show All

  • Visual C++ how do i programmatically add a windows service?

    need to know how to do this in managed c++... something that will emulate this behavior, hopefully a bit more simply: MessageBox::Show("calling CoInit"); hresult = CoInitialize(NULL); //hresult = CoInitializeEx(NULL, COINIT_MULTITHREADED); if(hresult == S_OK || hresult == S_FALSE) { //ugh!!! because i can't get back to the goddammed guid......... //0xc5c55060, 0x0ac3, 0x11d1, 0x80, 0xa3, 0x00, 0xa0, 0x24, 0xea, 0x12, 0x1b GUID IMOBSSERVICE = { 0xc5c55060, 0x0ac3, 0x11d1, { 0x80, 0xa3, 0x00, 0xa0, 0x24, 0xea, 0x12, 0x1b } }; MessageBox::Show("creating observer32 service"); // create the service object... hresult = CoCreateInstance(IMOBSSERVICE, NULL, CLSCTX_ALL, __uuidof(IIMObserverService), (LPVOID ...Show All

  • SQL Server Service problems after SP1 upgrade

    We have an instance of SQL 2005 enterprise that was upgraded to SP1 over the past weekend. This instance has been very stable and the server hardly ever has any issues. After upgrading to SP1 a couple times a day SQL service has been terminating unexpectedly. The following events are being logged - Application Log: Event ID 17311 SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart). SQL Ev ...Show All

  • Visual C++ How to using Console::Wirte in Form

    Hi, I create a VC++ windows form application by using VC++ .Net2003, in the code, I type Console::Write("Hello World"); but i unable to see the Console appear during executing. How to display console in Windows Form Check this thread ... ...Show All

  • SQL Server Classroom SSIS training

    Can anyone recommend a live classroom environment SSIS training course Anwhere in the U.S. would be fine. Thanks, Ken You might try Symphic Technology. (Url: www.symphic.com .) They provide training out of Manhattan, NY but also do on-sites. I saw their booth at Boston TechEd a couple months ago and they looked pretty good. ...Show All

  • Windows Forms dirtychecking on datagridgridview--

    Hi, I've a 3rd party ctrl for dirtychecking. it works fine for other ctrls like textbox,label,combo etc.. But in datagridview its not working. Manually How to check if there is any datachang. which event i can use here to trap the datachanging. thanks venp--- Hi, I tried like this. private void dg_CurrentCellDirtyStateChanged( object sender, EventArgs e) { if ( this .dg.IsCurrentCellDirty) { setDirty(); } else resetDirty(); } but it gets reset only if i tabbed out of that cell or when the currentcell loose its focus. i need like, whenever i put back the original data it should get reset automatically. thanks venp-- ...Show All

  • SQL Server SQL 2005 LDAP Query Error: Msg 7321, Level 16

    Hello I am trying to run a query via tsql against ad. Below is the error I am getting. I have read the http://msdn2.microsoft.com/en-US/library/ms190803.aspx  and changed the domain but still having issues. Any help would be appreciated.   EXEC sp_addlinkedserver 'ADSI' , 'Active Directory Service Interfaces' , 'ADSDSOObject' , 'adsdatasource' GO SELECT * FROM OPENQUERY ( ADSI , 'SELECT Name, SN, ST FROM ''LDAP://ADSISrv/ OU=Users,DC=XXXXX,DC=LOCAL'' WHERE objectCategory = ''Person'' AND objectClass = ''user''' ) Msg 7321, Level 16, State 2, Line 1 An error occurred while preparing the query "SELECT Name, SN, ST FROM 'LDAP://ADSISrv/ OU=Users,DC=XXXXX,DC=LOCAL' ...Show All

  • Connected Services Framework How to Read and Update User Profile

    Please find the two scenarios: 1. If a user profile structure has more than one phone details(as shown in the below example) and more than one user profile is created with the same structure then facing problem in reading user profile for the corresponding user. 2. How can we update a user profile that contains blanknode and how in advance we can know whether a ndoe is simple node or a blanknode while updating Senario1: Reading Profile. Steps Followed: Let’s say User Profile contains user name and phone. Phone contains PhoneNumber, PhonePrefix, PhoneCountryCode, PhoneType, etc. Create two profiles with two different users but with same phone details as follows. User1: User2: < rdf:RDF xml ...Show All

  • Visual Studio Tools for Office MS Office add-in with licensed components

    Hi I wonder if I can write a MS Office add-in with VSTO that uses some third part licensed components. How the licenses will be "transfered" to the executing process (e.g. Outlook.exe) Can I use licensed components in my add-in or I have to use only the components that are shipped with Visual Studio (For example I've tried it with TxTextControl and is not working). I wonder if the reason that no one reply to this is that no one needed to use licensed third part components in an add-in or there is no way to do this ...Show All

  • Software Development for Windows Vista WorkflowInstance.Abort vs WorkflowInstance.Terminate

    What's the difference between this two actions, besides that Terminate receives a string indicating the error Abort:  You can resume an aborted workflow from the previous persistence point. Terminate: Terminated workflow cannot be resumed and it is deleted from the persistence store. Check Moustafa's blog post to understand the workflow lifecycle http://blogs.msdn.com/moustafa/archive/2006/03/02/542459.aspx ...Show All

  • .NET Development Not able to use remote config file.

    I am able to use the Activator.GetObject but not the remote config file SampleObject adServer = (SampleObject)Activator.GetObject(typeof(SampleObject), "tcp://teamsuite:1234/SampleObject"); I created a separate config file and loading that in the global.asax file via void Application_Start(object sender, EventArgs e) { //System.Runtime.Remoting.RemotingConfiguration.Configure(HttpContext.Current.Server.MapPath("Client.exe.config"), false); } The config file is: < xml version="1.0" encoding="utf-8" > <configuration> <system.runtime.remoting> <application name="HelloLibrary"> <client> <wellknown type="HelloLibrary.SampleObject ...Show All

  • .NET Development Directory creation .....

    Hai, I want to create a directory in the system localharddisk through my Web application(C# Asp.Net) . I used this coding inside the button click event. System.IO.Directory.CreateDirectory("c:\\FolderName"); While running it creates a folder successfully in my system. When i try to run this same application from another system(client), the creation process is happening in server only. I want to create the folder in that particular systems harddisk(ie,client). In What way i can implement it... Give the solution......... Thanks......................   try using javascript, by passing in the folder path to be created to the javascript function    function CreateFold ...Show All

  • SQL Server Credentials used to run this report are not stored

    Hi all, When I create a new report subscription in report manager, I got this error Credentials used to run this report are not stored any idea Thanks, Jone Thanks for your response. By the way, which name and password should I input. I tried to using ASPNET as the username (or 'sa' and the password to access sql aerver) but it failed, and gave error message bad user name or password. Thanks, jone ...Show All

  • Internet Explorer Development Windows Vista and ActiveX registration

    Hi all, I was hoping that the new Windows Vista could allow me to install our .ocx plugin on IE7 after IEInstal.exe allowed installation and it does not seem to work. I am using VS 2003 After reading http://msdn.microsoft.com/library/default.asp url=/library/en-us/IETechCol/dnwebgen/ProtectedMode.asp many times I would except the following scenario : 1- our activex is not installed 2- standard user browses a web page where our tag starts the downloading of our installer (lets call it installer.exe) 3- a prompt appears requiring administrator login and pass 4- installer.exe creates our destination folder (with low integrity level) and copy the embedded ourplugin.ocx file in the destination folder then 5 installer.exe ...Show All

©2008 Software Development Network