Problems importing DLL
From: John A. Byerly (jbyerly_at_ess-quality_remove.com)
Date: 06/11/04
- Next message: Dan Baker: "Re: gray CMenu items in a Dialog-Based App"
- Previous message: Jonathan Wood: "Re: Implementing a Macro Language"
- Next in thread: Michael T. Pudelko: "Re: Problems importing DLL"
- Reply: Michael T. Pudelko: "Re: Problems importing DLL"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Jun 2004 14:55:17 GMT
Hi,
I am sure this is a basic question, but it is driving me crazy.
I received a DLL containing a COM object from a third party which I am
trying to import. I put in the following lines of code to try to accomplish
this:
// Import the DLL
#import "TheDLL.dll"
// Create an instance of the object
TheNamespace::TheClass myObject;
When I compile the file containing these lines of code, I get the following
error message:
'myObject' uses undefined struct 'TheClass'
This is the only error message I get.
I have tried "using namespace TheNamespace;", and also supplying
"no_namespace" to the #import. Neither of these made any difference.
Can anyone offer a suggestion?
TIA,
JAB
- Next message: Dan Baker: "Re: gray CMenu items in a Dialog-Based App"
- Previous message: Jonathan Wood: "Re: Implementing a Macro Language"
- Next in thread: Michael T. Pudelko: "Re: Problems importing DLL"
- Reply: Michael T. Pudelko: "Re: Problems importing DLL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|