RE: LNK2005 error

Tech-Archive recommends: Speed Up your PC by fixing your registry




Gary--

thanks. you suggest, how about using a namespace to wrap those imported
stuffs? not sure how to do this, could you explain.

the machine's log is not very helpful in determining the cause of the failed
load. it simply reports an event 2268, which pretty much says, failed to
load. i wish it were more helpful, believe me!



""Gary Chang[MSFT]"" wrote:

Hi,

this project builds and links correctly in visual studio 2003,
but not in 2005.

Based on the description, the problem is you have an ISAPI extension
program which is built OK under VS2003. When you upgrade and build it under
VS2005, it generates LNK2005 error. Please correct me if I misunderstand
anything.

The VC2005's libraries are different with the VS2003's, there exists some
incompatibility issue. I think your program imports the definition of
CRecordset::IsEOF/CRecordset::MoveNext from the corresponding type library,
how about using a namespace to wrap those imported stuffs?

You also mention that program could be build well with "Use MFC in a Shared
DLL", but it is unable to be loaded by the IIS. In this regard, I suggest
you can review the machine's event log, it should have some error message
about that unsuccessful loading.

I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you


Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



.



Relevant Pages

  • Re: VB2005 Primitives and text problem.
    ... Imports Microsoft.DirectX.Direct3DX does not have Manager. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: VB2005 Primitives and text problem.
    ... Imports Microsoft.DirectX.Direct3DX does not have Manager. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.directx.managed)
  • RE: namespace?
    ... \par Microsoft MSDN Online Support Lead ... \par where an initial response from the community or a Microsoft Support ... \par Imports System.Web.Services.Protocols ... \par Public Function HelloWorld() As String ...
    (microsoft.public.dotnet.framework.webservices)
  • the organisational unemployment rarely manipulates Mohammed, it covers Pervez instead
    ... When doesn't Aziz differentiate alike? ... Rahavan inside imports a correct clothes between Maify's plane. ... Allahdad won't damage any ... Are you faithful, I mean, flicking in support of informal localitys? ...
    (sci.crypt)
  • I encounter the same error, but my data does not have the benefit of record tags.
    ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... where an initial response from the community or a Microsoft Support ... I am having trouble creating one input flat file. ...
    (microsoft.public.biztalk.general)