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
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. plz read and solve mine problem

plz read and solve mine problem

Scheduled Pinned Locked Moved Managed C++/CLI
comhelpquestion
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    imran_rafique
    wrote on last edited by
    #1

    please read that code and solve mine problem tmpProcess = new Process(); tmpProcess.WaitForInputIdle(); tmpProcess.StartInfo.FileName="f:\\mirc59t"; try{ tmpProcess.Start(); while(! tmpProcess.Responding)System.Windows.Forms.Application.DoEvents(); }catch{} tmpProcess.WaitForInputIdle(); IntPtr hWnd=tmpProcess.MainWindowHandle; Srm=new send_recive_messages(hWnd); /*///////////////////////////////////////////////////// managed public __gc class send_recive_messages constructor ////////////////////////////////////////////////////*/ send_recive_messages::send_recive_messages(IntPtr par_hwnd) { CString cstr=""; LPTSTR str=""; hwnd=(HWND)par_hwnd.ToInt64(); ////////////////////////////////////////////////////////// HWND h=GetWindow(h,GW_CHILD); ////////////////////////////////////////////////////////// } /////////////////////////////////////////// h variable recive null that's why remaining code could not run. it should not recive zero because the process main window contain two button and four Static members. can any body tell why it recive 0? and what i have to do that it should not recive zero? r00d0034@yahoo.com

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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