473,395 Members | 1,418 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,395 software developers and data experts.

Managed C++ Project not visible in C# Project -- Visual Studio 200

(If there is a better forum to post this in, please let me know...)

I am using Visual Studio 2005. I have a Solution consisting of three
projects:

* A main project "DiscoverNotes" written in C#
* A helper project, set as a /CLR DLL, in C++
* A test project in C#

Unfortunately, the using NotesApiAccessor line in the main project gives the
error

Error 1 The type or namespace name 'NotesApiAccessor' could not be
found (are you missing a using directive or an assembly reference?)
H:\DiscoverNotes\Controller.cs 8 7 DiscoverNotes

Everything compiles properly, including the C++ code, except for the above
error.

The options for the C++ project command line are (in case I have selected an
incorrect option--this is my first foray into Managed C++):

/O2 /D "_WINDLL" /FD /MD /Fo"Debug\\" /Fd"Debug\vc80.pdb" /nologo /c /clr
/TP /errorReport:prompt

All three projects are in the same solution. I have created a reference for
the NotesApiAccessor project in the DiscoverNotes project, which my web
research tells me should be sufficient to make it work since all of the
projects are in the same solution.

The object browser correctly displays the objects in the NotesApiAccessor
project.

I created a test project also in C# to see if I was accessing objects in
another project correctly, and using methods within that project from
DiscoverNotes works.

The NotesApiAccessor project is in C++ because it will be used to access an
API library which is provided only as a .LIB file and a set of C header
files--so I cannot simply use C#.

I would be very grateful for a pointer to some documentation I should read
or a hint on what I am doing wrong.

Apr 3 '06 #1
0 1472

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

Similar topics

1
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a...
0
by: Scott Chang | last post by:
Hi all, I tried to use Managed C++ coding of VC++.NET (2002)and OpenGL version 1.2 to draw a hexagon shape of benzene. My OpenGLdrawBenzene.cpp is the following: // This is the main project file...
3
by: Dave | last post by:
I'm at a point where I would really like to focus in on learning .NET but am having a hard time deciding which language to use. I learned to program in C++ but have spent quite a bit of time using...
7
by: wmkew | last post by:
Hello everyone I'm encountering a R6002 Runtime error and several bugs when trying to generate a simple Managed C++ application with .NET 2003. The main problem seems to arise from linking with...
9
by: Pascal Cloup | last post by:
Hello, I write a Dll of managed C++ class that contains a piece of code like the following liines. This code always fails when attempting to create a new not managed class. Someone has an...
3
by: Andreas | last post by:
Hi! I'm currently developing a DLL that makes use of C++ and .net (mixed) using Visual Studio 2003. Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the...
3
by: Cmtk Software | last post by:
I'm trying to define an enum which will be used from unmanaged c++, C++/CLI managed c++ and from C#. I defined the following enum in a VS dll project set to be compiled with the /clr switch: ...
3
by: dp_mpi | last post by:
Hello Everybody, I am developing a managed lib (using Microsoft Web Services) and I am including it into a c++ project. The project doesn't use /clr optionk, so when I include my linbrary's header...
5
by: =?Utf-8?B?aWduaGVucnk=?= | last post by:
I have a managed C++ project and two C# projects. All are class library projects. The C++ project links with native C++ static libraries and references to one C# project. The projects structure...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.