Hi, I am new here..
I face problem when i try communicate two .exe together..
these two .exe i name it by App A and App B..
i try to call App A's function from App B's function..
i had create a App B's pointer at App A..name by BPointerAtA..
and i try to new this pointer ( BPointerAtA = new CAppB;)..
when i compile..i have a compile error, which is..
--------------------Configuration: A - Win32 Debug--------------------
Linking...
ADoc.obj : error LNK2001: unresolved external symbol "class CBApp
BPointerAtA" (?BPointerAtA@@ 3VCBApp@@A)
A.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
A.exe - 2 error(s), 0 warning(s)
it this two .exe, do no include any .lib files for me to do linking
setting..
when i try to enter B.obj file in the setting (Project->Settings-
>Link),
when compile, more than 1 linking error occur..
is it anything that i miss up..??
pls help..
thank you..
regards,
shizu 5 2360
<lo***********@ yahoo.comwrote:
Hi, I am new here..
I face problem when i try communicate two .exe together..
is it anything that i miss up..??
You probably want to use an exe and a library of some kind,
rather than two exes. But you can get better advice in the visual c
newsgroups on news.microsoft. com - this newsgroup deals with
the c++ language as such, not with compiler specific issues such
as how to link on vc.
BTW if you want to use standard c++, better get vc8 express,
it is closer to c++ standards than vc6 and you can have it for free. lo***********@y ahoo.com wrote:
Hi, I am new here..
I face problem when i try communicate two .exe together..
these two .exe i name it by App A and App B..
i try to call App A's function from App B's function..
i had create a App B's pointer at App A..name by BPointerAtA..
and i try to new this pointer ( BPointerAtA = new CAppB;)..
when i compile..i have a compile error, which is..
--------------------Configuration: A - Win32 Debug--------------------
Linking...
ADoc.obj : error LNK2001: unresolved external symbol "class CBApp
BPointerAtA" (?BPointerAtA@@ 3VCBApp@@A)
A.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
it this two .exe, do no include any .lib files for me to do linking
setting..
when i try to enter B.obj file in the setting (Project->Settings-
>>Link),
If I interpret your posting right, you have two executables (two .exe files in
Win32 parlor) that do some stuff. These applications are written using
Microsoft's MFC library (a guess from the name CBApp), so you will most likely
have two classes CAApp and CBApp derived from CWinApp. Now you want to invoke a
member function of class CBApp inside the executable that uses CAApp. If this is
right, then you are violating against the design rules of the MFC library which
states that you have exactly one object of a class that is CWinApp or derived
from CWinApp (this object is usually declared as global variable, which can be
accessed by the MFC function AfxGetApp). The question you have to ask yourself
is whether CAApp needs functionality of CBApp that needs to access member
variables of CBApp (that means that the method will work only for CBApp
objects), or whether the CBApp method can be copied into the CAApp class. In the
first case, you have found some interdependenci es between your executables that
need most probably very much attention (some means of inter-process
communication). In the second case, you can either a) copy the method into CAApp
and invoke it from there, or b) put the method into a new class which will serve
as base class for CAApp and CBApp (which would be SOP).
Regards,
Stuart
<lo***********@ yahoo.comwrote in message
news:11******** **************@ q4g2000prc.goog legroups.com...
Hi, I am new here..
I face problem when i try communicate two .exe together..
these two .exe i name it by App A and App B..
i try to call App A's function from App B's function..
i had create a App B's pointer at App A..name by BPointerAtA..
and i try to new this pointer ( BPointerAtA = new CAppB;)..
when i compile..i have a compile error, which is..
--------------------Configuration: A - Win32 Debug--------------------
Linking...
ADoc.obj : error LNK2001: unresolved external symbol "class CBApp
BPointerAtA" (?BPointerAtA@@ 3VCBApp@@A)
A.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
A.exe - 2 error(s), 0 warning(s)
it this two .exe, do no include any .lib files for me to do linking
setting..
when i try to enter B.obj file in the setting (Project->Settings-
>>Link),
when compile, more than 1 linking error occur..
is it anything that i miss up..??
pls help..
thank you..
A running .exe runs in its own environment, including memory. First off,
you don't have access to a running executables functions outside of the
executable. If you do need access to some shared functions, that is what
libraries are for. Now, it is possible to get App A to execute a function
and give the result to App B somehow. A common method is via sockets. Also
file IO, shared memory, etc.. have been used.
Now, it depends on what you are actually trying to accomplish to determine
what it is you need to do. So, what are you trying to accomplish by having
one app call a function in another app?
Ole Nielsby wrote:
BTW if you want to use standard c++, better get vc8 express,
it is closer to c++ standards than vc6 and you can have it for free.
I'm afraid that he'll have to stick to vc6 if he doesn't want to pay for vc8, as
he is using MFC. I don't know whether you can use MFC 6.0 with VC8 or not. If
you knew how, I'd be thankful for some advice, too.
Stuart
On 2007-08-16 10:11, Stuart Redmann wrote:
Ole Nielsby wrote:
>BTW if you want to use standard c++, better get vc8 express, it is closer to c++ standards than vc6 and you can have it for free.
I'm afraid that he'll have to stick to vc6 if he doesn't want to pay for vc8, as
he is using MFC. I don't know whether you can use MFC 6.0 with VC8 or not. If
you knew how, I'd be thankful for some advice, too.
It's probably possible to get VC8 Express to work with the MFC files
from VC6, but a quick search gave no hints.
--
Erik Wikström This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Zheng Da |
last post by:
I don't know where should I ask the question, so send the email to this
group.
I choose this group, because I want to write the program with c++ :)
I want to write a program which support multiprotocol, but do not want
to write code for all protocols which I want to support. I plan I give
a interface and others give a module which implements a protocol, and
then the module can be inserted into my program without recompiling my
program....
|
by: Stumped and Confused |
last post by:
Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be assigned to a variable and output
using document.write.
(Note, there is no submit button or other form elements. Basically
|
by: Sune |
last post by:
Hi!
Pre-requisites:
-------------------
1) Consider I'm about to write a quite large program. Say 500 K
lines.
2) Part of this code will consist of 50 structs with, say, no more
than at most 1K bytes of data.
3) These structs are to be used by all of the other 500K lines in
various places.
|
by: Victor S. |
last post by:
1. What is System.Windows.Forms.VisualStyles.TextMetricsCharacterSet
good for?
2. Are the Indic scripts supported?
Are all supported scripts fully supported? (for printing and fine
measuring)
Is the printing done by GDI++ without using Unicribe?
3. Is the Text.Encoder/Decoder provided by the OS or by the Framework?
|
by: Peter Olcott |
last post by:
Cab you write code directly in the Common Intermediate language? I need to
optimize a critical real-time function.
| |
by: Newbie Coder |
last post by:
MFC Application VC++.NET 2003
I have a certain registry key (HKCU\Software\MyKey) that contains between 30
& 64 string values
I need to write a '*' to all those 30 - 64 string values under that
particular key.
Example:
|
by: asit dhal |
last post by:
hello friends,
can anyone explain me how to use read() write() function in C.
and also how to read a file from disk and show it on the monitor using
onlu read(), write() function ??????
|
by: Immortal Nephi |
last post by:
I would like to design an object using class. How can this class
contain 10 member functions. Put 10 member functions into member
function pointer array.
One member function uses switch to call 10 member functions. Can
switch be replaced to member function pointer array?
Please provide me an example of source code to show smart pointer
inside class. Thanks....
|
by: jwwicks |
last post by:
Introduction
This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results.
Visual Studio automatically creates a number of...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |