Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

no instance of overload function of 'AfxBeginThread' matches the argument list

$
0
0

Hi,all, I have the following code that tried to AfxBeginThread:

struct RecExtractParam{
  bool bthreadrunning;
  bool bMod;
  float fSimBlkShpWt;
  float fSimGrPosWt;
  float fSimGrTxtAttWt;
  float fSimGrTypesWt;
  float fDataUnitGroupSimThld;
  float fVertDistThld;

  RecExtractParam(){
	bthreadrunning = false;
	bMod = false;
	fSimBlkShpWt = 0;
	fSimGrPosWt = 0;
	fSimGrTxtAttWt = 0;
	fSimGrTypesWt = 0;
	fDataUnitGroupSimThld = 0;
	fVertDistThld = 0;
  }
};

RecExtractParam m_structBlkContSimPara;

UINT CXMLDOMFromVCDlg::RecExtractThreadCtrlFunc(LPVOID pParam)

AfxBeginThread(RecExtractThreadCtrlFunc, &m_structBlkContSimPara);

but the there is a syntax error saying

no instance of overload function of 'AfxBeginThread' matches the argument list

I don't know what's going on and how to fix it?

cheers


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>