473,398 Members | 2,125 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,398 software developers and data experts.

mscorlib.dll

I have loaded Xll+ which is a excel development addin. I
have included as first line of my VC++ module (visual
studio.net 2003):

#using <mscorlib.dll>

and yet get compile error:

fatal error C1190: managed tageted code requires '#using
<mscorlib.dll>' and '/clr' option

also, I would like to use Random() so I can use Random.Next
() but only rand() will work.

In other VS projects (without Xll+), Random works fine and
so I think its something to do with the Xll+ addin.
Nov 17 '05 #1
1 2309
"rupert" <an*******@discussions.microsoft.com> wrote in message
news:15****************************@phx.gbl...
I have loaded Xll+ which is a excel development addin. I
have included as first line of my VC++ module (visual
studio.net 2003):

#using <mscorlib.dll>

and yet get compile error:

fatal error C1190: managed tageted code requires '#using
<mscorlib.dll>' and '/clr' option


Choose Properties from the Project menu. Then click on the Configuration
folder. Under it, select the General Options. In the edit box labelled "Use
Managed Extensions" in the right pane make sure "Yes" is selected. That
turns on the "/clr" switch that the diagnostic references.

That should remove the error but note that I have no idea as to whether
Excel add-ins may be cast in managed code. You may want to post again in a
group devoted to Office development topics.

If it turns out that you can not use managed code in an add-in, then you'd
likely have to use one of the interoperability mechanisms ("it just works"
aka IJW or "Platform Invoke" aka P/Invoke) to get your unmanaged Excel DLL
to load a managed assembly and to make use of the services that assembly
provides.

Just by the way, if you get stuck, you should be able to find help on
interoperability issues here.

Regards,
Will
Nov 17 '05 #2

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

Similar topics

0
by: Tom van Dijck | last post by:
Hi I'm currently in the process of writing my own mscorlib.dll, this in order to write my own Virtual Machine. Now all may seem a bit useless, but I'd like to use C# as scripting for our game...
2
by: MFRASER | last post by:
I am getting a System.Security.SecurityException when I try and laod a dataset from an xml file any ideas on what would cause this? System.Security.SecurityException' occurred in mscorlib.dll ...
6
by: mccoyn | last post by:
I have a header that is included from some files that use mscorlib and some that don't use it. One of the macros in this file uses the __pin keyword. When this header is compiled with a source file...
0
by: Michael R. Pierotti | last post by:
Has anyone seen this error before when trying to make the install on a program. ------ Starting pre-build validation for project 'HafaSMPPInstall' ------ WARNING: Unable to find dependency...
4
by: Earl | last post by:
Created a .dll to use in multiple projects. Very simple, one class to return a purpose for a particular version. But when I added it as a reference to one of my other projects, I get a build error...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
0
by: qiang | last post by:
Hi everyone, Could you please take a look at an exception for ASP.NET application? My ASP.NET application is using Infragistics WebChart control. I encounter an exception below when...
0
by: richlm | last post by:
I downloaded the Spy++ sample from http://msdn.microsoft.com/msdnmag/issues/06/04/ManagedSpy/ It works and builds fine on my desktop PC (which is a recent clean install of XP + Visual Studio...
0
by: paulodonnell99 | last post by:
Hi, I am trying to build an installer application to run on the compact framework, I want to produce a netmodule using CSC.exe, then use AL.exe to embed resouce files and produce an exe. My...
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
agi2029
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,...
0
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...

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.