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
W

whizano

@whizano
About
Posts
5
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CopyFile()
    W whizano

    in MSDN Samples, there s a sample pro named fibers, which copies a file frm a src dir, to a destn dir the source filename, qualified with path and the destination path can be input as command line parameters.. :sigh: hav a nice time copyin files thanks, -- ano

    C / C++ / MFC c++ tutorial

  • SuspendThread question
    W whizano

    some tips, uh? the method, WaitforSingleObject(threadhandle, waittime) will return a value equal to WAIT_TIMEOUT if the thread is still alive (not in signalled state). instead of if(m_hThreadF1 != 0) try using this method with waittime as zero, as below: if(WaitForSingleObject(m_hThread, 0)==WAIT_TIMEOUT) // The thread s alive else // The thread s signalled, spawn new make sure that the pThread's m_autodelete s set to false. u mentioned, the thread s supposed to be alive till da end. in this case, it seems, ur thread func has to make a slight modification. ResumeThread(handle), will resume a thread from the point it has been suspended, so, in ur case, when the ThreadFuncF1 resumes, it jst exits!!! ThreadFuncF1() { do{ // do the intended processing // Finished Processing, Notify parent SuspendThread(m_hThreadF1) }while(TRUE); // do processing again } hope thes'll help. :sigh: thanks, -- 'whiz'

    C / C++ / MFC question help

  • plz help me out
    W whizano

    its al in OnInitInstance --i spawn a new thread XX which shows a dlg --shellexecute --waifrosingleobject(thread XX) --maindlg.domodal thanks, -- ano

    C / C++ / MFC help question

  • plz help me out
    W whizano

    hi..,:-D a happy n prosperous new year.., my app makes use of ShellExecuteEx to run an initializing process(on OnInitInstance). It takes some 5 to 7 seconds to finish, so i spawn a thread which has a progressbar which steps for 7 secs. my app WaitForSingleInstance till the Delay(Progress)Dlg PostQuitMessage. Then it doModals the main dlg. Its all workin fine but when my main dlg is shown, it loses focus. I've tried setActivewnd, setforegrndwnd, setfocus, etc. on the InitInstance of my main dlg. i wanna kno how i can bring da dlg to the foregrnd. also on enter/esc key press the app exits, its the OnOK() OnCancel(), nope? can i prevent this by a do nothin override? thanks, -- ano

    C / C++ / MFC help question

  • Invokin anothr process from my app
    W whizano

    Hi, My project uses a telephony hardware which comes with its own initializing software. Each time i run my app, i've to run the said s/w for initializing the h/w. So, i think it'll be better if my app itself runs it on startup. I've lookd up the MSDN and ended up on Createprocess(:confused:). I burnd my head a lot, but its not workin, probably, the parameters i passd r incorrect.. plz help me out. thanks, -- ano -- modified at 0:38 Friday 25th November, 2005

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