stdcall over-ride visible studio?


in xp 32bit line compiles problem however perspective 64bit line:



m_funcaddr = ::getprocaddress (somthing);


gives following error




error c2440: '=' : can't modify from
'farproc' 'int (__cdecl *)(void)'




getprocaddress tangible as



winbaseapi farproc winapi getprocaddress (somthing)


and m_funcaddr as



int (winapi *m_funcaddr)();


from i know both stdcall's.



to prevaricate blunder i put



m_funcaddr = (int (__cdecl *)(void))::getprocaddress(somthing);


my question:



if both m_funcaddr getprocaddress have stdcall job party since i have 'recall' cdecl ?



is illusory vs digest sourroundings 'default job party (which set cdecl) over-rides assignemet statment above ?



thanks advance!



[edit]



to clerfiy question:



on side equation (say side 1) i have



int __stdcall * m_funcaddr


on side (side 2)



int_ptr distant __stdcall getprocaddress


so i have ban side 2 cdecl both stdcalls ?
or am i removing something ?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members