473,480 Members | 3,069 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how can i use c# dll with namespace in c++

Hi
i have this error with this code:
An unhandled exception of type 'System.IO.FileNotFoundException'
please help....
//---------------------------
#include "stdafx.h"
#using <mscorlib.dll>
#using <system.dll>
using namespace System;

#using <TestDLL.dll>
using namespace Ing;
int _tmain(void)
{
double dVal = Ing::MyMath::Add(1.0, 2.0);
Console::WriteLine(dVal);
return 0;
}
//---------------------------
Nov 17 '05 #1
2 6516
At runtime put the DLL in the same directory as the executable depending on
it.

Ronald Laeremans
Visual C++ team

"SDec" <St*************@videotron.ca> wrote in message
news:%l**********************@weber.videotron.net. ..
Hi
i have this error with this code:
An unhandled exception of type 'System.IO.FileNotFoundException'
please help....
//---------------------------
#include "stdafx.h"
#using <mscorlib.dll>
#using <system.dll>
using namespace System;

#using <TestDLL.dll>
using namespace Ing;
int _tmain(void)
{
double dVal = Ing::MyMath::Add(1.0, 2.0);
Console::WriteLine(dVal);
return 0;
}
//---------------------------

Nov 17 '05 #2
Thanks Ronald
It's work....
SDec

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:O1****************@TK2MSFTNGP11.phx.gbl...
At runtime put the DLL in the same directory as the executable depending on it.

Ronald Laeremans
Visual C++ team

"SDec" <St*************@videotron.ca> wrote in message
news:%l**********************@weber.videotron.net. ..
Hi
i have this error with this code:
An unhandled exception of type 'System.IO.FileNotFoundException'
please help....
//---------------------------
#include "stdafx.h"
#using <mscorlib.dll>
#using <system.dll>
using namespace System;

#using <TestDLL.dll>
using namespace Ing;
int _tmain(void)
{
double dVal = Ing::MyMath::Add(1.0, 2.0);
Console::WriteLine(dVal);
return 0;
}
//---------------------------

Nov 17 '05 #3

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

Similar topics

1
2696
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a...
25
3041
by: kj | last post by:
Consider the following XML document: <?xml version='1.0' encoding='UTF-8'?> <bar:foo xmlns:bar='someuri'> <baz/> </bar:foo> What namespace does baz belong to? What is this namespace bound...
3
10010
by: Mike Dickens | last post by:
hi, i'm sure this has come up before but havn't managed to find an answer. if i have the following xslt <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet method="xml" version="1.0"...
6
1935
by: Don Wash | last post by:
Hi There! I just need some advice on Namespace management for creating reusable VB.NET applications. I would like my applications to have this namespace structure... Namespace MyCompany ...
8
4885
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
2
5592
by: puzzlecracker | last post by:
after reading some of the post I found out something rather radical to my previous understanding: that when you do #include<iostream> #include<string> #include<vector> etc compiler puts...
2
7495
by: Tony Johansson | last post by:
Hello! I'm reading a book about C++ and there is something that I don't understand so I ask you. Below I have the text from the book and the code from the file where main is located and some...
7
7415
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
14
3298
by: Tiraman | last post by:
Hi , I would like to use nested namespace . I have 3 namespace as dll's : Namespace A Namespace B Namespace C And i want to have some namespace that contain them all , some thing like
4
3069
by: Kevin Newman | last post by:
The primary problem I've had with php is the lack of namespaces, which makes OOP very difficult to organize, since you end up with large number of classes cluttering up the same namespace - which...
0
6920
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
7060
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,...
0
7106
jinu1996
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...
1
6760
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...
1
4799
isladogs
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...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3013
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...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
bsmnconsultancy
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...

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.