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. C / C++ / MFC
  4. _beginthread

_beginthread

Scheduled Pinned Locked Moved C / C++ / MFC
helpregex
2 Posts 2 Posters 0 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.
  • M Offline
    M Offline
    murali_utr
    wrote on last edited by
    #1

    Hi, what problem in this code. //function call m_hThread1 =(HANDLE)_beginthreadex (NULL,0,RequestProcess1,NULL,0,&m_dwThreadId1); /fucntion unsigned __stdcall CIFakerDlg::RequestProcess1(void *dummmy) { statements } i got the following error error C2664: '_beginthreadex' : cannot convert parameter 3 from 'unsigned int (void *)' to 'unsigned int (__stdcall *)(void *)' None of the functions with this name in scope match the target type any one help tome. thanks in advance. Murali.M

    M 1 Reply Last reply
    0
    • M murali_utr

      Hi, what problem in this code. //function call m_hThread1 =(HANDLE)_beginthreadex (NULL,0,RequestProcess1,NULL,0,&m_dwThreadId1); /fucntion unsigned __stdcall CIFakerDlg::RequestProcess1(void *dummmy) { statements } i got the following error error C2664: '_beginthreadex' : cannot convert parameter 3 from 'unsigned int (void *)' to 'unsigned int (__stdcall *)(void *)' None of the functions with this name in scope match the target type any one help tome. thanks in advance. Murali.M

      M Offline
      M Offline
      Mahesh Varma
      wrote on last edited by
      #2

      Make the RequestProcess1 as static function. Refer the SDK. The _beginthread is declared as unsigned long _beginthread( void( __cdecl *start_address )( void * ), unsigned stack_size, void *arglist ); Mahesh

      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