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
D

dsubrama

@dsubrama
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • EnumWindows
    D dsubrama

    Hi Thanks.. it worked.... Deepak

    C / C++ / MFC com json tutorial

  • EnumWindows
    D dsubrama

    Thanks.. It still isnt working though.. I have passed an LPARAM value of 0 into the function.. Would this matter?? D

    C / C++ / MFC com json tutorial

  • EnumWindows
    D dsubrama

    Hi all, I am relatively new to api programming.I am trying to automate a process and am using EnumWindows to get all window handles. I am then using GetWindowText and strcmp to check which of the window handles corresponds to the relevent window. However it doesnt seem to work i.e., it doesnt simulate the push of the button.... I have pasted the code snippet below.. Any suggestions on how to resolve this will be terrific. In the main program i have EnumWindows((WNDENUMPROC) WinCallback, 0); My function is: BOOL CALLBACK WinCallback(HWND win, LPARAM nadda) { char temp[512]; GetWindowText(win, temp, 512); printf("%s",temp); if(!strcmp(temp,"RBNal_Optocomm")) { HWND hcomm = FindWindowEx((HWND) win,NULL,"BUTTON","COM 1"); LRESULT lResult2; lResult2 = SendMessage((HWND) hcomm,(UINT) BM_CLICK,0,0); return FALSE; } } Please let me know of any suggestions. D

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