Saturday, May 9, 2009

How do I use a third party DLL in my Visual c# .NET project?

I am new to Visual C# .NET. I bought a DLL to use in my program. How do I add it to the project and make sure it gets distributed with the final release?

How do I use a third party DLL in my Visual c# .NET project?
Put the DLL somewhere where you know it's path. Open the C# project/solution in visual studio. Go to Project pulldown menu. Choose Add Reference. At the reference dialog, click on the COM tab. Click Browse and find your DLL.


I am BRAND NEW to programming and have to learn Visual C++ .net FAST. Any suggestions?

I have been asked to develop a .net application in C++ .NET application. I have installed a trial copy of MS Visual Studio 2005 and would like to know if anyone knows of a book or resource that can get me up to speed quickly. I work hard and am a fast learner.

I am BRAND NEW to programming and have to learn Visual C++ .net FAST. Any suggestions?
Wow. C++ is the hardest of all the .NET languages, because it can do more. I'd talk whoever this is into letting you do it in C#, which you can learn more quickly.





Part of the problem is that C++ is also built for unmanaged code, has more ability to work with it than other .NET languages - and is primarily used for unmanaged code. Most Windows C++ tutorials will teach you how to do classic C++ with ATL or MFC... and then you'd have to learn to use the Framework, which is totally different.





Sybex's Visual C++.NET book is pretty good... but you'd be expected to have a grounding in C++ already:





http://www.amazon.com/exec/obidos/tg/det...





I suppose you could quickly up yourself on C++ For Dummies.... and then move up to Sybex's Visual C++.NET
Reply::D... learn BASIC, it's easy. Then, using your knowledge of that, it should be a little easier to learn visual c++... it worked for me at least. If you don't have time to do that, get a dummies book :D

aster

Sorry if i ask this Question again!!! (Microsoft Visual Studio.net C++!!!?)?

How hard is it to learn programming using it?? I've already got a book with 1200 pages describing it. I've also got the softwares needed.





I'm thinking 1 year?? or more??





I usually learn fast when it comes to computers. I'm thinking about practicing like 4-5 hours every day.


the book title is Visual C++.net : the complete reference

Sorry if i ask this Question again!!! (Microsoft Visual Studio.net C++!!!?)?
C++ is a complex language. Aside from knowing the syntax of the language, writing good programs means understanding of the computer hardware. You'll be writing lower level programs than, say C# or Java. Consequently, you'll need to make good design choices.





If you have never programmed before, you have an additional challenge. Aside from learning C++, you need to learn computer science concepts. Sorting algorithms, linked lists, search algorithms, and so on. And you'll have to start learning about various protocols and details to write serious programs. This will take a few years to get to an intermediate level, if you are completely fresh.





A piece of advice when it comes to C++. You need to understand that C++ is a standard language. Whether you program on Linux or Windows or Macs, with Visual C++ or gcc, the language stays the same. Consequently, it is important you learn standard C++ first, rather than how Visual C++ does a few things like making GUIs or the like. If you seriously want to learn C++, I recommend either C++ Primer by Lippman or Accelerated C++ by Koenig, as both are by actual C++ gurus. Google the books on Amazon and order one of them.





You can look up book reviews on ACCU (google it!).
Reply:learning programming depend on how u comprehend interlectually. To some its long and to some its very slow ,at the end they all achieve their aim.
Reply:Learning C++ isn't too difficult. However, one book can't explain everything and some books aren't written well. Look around book shops for other books on C++ programming. Also, examining source code will help too. Look around the Internet. There's plenty of places where you can get source code and information on programming in C++. There are also web sites with forums where you can get help.
Reply:What's the reason behind you wanting to learn c/c++ ? PRogramming today is all about learning the RIGHT LANGUAGE for the type of programming you want to do.





C/C++ is best suited for systems programming, hardware programmiing, games, graphics and animation etc. To really use the language effectively, you first need to learn the core language very well, then learn an API that goes with what ever type of progam you want to create. If your going to work in graphics you want to learn a C/C++ Graphics toolkit.





All professsional programs are built on Toolkits and libraries





So it comes back to what kind of software do you want to make let that dictate the language to learn.





Good luck.
Reply:Programming is very complicated and the books dont seem to break things down so good luck with that.
Reply:Programming is a lifelong learning experience. You'll never know everything and things are always changing. But, I would assume that if you actually stuck to it and studied, you could become fairly proficient with Visual C++ in a year or two. My university program I just graduated from typically requires the freshman and sophomores to work primarily in C++ for almost their entire first two years to make sure that they are capable of knowing all of the basics of it in a single language before branching out into others.





I would say, however, that if you are a relative novice to computer programming...Visual Basic.NET would be your best route. You already have Visual Studio, I would definitely suggest going towards VB.NET before attempting to tackle more complex languages like C++.


Using "Macromedia SWF or FLA" files on Visual C#.NET...?

I'm using Visual C#.NET for programming and want to use


Macromedia file formats(SWF or FLA) on a "Windows Application"


project.


please help me to find out how can i do it.


thnaks a lot

Using "Macromedia SWF or FLA" files on Visual C#.NET...?
u can use flash by doing this.





tools-%26gt;Choose Toolbox items-%26gt;COM-%26gt;Shockwave Flash Object





and click ok then





the shockwave is added to your toolbox.Than drag it to your form.





İf u get an error.Try this:





go to your project folder and delete the shockwave file that .net created dynamically and then return back to your project and drag it again.This will work.





U get an error because .NET cannot create the object.U have to delete the previous file so that u can try again.





when u add the shockwave file in the code view try something like that:





axshockwaveflashplayer.movie="moviepat...





axshockwaveflashplayer is the name of your flash object.movie is the property that you will work flash animation or alike in shockwave flash object.








İf u get an error please write note


Learning programming directX with visual C++ .net?

i know how to program using opengl and visual c++.net 2005


the question is how can i program using directX instead of opengl? do you know a step by step source like the source of opengl learning (nene.gamedev.net)?

Learning programming directX with visual C++ .net?
Get the DotGNU compiler and get real.


http://www.gnu.org/software/dotgnu/pnet....


http://www.gnu.org/software/dotgnu/relea...


http://www.gnu.org/software/dotgnu/dange...


Gert C++ stuff at:


http://www.arachnoid.com/cpptutor/index....


Will code written in Visual C++ 2005 Express Edition compile using Visual C++ .NET 2003?

I'm taking a C++ class and the professor will be compiling our code in Visual C++ .NET 2003. I'd like to use Visual C++ 2005 Express for development because it's free. Will my professor be able to compile my code if I use 2005?

Will code written in Visual C++ 2005 Express Edition compile using Visual C++ .NET 2003?
i think it can compile, the .net2003 is the same as 2005 in c++,the different is about c#
Reply:Yes if you are not writting code containing compiler specific instructions.
Reply:definatly yes buddy .......b`coz in 2005 d`bugger is same as 2003 the differnce is some tools included in the main winmdow and the extra instructions included in it but that too for vb or C# not for c++ so need not to worry.

marigold

Microsoft Visual Studio.net C++!!!?

How hard is it to learn programming using it?? I've already got a book with 1200 pages describing it. I've also got the softwares needed.





I'm thinking 1 year?? or more??





I usually learn fast when it comes to computers. I'm thinking about practicing like 4-5 hours every day.


the book title is Visual C++.net : the complete reference

Microsoft Visual Studio.net C++!!!?
dont worry its easy....only the concept needs to be mastered and rest is all ur creativity....as u said u learn quicklyu wen it comes to computers.....thts the plus point u have .go for it dear....and dont fear .tk cr GOD BLESS U
Reply:Well sure you can get a hold of it but will take time what I would suggest is practise a lot .. keeping trying all the programs in it and sometimes even exercise.


About visual C#.NET Console Program. (very simple if you know)?

hi all, I'm working on a visual C#.net console program and I need to change the color of my background (and text) of my program (the console if usually black and white) using "coding" inside my program. How?





and I know inside the msdn website, there is the exact information I need but I can't find them, care to show me the link?





finally, any suggestion how to make my console program more better???





Thanks...

About visual C#.NET Console Program. (very simple if you know)?
You can simply set the properties of the Console Class like so





Console.ForegroundColor = ConsoleColor.Red; //changes text color


or


Console.BackgroundColor = ConsoleColor.Blue;








If you run this then only the text on the screen will have the new colors you set. You can fix this by when you start your program set the colors that you want and then call





Console.Clear();





Doing this makes the entire window the colors that you want.


If I use Microsoft Visual C++ 2005 Express Edition is it C++.Net?

I want to learn C++ and have downloaded Microsoft Visual C++ 2005 Express Edition. I already use Microsoft Visual Basic 2005 Express Edition which is Visual Basic.Net so is it C++.Net and if so can you reccomend a good free C++ complier.

If I use Microsoft Visual C++ 2005 Express Edition is it C++.Net?
Yes, it is a compiler for .NET applications. It can also compile for the native Win32 platform but first you must download the Platform SDK from the Microsoft page shown in my Sources section.





You can also get the free Gnu C++ compiler (also see Sources section.) Both compilers are good quality in my opinion. It depends where you think you're going. If you want to gain expertise with Visual Studio, and you think you'll eventually be using the expensive professional version at work, then go with the Microsoft product. Choose the Gnu product if you think you might be using multiple platforms in the future, especially Linux, and portability is important to you. Also, consider joining ACCU, the Association of C and C++ Users - it's for people of all levels of experience.
Reply:You can get Microsoft Visual C++ free from Microsoft but not Visual Studio. The compilers are in Microsoft SDK and DDK (maybe not all varieties). I got Microsoft Platform SDK for Windows Server 2003 SP1 for the 64 bit and 32 bit compilers and 64 bit assembler and DDK for 32 bit compiler and assembler. With no Visual Studio, the compilers/assemblers can be run via command line options.