-----------------------------------------------------------

New Message on cochindotnet

-----------------------------------------------------------
From: J.K.
Message 2 in Discussion


Hi,



was necessary to use AfxBeginThread, i had to
use #include <afxwin.h> and 

library mfc70.lib. it worked fine with .NET support but didnt work on
normal 

98. So i just changed mfc lib to the old VC++6.0's mfc42.lib. it now
works 

on 98.

AfxBeginThread() is required only if you are working with a MFC
application. For non-mfc applications you can use CreateThread() api
function as given here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createthread.asp



MFC 7.0 has a dependency on a specific dll (oleacc.dll) that is not
present in windows 95 and not installed normally on a standard windows 98
installation or under windows nt before sp5. This dll which is a part of
the active accesability is normally not required so the solution is to
statically link to the MFC library and specify the dll delayed load
option in the linker settings.



Note that if you dynamically link to the MFC library, the delayed load
option will not work. The other option is to re-build the mfc library as
suggested in this post
http://groups.google.co.in/groups?q=mfc+7+dll+oleacc+windows+98+problem&hl=en&lr=&ie=UTF-8&selm=eRWP7Rq2BHA.2484%40tkmsftngp07&rnum=2



But I do not recommend it.





---- My doubt is: What is the difference between VC6 and VC7 if the 
application worked on 98 without .NET framework? Does it only differs
in 
these libraries? If not,then will the garbage collection work in my 
application? Also i would like to know if there is any other way to
make a 
thread without mfc support?----


I don't think that you are using any features of .net, nor are you
producing a .net executable. What you would have created is a windows
.exe which uses mfc and this executable does not require .net framework
to run.



Have a nice day,



Jayakrishnan K [MVP - VC++]







-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/cochindotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to