__thiscall link errors
Adam Pendleton -- apendlet@gmu.edu Sunday, December 01, 1996 Environment: Win 95, VC++ 4.0 I am trying to build a project and I keep getting three unresolved externals concerning __thiscall. I think I have heard this discussed before, what can I do to remove these link errors? Adam ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ._ o Adam H. Pendleton/ //\. George Mason University <http://www.gmu.edu> ' \>> | Fairfax, VA \\ ' Homepage: <http://site.gmu.edu/~apendlet/>
Rajesh Babu T -- rbabu@hotmail.com Tuesday, December 03, 1996 >Environment: Win 95, VC++ 4.0 > >I am trying to build a project and I keep getting three unresolved >externals concerning __thiscall. I think I have heard this discussed >before, what can I do to remove these link errors? > > >Adam Hi Adam, U just force the compiler to use one calling convention throughout U'r program. So do include extern "C" above the function prototype like.. extern "C" fn() ; // may be in the header file if 'fn()' is in a dll extern "C" fn() { // fn code here... } Bye, Rajesh Babu KL,Malaysia _/_/_/ _/_/_/ _/_/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/_/ _/ --------------------------------------------------------- Get Your *Web-Based* Free Email at http://www.hotmail.com ---------------------------------------------------------
Shaju Mathew -- shajum@hpptc51.rose.hp.com Wednesday, December 04, 1996 Did you remember to include the DECLARE/IMPLEMENT_DYNCREATE macros?? > Environment: Win 95, VC++ 4.0 > > I am trying to build a project and I keep getting three unresolved > externals concerning __thiscall. I think I have heard this discussed > before, what can I do to remove these link errors? > > > Adam > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ._ o Adam H. Pendleton> / //\. George Mason University <http://www.gmu.edu> > ' \>> | Fairfax, VA > \\ ' Homepage: <http://site.gmu.edu/~apendlet/> > > -- *********************************************************************** .---. .---. Shaju Mathew /" " \ WWW / " "\ Off:(916)785-9018 Performance Technology Lab / / "" \(*|*)/ "" \ \ Hewlett-Packard Company ////// '. V .` \\\\\\ Home:(916)722-4576 8000, Foothills Blvd //// / // : """ : \\ \ \\\\ MS 5723, Roseville // / / /`.""" '\ \ \ \\Fax:(916)785-1264 CA 95747-5723 // //.".\\ \\ ------------- -UU---UU--------------- Shaju_Mathew@hp.com '//|||\\` '' `` ***********************************************************************
| Вернуться в корень Архива |