Re: simple linker prob and no clue



Sorry,

forgot to say it is pure C++ code.

"Lars Schmidt" <ivonneundlars@xxxxxxxxxxx> schrieb im Newsbeitrag
news:dnqbs3$1mn$02$1@xxxxxxxxxxxxxxxxxxxx
> Hi everybody,
>
>
>
> I have got a serious problem creating a dll in VS2005. As I am new to
> embedded development I desperately need your assistance.
>
>
>
> I make the following steps that result in a linker error:
>
>
>
> - create a new project (MFC Smart Device DLL)
>
> - Create a Methods.h and Methods.cpp
>
> Within Methods.h I create a new class and an instance of it.
>
>
>
> class bitmap_compositor : public region_bitmap {
>
>
>
> }
>
>
>
> bitmap_compositor *compositor;
>
>
>
> The class region_bitmap got defined in another file that was included into
> the project (not in the same dir as the project itself).
>
>
>
> class region_bitmap {
>
> public:
>
> void set_bitmap();
>
> }
>
>
>
>
>
>
>
> In Methods.cpp I make the following call:
>
>
>
> compositor->set_bitmap();
>
>
>
> All this results in:
>
> Methods.obj : error LNK2019: unresolved external symbol "public __cdecl
> region_bitmap::set_bitmap()"
>
>
>
> I have the strange feeling I missed something very basic.
>
> Does anybody have an idea?
>
>
>
> Thanks
>
>
>
> Ivonne
>
>


.



Relevant Pages

  • Re: convert an MFC application to MFC DLL
    ... You may have the option to compile the original C code as C++, but I'm not sure this is a good choice. ... If you really can't change your original C code, to convert it to C++ code, I would suggest to expose your original C code as a *pure C interface* DLL. ... You can develop one or more C++/CLI classes that expose methods that call the pure-C interface DLL. ...
    (microsoft.public.vc.mfc)
  • Re: How best for dll to "report progress"?
    ... Probably that DLL is working inside AutoCad's process ... Ken also mentioned Ax exe but said that was also Out of process... ... in the Command Line and use WM_SETTEXT to talk back from the pure VB ... App to the Textbox in AutoCad. ...
    (microsoft.public.vb.general.discussion)
  • VB6 Common Code for Access, Excel and VB Projects
    ... It has been sometime since I have done any pure VB programming. ... to set up in Visual Basic 6 something like a dll that has common ... the class instead of just calling the function. ...
    (comp.programming)
  • Re: asp 64bit question
    ... I also think that the problem is related to whether the dll is a pure ... though .NET assembly(compiled with any platform target) ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DBD DBI Problem
    ... >>> I'm having a trouble when i try to execute a simple perl program. ... >>> Perhaps a required shared library or dll isn't installed where expected ... >> Which part of the error message don't you understand? ... Prev by Date: ...
    (perl.dbi.users)