Re: Debug Window Output Problem - DLL Loading/Unloading
- From: "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
- Date: Mon, 23 Oct 2006 11:55:16 +0300
You should put '#include <windows.h>' in some proper place
(e.g. in stdafx.h).
Also note that backslash is a reserved character, so you should prefix
each backslash with another one to get the correct string:
LoadLibrary("C:\\Program Files\\Trend Micro\\Internet Security 2007\\TMAS_OE\\TMAS_OEHook.dll");
Oleg
"Zero" <zero(at)zeroez(dot)net> wrote in message news:eNwrIEK9GHA.4740@xxxxxxxxxxxxxxxxxxxxxxx
Hi Oleg,
Thanks for your response. I like your idea, but I don't know how to go about doing it. I'm a novice at this so I think I
need additional guidance.
I looked up the documentation for LoadLibrary and put the line,
LoadLibrary("C:\Program Files\Trend Micro\Internet Security 2007\TMAS_OE\TMAS_OEHook.dll");
Into the initializtion function for my WinForm. As I mentioned earlier, I'm writing a WinForms project using MS Visual
Studio C/C++ 2003. Here's the code for the initialization function:
Form1(void)
{
InitializeComponent();
// Load that library
LoadLibrary("C:\Program Files\Trend Micro\Internet Security 2007\TMAS_OE\TMAS_OEHook.dll");
// Initialize the filters array
strFilters = __gc new String*[MAX_FILTERS,4];
}
When I compile this, I get the error:
c:\Documents and Settings\Zero\My Documents\My Visual Projects\LogCopy\Form1.h(78) : error C3861: 'LoadLibrary':
identifier not found, even with argument-dependent lookup
The docs say that LoadLibrary() is found in the Kernel32 lib/dll - but I'm not sure how to add a lib or dll to a WinForm
project. Any guidance on this?
.
- References:
- Debug Window Output Problem - DLL Loading/Unloading
- From: Zero
- Re: Debug Window Output Problem - DLL Loading/Unloading
- From: Oleg Starodumov
- Debug Window Output Problem - DLL Loading/Unloading
- Prev by Date: Cannot Step Into A Web Service Call
- Next by Date: Re: Javascript debugging
- Previous by thread: Re: Debug Window Output Problem - DLL Loading/Unloading
- Next by thread: Cannot Step Into A Web Service Call
- Index(es):