Re: Suggestion for using CStringArray with Unicode, mulit-byte, AT
- From: Gary A <GaryA@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Dec 2008 16:42:00 -0800
Leo,
I've tried that and even "excluded" some libraries which cased even more
issues.
Any other ideas?
"Leo Violette" wrote:
I would say you are mixing libraries. Perhaps you are linking in a project.
..lib file that is using the static version of MFC while your dll project is
using the dynamic version of MFC?
Compare the project properties on all your projects that go into your DLL
(the lib projects).
"Gary A" <GaryA@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:63B8F4E7-18BA-4E1D-866D-F0BF2A08935F@xxxxxxxxxxxxxxxx
Hi,
I couldn't find the "development" group so i chose this one.
I am trying to bring some code that has the CStringArray in it from a
Multi-Byte project into a Unicode project and I keep getting errors I
cannot
resolve.
Scenario:
Project type: DLL
Use MCF: Shared DLL
Use ATL: Not using ATL
Min CRT Use in ATL: No
Char set: Unicode
added afxcoll.h to stdafx.h as suggested elsewhere
#include <afxcoll.h>
#include "resource.h"
#include <atlbase.h>
#include <atlcom.h>
I get the following error;
Error 247 error LNK2005: _DllMain@12 already defined in TestProj.obj
mfcs80u.lib
How do I fix this? I have been looking for days and everything I try, from
creating a wrapper, to adding header files, changing character sets, ALT,
MFC, and all kinds of other hoops. I'm about ready to scream real loud -
which would probably get me in trouble.
Can anyone please help me? Thanks in advance for your assistance. It is
greatl appreciated.
Regards,
Gary A
- References:
- Prev by Date: Re: How to get 1 ms delay ?
- Next by Date: Re: ? Create Not Called in Dialog for Subclassed Control
- Previous by thread: Re: Suggestion for using CStringArray with Unicode, mulit-byte, ATL &
- Next by thread: IE automation
- Index(es):
Relevant Pages
|