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
A

Akt_4_U

@Akt_4_U
About
Posts
61
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Exposing interfaces of a C# executable(.EXE) application
    A Akt_4_U

    Is there any method to expose COM interface from C# executable(EXE)? All examples I have seen were to expose COM interface from C# class library. Please help.

    prvn

    C# csharp com help question

  • Exposing interfaces of a C# executable(.EXE) application
    A Akt_4_U

    what happens if my client applications are not using .NET?

    prvn

    C# csharp com help question

  • Exposing interfaces of a C# executable(.EXE) application
    A Akt_4_U

    Hi All, I am new to .NET platform. I have a C#.NET executable(.EXE) application. I would like to expose some interfaces for my client applications. What are the possible options for doing this? Some of my ideas are.. 1. Exposing interfaces via COM Interop 2. Using .NET remoting Please help.

    prvn

    C# csharp com help question

  • Convert character to other character [modified]
    A Akt_4_U

    Sorry. No :(

    prvn

    C / C++ / MFC tutorial help

  • Convert character to other character [modified]
    A Akt_4_U

    I think there is no easy method to do this. You have to store each language strings separately and use them based on the language selection from menu.

    prvn

    C / C++ / MFC tutorial help

  • Memory leak when return char* from DLL
    A Akt_4_U

    When returning char* as return value, you must allocate memory in heap(using malloc or new), from your DLL and deallocate this memory(free or delete) after usage from the calling applciation.

    prvn

    C / C++ / MFC

  • CRunTimeClass with parameters
    A Akt_4_U

    RUNTIME_CLASS macro will only take class name as parameter.

    prvn

    C / C++ / MFC question

  • convert
    A Akt_4_U

    The m_sTest is a UNICODE string. So if you want to convert this UNICODE string to char* use WideCharToMultiBye API or use CRT function wcstombs.

    prvn

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

  • WM_WINDOWPOSCHANING??
    A Akt_4_U

    I think Windows will send WM_WINDOWPOSCHANING message for all type of windows. There is no exception in this case.

    prvn

    C / C++ / MFC question

  • MultiByteToWideChar crashes out on longer strings [modified]
    A Akt_4_U

    How are you calculating this nBlockLength?

    prvn

    C / C++ / MFC c++ csharp visual-studio testing debugging

  • Multithreading C++
    A Akt_4_U

    http://www.devarticles.com/c/a/Cplusplus/Multithreading-in-C/ http://msdn.microsoft.com/en-us/library/975t8ks0(VS.80).aspx

    akt

    C / C++ / MFC c++

  • SDI application
    A Akt_4_U

    use some logic like this. CString csText; GetWindowText(csText); SetWidnowText( csText+csNewString);

    akt

    C / C++ / MFC help data-structures

  • retrieve only values from ini file...
    A Akt_4_U

    Use GetPrivateProfileString

    akt

    C / C++ / MFC

  • CString to a hex
    A Akt_4_U

    use strtol with 16 as base.

    akt

    C / C++ / MFC tutorial help

  • Function Address of CWinthread::Create
    A Akt_4_U

    The below link will help you. http://www.codeproject.com/KB/threads/extended\_thread.aspx

    akt

    C / C++ / MFC question

  • Unable to control mouse events
    A Akt_4_U

    Please check the last parameter of SendInput(); It requires the size of structure INPUT. For this you have call sizeof(INPUT). In your code, you have taken sizeof(i). i means LPINPUT. As i said earlier LPINPUT is a pointer. So sizeof(i) will return the size of a pointer variable only(4 bytes).

    akt

    C / C++ / MFC hardware help discussion

  • Unable to control mouse events
    A Akt_4_U

    LPINPUT i; LPINPUT means pointer to structure INPUT. Here i is of type LPINPUT. You have to allocate memory for this before you use this variable. ie LPINPUT i = new INPUT;

    akt

    C / C++ / MFC hardware help discussion

  • Exit an Application
    A Akt_4_U

    If your target applciation has a window, you can find your target application using FindWidnow() API. This will return the window handle of the target application. Using that handle you can send WM_CLOSE message. Ex: HWND hWnd = ::FindWindow( NULL, "TargetAppName" ); ::SendMessage( hWnd, WM_CLOSE );

    akt

    C / C++ / MFC help

  • Writing 8-bit grayscale bitmap data
    A Akt_4_U

    Which value did u take? R G and B from color map?

    akt

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

  • Writing 8-bit grayscale bitmap data
    A Akt_4_U

    Hope you have read the ColorMap completely from source bitmap. That is you have to allocate enough memory for reading the complete ColorMap(256 colors) for source image. The following code will do this. BYTE* pbyThumbImage // This is your source bitmap buffer. const ULONG COLORMAP_START_OFFSET = sizeof( BITMAPFILEHEADER ) + sizeof( BITMAPINFOHEADER ); // Color map starts after Bitmap file header and Bitmap info header. UINT uColorMapSize = 256 * sizeof( RGBQUAD ); pBmpInfoHdr = reinterpret_cast( GlobalAllocPtr( GHND, sizeof( BITMAPINFOHEADER ) + uColorMapSize )); memcpy( pBmpInfoHdr->bmiColors, ( pbyThumbImage + COLORMAP_START_OFFSET ), uColorMapSize ); // Now complete colormap information is within your pBmpInfoHdr->bmiColors. Now you can write this colormap to destination file using fwrite with input buffer as pBmpInfoHdr->bmiColors and size to be written as uColorMapSize.

    akt

    C / C++ / MFC question graphics data-structures tutorial
  • Login

  • Don't have an account? Register

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