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
E

ERLN

@ERLN
About
Posts
39
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to add a button to the message item toolbar in outlook ?
    E ERLN

    I have outlook add-in developed using ATL C++. It has 2 button in outlook standard toolbar. it will work in all versions of outlook (outlook 2000 onwards) fine. After clicking new mail (another window will appear) there buttons not appearing. please tell the way how to add a button for that window.

    ATL / WTL / STL c++ tutorial question

  • Enumwindows hangs (freezing) application any idea?
    E ERLN

    Dialog1 ::Onok()
    {

    HWND hShareWnd = NULL;
    UpdateData();
    bDesktopShareStarted = 	!bDesktopShareStarted ;
    if(bDesktopShareStarted)
    {
    	int width = GetSystemMetrics(SM\_CXSCREEN);
    	int height = GetSystemMetrics(SM\_CYSCREEN);
    	int x = 0;
    	int y =0;
    
    	CVariableRegion VariableRgnDlg;   ////dialog 2 
    	if(VariableRgnDlg.DoModal() ==IDOK)
    	{
    	
    		hShareWnd = VariableRgnDlg.GetShareWindow();
    		width = VariableRgnDlg.GetShareWidth();
    		height = VariableRgnDlg.GetShareHeight();
    		x = VariableRgnDlg.GetShareXPosition();
    		y= VariableRgnDlg.GetShareYPosition();
    		if(m\_bEnableAVIRecording)
    			EnableAVIRecording();
    		else
    			EnableAVIRecording(FALSE);
    		//Session
    		ZeroMemory(szBuffer,sizeof(szBuffer));
    		GetDlgItemText(IDC\_EDIT\_CODE,szBuffer,sizeof(szBuffer));
    		lLength = \_tcslen(szBuffer) + 1 ; //reusing the same variable
    		SetRegInfo(LASTUSED\_SESSION,szBuffer,REG\_SZ,&lLength);
    		
    		
    		
    		
    		
    		//Session pass
    		ZeroMemory(szBuffer,sizeof(szBuffer));
    		GetDlgItemText(IDC\_EDIT\_PASS,szBuffer,sizeof(szBuffer));
    		lLength = \_tcslen(szBuffer); //reusing the same variable
    		SetRegInfo(LASTUSED\_SESSION\_PASS,szBuffer,REG\_SZ,&lLength);
    		
    		
    		
    		
    		//Client Name
    		ZeroMemory(szBuffer,sizeof(szBuffer));
    		GetDlgItemText(IDC\_EDIT\_CLIENT\_NAME,szBuffer,sizeof(szBuffer));
    		lLength = \_tcslen(szBuffer); //reusing the same variable
    		SetRegInfo(LASTUSED\_USERNAME,szBuffer,REG\_SZ,&lLength);
    		
    		
    					
    		
    		//Record AVI 
    		lLength = sizeof(m\_bEnableAVIRecording); //reusing the same variable
    		m\_bEnableAVIRecording = IsDlgButtonChecked(IDC\_CHECK\_AVI\_REC);
    		SetRegInfo(LASTOPTION\_AVI,(LPTSTR)&m\_bEnableAVIRecording,REG\_DWORD,&lLength);
    		
    		
    		StartDesktopShare(hShareWnd,width,height,x,y,GetDlgItem(IDC\_TARGETWND)->m\_hWnd);
    		GetDlgItem(IDC\_BUTTON\_DSK\_SHARE)->SetWindowText(TEXT("Stop Share"));
    	
    	}
    	else
    	{
    		StopDesktopShare();
    		GetDlgItem(IDC\_BUTTON\_DSK\_SHARE)->SetWindowText(TEXT("Start Share"));
    		bDesktopShareStarted = 	!bDesktopShareStarted ;
    	}
    
    
    }
    else
    {
    	StopDesktopShare();
    	GetDlgItem(IDC\_BUTTON\_DSK\_SHARE)->SetWindowText(TEXT("Start Share"));
    }
    

    }

    dialog 2 code//
    in dialog 2 on button click this function is called.
    long CVariableRegion::GetWindowsList()
    {
    HWND hListBox = NULL;
    TCHAR sWindowCount[100] = {0};
    int nWindowsCount = 0;
    CWnd *hDeskopWnd = NULL;
    TCHAR szWindowCountTitle[MAX_PATH]={0};

    hListBox = GetDlgItem(IDC\_WIN\_LIST)-&g
    
    C / C++ / MFC c++ json question

  • Enumwindows hangs (freezing) application any idea?
    E ERLN

    Hi I have using MFC dialog application. in that it is calling another dialog. in 2nd dialog i am enumerating the windows using enumwindows api. after calling the enumwindows application is freezing or hanging. any idea about this.

    C / C++ / MFC c++ json question

  • Shell Extension - Column Handler - for Vista ?
    E ERLN

    I have created many shell Extension (specially Column handlers ) using the sample from Codeproject articles. Fine. Everything uses the icolumnprovider Interface. This interface has been deprecated from windows Vista onwards. Then How shall I my shell extension make to work on vista onwards. Is any ready sample for that .

    Windows API linux question

  • ActiveX Control - Visual C++ 6.0 to Visual Studio 2008 (C++ ) - Urgent
    E ERLN

    In Visual C++ 6.0 I have two ActiveX control project. One ActiveX control is dependent on another ActiveX control. For that First Project is compiled succesfully and then in second project we used Project->Add To Project->Components and Controls-> then point to compiled first project ActiveX control. Then It will insert .h and .cpp files to Second Project. The same how to do in Visual Studio 2008. Please help regarding this

    C / C++ / MFC c++ csharp visual-studio com help

  • Mixing C++ and .Net at runtime -- is it possible ?
    E ERLN

    Sorry for confustions. I have MFC Application. It will works fine with .Net Installed machine as well as Without .Net installaed machines. Now My need is. I want to create a application like the following MFC Application has to work on Machines not having .net (current working) In simple I need to use .net framework based code at .net installed machine otherwise i need to non .net based code it is at run time. how can i create a executable like that.

    C / C++ / MFC c++ csharp dotnet question

  • Mixing C++ and .Net at runtime -- is it possible ?
    E ERLN

    I have written application on Visual C++ . It is mainly MFC Application. I can code .net also(with respect to C++ ) At runtime if .net framework is installed on target machine my MFC application has act as MFC .net application otherwise it act as Simple MFC application. Is it possible ? ( I don`t want to compile with .net because many of our customers not dependent on .net ) Expecting Suggestions

    C / C++ / MFC c++ csharp dotnet question

  • Visual Studio 2008 Setup Project Question ?
    E ERLN

    I have written Installation using Visual Studio 2008 Setup project. I have created a GUI for installing specific product (using check box dialog). but I need the same gui for uninstallation also. Means if unchecked that product should be uninstalled. all other products should remain same. any suggestion how to do it in Visual Studio 2008 setup project.I used only C++ base installation. No .net dependencies.

    C / C++ / MFC csharp question c++ visual-studio tutorial

  • MSI Migration --- issues
    E ERLN

    I have application setup that is written in Installshield for Visual C+ 6.0. It has some scripts.Scripts is involved to call the dll functions(dll functions are written by us) that dll is also a part of product setup. Now We need to convert this setup to MSI. How to convert ? how to convert these scripts to msi callable scripts (means how to call the dll functions in msi setup ) Please advice or suggest more on this.

    C / C++ / MFC tutorial question workspace

  • How to find Number of processor or Cores ?
    E ERLN

    ok fine. Is there anyway to find number of processor and number of cores using any freeware library. I want to use it from windows 2000 onwards. Give a good solution

    C / C++ / MFC tutorial question

  • How to find Number of processor or Cores ?
    E ERLN

    good. How CPU-z software is telling core is 2 process is 1 on Windows XP ? ( CPU-Z)[^]

    C / C++ / MFC tutorial question

  • How to find Number of processor or Cores ?
    E ERLN

    So There is no way for Windows XP . is it ?

    C / C++ / MFC tutorial question

  • How to find Number of processor or Cores ?
    E ERLN

    fine. GetSystemInfo is giving number of processor is 2 for Pentium D. But I have only one processor but 2 cores. Is there any way to find number processor and number of cores.?

    C / C++ / MFC tutorial question

  • How to find Number of processor or Cores ?
    E ERLN

    How To Find Number of processors Present in the CPU ? How to Find Number of Cores Present in the CPU ? Is any possiblity to find Number Cores and Number of Processors ? (Is any difference ) ?

    C / C++ / MFC tutorial question

  • MTOM without .Net framework how ?
    E ERLN

    Hi! I have ATL Webservice (SOAP or DIME Webservice ) already hosted on IIS. IT is perfectly working from past 10 years. no issues. Already we are using SOAP SDK on client side. Now We need to use MTOM on client. Actually All our components are in C++ with out .net framework. I need a solution to use MTOM on C++ without .net framework. Please suggest me

    C / C++ / MFC c++ csharp dotnet wcf windows-admin

  • Integrated Windows Authentication or NTLM How ?
    E ERLN

    How to use Integrated Windows Authentication Method in VC++/MFC Applications ?

    C / C++ / MFC c++ security tutorial question

  • How to connect a jboss webservice using win32 or MFC ?
    E ERLN

    I have jboss webservice. That has numerous methods. I need to use those functions for our official project. Our coding platform is C++ on visual C++ 6.0 environment. How shall i connect the jboss webservice using win32 or C++/MFC based technologies. If you have any working sample please provide me.

    C / C++ / MFC c++ tutorial question workspace

  • C++ client for ATL web service without Soap?
    E ERLN

    I have ATL web service Written in C++ long back. We have already C++ web client using soap toolkit. Now we need C++ web client Without Soap . What are the solutions ? Is it possible without .Net interface. That is it should work with old Vc++ 6.0 IDE also.

    ATL / WTL / STL c++ csharp visual-studio wcf xml

  • Office toolbar item - Generic
    E ERLN

    Hi ! I have using the following code for creating the toolbar button for office 2000 to office 2003. It is generic. So I am using this code. Actually I need 2 buttons in 1 single toolbar. how to do that. Also Help to how to add the same in file menu item. and also it should work office 2000 to office 2003. Give a solution for this. also following code object model is like this commandbars("standard").controls.add (,,,,,) how to change the code refer like this commandbars(0).controls(2).add. I have tried to add "Index as property" but no use

    STDMETHODIMP CSampleAddin::AddToolBarButton(LPOLESTR lpToolBarName,LPOLESTR lpButtonName,LPOLESTR lpToolTip,LPOLESTR lpTag,long lFaceId,long lBitmapResource)
    {
    TCHAR szTest[MAX_PATH]={0};
    // Add a new CommandBar and Button using Automation...
    VARIANT vtCmdBars; VariantInit(&vtCmdBars);
    VARIANT vtCmdBar; VariantInit(&vtCmdBar);
    VARIANT vtCtrls; VariantInit(&vtCtrls);
    VARIANT vtButton; VariantInit(&vtButton);
    VARIANT vtParam; VariantInit(&vtParam);
    VARIANT vtButton1; VariantInit(&vtButton1);
    VARIANT vtExp; VariantInit(&vtExp);
    HRESULT hr = S_FALSE;

    ZeroMemory(szTest,sizeof(szTest));
    hr = GetProperty(m\_pParentApp, L"CommandBars", &vtCmdBars);
    if (FAILED(hr)) goto cleanup;
    

    // Look for our command bar -- this prevents us from making a new one
    // if the old one was never deleted.
    vtParam.vt = VT_BSTR; vtParam.bstrVal = ::SysAllocString(lpToolBarName);
    hr = CallMethod(vtCmdBars.pdispVal, L"Item", &vtCmdBar, 1, &vtParam);
    VariantClear(&vtParam);

    // If we can't find it, make a new bar...
    if (FAILED(hr)) {
    vtParam.vt = VT_BSTR; vtParam.bstrVal = ::SysAllocString(lpToolBarName);
    hr = CallMethod(vtCmdBars.pdispVal, L"Add", &vtCmdBar, 1, &vtParam);
    VariantClear(&vtParam);
    if (FAILED(hr)) goto cleanup;
    }

    // Store a reference...
    m_pOurCmdBar[nCount] = vtCmdBar.pdispVal;
    m_pOurCmdBar[nCount]->AddRef();

    hr = GetProperty(m\_pOurCmdBar\[nCount\], L"Controls", &vtCtrls);
    if (FAILED(hr)) goto cleanup;
    

    // Grab our button to sink events...
    vtParam.vt = VT_BSTR; vtParam.bstrVal = ::SysAllocString(lpButtonName);
    hr = CallMethod(vtCtrls.pdispVal, L"Item", &vtButton, 1, &vtParam);
    VariantClear(&vtParam);

    \_stprintf(szTest,TEXT("Value of hr at button item is (Item):  %X"),hr);
    OutputDebugString(szTest);
    

    // If we can't find it, make a new button...
    if (FAILED(hr))
    {

    C / C++ / MFC database testing tools help tutorial

  • Memory Usage of Application.
    E ERLN

    I have client/Server Application . It is perfectly working. no issues. memory leaks also very less. because it checked with memory checking tool like boundschecker etc. But In task manager my application is eating too much of memory usage. What is the reason ? Is still memory leak in my applicaitonor any issue with my applicaiton? Please give the solution for this.

    C / C++ / MFC question css sysadmin performance help
  • Login

  • Don't have an account? Register

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