473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to integrate an MFC 7.0 DLL into a standard C++ application

Hi
How to integrate an MFC 7.0 DLL into a standard C++ application.

I'm going to use an OPC Toolkit for C++ and have to interface my MFC DLLs.
How do I do this?
Any recommendations? Links?

Regards
Kjell Arne Johansen
Nov 17 '05 #1
4 1496
Kjell Arne Johansen wrote:
Hi
How to integrate an MFC 7.0 DLL into a standard C++ application.

I'm going to use an OPC Toolkit for C++ and have to interface my MFC
DLLs. How do I do this?
Any recommendations? Links?


Um.. just do it? MFC is just "standard C++" afterall.

Is there something in particular that you're looking for?

-cd
Nov 17 '05 #2
Hi

I just included my exported include file from the MFC DLL and got a lot of
error messags during compilation, -without using the interface classes at all.

If I inlcude the same header file in an MFC based executable it compiles
fine and there is no problem using the interface classes.

Suggesstions?

Thanks.

Kjell Arne

"Carl Daniel [VC++ MVP]" wrote:
Kjell Arne Johansen wrote:
Hi
How to integrate an MFC 7.0 DLL into a standard C++ application.

I'm going to use an OPC Toolkit for C++ and have to interface my MFC
DLLs. How do I do this?
Any recommendations? Links?


Um.. just do it? MFC is just "standard C++" afterall.

Is there something in particular that you're looking for?

-cd

Nov 17 '05 #3
Kjell Arne Johansen wrote:
Hi

I just included my exported include file from the MFC DLL and got a
lot of error messags during compilation, -without using the interface
classes at all.

If I inlcude the same header file in an MFC based executable it
compiles
fine and there is no problem using the interface classes.

Suggesstions?


You need to include some basic MFC header(s) before including your class
header. MFC class headers generated by the class wizard are not complete -
they presume that you've already included the MFC headers themselves.

You could help our by posting a few of the error messages. You'd also
probably get a more precise resolution by posting to
microsoft.public.vc.mfc.

-cd
Nov 17 '05 #4
Thank You

I try to include MFC stuff in stdafx.h but then I get the error message
c:\Program Files\Microsoft Visual Studio
..NET\Vc7\atlmfc\include\afxv_w32.h(18): fatal error C1189: #error :
WINDOWS.H already included. MFC apps must not #include <windows.h>

I probably have set a flag somewhere?

Kjell Arne Johansen
"Carl Daniel [VC++ MVP]" wrote:
Kjell Arne Johansen wrote:
Hi

I just included my exported include file from the MFC DLL and got a
lot of error messags during compilation, -without using the interface
classes at all.

If I inlcude the same header file in an MFC based executable it
compiles
fine and there is no problem using the interface classes.

Suggesstions?


You need to include some basic MFC header(s) before including your class
header. MFC class headers generated by the class wizard are not complete -
they presume that you've already included the MFC headers themselves.

You could help our by posting a few of the error messages. You'd also
probably get a more precise resolution by posting to
microsoft.public.vc.mfc.

-cd

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tod Johnson | last post by:
Hello, does anybody know how to integrate Debuger funktionality into the WinForms Application. I'm using CodeDomProvider to generate scripts on the fly and want to add possobility to debug this...
4
by: Alison | last post by:
Hello, All I am new to improving user interface. I have some questions for all the experts here who could help me out in this aspect. Now, I am in the early stage of developing a new user...
0
by: Joby Chacko via .NET 247 | last post by:
Dear All, How can integrate the MS Money with DotNET application.My requirement is an application, which uses SQL Server and Exports and Imports data from MS Money. Any response or leads will be...
1
by: Kiran | last post by:
Hi, I have my reports at http:\\localhost\ReportServer and need to use them in ASP.NET Web Form.I have a few questions reg. this ------> I want to generate a PDF when a button labeled...
1
by: Oscar Hdez G. | last post by:
We are developing an application that controls documents. We need inside the application an editor of advanced texts that allows to elaborate different types of simple and complex documents according...
5
by: ad | last post by:
I am developing web applicaiton with VS2005. The WebApp used a ClassLibrary in another project. There are some TableAdapter in the classlibrary, and the TableAdapter use the connection in the...
1
by: ITistic | last post by:
I am in the planning stages of a new web application. One of the requirements for this application is to provide a Google Calendar type interface to show important events which will be pulled from...
7
by: maheswaran | last post by:
HI, All i have developed one task tracking application. But i want to integrate with xampp or some other suit for installing apache , php,mysql and also my application in that suit by just...
9
by: manojrana | last post by:
Can we store an array within another array in javascript var locat = new Array(); var element = new Array(); locat = element; or Can we use like this locat = "manoj";
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.