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
_

__Cerb

@__Cerb
About
Posts
41
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Accelerators in a Dialog application
    _ __Cerb

    Thanks a lot man

    C / C++ / MFC help

  • Accelerators in a Dialog application
    _ __Cerb

    Hmm, can you give me an example please? I'm kinda new... CTestDlg::CTestDlg(CWnd* pParent /*=NULL*/) : CDialog(CTestDlg::IDD, pParent) { //{{AFX_DATA_INIT(CD2HackKitDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } thanks

    C / C++ / MFC help

  • Accelerators in a Dialog application
    _ __Cerb

    I've added an accelerator, then Ctrl+W then selected my main Dlg class. However, when I run my program and press the keys, the accelerator doesn't work... thanks for help -Mike

    C / C++ / MFC help

  • Accessing distant database from a program?
    _ __Cerb

    How would that be possible? I would like to access a MySQL database on my site from a program. Thanks. Michael

    C / C++ / MFC database mysql question

  • Char* -> DWORD conversion
    _ __Cerb

    Didn't work :( Actually I have a string like " b7333109 " and I wanna convert it to a dword

    C / C++ / MFC help

  • Char* -> DWORD conversion
    _ __Cerb

    I'd need help on converting a char* to a dword OR a byte[4] thanks! :-)

    C / C++ / MFC help

  • Problem with parsing a BYTE*
    _ __Cerb

    I didn't know that Thanks a lot :-)

    C / C++ / MFC json help question

  • Problem with parsing a BYTE*
    _ __Cerb

    Here's my code int ParsePacket(BYTE *aPacket,short int iStartPos); void main() { BYTE aPacket[] = {0x59,0x89,0x59,0x59,0x23,0x59,0x59,0x59,0x89,0x59,0x00,0x54,0x65}; int l = ParsePacket(aPacket,5); printf("%d\n",l system("pause"); } int ParsePacket(BYTE *aPacket,short int iStartPos) { bool bFound = false; int iPos = 0; for (int i = 0;i < (sizeof(aPacket) - 1); i++) { printf("Test: %x\n",aPacket[i]); } return iPos; } This piece of code should output twelve values ( sizeof(aPacket) = 13 ), but instead it only outputs the first three bytes of aPacket... why?

    C / C++ / MFC json help question

  • Concatenation of two LPSTR
    _ __Cerb

    Well, I have my string, let's say LPSTR myString = "up?"; I'd want to add " Whats " in front of it, just like LPSTR myString = "up?"; myString = "Whats " + myString; I get an error. Then I tried doing: LPSTR myString = "up?"; sprintf(myString,"Whats %s",myString); This also doesn't work. Any help please? Thanks ~Mike

    C / C++ / MFC help question

  • ReadProcessMemory
    _ __Cerb

    Can anyone post an example of the ReadProcessMemory function in action, let's say I want it to read at offset 0x6FB74910 Thanks, Michael

    C / C++ / MFC tutorial

  • CImage and atlimage.h?
    _ __Cerb

    Ok, I read about CImage on MSDN, and I have to include atlimage.h in StdAfx.h I did it, but it says there is no such file. Where can I download it and where must I store the file (which directory)? Thanks, ~Michael

    C / C++ / MFC question

  • Switching between applications
    _ __Cerb

    HWND hwnd = ::FindWindow(NULL,"Program name"); ::PostMessage(hwnd,WM_SETFOCUS,0,0); This should do it. ~Michael

    C / C++ / MFC c++ question

  • Getting a pixel color from a JPG image
    _ __Cerb

    ok, I have my .jpg image, let's call it "picture.jpg" Now, I want to get a pixel color from picture.jpg at coordinates (50,80) How could I do this? Thanks a lot Michael

    C / C++ / MFC question

  • how do i prevent a property sheet from receiving focus?
    _ __Cerb

    Can you make it read-only or disabled?

    C / C++ / MFC question

  • Windows Messages
    _ __Cerb

    Found it!!! Thanks a lot man, without that keybd_event function I couldn't have guessed it. Thanks!! ~Michael

    C / C++ / MFC question

  • Windows Messages
    _ __Cerb

    Thanks a lot, just a little more question about it. I want to simulate that printscreen key in a specific window that is minimized... I've tried adding ' :: ' in front of the keybd_event function, however it still does not take any HWND parameter....

    C / C++ / MFC question

  • Windows Messages
    _ __Cerb

    How would it be possible to send a "Print Screen" keydown message or whatever? Which message should I send with which params (if possible) Thanks a lot ~Michael

    C / C++ / MFC question

  • How can I send a certain key to a certain application? (simulate keyboard)
    _ __Cerb

    For your b) question, here's how: HWND hwnd = ::FindWindow(NULL,"PCTV Vision"); Then you can call PostMessage using hwnd For alt+f4, you could just use ::PostQuitMessage(0); I am not sure at all on how to send (i.e: CTRL+M), but if PostMessage(hwnd, WM_CHAR, WPARAM('^'), LPARAM(M)); works, then PostMessage(hwnd, WM_CHAR, WPARAM('!'), LPARAM(R)); would do the job. One more thing. If you are coding an MFC application, you will need to add ' :: ' in front of your PostMessage's and FindWindow's, since you want to play with HWND values, and not CWnd Michael

    C / C++ / MFC question announcement lounge

  • PrintScreen using Windows Messages?
    _ __Cerb

    How do I send a PrintScreen key to a window using windows message? I mean, which Windows Message should I send and which lparam/wparam values? Thanks ~Mike

    C / C++ / MFC question

  • GetPixel() help needed
    _ __Cerb

    Whatever, any serious responses please?

    C / C++ / MFC help 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