Re: Usign old DLL in VC .NET App
From: Ronald Laeremans [MSFT] (ronaldl_at_online.microsoft.com)
Date: 12/15/04
- Next message: JF JOLIN: "RE: Can't get "typedef INTERNETAPI (*fp)()" to compiled with VC++ 7.0"
- Previous message: sergega4_at_yahoo.fr: "RE: Recommended books"
- In reply to: H.B.: "Usign old DLL in VC .NET App"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Dec 2004 12:06:11 -0800
You can #undef the (very few) macros that conflict.
Ronald Laeremans
Visual C++ team
"H.B." <hbcrdv@__hotmail__.com> wrote in message
news:eSHhLqh4EHA.3416@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> I have an existing DLL in C++ usign __declspec() macro to import/export
> symbols. I want to call a function, in DLL, on a button click in main form
> of a .NET C++ App. Seems pretty easy ...
>
> The problem is that my function use types like "BYTE" and "HWND". In the
> button click event function, these types are not recognized because
> <windows.h> is not included. If a modify form1.cpp to force the inclusion
> of
> <windows.h> before form1.h (where is the button click event function body)
> I
> have ressources error at compilation!
>
> I need some tips or a code sample to correct that.
>
> Also, WHY functions bodies are in .h with C++ .NET projects ?
>
> Thanks
>
> Hugo
>
>
- Next message: JF JOLIN: "RE: Can't get "typedef INTERNETAPI (*fp)()" to compiled with VC++ 7.0"
- Previous message: sergega4_at_yahoo.fr: "RE: Recommended books"
- In reply to: H.B.: "Usign old DLL in VC .NET App"
- Messages sorted by: [ date ] [ thread ]