Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sharkmouse

@sharkmouse
About
Posts
27
Topics
18
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to format my xml file?
    S sharkmouse

    can you give me a simple example?

    C / C++ / MFC help tutorial xml question

  • how to format my xml file?
    S sharkmouse

    yes,that maybe ok.but how to control the layers,such like this, should i compute the tab numbers about each line? if i want to format the xml like this,what can i do? that is if the node is the leaf node,do not add a new line? is that possible?

    C / C++ / MFC help tutorial xml question

  • how to format my xml file?
    S sharkmouse

    i use the msxml lib write a xml,but have such a problem,that is i want to the file that open by notepad looks like the open by ie which has the layer and tabbed space, for example: my file want to look like below in notepad: how to solve the problem?who can help me ,i tried some method but can not solve so well.

    C / C++ / MFC help tutorial xml question

  • How to uninstall a service when it is stopped?
    S sharkmouse

    you can download a sample service from the link: http://www.codeproject.com/system/cntservice.asp

    C / C++ / MFC question windows-admin help tutorial

  • How to uninstall a service when it is stopped?
    S sharkmouse

    everybody can download some sample code from here,and tried,almost have the problem.

    C / C++ / MFC question windows-admin help tutorial

  • How to uninstall a service when it is stopped?
    S sharkmouse

    the code is below,all code i found to uninstall service like this: void CService::UnInstallService(TCHAR *tcServiceName) { SC_HANDLE schService; SC_HANDLE schSCManager; if(lstrlen(tcServiceName)<=0) return; schSCManager = OpenSCManager( NULL, // machine (NULL == local) NULL, // database (NULL == default) SC_MANAGER_ALL_ACCESS // access required ); if ( schSCManager ) { schService = OpenService(schSCManager, tcServiceName, SERVICE_ALL_ACCESS); if (schService) { // try to stop the service if ( ControlService( schService, SERVICE_CONTROL_STOP, &serviceStatus ) ) { _tprintf(TEXT("Stopping %s."), tcServiceName); Sleep( 1000 ); while( QueryServiceStatus( schService, &serviceStatus ) ) { if ( serviceStatus.dwCurrentState == SERVICE_STOP_PENDING ) { _tprintf(TEXT(".")); Sleep( 1000 ); } else break; } if ( serviceStatus.dwCurrentState == SERVICE_STOPPED ) _tprintf(TEXT("\n%s stopped.\n"), tcServiceName ); else _tprintf(TEXT("\n%s failed to stop.\n"), tcServiceName ); } // now remove the service if( DeleteService(schService) ) _tprintf(TEXT("%s removed.\n"), tcServiceName ); else _tprintf(TEXT("DeleteService failed - %s\n"), GetLastErrorText(szErr,256)); CloseServiceHandle(schService); } else _tprintf(TEXT("OpenService failed - %s\n"), GetLastErrorText(szErr,256)); CloseServiceHandle(schSCManager); } else _tprintf(TEXT("OpenSCManager failed - %s\n"), GetLastErrorText(szErr,256)); } someone can help me or give me the reason?

    C / C++ / MFC question windows-admin help tutorial

  • How to uninstall a service when it is stopped?
    S sharkmouse

    nobody knows why?

    C / C++ / MFC question windows-admin help tutorial

  • How to uninstall a service when it is stopped?
    S sharkmouse

    hello, i write a service and it can run well,but i have found a problem,that is if the service is running i can uninstall it successfully(stop it ,delete the record in the service list and registry),but if the service is already stoppped,then i can not delete the service(the record is still in the service list and the registry),and the service labeld disabled and the service can not be installed again after reboot the machine,what is the matter?what can i do to solve this problem?

    C / C++ / MFC question windows-admin help tutorial

  • How to use the result programed in visual C# in my visual C++ project?
    S sharkmouse

    hello, i find the visual c# has some feature that c++ does not,and i want to use the visual c# write something that can be used in my visual c++ project,does this possible?and what can i do? maybe is the dll or com dll,but i do not know how to?

    C# c++ csharp com tutorial question

  • how to capture the DocumentBeforePrint Event in my ActiveX of Word written in VC?
    S sharkmouse

    i write a activex and want to use it in word,and i want to capture the DocumentBeforePrint event so that i can prevent the word doc to be printed.what can i do?

    C / C++ / MFC com tutorial question

  • what is the matter in atl com about popup menu?
    S sharkmouse

    just a com dll.

    ATL / WTL / STL question c++ com help

  • what is the matter in atl com about popup menu?
    S sharkmouse

    hello, i write a atl com,and use the popup menu,and the menu can show rightly,and i add the menu command function,but when i click one menu item,the function does not run ,what is the matter? i add the menu in the oncontextmenu,who can help me? where can i upload my code? thanks.

    ATL / WTL / STL question c++ com help

  • How to control word before print?
    S sharkmouse

    hello, i write a control of word,and want to control the print of the word doc,and i learn can capture the beforeprint event of the word app object,but i do not know how to do it in visual c++,who can help me? thanks.

    C / C++ / MFC c++ help tutorial question

  • About Word Addin of adding a bmp?
    S sharkmouse

    hello, i use the ATl write a word2000 addin,and add a button into the word toolbars,and now i want to add a picture into the word document when i hit the button,this picture can be a bmp or jpeg.after i insert the picture i can drag it to a proper location. i tried a long time,but in vain,who can help me?

    C / C++ / MFC c++ help question

  • About Word Addin of adding a bmp?
    S sharkmouse

    hello, i use the ATl write a word2000 addin,and add a button into the word toolbars,and now i want to add a picture into the word document when i hit the button,this picture can be a bmp or jpeg.after i insert the picture i can drag it to a proper location. i tried a long time,but in vain,who can help me?

    COM c++ help question

  • About Word Addin of adding a bmp?
    S sharkmouse

    hello, i use the ATl write a word2000 addin,and add a button into the word toolbars,and now i want to add a picture into the word document when i hit the button,this picture can be a bmp or jpeg.after i insert the picture i can drag it to a proper location. i tried a long time,but in vain,who can help me?

    ATL / WTL / STL c++ help question

  • Problem about Drag in TreeCtrl?
    S sharkmouse

    hello everyone, i want to use the Drag feature in my TreeCtrl,but is not normal drag in the tree,i just want to drag a leaf node of a tree to another controls,such as a edit box,just show the data of the leaf in the edit box,i have no idea about how to implement this,who can help me? thanks best regards

    C / C++ / MFC help data-structures tutorial question

  • Show Dialog in my ActiveX?
    S sharkmouse

    hello, i want to show dialog in my activex,but failed,the code is below: in the WM_CREATE map func: CDialogTest *dlg= new CDialogTest (); dlg->Create(IDD_DIALOG,NULL); dlg->ShowWindow(SW_SHOW); and i use the vc tools ole view and tested that it can popup the dialog, but i my test application,how to popup the dialog?even i use the code CActivex m_activex; m_activex.AboutBox(); to show the about dialog and i also crashed,what is the matter?please help me?

    C / C++ / MFC com question tools help tutorial

  • about the lotus addin?
    S sharkmouse

    hello, i want to write a lotus addin to monitor the email that send and receive,but i do not any information about what to do,does someone can give me some introduce to help me in starting my work? thanks

    C / C++ / MFC help question

  • how to use apihook to hide a file or directory?
    S sharkmouse

    hello, i want to use the apihook to hide a specific file or directory,not let any user to see the file and directory expect me? what can i do?

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups