Beginner MFC - How to use functions from a .dll file in program?
Posted on 2004-03-29
Started to try and learn C++ and MFC. I'm a total beginer. I have the following code that creates a simple 200x200 window and shows it. I retyped it so it may have a syntax error somewhere. This code is all in one file MFC.cpp
class COurApp: public CWinApp
virtual BOOL InitInstance();
class COurWnd: public CFrameWnd
CRect rect(0, 0, 200, 200);
ASSERT(rect.Width() == 200);
ASSERT(rect.Height() == 200);
m_pMainWnd = new COurWnd;
How do I call functions in a .dll file to use in this progam? I assume I must use a #include<header.h> file. Where would I put the function call in the above MFC program if I want to call it right after the progarm starts.
The function I'm interested in is TWAIN_AcquireNative(0,0) from the EZTW32.dll. I have the EZTWAIN.h file but don't know if I need some other files as well. Wan't to take the acquired image and draw it in this window.
Thanks for any help