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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

Siva Sankar Koyi

@Siva Sankar Koyi
About
Posts
17
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ATL COM object..
    S Siva Sankar Koyi

    Yes..I want my component should be support two interfaces, can I do with wizard..in ATL.. Thanks, Siva

    COM c++ com question

  • ATL COM object..
    S Siva Sankar Koyi

    Hi, Thanks for your info. Again if I right click and select "Implement interface" option it is asking Type Library info. I don't have any type libray stuff. But my question is very simple. Just I create a simple ATL object using wizard ( Simple object option ) let say it as "CMyATLObj" for this I gave interface "IMyATLObj". Now my component is ready. Just I want to add new Interface "IMyATLObj2" and implementaiton I want to porive in same object. Bottom line is my ATL object is going to inherit from two interfaces. is ther any way to do this by wizard or I need to edit all the files manually. Thanks, Siva

    COM c++ com question

  • ATL COM object..
    S Siva Sankar Koyi

    Hi Laxman, Thanks for your reply, think you are not clear with the question, I dont want to add new class for my new Interface. I will just explain with example. My ATL class is "TestATLClassIX" which is inheriting IX and on same class I want to implemnet inter face "IY". I dont want to create a new class and derive from IY , again it goes to other ATL object. class TestATLClassIX : public IX, public IY { } This is posible through wizard ?? Thanks, Siva

    COM c++ com question

  • ATL COM object..
    S Siva Sankar Koyi

    Hi, I have the COM object "MyObj" which is inheriting from Interface "IX". This I can simply add "ATL simple object" through wizard. My qestion is I want to add one more Interface "IY" to the same object. This is posible thorugh wizard or do I need to add all the stuff manually ?? Thanks & Regards, Siva

    COM c++ com question

  • ATL Exe server..
    S Siva Sankar Koyi

    Hi, I just creted the Exe component and one obect using ATL Wizard, and try to call that obects which gives just message box. But I am getting the error "No such interface supported", could any body give the resolution for this. Calling code : ITempObj *pIExeObj = NULL; hr = CoCreateInstance(CLSID_TempObj, NULL, CLSCTX_LOCAL_SERVER, IID_ITempObj,(void**)&pIExeObj); Thanks & Regards, Siva

    COM c++ sysadmin help

  • Question on "InitInstance" method...
    S Siva Sankar Koyi

    Following is the code from MFC frame work, if I call "pThread->InitInstance()" method application is calling CWinApp->InitInsatnce() method, CWinThread is super class of CWinApp when I call with super class object "InitInsatnce" method it should call CWinThread:InitInstance method, how it is going to sub class, can any body explain to me thanks, Siva --------------------------------------------------------------------- int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { ASSERT(hPrevInstance == NULL); int nReturnCode = -1; CWinThread* pThread = AfxGetThread(); CWinApp* pApp = AfxGetApp(); // AFX internal initialization if (!AfxWinInit(hInstance, hPrevInstance, lpCmdLine, nCmdShow)) goto InitFailure; // App global initializations (rare) if (pApp != NULL && !pApp->InitApplication()) goto InitFailure; // Perform specific initializations if (pThread->InitInstance()) { if (pThread->m_pMainWnd != NULL) { TRACE0("Warning: Destroying non-NULL m_pMainWnd\n"); pThread->m_pMainWnd->DestroyWindow(); } nReturnCode = pThread->ExitInstance(); goto InitFailure; } nReturnCode = pThread->Run(); InitFailure: #ifdef _DEBUG // Check for missing AfxLockTempMap calls if (AfxGetModuleThreadState()->m_nTempMapLock != 0) { TRACE1("Warning: Temp map lock count non-zero (%ld).\n", AfxGetModuleThreadState()->m_nTempMapLock); } AfxLockTempMaps(); AfxUnlockTempMaps(-1); #endif AfxWinTerm(); return nReturnCode; } ---------------------------------------------------------------------------------

    C / C++ / MFC c++ question

  • My "Start" Menu bar is missing very often..
    S Siva Sankar Koyi

    Hi, I am not getting any error, Only problem is I am not able to see the Start Menu task bar..So I am not able to click Start menu with mouse or selecting any other items on task bar. By pressing windows button or Ctrl + Esc or Alt + Tab I can able to work. Thanks, Siva

    System Admin help

  • My "Start" Menu bar is missing very often..
    S Siva Sankar Koyi

    Hi, When I click ( Ctrl + Esc ) asusual it is showing the Start Menu Items, Only problem is I am not able to see the Start Menu task bar..So I am not able to click Start menu with mouse or selecting any other items on task bar. By pressing windows button or Ctrl + Esc or Alt + Tab I can able to work. Thanks, Siva

    System Admin help

  • My "Start" Menu bar is missing very often..
    S Siva Sankar Koyi

    Hi, I have WindowsXP Professional 2002 installe my system, I am facing the problem like My saart meny bar is missing very often and if I restart machine only I will able to get back. But I can able to view applications by Alt + Tab button. Can any body give solution for this, Thanks & Regards, Siva

    System Admin help

  • MFC Program..
    S Siva Sankar Koyi

    Hi, I have my MFC wizard generated applicaiton (TestPro), one global object is created with name CTestProApp theAPP, This constructir invokes ( CWinApp::CWinApp), from here how the control flows.. From here how will call my progam ( CTestProApp->InistInstance, run..etc) methods, b'coz I did't find any of the methods are calling from CWinApp constructor. Code for CWinApp constructor: Could any body explain code level how it works, ---------------------------------------------------------------- CWinApp::CWinApp(LPCTSTR lpszAppName) { if (lpszAppName != NULL) m_pszAppName = _tcsdup(lpszAppName); else m_pszAppName = NULL; // initialize CWinThread state AFX_MODULE_STATE* pModuleState = _AFX_CMDTARGET_GETSTATE(); AFX_MODULE_THREAD_STATE* pThreadState = pModuleState->m_thread; ASSERT(AfxGetThread() == NULL); pThreadState->m_pCurrentWinThread = this; ASSERT(AfxGetThread() == this); m_hThread = ::GetCurrentThread(); m_nThreadID = ::GetCurrentThreadId(); // initialize CWinApp state ASSERT(afxCurrentWinApp == NULL); // only one CWinApp object please pModuleState->m_pCurrentWinApp = this; ASSERT(AfxGetApp() == this); // in non-running state until WinMain m_hInstance = NULL; m_pszHelpFilePath = NULL; m_pszProfileName = NULL; m_pszRegistryKey = NULL; m_pszExeName = NULL; m_pRecentFileList = NULL; m_pDocManager = NULL; m_atomApp = m_atomSystemTopic = NULL; m_lpCmdLine = NULL; m_pCmdInfo = NULL; // initialize wait cursor state m_nWaitCursorCount = 0; m_hcurWaitCursorRestore = NULL; // initialize current printer state m_hDevMode = NULL; m_hDevNames = NULL; m_nNumPreviewPages = 0; // not specified (defaults to 1) // initialize DAO state m_lpfnDaoTerm = NULL; // will be set if AfxDaoInit called // other initialization m_bHelpMode = FALSE; m_nSafetyPoolSize = 512; // default size } --------------------------------------------------------------------------- Thanks Siva

    C / C++ / MFC c++

  • Difference between VC++ and .NET (VB.NET, ASP.NET, and C#
    S Siva Sankar Koyi

    Hi, There are tons of differences between (vc++) & (VB.net,asp.net). I just give you the overview. VC++ purely works with Pointers. (ActiveX, OLE, COM, DCOM, ADO, DAO) --- these are the concepts you can implement with VB or VC. again that is purely depends on applicaitons type. VC particularly desinged for C++ development enhancements and if the same applicaiton developed in VB and VC, performance of VC program will pretty fast. People feel it is difficult to work on pointers, so generally they choose VB. Each VB.net and VC has got their own advantages and disadvantages. To choose between these purely based on your application type. Thanks & Regards, Siva Koyi

    C / C++ / MFC com csharp c++ asp-net

  • Windows Message Map Question..
    S Siva Sankar Koyi

    Hi, I have a fundamental doubt on Windows messaging structure.. how GetMessage & Peek message differs ? Thanks & Regards, Siva

    C / C++ / MFC question

  • COM Component...
    S Siva Sankar Koyi

    I have a fundamental component.. Suppose if I developed a ATL componet(DLL)and If I want to release to the client what should be given to the client how the client know the CLSID and IID of this component. If I am not wrong I should deliver to the client DLL, TLB. could anybody clarify me this thanks Siva

    COM com c++ announcement

  • How In-Process component(DLL) share by no. of clients....
    S Siva Sankar Koyi

    Hi Biswa, Thanks for your reply, Suppose if Client1.exe calls DLL it will load in to Client1.exe process, same will happen if Client2.exe calls the same DLL. As per your reply DLL will be loaded in some common place, Which process DLL actually loads, if this is different than Client1.exe,Client2.exe process then marshalling is requied to call those DLL methods... As conclusion DLL should be loaded "Client1.exe" and "Client2.exe" processes,if not, could you please clarify me how this will be handled?? Thanks, Siva

    COM com performance question

  • Remote COM Access
    S Siva Sankar Koyi

    Need bit clarification.. How did you access the DLL from Remote machine, Did you run as a Surrogate process in Remote server ?? or you registered(copied) the source DLL to client machine.. Thanks, Siva Sankar

    COM help com sysadmin question

  • Remote COM Access
    S Siva Sankar Koyi

    Could you please try by registring the Proxy/Stub stuff on both machines... Thanks & Regars, Siva

    COM help com sysadmin question

  • How In-Process component(DLL) share by no. of clients....
    S Siva Sankar Koyi

    Hi, Generally In-Process Component(DLL) will be loaded in to client Process(EXE),so that marshaling is not requied between your client call and DLL. I Have reffered many books, the DLL loads one place and it is shared by number of process this is how memory will be saved with DLL concept. But in COM, each client process it should load. how this situation will be handled ( means how the COM DLL will be called by number of Clients)?? could any body clarify me??? Thanks & Regards, Siva Sankar

    COM com performance 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