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

Sumesh V V

@Sumesh V V
About
Posts
14
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Com interface call takes delay in returning
    S Sumesh V V

    Hai, I am using two COM server Exe's with MFC support. In my working environment a MFC application will call the COM interface of my COM server 1. And my COM server 1 calls the interface of my COM server 2( This application has a window ). On entering the interface call of COM server 2, i had logged that information into a file. I had also logged the information while exiting that interface call from COM server 2. In COM server 1, I had put a log just after this interface call (Interface call to COM server 2 ) Issue :- While analysing the log i had found that the interface call of COM server 2 is returned ( By analysing the IN and OUT log that is logged in COM server 2 ). But the log i had put in COM server 1 just after this interface call is not logged. But if I clicked on the window of COM server 2 or MFC application. The log that is put after the interface log is logged. Can anybody help me? Regards, appoos

    Known is a drop, unknown is an ocean

    COM help c++ com sysadmin question

  • error "The stub received bad data" while calling CreateInstance function
    S Sumesh V V

    Hai friends, I am get an error "The stub received bad data" while calling CreateInstance function. But some times its working. I am using a COM Exe as server. I am using a regular dll to call the interface functions of COM Server. I am getting this error in dll.I had registered the COM Exe using regerver. OS installed : WindowsXP Service Pack 2 Platform : VC++6.0 Service Pack 6 Can anybody help me to solve? With regards, appoos

    Known is a drop, unknown is an ocean

    COM help c++ com sysadmin question

  • Error "stub received bad data" during createinstance call
    S Sumesh V V

    Hai friends, I am get an error "The stub received bad data" while calling CreateInstance call. But some times its working. Can anybody help me to solve? With regards, appoos

    Known is a drop, unknown is an ocean

    C / C++ / MFC help question

  • shut down the pc when finish...
    S Sumesh V V

    ExitWindowsEx Windows NT/2000/XP: To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege. For more information about security privileges, see Privileges. Windows 95/98/Me: ExitWindowEx does not work from a console application. HANDLE hToken; // handle to process token TOKEN_PRIVILEGES tkp; // pointer to token structure if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) { return (FALSE); } LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME, &tkp.Privileges[0].Luid); tkp.PrivilegeCount = 1; // one privilege to set tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; // Get shutdown privilege for this process. AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, (PTOKEN_PRIVILEGES) NULL, 0); Then call ExitWindowsEx function :)

    Known is a drop, unknown is an ocean

    C / C++ / MFC question

  • CDatabase's connect string
    S Sumesh V V

    I think you have to configure the proper ODBC first. And then provide the information in CDatabase::Open() function

    Known is a drop, unknown is an ocean

    C / C++ / MFC database sysadmin question

  • How to round of Decimal Number ?
    S Sumesh V V

    Try this method int nRoundFigure; nRoundFigure = (int)( 24.58 + 0.5 ); // Answer will be 25 nRoundFigure = (int)( 24.34 + 0.5 ); // Answer will be 24 Hope this will work:)

    Known is a drop, unknown is an ocean

    C / C++ / MFC tutorial question

  • best way to browse folders for file
    S Sumesh V V

    I think you can use CFileDialog class this purpose

    Known is a drop, unknown is an ocean

    C / C++ / MFC c++ regex tutorial

  • Best way to duplicate a file?
    S Sumesh V V

    Use can use CopyFile for this purpose

    Known is a drop, unknown is an ocean

    C / C++ / MFC help question

  • FileOpen Problem
    S Sumesh V V

    Use can use CStdioFile for file operations

    Known is a drop, unknown is an ocean

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

  • get path of current application C++
    S Sumesh V V

    To get complete path of the current application.... TCHAR szPath[MAX_PATH]; GetModuleFileName(AfxGetApp()->m_hInstance, szPath, MAX_PATH); Use CreateProcess() to start an application. :)

    C / C++ / MFC c++ question

  • How to restart MFC application from within itself
    S Sumesh V V

    Use can use CreateProcess() to start ur MFC application and then exit ur current exe. :)

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

  • COM exe registration ?
    S Sumesh V V

    Use can use keyword /regserver for registering com exe eg: "C:\sampleCOM.exe" /regserver

    C / C++ / MFC question com

  • How to read a file line by line in VC++
    S Sumesh V V

    I think this will work CStdioFile::ReadString :)

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

  • storing value in buf
    S Sumesh V V

    unsigned char *buf = NULL; buf = (unsigned char *) malloc( 12 ); if( buf ) { *buf=0x01; *(buf+1)=0x02; *(buf+2)=0x03; *(buf+3)=0x04; *(buf+4)=NULL; for(int k=0 ; buf[k] != NULL; k++) { printf("0x%.2x ",buf[k]); } free( buf ); } I think this will work for u.:)

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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