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

problem with #using <mscorlib.dll>

118 100+
Hi,

i am a beginner in c++.

i wrote the program like this

#using<mscorlib.dll>
#using<System.Windows.Forms.dll>
// Class derived from Forms

using namespace System::Windows::Forms;
int main()
{
MessageBox::Show("Hello World");
return 0;
}

in this i got the error : c:\documents and settings\administrator\impl.cpp(1) : fatal error C1021: invalid preprocessor command 'using'
Error executing cl.exe.

i am useing the 'Microsoft visual c++ 6.0.

Suggestions are requested on the problem...
Jun 4 '08 #1
2 3231
Banfa
9,065 Expert Mod 8TB
Stop using a compiler that is 7 years out of data and get a more up to date one MSVC 2005 or MSVC 2008
Jun 4 '08 #2
oler1s
671 Expert 512MB
Swethak, you’re going to have to answer one question for us. What do you hope to accomplish, by trying to compile C++.NET (actual .NET code), with both an outdated C++ compiler, and something that predates .NET?
Jun 4 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Mike | last post by:
I need to provide an example to upper management on how this works, but I don't have the time to write one. Does someone already have some code (java and c/vc/vc++) that demonstrates java using...
822
by: Turamnvia Suouriviaskimatta | last post by:
I 'm following various posting in "comp.lang.ada, comp.lang.c++ , comp.realtime, comp.software-eng" groups regarding selection of a programming language of C, C++ or Ada for safety critical...
7
by: iceColdFire | last post by:
Hi @all. I am working on a c++ module. I am trying to compile one of the programs containing a statement of type #using <mscorlib.dll> however, there seems to be some problem...#using...
3
by: Wiktor Zychla | last post by:
I have a problem I cannot solve. My application hosts IE activex control. I follow the standard procedure: I just aximp shdocvw.dll. Note that this gives you two files: axshdocvw.dll and...
2
by: Tommy Vercetti | last post by:
I'm new to Managed C++ development, and I can't seem to get started. Every time I try to include vcclr.h I get bizarre compilation errors. I've isolated this to a really simple case: In Visual...
5
by: Jay A. Moritz | last post by:
Error: The dependency '<my dll>' in project '<my project>' cannot be copied to the run directory because it would conflict with dependency '<my dll>'. I am getting a dependency error building...
0
by: Ryan | last post by:
Hi all, If I open an asp page and am using a vb6 dll, I get intellisense when I use the Server.CreateObject syntax. When I create a dll using vb.net, the methods and functions work, but I get...
24
by: Marcus Kwok | last post by:
Hello, I am working on cleaning up some code that I inherited and was wondering if there is anything wrong with my function. I am fairly proficient in standard C++ but I am pretty new to the .NET...
2
by: Bern McCarty | last post by:
In the old MEC++ syntax I can do this: // compile in VS 2005 shell with cl -clr:oldsyntax -LD ArrayCopyOldSyntax.cpp #using <mscorlib.dll> public __gc class CopyTest { private:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.