1 Attachment(s)
[RESOLVED] MFC Regular Dll Help?
I am trying to create an MFC Regular DLL. I followed a couple of tutorials on the net, and although my program builds, it crashes with an access violation when trying to debug or test. I have attached the code. Is it possible someone out there can download my application, run it, and tell me what I am doing wrong or just look at the code and give me pointers in the right direction???
Any help is appreciated.
Mike B
Re: MFC Regular Dll Help?
Code:
int CompaniesHttp::GetManufacturers()
{
return _T("TEST");
}
This functions returns an int, not a string.
Re: MFC Regular Dll Help?
I changed the signature to return a CString instead of int, and it ran fine in both debug and release.
I also had to change the Debug Command parameter as it was pointing to some unknown \user directory instead of the default.
Re: MFC Regular Dll Help?
Quote:
Originally Posted by
Skizmo
Code:
int CompaniesHttp::GetManufacturers()
{
return _T("TEST");
}
This functions returns an int, not a string.
Yeah, I know, I switched from CString to int and back to CString again. Forgot to change the signature. Sorry about that.
Mike
Re: MFC Regular Dll Help?
Quote:
Originally Posted by
krmed
I changed the signature to return a CString instead of int, and it ran fine in both debug and release.
I also had to change the Debug Command parameter as it was pointing to some unknown \user directory instead of the default.
Thanks. Being that it was so little code, I just wiped the projects and redid them and all worked correctly the second time.
Thanks for looking at it.
Mike B