Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 19th, 2007, 3:35 AM   #11
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 6 bl00dninja is on a distinguished road
i'm probably missing something here cuz i'm kind of tipsy right now, but i don't see any c++ code in your post. are you trying to get get visual studio to convert your code or are you trying to rewrite the code in c++? my FIRST impression is that one language is not another and this whole thing is retarded. my second impression is there is something going on that i am not aware of. if you are trying to rewrite the code...that code would be helpful. if it's something weird, ignore this.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Jan 19th, 2007, 7:32 AM   #12
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3 pegasus001 is on a distinguished road
Quote:
Originally Posted by lectricpharaoh
If managed C++ is like C#
If you are going to program in visual studio with managed code then it is the same because in C# u do :
using System;
While in C++ u do:
#include <System.dll>
And everything is the same. Just the syntax changes. System::Console....
Thats why visual studio is good because u use the same code in different languages.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Jan 19th, 2007, 3:39 PM   #13
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,292
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by pegasus001 View Post
If you are going to program in visual studio with managed code then it is the same because in C# u do :
using System;
While in C++ u do:
#include <System.dll>
And everything is the same. Just the syntax changes. System::Console....
Thats why visual studio is good because u use the same code in different languages.
Huh? What drugs are you on? A using directive is simply a convenience; it tells the compiler how to resolve names that aren't otherwise in scope. You could skip all the using directives if you used stuff like System.Console.Write() (C#) or System::Console::Write() (C++). It also has an additional usage in C# where it guarantees an object is destroyed and its destructor called when it goes out of a scope, but this is entirely unrelated to the first meaning of the keyword.

In C++, the #include directive simply inserts the entirety of the specified file at the point of the #include. Think of it as copy-paste (which is why it would cause all sorts of problems if you inserted a binary file, such as a .DLL). I suppose the nearest equivalent in C# would be adding references to the project, though this seems more along the lines of specifying which object files/libraries to use during linking, for C++.
__________________
Java? Rant? Me? Noooo....
lectricpharaoh is offline   Reply With Quote
Old Jan 22nd, 2007, 10:38 AM   #14
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3 pegasus001 is on a distinguished road
Quote:
Originally Posted by pegasus001 View Post
While in C++ u do:
#include <System.dll>
Sorry it is :
#using <System.dll>

The using directive is somewhat similar to the include directive only that the using directive includes the manifest assembly, which describes namespaces, types, enumerations etc.

And the :
 using System
is equivalent to
using namespace System;
In c# u include the references of the .dlls.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Jan 22nd, 2007, 10:54 AM   #15
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3 pegasus001 is on a distinguished road
If u want a fully .net gui program use the include mscorlib.dll. By doing this you tell the compiler that u will be using some classes and namespaces contained within the mscorlib.dll file.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Maverik 6.2 (from C) megamind5005 C 16 May 3rd, 2006 6:41 PM
visual basic pixel image comparison youngnoviceinneedofhelp Visual Basic 3 Mar 19th, 2006 2:57 PM
C# is basically Visual Basic with C-style code Josef_Stalin C# 25 Nov 5th, 2005 9:36 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:23 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC