Hi,
I am trying to write a .NET Class Library which generates an XML file from the input parameters of all the functions that are called in a C DLL.
(Everytime the GUI call the C DLL's function, I try to generate an XML file of the function called together with the parameters, this means calling the XML generating .NET library inside every function of the C DLL)
When I try to access the function like
GenXML::WriteXm lFile *myfile = new WriteXmlFile();
myfile->Run(parameters );
I get the error C3624 'System::Object ': the compiler cannot find this type; it is defined in the assembly 'mscorlib'
[NOTE : i've also added
#import "..\debug\prgdi r\GenXML.tlb"
using namespace GenXML;
to the start of the main file of the C DLL]
Help!! 2 1734
GeRmIc wrote: Hi,
I am trying to write a .NET Class Library which generates an XML file from the input parameters of all the functions that are called in a C DLL.
(Everytime the GUI call the C DLL's function, I try to generate an XML file of the function called together with the parameters, this means calling the XML generating .NET library inside every function of the C DLL)
When I try to access the function like GenXML::WriteXm lFile *myfile = new WriteXmlFile(); myfile->Run(parameters ); I get the error C3624 'System::Object ': the compiler cannot find this type; it is defined in the assembly 'mscorlib'
[NOTE : i've also added #import "..\debug\prgdi r\GenXML.tlb" using namespace GenXML; to the start of the main file of the C DLL]
Help!!
#include <mscorlib.h> ?
Cheers
Arne Janning
Yes, i've included that but still the error remains!!
I guess it is in referencing the function, how should I make the C DLL recogoinze the presense of the .NET Library in the project?
"Arne Janning" wrote: GeRmIc wrote:
Hi,
I am trying to write a .NET Class Library which generates an XML file from the input parameters of all the functions that are called in a C DLL.
(Everytime the GUI call the C DLL's function, I try to generate an XML file of the function called together with the parameters, this means calling the XML generating .NET library inside every function of the C DLL)
When I try to access the function like GenXML::WriteXm lFile *myfile = new WriteXmlFile(); myfile->Run(parameters ); I get the error C3624 'System::Object ': the compiler cannot find this type; it is defined in the assembly 'mscorlib'
[NOTE : i've also added #import "..\debug\prgdi r\GenXML.tlb" using namespace GenXML; to the start of the main file of the C DLL]
Help!!
#include <mscorlib.h> ?
Cheers
Arne Janning This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Muthu |
last post by:
I've read calling conventions to be the order(reverse or forward) in
which the parameters are being read & understood by compilers.
For ex. the following function.
int Add(int p1, int p2, int p3);
The parameters here can be read either in the forward order from p1
till p3 or reverse order from p3 till p1.
Can anyone explain what is the advantage/disadvantage of either of
|
by: Glenn C. Rhoads |
last post by:
I'm having a problem calling a C function from a publicly available
library file. To get the code to compile, I had to declare the
function as an external C function as follows.
extern "C" lib_function(....);
But when I run my C++ program, I get a segmentation fault in one
of the library functions (not the function I directly called but
one a few levels down in the calling hierarchy). According to
the user manual provided with the...
|
by: RainBow |
last post by:
Hi everyone, (Very Sorry, if this is the wrong group in which I am
posting this query).
Code snippet:
//C library
typedef int (*PFunc)(int* aArg);
void call_c_foo(PFunc aPtrtoFunc)
{
|
by: jchao123 |
last post by:
Dear All,
I have an MDB file (Access 2000/XP) which contains generic routines I
use in various apps (eg, API calls, File access classes etc).
I have compiled into an MDE file which I reference in VBA from my other
Access applications.
This works fine and I'm quite happy with it... except for one area;
error handling. In most of my functions I call an error handler which
|
by: Jesse McGrew |
last post by:
Hi all,
I'm trying to make a plugin DLL for a third-party application, using
VC++ .NET 2003. This DLL acts as a bridge between the C++ plugin API of
the application, and my actual plugin code written in C#.
When the app calls my unmanaged functions, they work fine. But as soon
as my unmanaged functions call managed functions (in the same source
file!), the app reports an "unknown exception" error.
| |
by: H.B. |
last post by:
Hi,
I need to make a function that can display data on my Managed C++ app and be
called by an unmanaged C++ DLL. Something like :
void Form1::Form1_Load(System::Object * sender, System::EventArgs * e)
{
MyDLLInit(MyAppDisplayFunction);
}
|
by: John Friedland |
last post by:
My problem: I need to call (from C code) an arbitrary C library
function, but I don't know until runtime what the function name is,
how many parameters are required, and what the parameters are. I can
use dlopen/whatever to convert the function name into a pointer to
that function, but actually calling it, with the right number of
parameters, isn't easy.
As far as I can see, there are only two solutions:
1) This one is portable. If...
|
by: dspfun |
last post by:
Hi,
Is it possible to print the function name of the calling function?
For example, f1() and f2() both calls f3(), in f3() I would like to
print the name of the function calling f3() which could either be f1()
or f2().
BRs!
|
by: briankirkpatrick |
last post by:
Forgive me if my post seems a little amateurish...
I'm requesting assistance from some of you smart folks out there to
get the managed calls write that meet the specification in the esa.h
for Esa_Init. When I make a call, VS2005 reports
"AccessViolationException" and refers to the 4th parameter
(EsaT_State_Handle). I don't know how to define nor pass this
reference correctly to the legacy DLL. What am I doing wrong? Thanks
in...
|
by: teju |
last post by:
hi,
i am trying 2 merge 2 projects into one project.One project is using c
language and the other one is using c++ code.
both are working very fine independently.But now i need to merge both
and my c++ code should call c code.but when i tried to call a function
in c code externing that function in my c++ code, i am getting
unresolved external symbol error. Whatever i try its giving more and
more errrors...so is it possible to merge 2...
|
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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |