Tuesday, July 14, 2009

\Everytime I run Windows Media Player I get a Microsoft Visual C++ RunTime error No:6034.?

I have un-installed Windows Media Player and I get the same problems occurring when I reinstall. I have also downloaded the MS Visual Studio 5 C++ libraries and still no resolution.





I am also having problems with IE7 for instance on Ebay I cant view the 'How you are protected' section OR I cant post any ads as their upload image feature wont work on IE7. Everything works fine on FireFox. I have also un-installed IE7 and the problems are still there.





Its really annoying me as I cant seem to find any information on this so any help would be appreciated.





Regards


Will

\Everytime I run Windows Media Player I get a Microsoft Visual C++ RunTime error No:6034.?
You might have a faulty codec on your computer.





Windows Media Player uses codecs to decode the audio and video files.





If you have installed any new codecs recently, try uninstalling them to see if the problem still occurs. For example, if you have installed the DivX codec, then try uninstalling it and then seeing if that works.





Assuming that works, download the latest version of the codec and reinstall it.





You can test the theory that the codec is the problem by using mplayer2.exe. Mplayer2.exe is a cut down version of Windows Media Player. This will only work in Windows XP.





To access it, click on the Start Menu, then point to run. In the Run dialog box, type mplayer2, then press Enter.





Try opening a video file in this program to see if it causes the same problem. If you get the same problem in mplayer2 then its likely that the a damaged codec or other shared component such as a Media Player plugin or skin is the cause.





If you have System Restore turned on, then you could consider rolling back your system to a time when you know the system was functioning properly.


C projects in Visual Studio?

I don't seem to be able to create a new C project in VS -when I click on New project I don't see any choices for C.





I have tried on VS 2002 so far.

C projects in Visual Studio?
http://www.microsoft.com/express/downloa...





go download it from there. its the newest version. its only a 30 day trial but it at least lets you see if it works on your system. what operating system are you running? that possibly may help
Reply:Just start a console project. You can work in c or c++


I am coding on Visual Studio 2008 in C. How can I stop the program terminating automatically?

Basically the code runs and what is there works well but I am just starting on how to code (read as: copying examples and following them) and would like to know how I can stop it automatically closing before I can see its outcome.


Also if you can explain the code required to stop this occurring and how it work much appreciated.





Cheers

I am coding on Visual Studio 2008 in C. How can I stop the program terminating automatically?
The key is to do a console input of some type (getchar(), scanf(), ...), causing the program to halt with the text in the console window until you press Enter. A message to the screen just before this is also useful to know you've reached that point and aren't just hung somewhere earlier.





Hope that helps.
Reply:Two ways:


1. Run the program manually through the command prompt. i.e. Start| run| enter "cmd"





2. put a sleep (x seconds) in your program.
Reply:You could use getch() at the end of your program, which will wait for you to press a key before it terminates. Alternatively you could run the application from the command line.
Reply:Try adding system("PAUSE"); at the end. If you return 0; do it just before that.





System() calls an external program and Windows has a program called PAUSE. You should be all set.


I am using a full version of Microsoft Visual C# on a school PC... why is there no System.Draw namespace?

It's Visual Studio 2005, presumably with all the C# components installed. When I use System.Draw, it says it can't find it. When I look at the dropdown after typing:





using System.





the list does not contain Draw. Is there a way I can get this System.Draw namespace installed onto the computer, or is it part of the administrator's installation of Visual Studio / Visual C#?

I am using a full version of Microsoft Visual C# on a school PC... why is there no System.Draw namespace?
http://blogs.msdn.com/coding4fun/archive...

survey for cash

Visual Studio 2008 for C#?

I'm working on a simple excercise and cannot figure out the code to.....


Create a form with two list boxes. Add a number of items to one list box at design time using the


Properties window. Create a button that, when clicked, removes the selected item in the first list and


adds it to the second list.


Thanks in advance to anyone that can help.

Visual Studio 2008 for C#?
Just create the two listboxes and populate one of them.


Create a button and add this to the button click method:


listBox2.Items.Add(listBox1.SelectedItem...


listBox1.Items.Remove(listBox1.SelectedI...


Can't compile using Visual Studio Express?

Hello everyone,





I'm trying to compile a program with this line:





#include "stdafx.h"





Yet for some reason, I compile it and get a fatal error that says the header file cannot be found. I thought this came with all Visual Studio software, but I guess I'm wrong.





I'm using Visual Studio C++ 2005 Express Edition; is it a download that I need? Please post a direct link to the site if it is a download.





I tried downloading something earlier, but no success.





Thanks.

Can't compile using Visual Studio Express?
You should be able to safely remove that header without affecting your compilation.
Reply:I'm not a big C++ programmer, but I found this on 'thescripts' :





http://www.thescripts.com/forum/thread13...





Sounds to me like it is not necessary, and you may be able to remove it. Check out the link - some good info.


How do I get user input like text and numbres from windows forms controls using c# and visual studio 8?

I've been searching MSDN for days now but I can't find a definite answer. I know how to handle events and set item propreties at runtime but I have no clue as to how I might get a character string from lets say a rich text box control.

How do I get user input like text and numbres from windows forms controls using c# and visual studio 8?
If it's a textbox,


string strVal = txtControl.Text; // you can aldo do .Text.Trim();


If it's a dropdown


string strVal = (string) ddlControl.SelectedItem.Value;





Some objects have string properties (.Text) you can access directly and store into string variables; others have "object" types (.Value) that you'll need to cast. Then you can also convert them to other types by writing


int iVal = Convert.ToInt32(strVal);


for free-hand input, beware of conversion exceptions.





You can collect the user input either upon clicking of a button (set up an event handler for the button's Clicked event) or by handling the TextChanged or ValueChanged events of controls.


Creating event handlers is best and most accurately done via the designer.


I need a way to write a cording for simple calculator in c# language.(visual studio .net 2005)need comments .?

this should be the simple windows calculator and need comments on each line

I need a way to write a cording for simple calculator in c# language.(visual studio .net 2005)need comments .?
Sounds like you want someone to do your assignment. How about you start and then ask some specific questions and I'll be glad to help you.


-Cheers,


Joe

customer satisfaction survey

Looking for good C++ beginners book using MS Visual Studio '05.?

I'm a total beginner programmer and would absolutely love if someone could recommend a very basic book for C++ that uses the MS Visual Studio 2005 compiler. Thanks a bunch!

Looking for good C++ beginners book using MS Visual Studio '05.?
oh dude, I highly recommend Ivor Hortons Begging Visual C++.





Its very simple to read, the author makes the journey very interesting while reading the book.
Reply:If you are a total beginner then I would recommend not flying straight into C++. Find some things that explain basic programming principles


Newbie book for C++ standard ? that works with visual studio 2005?

Hi,


I'm looking for a book that is C++ standard that works with visual studio.


I'm new to programming. so yes please recommend me a book that u think is good.

Newbie book for C++ standard ? that works with visual studio 2005?
C++ Primer (4th Edition) by Lippman or Accelerated C++ by Koenig. These are two beginner suitable books that are written by C++ experts. They are also intended for serious learners.





As long as you write standard C++, it will work with Visual C++.





In the future, please Google.


How do i change binary bit numbers to decimal in C++? ( Mircosoft Visual studio )?

For example,





when i key in 00010001, the result will be equal to 17?








Programmer expert please help!

How do i change binary bit numbers to decimal in C++? ( Mircosoft Visual studio )?
an inefficient, but easy to understand method:


start with a variable 'total' set to 0


as each character is entered, double the 'total' and add the new digit (0 or 1)





to make it interesting, you can even display the running total elsewhere on the screen!


for your example it would display:


0


0


0


1


2


4


8


16


17
Reply:look for the keyword 'ascii' to convert binary to decimal or viceversa
Reply:Use a for loop to calculate xn*2^n-1+x(n-1)*2^(n-2)+.... +x0


Else contact a freelance programmer for helping you doing your project assignment. Check websites like http://getafreelnacer.com/


How do you center and make letters flash using C++ in visual studio?

I have a small programming assignment and I need help so I can earn extra points. Thanks for your help! I'm just putting some text on a console screen. Thanks.

How do you center and make letters flash using C++ in visual studio?
There is a limit with what you can do on a console screen. Once it is out to the screen, you can't modify it. You won't be able to make it flash, and I'm pretty sure the closest thing you can come to centering it would be to add some spaces to the beginning.





Sorry ... console applications are boring! You'll need to wait until you start working with other types of windows, then you can start adding fun stuff.
Reply:Use timers to switch.


I prefer dots to -%26gt;.


C++ is just an under declaring version of CSharp before intermediate code.


It also depends on which control as STRINGs and T-STRINGs are objects as direct linguals generated from a System.Drawing position.


But why C++, C++ isn't easily generated, unless you have ALOT of time on your hands. Try Java (JSharp, J#) / C# (CSharp, C+, C) or Visual Basic (.NET, which gets converted into CSharp along with JSharp into C++, into intermediate code (lots of letters of all linguals (direct of consonant produced by a tongue and can be any form as a letter) as a string of which is orientated by a binary key to XCode (i.e. 0x1=A, etc).

free survey

C and Java programming using Microsoft Visual Studio Proffesional.?

Hi. I just bought Microsoft Visula Studio Proffessional and I am a C and a Java programmer. Can anyone tell me to comiler C or Java programs using Microsoft Visual Studio Proffesional?

C and Java programming using Microsoft Visual Studio Proffesional.?
You can't use MS Visual Studio for Java. For that, you need Sun Microsystem's Java Developer's Kit:





http://java.sun.com/javase/downloads/ind...





A good free C and C++ compiler is Dev C++, found here:





http://www.bloodshed.net/index.html


How we run a program of c++ in visual studio?

please help

How we run a program of c++ in visual studio?
i forgot. But i remember there's an option available for compiling in tool bar


How we run a program of c++ in visual studio?

please help

How we run a program of c++ in visual studio?
If you have source code, compile it; otherwise, write a hello world program and compile it.





#include %26lt;iostream%26gt;





using namespace std;





int main()


{


cout %26lt;%26lt; "Hello World !!!" %26lt;%26lt; endl;





return 0;


}
Reply:I am not sure I understand your question but here what I would do:





create it, compile it and then run it if it's already created open it in visual studio and then compile and run it





or you could compile it and then click on the executable





dougc
Reply:i forgot. But i remember there's an option available for compiling in tool bar
Reply:First install visual studio ...


Then open the C++ file using Visual C++ .


The code will be shown......


Then go to build menu %26amp; select compile..


when no error is there...


choose build menu--%26gt;Execute





The program will be executed............Enjoy!!!!!!!!!!!
Reply:buy the cource book of c++ and get complete knowledge.
Reply:get knoeledge frm c++ course book


Writing C# in Microsoft Visual Studio?

I have set up a form in Microsoft Visual Studio and have a text box where a user would input a number and I need to take this number and do calculations with it. My question is: How can I read the number that they type in the text box? I keep getting build errors saying that it can't chnage it from double to boolean, but if I have it declared as a boolean, then I can't do mathematical calculations with it. Any suggestions?

Writing C# in Microsoft Visual Studio?
99% of the time when you get the "cannot convert to boolean" error, it means you're using the wrong evaluation...





this code: if (myText.Text = "5") response.write("test");


will give the boolean error.





you want to use (myText.Text == "5") response.write("test");





Check that - I'd bet almost anything that's your problem.
Reply:You cant actually write C(+(++)) in Visual Basic, you need a compliler then you can build sub routines to jump in and out of the C
Reply:Parse the textbox text it to an integer. I'm not sure how to do it in c# then write your calculation code. Booleans are for yes no true false so you wondn't want to use it in calculations. keep everything double.








Microsoft Visual Studio 2005 Help Group


http://tech.groups.yahoo.com/group/Micro...
Reply:try {


if(txtMyTextBox.Text != string.Empty) {


int Number = int.Parse(txtMyTextBox.Text);


}


}


catch (FormatException ex){


//string cannot be casted to integer - take appropriate action


}


catch (OverflowException ex){


//an overflow occured - take appropriate action


}





if you want to read the string into a double use the Double.Parse (String) instead of int.Parse(String) method.





Hope this helps
Reply:It's difficult to say what your problem is without seeing code, but I'd say you're trying to perform a boolean operation on a double, which isn't allowed. It's not telling you to use booleans, it's telling you that you're trying to convert a double to a boolean and it can't do that.
Reply:ANSWER: DO NOT USE C#


Using Microsoft software is always a terrible thing to do. It is best to avoid it if possible. In several years... no one will want to own a computer with Windows on it (due to Vista and is DRM) so why on earth would you want to program in a language that will only run on a Windows machine?!





Instead try learning a useful programming language like Java or Ruby. Hell even C++ is better than C#.


If you are using Java I would recommend using Eclipse as IDE.





If you are using Ruby... Emacs would probably work the best. But I also kind of like SubEthaEdit

survey results

How hard to do C?Does C alike Visual Studio for VB?

There are several levels of expertise in C programming. I started with C and Assembly language so they're easier for me than VB. There are several good beginners books for C. Check your local bookstore or do a YAHOO search for it.





If you have a Linux machine there is a free C compiler (GCC) available with most versions.

How hard to do C?Does C alike Visual Studio for VB?
Come on buddy C is very easy to learn and implement


Hi! You know how c# uses visual studio compiler, my question is what do i use for Python and where do i downld

so where do i dwnld it from pls and if possible i need a tutorial on python

Hi! You know how c# uses visual studio compiler, my question is what do i use for Python and where do i downld
this :)


enjoy
Reply:Look for a Python that works under .net following is a link or try iron Python. If you already know C# this will be easiest.


http://sourceforge.net/project/showfiles...





Other way is to find alternate IDE like active state is. Active state is IDE for Python /Perl and quite a bit of other free languages. The compiler is free but you have to pay for IDE.


www.ActiveState.com





Samples and documentation can be found with Iron Python


http://www.codeplex.com/IronPython


http://www.thescripts.com/tutorial.html
Reply:Python doesn't require compilation as it is an interpreted language (although there are programs to turn python code into native exe I think py2exe is the package?)





The previous link provided will be good to get the python interpreter loaded on your computer... I recommend BoaConstructor for your dev environment... and for tutorials just look at some code... if you're comfortable with c#, you should be able to pick up python relatively quickly.


In C# and Visual Studio .NET 2005, how do you call one form with another?

I am making a game, and whenever the game ends I need a form to pop up asking the user if he or she would like to play the game again or exit. Is there a way to implement this using MessageBox.Show or do I have to find a way of doing it with my own form?

In C# and Visual Studio .NET 2005, how do you call one form with another?
You can do this with the MessageBox.Show() method. This method takes an overload where you can specifiy buttons and the question string to ask like so:





MessageBox.Show("Do you want play another game?", MessageBoxButtons.OKCancel);





The cool thing about this is it will wait for your user to decide what they want and you can collect their response in a special DialogResult variable.





So just do this:





DialogResult result = MessageBox.Show("Do you want play another game?", MessageBoxButtons.OKCancel);





then, just query your result and take your action as necessary like so:





if( result == DialogResult.Ok)


{


//play game


}else


{


//quit application


}





Using the MessageBox is effective and simple and should give you the functionality you require.





Good luck!





-Ralph


How do i compile n run a c++ program on microsoft visual studio?

how do i type compile n run a c++ program on microsoft visual studio?

How do i compile n run a c++ program on microsoft visual studio?
Press CTRL+F5 to compile it, then F7 to run it =]
Reply:F7
Reply:You have to create a project. Then write your code and use the menu bar to compile /debug /run.


NOTE: if you already have your code you might have many problems to compile - There are lots of incompatibilities among different c++ compilers. If you need more help please tell us more details, like if your program is console based or a windows project, if you are using MFC or you are porting from another API...

community survey

I need help with "if" statements in C++ Microsoft Visual Studio 2005!?

ok, so im doing a homework project for my computer science class and we have to use C++ and 'if' statements





i need to make the statement go like this...


i have to have an expiration date and the current date (the expiration date is for a food product)





i have all the integers saved from the dates like this (currentmonth, currentday, currentyear, expirationmonth, expirationday, expirationyear)





then i need to make a bool function called 'thesame' that is true if the dates are the same, and false if they are not





please, will someone help me with this or show me an example of what it might look like, the book doesnt help for this class and its due tomorrow

I need help with "if" statements in C++ Microsoft Visual Studio 2005!?
Its easy....





boolean thesame(int currentmonth,int currentday,


int currentyear,int expirationmonth,


int expirationday,int expirationyear)


{





if ((currentmonth+currentday+


currentyear) ==


(expirationmonth+


expirationday+expirationyear))


{ return true; }





else


{return false;}





}





sorry for all the line ends but yahoo won't display them if i don't add them.
Reply:If you just want to know if they are the same





bool thesame(int currM, currD, currY, expM, expD, expY)


{


if(currM == expM %26amp;%26amp; currD == expD %26amp;%26amp; currY == expY){


return true;


else{


return false;


}


}





You would have to do a little more work if you want to know if it is before or after.


Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?

This is the book


http://search.barnesandnoble.com/booksea...


Is it a good first guide for the programming scene with c#?

Is this book good to go with c# programming visual studio 2005 and xna game studio 1.0 refresh?
Them Head First books from Oreilly are ok.





It really didn't say if it was for the 2005 version or not.





As xna needs at least the 2005 C# express edition, you might want to look for books that do instruct working with 2005 (not really that much difference) but there is a few new things that XNA might use (such as generics) that might not be explained in some books.


Working with C# in Visual Studio beginner question?

In VB.NET's code editor, there's a drop-down menu of events to choose from for the form and each of its controls. In C#, the right drop-down menu contains the name of the controls instead. How do I pick controls' events and have the IDE automatically insert a handler for them?

Working with C# in Visual Studio beginner question?
select the control, go to the properties window click on the icon with lightening bolt on it and you will see the list of events, double click the event and there you go!
Reply:In C#, choose the form from the "Solution Explorer" window or select the control on the form. Then go to the "Properties" window. Notice that there is a "lighting bolt" icon on the Properties window. Click that. Now you will see a list of all of the events that relate to the form and/or control. Scroll until you find the event you want and double-click. This will create the event handler method for you complete with the correct signature. Just add your own code from there.
Reply:If you right-click a control and select properties you'll get a window that allows you to select properties. At the top of the dialog is a lighning bolt icon. Click the lightning bolt icon to see a list of events.


C++, compiling visual studio.net?

hi, i have a code in c++ written in vs.net, but i want to be able to execute this code without using vs.net aplpication,





basically i want to make it an executable file, so that a user can just douhble click on the application and run my program.

C++, compiling visual studio.net?
It if was written in the .Net Framework then the user will have to have the .NET framework installed on the machine running the executable.


The exe is created after you build and compile the code in the bin\Debug or bin\Release folder of your soultion.

order flowers

C++ question...visual studio..?

I have a question in an assignment that's really messing with my head...it goes:





2. [Marks: 25] Write a procedure void sort2(int%26amp; a, int%26amp; b) that swaps the values of


a and b if a is greater than b and otherwise leaves a and b unchanged. For example,


int u = 2;


int v = 3;


int w = 4;


int x = 1;


sort2(u, v); /* u is still 2, v is still 3 */


sort2(w, x); /* w is now 1, x is now 4 */


Also write a procedure sort3(int%26amp; a, int%26amp; b, int%26amp; c) that swaps its three inputs to


arrange them in sorted order that uses sort2. For example,


int v = 3;


int w = 4;


int x = 1;


sort3(v, w, x); /* v is now 1, w is now 3, x is now 4 */








any ideas for 10 points??

C++ question...visual studio..?
Similar to "so far north" answer, but...





void swap2(int%26amp; a, int%26amp; b)


{


if (a %26gt; b) { // ONLY swap if a %26gt; b


int tmp = a;


a = b;


b = tmp;


}


}





void swap3 (int%26amp; a, int%26amp; b, int%26amp; c)


{


swap2 (a, b) // a become smaller of the 2


swap2 (b, c) // b becomes smaller of the 2


}
Reply:How about this:





void swap(int%26amp; a, int%26amp; b)


{


int tmp = a;


a = b;


b = tmp;


}





int _tmain(int argc, _TCHAR* argv[])


{


int a = 1;


int b = 2;


swap(a,b);


.....


}





You can expand on it for the 3-parameter version.


What type should I use to store an array of strings in a class in Visual Studio 2005 C++ ?

I have used char name[20]; to store names before but this is an array itself, correct?





name = "myname"; Does this variable still use 20 bytes? Is a NULL inserted after the last letter of the name in this case?





Maybe a two dimensional char would be best here?





Like char name[20][100]; to store 100 different names?





THanks for helping this newb!

What type should I use to store an array of strings in a class in Visual Studio 2005 C++ ?
yes, char name[20][100] will store 100 names





from what I saw in my debug I typed in "mike"





and it gave me





0-3 were for m i k e


4 was '0'


and the rest were "-52" not sure what to make of it though
Reply:First of all, you're using C++ which has a standard string class. Example of using it:





#include %26lt;string%26gt;


using namespace std;


string name = "My name";





Once you're using the std::string class, you will only need a one-dimensional array (or vector or linked list).





It depends on how many strings you want to store and how you want to access them. If you use an array, you will have to resize them manually when you run out of space, or you will end up wasting space.





The standard library for C++ also includes vectors (arrays that automatically resize themselves).





You can also use linked lists to never waste space. But the problem with linked lists is that you have to look through most of them to find the particular string you want.


Microsoft Visual C++ 2008 "error creating project"?

I installed visual studio C++ 2008, got "project creation failed" error. I can't find devenv.exe to fix the script and the automatic fixer give me an error! Please help!

Microsoft Visual C++ 2008 "error creating project"?
Oh NO!!!! That sucks!
Reply:NO!!!!!!!!!!!NOT GOOD!!!!!


Visual C++ Express help?

How do I compile my program into a .exe file in Visual Studio C++ 2008 Express. If I can't, please refer to me an easy-to-use C++ compiler that lets me compile my program into an .exe file.

Visual C++ Express help?
Go To


My Documents -%26gt; Visual Studio 2008 -%26gt; Projects -%26gt;(The Name of your project) -%26gt; Debug or Release





To determine where your program is you need to know if you have compiled a Debug or a Release .exe file, to determine this there will be a dropdown box next to a green arrow in the VisualStudio window( The window that you edit/compile your Program with.) and it will either say Debug or Release but will have Configuration manager in that window.





*note about debug compiled: They run a little to a lot slower than a release version, you really wont notice the slowdown until a few hundred/thousand lines of code have been written and being used.





The F5 key is to start "Debugging" your program.
Reply:When you select build, a .exe file is created. It should be in either your Debug/Release directory under the project directory.

spring flowers

Is there a PHP development suite such as Visual Studio for C++?

I would like a IDE that has the ability to load PHP without it being installed on the local machine and also provide debugging features such as watching variables and step into code.

Is there a PHP development suite such as Visual Studio for C++?
You need php loaded onto a web server to work. It is so simple to add break codes to the scripts for testing, you don't need any front end.
Reply:You're insane - you need PHP installed to test it! Try Eclipse for parser functions.
Reply:You can try DevPHP:


http://devphp.sourceforge.net/





But of course, you need to have PHP installed.


What is good and bad points of Visual Studio 2005 (C#).?

Plz answer, if u have ever used it. like does it work properly?, what did u like?, what did u not like?, which are the good features etc. Dont copy and paste from google..thanks

What is good and bad points of Visual Studio 2005 (C#).?
I like Visual Studio a lot. I grew up writing code in plain text editors rather than an IDE like VS. 2005 has a clean crisp interface and is very robust.





Like most: feedback during build. VS 2003 seemed to hang when building large projects, but VS 2005 has a little animated thing and more feedback to know it's chugging along.





Like least: it's a memory hog. On a laptop with 1gb of RAM, Visual Studio pretty much brings it to it's knees.





Integrated compiler and debugger is easy to use. Code completion in .NET makes it really easy to write code without digging around for other docs.


What's the difference between Visual C++ 2008 Express and Visual Studio 2008?

If I'm not wrong, in the 2005 Express Edition you couldn't #include "windows.h" but I see that in this new version you can also program the Windows API. What's the catch here?


I can't seem to find the differences on the official site.

What's the difference between Visual C++ 2008 Express and Visual Studio 2008?
Visual Studio 2008 is the full version of the full studio ( more then one program).


Visual C++ is just one of the programs you can get in Visual Studio. (Also Visual Basic , Visual C# and others).


Express is a cut down version of the full program (more features) The program still works, just you have to code more, where as the full version probably has some shortcuts to help you.


Can anyone help me with microsoft visual studio .net c++ coding? (email: yoitsmejbizzzy@yahoo.com)?

plz email me if u can help me

Can anyone help me with microsoft visual studio .net c++ coding? (email: yoitsmejbizzzy@yahoo.com)?
I'll try to help if I can. It would be helpful if you described what it is you need to know.
Reply:Yep, I will be able to help too

trading cards

Is Visual C++ any different from C++ in general?

After looking at a C++ tutorial on the net, and Visual studio C++ 2008's tutorials, it appears that the two tutorials have two quite different ways of saying "Hello World". Is Visual C++ in the visual studio something different from the C++ programming language?

Is Visual C++ any different from C++ in general?
Visual C++ is an IDE/compiler tailored for creating Windows applications with the C++ programming language. It comes with many libraries for interacting with Windows, and programming with it generally favors using these libraries heavily. C++ is a general purpose programming language for creating apps of any kind. The basic syntax of the two are the same though.
Reply:Visual C++ is Microsoft's C++ IDE/compiler for C++ on Windows. Visual C++ is not a different language. There is something called ANSI C++, which a standard for the C++ language. Visual C++ is ANSI C++ compliant, so any C++ examples you find, will work in Visual Studio. The VC++ tutorials may be using precompiled headers, so the includes may look different. The IDE is designed for the professional programmer, so it tries to make some tasks easier. If you want to compile an example the best way is to do a Win32 console application and click Empty Project and uncheck "Use precompiled headers"
Reply:C++ hello world uses the console interface.


No graphics, just basic text.


so


cout %26lt;%26lt; "Hello World" %26lt;%26lt; endl;


will be output on the console window.


Visual C++ adds some bells and whistle to C++ so it supposedly makes it better and 'nicer'.
Reply:i like to know also.


I'm studying now visual studio .net (C#) & I have to make apracitcal project But I can't find any ideas..

so if any one can help me in this .I wanted to be a software or mobile appliction or have a little but hardware

I'm studying now visual studio .net (C#) %26amp; I have to make apracitcal project But I can't find any ideas..
A text editor is always a good start project. You can later build on this to make either a code editor or a base to program an IDE. Good luck!!


Do programs written in C++ in Visual Studio 2005 need any other software libraries to be installed?

I only used the libraries available to the Visual Studio 2005.


So would i need to install .net framework 2.0 or something in order for it to work on another pc?

Do programs written in C++ in Visual Studio 2005 need any other software libraries to be installed?
I don't know about VB studio, but for Visual Basic 5.0 and VB 6.0 some run-time files are required, you install them when you install Visual Basic, but when you compile a .exe and take that file to another computer it will probably not work, that's why you need to install the run-time files (here is a link http://support.microsoft.com/default.asp... )


But I'm not sure if Visual basic Studio needs those run-time files installed, I looked in the Microsoft website and I couldn't find it, I guess that Microsoft finally figured out that if they where selling a program to make apps to use in the same operative system they sell, that they should sell Windows with those run-time files included.





btw, when I used VB 5.0 it had an app to make one of those fancy setup programs that would install all the dll and run-time files required for your program, but I don't remember the name of the program :(
Reply:It depends if they use external libraries.





It is possible to write programs with no external libraries. Sometimes it is easier to use external libraries.





I hope this answers your question.


How to compile c# in visual studio 2008.?

I want to compile and see the damn console. Not weird stuff. My code is idiotically simplistic.





using System;


using System.Collections.Generic;


using System.Linq;


using System.Windows.Forms;





namespace test


{


static class Program


{





static void Main()


{


double a;


a = Double.Parse(Console.ReadLine());


double b;


b = Double.Parse(Console.ReadLine());


double average = (a + b) / 2;


Console.WriteLine(average);


}


}


}





Where is the goddamn compile button and view console button. Curse the stupid interface of visual studio 2008! Very frustrated.

How to compile c# in visual studio 2008.?
COmpile with Debugger. Just press F5.





Without debugger, just Build.

our song

Using Visual Studio's C#, how can I adjust the <TITLE> tag in the HTML?

Basically based on a database entry, I want to dynamically build the %26lt;TITLE%26gt; tag.





Thanks for answering!

Using Visual Studio's C#, how can I adjust the %26lt;TITLE%26gt; tag in the HTML?
Between my TITLE tags I would put reference to a subroutine in my script header for example





%26lt;TITLE%26gt;%26lt;%MySubName%%26gt;%26lt;/TITLE%26gt;





Then in my header I would run my database code to call my title and then use response.write to generate the title within the tags - for example





Import the namespace System.Data.OleDb.





public void mySubName(Object s, EventArgs e) {


{


OleDbConnection conn;


OleDbCommand comm;


OleDbDataReader dr;


conn = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C:\\database.mdb");


comm = new OleDbCommand("Select titlecolumn from mytable",conn);


conn.Open();


dr = comm.ExecuteReader();





while (dr.Read())


{


Response.Write( dr["titlecolumn"].ToString() );


}





dr.Close();








conn.Close();


}


}


How do I slow down the display window for C++ programs in Visual Studio 2005?

I'm writing simple C++ source code in Visual Studio 2005, and would like to see the results displayed in the display window that pops up for about 1ms and then disappears again before I can see my results. Is there any way to lock the window so that it stays up until I close it?

How do I slow down the display window for C++ programs in Visual Studio 2005?
Hit Ctrl-F5, so VS pauses the program before closing it. Or run the program from the command line, as it is intended to be run.





Or ask the user for some input at the end. That is, have the user type something in the end, anything, so that the program pauses for that input.





Or system("PAUSE").





Note: Google in the future. Your question has been answered over and over by many others.


How do I get an executable out of my basic C# program in Visual Studio?

I'm a rookie at Visual Studio/.NET. I just coded my very first 'Hello World' C# program. It works fine within Visual Studio when I try to run it. I've tried build. I want my program to be a standalone .exe (executable) that I can run from a dos prompt. It's just a simple console application. What do I need to do (step by step) to get an executable version of it? What am I missing? All I have is the .cs source code. Thanks in advance.

How do I get an executable out of my basic C# program in Visual Studio?
If you can execute your application from visual studio then that means that you already have an .exe and Visual Studio simply runs it!





The .exe is located in the "bin/debug" or "bin/release" directory which is inside your project directory.


If you have Visual Studio 2003 the directory of your project is usually at "my documents/visual studio projects"


If you have visual studio 2005 it's usually at "my documents/visual studio 2005/projects"
Reply:compile it from the build menu. you might have to adjust your toolbars if its not showing up.


What's the difference between "Visual Studio 6 Pro" and "Visual C++ 6.0"??

No difference. Visual Studio is the whole package: Visual Basic, C#, Visual J++, Visual C++, etc. Visual C++ is the same IDE (Interactive Development Environment), with only the C/C++ compiler included.

flower pots

Visual Studio .NET c++ windows form application help?

When I drag a textbox from the toolbox to the form, and I name the textbox txtBox1, now from the source code I want to display an output on it.





txtBox1-%26gt;Text = ("Hello"); doesn't work. What is the right method? Dot operator does not work as well. Thanks

Visual Studio .NET c++ windows form application help?
Why the parentheses?





txtBox1-%26gt;Text = "Hello";





works just fine.


How to open and compile a "C" Program in Visual Studio 2005?

I am new to programming environment. I have Visual Studio 2005 installed on my computer. I would like to know how to open and compile a basic "C" Program in Visual Studio 2005 IDE.


Thank you in advance.

How to open and compile a "C" Program in Visual Studio 2005?
If you already have a source code file, go to File menu, chose Open File, and select desired file. You can aslo select a project made in a previous version of Visual Studio. It must convert that file into a new project. Then if the source code is correct, there is a menu called Compile, go there and select Compile of Build. Then you have tu run the executable file.


Cna we compile c programme in visual studio??

Hi, I am learning c and c++ , I d't have any c- compilers . Can I use visual studio for that.

Cna we compile c programme in visual studio??
yes...you can compile c programs in visual studio...





visual studio's loader will automatically load visual c++, but it should be compatible for the most part...





if possible also (i dont recall if visual c++ does this) but go into the preferences and under the C++ tab or language or somethign like that...it may give you the option to compile Unix C or ANSI-C...pick one of these instead of C++..
Reply:Yes or you can download many free C compilers for Windows or Unix.


Building a Linux C++ project in Visual Studio?

I have a C++ project that compiles in linux using Makefiles. I want to edit this project using Visual Studio 2005 IDE. How can I get it to build?


The reason I want to use Visual Studio 2005 on Windows is because I like the IDE environment instead of using VI in Linux and running 'make' after every change.

Building a Linux C++ project in Visual Studio?
No matter what, if you want your program to run on linux, it's going to have to have linux available. You can't just hit the build/execute button in Visual Studio and expect it to run in linux. Even Cygwin can't help you there.





That said, it's perfectly possible to build *portable* C++ code in Visual Studio that compiles and executes in the same manner on both platforms. Simply use ANSI Standard C++. Yes, you'll lose out on a ton of features on both platforms, but it will at least *work* on both platforms. You could also target linux using Cygwin by linking against the Cygwin DLL, but you can't simply compile a binary using Visual Studio and have it work on linux.





You may want to try a linux-based C++ IDE, like KDevelop or Eclipse/CDT. (See sources below)
Reply:Hum, it's true that any version you compile using visual studio won't work on linux, but that's not the point. You can simply bring back the files on linux and gcc (or whatever) once you're satisfied with the result on windows, that way you need to use make only once.





To do that, you need to construct a console project in the visual studio IDE (if you have any kind of GUI stuff it's a bit more complicated), and add to it all your cpp/h files plus any specific compiler/options if there is any you want to use. It's possible that some things don't work exactly the same in the windows environment, use #if _MSC_VER to mark the code you need to change specifically for windows.





Other then that it should work quite easily





Good luck
Reply:You can't. That's the short answer. It's because the visual studio environment is linking in libraries for Windows so your program won't work on Linux.





It sounds like what you need is more an IDE for Linux. Try taking a look at Eclipse http://www.eclipse.org/ It also appears to work on Windows XP so you can have a common environment between the two platforms if you do Windows development.

flower beds

I have a c++ application in visual studio 2005 which crashes in release mode?

I have a c++ application in visual studio 2005 which reads processes and writes many files. It crashes in release mode but only when run from the command line outside of visual studio. The same release mode executable never crashes when run from the debugger - what is different ?

I have a c++ application in visual studio 2005 which crashes in release mode?
%26gt; what is different ?


Check for uninitialised variables. Are you assuming any variables to be 0? That would be my first guess.





Otherwise, identify the section of code that causes a crash. Look at it for bad memory access and so on.





(Note: Going through the debugger may affect initial state of variables like setting them to 0. That is why I put that as my first guess. However, since you have posted no code, and no further information, I can't do more than guess.)
Reply:looks like it was strdup that was causing the problems Report It

Reply:What is the error when it crashes ?


Does it work when you double click on it from Windows Explorer ?
Reply:What about running it in debug mode in the Visual Studio IDE, and viewing the "Debug" window (you know press Alt+2, and the click on the "Debug" tab.


Then check for "error", or in worse case, check for "warning". Case insensitive search of course, and don't type the quotes.


That may point you to where you may have a problem.





Alternatively, if you had a debug log that could be created at run-time (whether in release mode or debug mode), you'd be better off.


I can't tell you how many applications I've come across that don't have that kind of functionality built in, and it drives me crazy. So, the first chance I get, I add that functionality to the project. After all, the code itself doesn't take up that much room in an application itself, and can be turned on/off as desired (even if you set levels like 0 - no debug log, 1-debug important things only, 2-debug semi-important things, 3-debug everything possible).





Even better yet, if it's a new project, you may want to create a simple class based off of CObject (or CWindow if necessary) that logs things as necessary, and have all your other classes based off of the new class you created.


C# codes in visual studio?

can you get me c# codes of one sampel web site in visual studio 2005?

C# codes in visual studio?
go to


http://www.asp.net/community/projects/


When i set a combobox's SelectedValue it dosnt work/update?? any help? C# visual studio?

i have retrived values from a database and now populating a form with the info i got 2 combo box's that i would like to popluate with the correct values, acording to the data. however, even if the selectedvalue, selectedindex, or selectedtext is changed, when the form is shown/drawn the combo box's still stay at the first entry from the datasource,





public frmMov(string title, string year, int ratingid, int formatid, string rating, string format)


{


InitializeComponent();


txtTitle.Text = title;


txtYear.Text = Convert.ToString(year);


cmbRating.SelectedValue = ratingid;


cmbFormat.SelectedValue = formatid;











}





why wont it change when the form is drawn am i missing somthing simple?

When i set a combobox's SelectedValue it dosnt work/update?? any help? C# visual studio?
Did you try to store your data(which you have retrieve from the DB) into the variables that you have declared ? If yes, then the below code should work.





if you need to populate the combo box, you need to do this:





cmbRating.Items.Add(ratingid);


cmbFormat.Items.Add(formatid);





If No,


then you should create an arraylist to store the values from DB, loop thru it, then populate ur data in.





hope this helps.


Sunday, July 12, 2009

How to use RSS feed in site developed with Visual Studio.Net (C#)?

I am developing a website using C#.


I want to display rss feeds say news feeds from other sites in my site.


How can I do it?


I tried to convert display using XML File Streams, but it worked only if RSS file in local folder.

How to use RSS feed in site developed with Visual Studio.Net (C#)?
try rapidfeeds.com

wedding flowers

C# Programming Games Tutuorial (Visual Studio 2008, Direct X 10)?

I was curious if anyone knew where I can find a decent tutorial, book, or guide for how to program simple 3d games in C# code using visual studio 2008 express and directX 10. The tutorial need not be for absolute beginners to C#, but preferably not too esoteric. I can locate a fair amount for previous years, but, while not much has changed between visual studio 2005 and 2008 (though some stuff has), there is a huge difference between directX 10 and directX 9. If anyone knows where I can find a guide or tutorial for this, please let me know. Thanks in advance.

C# Programming Games Tutuorial (Visual Studio 2008, Direct X 10)?
I have 2008 if you go in the program and register on the bottom it says getting started. Click on beginner developer learning center and it brings you to videos on how to do stuff. After that you browse around and learn.


How do I add child forms in C# visual studio express?

in side your main form... declare a form variable... then after that form variable is instantiated do form_variable.show or form_variable.showdialog

paid survey

I made a program in C# (Visual Studio 2005) and I was wondering if you can tell me how to make it e-mail me!?

I want it to e-mail me with what i put in 2 text boxes


For example if i put in first textbox the word blah and in the second on the word blahbluh, how do i get it to e-mail me with those two words !





Thank You

I made a program in C# (Visual Studio 2005) and I was wondering if you can tell me how to make it e-mail me!?
the internal help files will tell you. they aren't there foir decoration.
Reply:////////////////////////////////////////...


Example Code :


// Create a mailman object for sending email.


Chilkat.MailMan mailman = new Chilkat.MailMan();





// Any string argument automatically begins the 30-day trial.


mailman.UnlockComponent("30-day trial");





// Set the SMTP server hostname.


mailman.SmtpHost = "smtp.earthlink.net";





// Create a simple email.


Chilkat.Email email = new Chilkat.Email();





email.Body = "This is the body";


email.Subject = "This is the subject";


email.AddTo("Chilkat Support","support@chilkatsoft.com");


email.From = "Jack Johnson %26lt;jj@chilkatsoft.com%26gt;";





// Send mail.


bool success;


success = mailman.SendEmail(email);


if (success)


{


MessageBox.Show("Sent mail!");


}


else


{


MessageBox.Show(mailman.LastErrorText)...


}





//////////////////////////////////////...


This is a very simple example showing how to send a basic HTML email in C#.





// Create a mailman object for sending email.


Chilkat.MailMan mailman = new Chilkat.MailMan();





// Any string argument automatically begins the 30-day trial.


mailman.UnlockComponent("30-day trial");





// Set the SMTP server hostname.


mailman.SmtpHost = "smtp.earthlink.net";





// Create a simple HTML email.


Chilkat.Email email = new Chilkat.Email();





email.SetHtmlBody("%26lt;html%26gt;%26lt;body%26gt;%26lt;b%26gt;%26lt;fon... color='red' size='+1'%26gt;This is red bold text%26lt;/font%26gt;%26lt;/b%26gt;%26lt;/html%26gt;");


email.Subject = "This is a simple HTML email";


email.AddTo("Chilkat Support","support@chilkatsoft.com");


email.From = "Jack Johnson %26lt;jj@chilkatsoft.com%26gt;";





// Send mail.


bool success;


success = mailman.SendEmail(email);


if (success)


{


MessageBox.Show("Sent HTML mail!");


}


else


{


MessageBox.Show(mailman.LastErrorText)...


}





//////////////////////////////////////...


This example program shows how to send a multiplart/alternative email.





// Create a mailman object for sending email.


Chilkat.MailMan mailman = new Chilkat.MailMan();





// Any string argument automatically begins the 30-day trial.


mailman.UnlockComponent("30-day trial");





// Set the SMTP server host.


mailman.SmtpHost = "smtp.earthlink.net";





// Create a simple multipart/alternative email.


Chilkat.Email email = new Chilkat.Email();





email.Body = "This is the plain-text alternative";


email.AddHtmlAlternativeBody("%26lt;html%26gt;%26lt;b... color='red' size='+1'%26gt;This is the HTML alternative body%26lt;/font%26gt;%26lt;/b%26gt;%26lt;/html%26gt;");


email.Subject = "This is a simple multipart/alternative email";


email.AddTo("Chilkat Support","support@chilkatsoft.com");


email.From = "Buddahead %26lt;buddahead@chilkatsoft.com%26gt;";





// If you're curious, show the MIME text of the email to be sent..


MessageBox.Show(email.GetMime());





// Send email.


bool success;


success = mailman.SendEmail(email);


if (success)


{


MessageBox.Show("Sent HTML mail!");


}


else


{


MessageBox.Show(mailman.LastErrorText)...


}





//////////////////////////////////////...


This C# example program shows how to add a file attachment to an email and send it.





bool success;





// Create a mailman object for sending email.


Chilkat.MailMan mailman = new Chilkat.MailMan();





// Any string argument automatically begins the 30-day trial.


mailman.UnlockComponent("30-day trial");





// Set the SMTP server host.


mailman.SmtpHost = "smtp.earthlink.net";





// Create a simple email with a file attachment.


Chilkat.Email email = new Chilkat.Email();





// This email will have both a plain-text body and an HTML body.


email.Body = "This is the plain-text alternative";


email.AddHtmlAlternativeBody("%26lt;html%26gt;%26lt;b... color='red' size='+1'%26gt;This is bold red text.%26lt;/font%26gt;%26lt;/b%26gt;%26lt;/html%26gt;");


email.Subject = "This email has a file attachment.";


email.AddTo("Chilkat Support","support@chilkatsoft.com");


email.From = "Hello World %26lt;hello@chilkatsoft.com%26gt;";





// Add a file attachment.


string contentType;


// Returns the content-type of the attachment (determined by the file extension)


// This return value is for informational purposes only.


contentType = email.AddFileAttachment("dude.gif");


if (contentType == null)


{


MessageBox.Show(email.LastErrorText);


return;


}





// If you're curious, show the MIME text of the email to be sent..


MessageBox.Show(email.GetMime());





// Send email.


success = mailman.SendEmail(email);


if (success)


{


MessageBox.Show("Sent mail with attachment!");


}


else


{


MessageBox.Show(mailman.LastErrorText)...


}





//////////////////////////////////////...


C# source code showing how to add multiple CC recipients to an email.





bool success = false;





// Create a mailman object for sending email.


Chilkat.MailMan mailman = new Chilkat.MailMan();





// Any string argument automatically begins the 30-day trial.


mailman.UnlockComponent("30-day trial");





// Set the SMTP server.


mailman.SmtpHost = "smtp.earthlink.net";





// Create an email with multiple CC recipients.


Chilkat.Email email = new Chilkat.Email();





// Set the basic email stuff: body, subject, "from", "to"


email.Body = "This is the email body";


email.Subject = "This is the email subject";


email.AddTo("Chilkat Support","support@chilkatsoft.com");


email.From = "Programmer %26lt;programmer@chilkatsoft.com%26gt;";





// To add multiple CC recipients, you can call AddCC multiple times


// and/or call AddMultipleCC with a comma-separated list of email addresses.


// Either method can be called any number of times. Chilkat automatically


// removes duplicates.


email.AddCC("","sales@chilkatsoft.com"...


email.AddCC("Chilkat HR","hr@chilkatsof.com");


email.AddMultipleCC("Jack Frost %26lt;jfrost@chilkatsoft.com%26gt;, matt@chilkatsoft.com, Bob %26lt;bob@chilkatsoft.com%26gt;");





// If you are curious, look at the full MIME text of the email...


MessageBox.Show(email.GetMime());





success = mailman.SendEmail(email);


if (success)


{


MessageBox.Show("Sent CC mail!");


}


else


{


MessageBox.Show(mailman.LastErrorText)...


}








//////////////////////////////////////...


Creating a new Smtp instance :


Before creating a new Smtp instance, ensure that the Jscape.Email scope is defined in your using statements, and that the Jscape.Email.dll is referenced in your project. Refer to Getting Started in the Email Factory for .NET Help for more information about adding the Jscape.Email.dll reference to your projects.





Create a new Smtp instance providing the SMTP server hostname as an argument.:


Smtp mySmtp = new Smtp("hostname");





Subscribing to Smtp Events:


The Smtp instance MUST subscribe to the Smtp events prior to invoking the Connect() method to ensure that all data sent by the SMTP server is captured.The Smtp component may publish one or more events during the lifetime of an Smtp session. Any object that subscribes to events published by the Smtp component can receive and process the following events.


The ConnectedEvent is fired by the Smtp instance once a connection to the SMTP server has been established.


The DisconnectedEvent is fired by the Smtp instance once the connection to the SMTP server has been released.


The CommandSentEvent is fired by the Smtp instance for each command sent to the SMTP server.


The DataReceivedEvent is fired by the Smtp instance for each response received from the SMTP server.


The following example illustrates subscribing to the Smtp component events.





// Subscribe to events


mySmtp.ConnectedEvent += new Smtp.ConnectedEventHandler(OnConnected);


mySmtp.DisconnectedEvent += new Smtp.DisconnectedEventHandler(OnDisconne...


mySmtp.DataReceivedEvent += new Smtp.DataReceivedEventHandler(OnDataRece...


mySmtp.CommandSentEvent += new Smtp.CommandSentEventHandler(OnCommandSe...





Now you can create the event handler methods you previously defined when subscribing to the Smtp events.





public void OnConnected(object sender, SmtpConnectedEventArgs e) {


Console.WriteLine("Connected to {0}", e.Host);


}


public void OnDisconnected(object sender, SmtpDisconnectedEventArgs e) {


if (mySmtp.IsConnected()) {


mySmtp.Disconnect();


}


Console.WriteLine("Disconnected.");


}


public void OnDataReceived(object sender, SmtpDataReceivedEventArgs e) {


Console.WriteLine("Response: "+e.Response);


}


public void OnCommandSent(object sender, SmtpCommandSentEventArgs e) {


Console.WriteLine("Command: "+e.Command);


}





Establishing a connection:


Once an Smtp instance has been created and subscribed to the Smtp events you may establish a connection to the SMTP server by invoking the Connect() method.





mySmtp.Connect();





Creating an Email message:


To create an email message, construct a new EmailMessage instance passing the To: address and From: address to the constructor. You may also assign the To and From properties on the EmailMessage instance if you are using the default US-ASCII character set encoding. See the following section for more information about specifying message properties. If you are using another character set encoding, use the SetTo and SetFrom methods. Refer to the Email Factory for .NET Help for more information.





EmailMessage message = new EmailMessage("ToAddress", "FromAddress");





Defining addressing and other message properties





In addition to passing the To and From addresses to the EmailMessage constructor, you can specify the properties on the message instance. The EmailMessage class also has properties and methods for adding carbon-copy, blind-carbon-copy, and reply-to recipients, and message subject and priority.





Note: The To and From addresses are required properties.





EmailMessage message = new EmailMessage();


message.To = "ToAddress";


message.From = "FromAddress";


message.Cc = "CcAddress";


message.Bcc = "BccAddress";


message.ReplyTo = "ReplyToAddress";





message.Priority = "normal";


message.Subject = "This is a test subject";





Defining the message body:


You can set the message body to the contents of a file, a database query result, or a hand-coded message, as shown in the following example. Refer to the Email Factory for .NET Help for more information about defining the message body contents from a FileStream.





message.SetBody("This is a sample message");





Adding message attachments:


You can add one or more attachments to an email message by invoking the AddAttachment() method passing an Attachment instance as an argument. The attachment instance can be constructed by passing a file path as an argument.


Note: Due to the way that the message body is copied when adding attachments it is important that attachments be added only after the body of the message has been defined. Changing the Body, Content-Type, or Content-Transfer-Encoding of the message after attachments have been added may result in undesired effects.





Attachment att = new Attachment("c:\home\report.doc");


message.AddAttachment(att);





Sending an Email message:


To send a message through an established connection simply invoke the Send() method passing the message instance as an argument.





mySmtp.Send(message);





Releasing a connection:


To release an established connection simply invoke the Disconnect() method as follows:


mySmtp.Disconnect();


Microsoft Visual Studio 2005 c++?

In this where exactly shall i click to start a C programe with source only for example a hello world programe ?

Microsoft Visual Studio 2005 c++?
check out Visual BASIC 2005. It's the intro level language - BEGINNER'S All-purpose Symbolic Instructions Code.
Reply:Click File %26gt; New





Make sure the Project tab is selected, then select Win32 Console Application and give it a project name.





Slect "A "Hello, World!" application"





Click OK and it'll create the file for you. You can then modify as needed.


Does Visual Studio Compiles C Code?

aditionally whats the best C Compiler out there, BloodShed Dev C++?

Does Visual Studio Compiles C Code?
Yes. When you select to Build Solution (F6) or Debug (F5) the application is compiled. Look in your project folder/debug or project folder/release for the compiled program.
Reply:visual studio .net works fine on both c and c++.





visual studio 2005 express works fine on c, c++ and assembler





visual studio 2005 works fine on c#, j#, c and c++
Reply:i use miniGW developer to create build and compile and its pretty easy to me than visual bececause i can't fing the complie thing there.


Visual Studio 2005 C++ Help?

I'm new to C++, please help.





Here is my code. When I run it, the window disappears right away. How can the "Press any key to exit" appears?





#include %26lt;iostream%26gt;





using namespace std;





int main()


{


cout %26lt;%26lt; "Hello world.";





return 0;


}

Visual Studio 2005 C++ Help?
obviously it will because you do not have any pause, use getch() after cout%26lt;%26lt;"hello world";





Getch will wait until user presses any key then exits.

customer survey

In c# visual studio express 2005 is there a timer function?

in my photodisplay program i wnat to set an interval between screen displays.

In c# visual studio express 2005 is there a timer function?
Yes, there is a timer control. You can set at what intevervals you want it to tick, down to 1 millisecond. then you can handle your event in the Timer_tick event. Below is a link to a program written with Visual Studio Express C#.








http://www.download.com/ScoreboardBB/300...


ScoreboardBB - Free Software Downloads and Software Reviews - Download.com


Hope that helps!


C# visual studio help please?

I a creating a drag and drop GUI and seem to have grouped 3 controls but I can't remember how to undo it, can any one please help?

C# visual studio help please?
ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/...





I have always used a group box that acts as a container of controls.


C# & visual studio, what is the difference between string & String?

from the point of view of writing programs there's not much difference.


The difference is where the two data types come from.


There are two types of data types in C#. One that is the part of language itself, and the other it borrows from Dot Net Common Language Infrastructure (CLI).


The data type "string" is a part of C# language definition. i.e. it is a valid type in C# only not in C++ dot net or anything.


Whereas, "String" is a part of CLI. i.e. it is valid type in all other language supporting Dot Net.


It's the same as in difference between "int" and "Int32"

C# %26amp; visual studio, what is the difference between string %26amp; String?
Actually, I'm pretty sure 'String' is the same thing as 'string' because you can use them interchangeably. The only other difference is that string gets a dark blue coloring while String gets a nice, pleasant aqua-blue coloring in the IDE, which is why I prefer it.
Reply:They are the same. string is an alias to String. To be more accurate, String is the name of the data type in the Framework. string is the keyword in C#.





This is similar to comparing int to System.Int32 or bool to System.Boolean.





Thank You.


I need an actual example of how to write a 'float function' in Visual Studio 2005 for C++!!!!!!!!!!!!!!!!!!!!!

i have the program Microsoft Visual Studio 2005





i am using this in my computer science class





i know how to properly write a 'string function' in C++ but in my homework assignment we need to write a 'string function' and a 'float function' and i have no idea what im doing wrong





i do exactly the same thing i do w/ the 'string function' to the 'float function' but it wont compile and i dont understand what the error is trying to tell me to fix, please god someone help me!!

I need an actual example of how to write a 'float function' in Visual Studio 2005 for C++!!!!!!!!!!!!!!!!!!!!!
When you ask a question like this in the future, it might help to also post the error that you get when compiling your code. It actually can tell you a lot!





Based on the code you posted, I see a couple of problems:





1) You function signature: float findarea (float h, float a, float b);


Doesn't match your function definition: float findarea (float h, float a, float b, float area)





That will be a problem. Looks like you can eliminate the 'float area' variable and they should match then. Remember that the signature you put at the beginning of your code needs to match the function you write later on!





2) when you call findarea: cout %26lt;%26lt; findarea;


You are not passing any of the variables! You need to send the variables to the function for it to do any work. You probably want: cout %26lt;%26lt; findarea(h, a, b);





3) Finally, in the function itself, you do work on the variable 'area' but you return an unitialized variable 'testarea'. You probably want:





float findarea (float h, float a, float b, float area)


{


return ((1/2)*(h))*(a+b);


}








If you still have problems, you probably should post a new question with the part of the code that matters and the error messages that you are seeing when you compile. But I think these three changes will compile OK for you (assuming you make the same kind of changes to your other functions). There is nothing special about float functions, you just need to brush up on the rules for writing functions in general.





Good Luck!
Reply:Can you post your code? Do you just need a function that handles floating point numbers?





float division(float x, float y){


return x/y;


}





int main(){


cout%26lt;%26lt;division(10,3)%26lt;%26lt;endl;


}
Reply:Edit your question and put in the code you are trying to use...we can't really help you with your errors unless we see the code. This also allows people to see that you did give it some effort and you need help rather than looking for homework answers.

survey for cash

Have do I save data in an Access database using Visual Studio 2005 Express, C# .NET?

I hope you are a C# .NET professional, because this is a nasty problem ;-)





I'd like to design an application that connects to an Access database.





Using Visual Studio 2005 Express Edition, I added the Access database to the Data Connections window (and the .mdb file is also shown in the solution explorer).





Next to that, I added a new DataSet related to the .mdf file.





Using this handy drag and drop technique I quickly added a DataGridView to my Designer surface.





If I run the program in Debug mode, add new records and hit the Save button, it seems to save the dataset back into the database (this idea is confirmed by the fact that the tableAdapter.Update() method returns a non-zero value).





However, if I rerun the program or look into my database using Access, nothing has changed.





Does anyone know what's going on?





Notice that I don't have this problem if I use an SQL database

Have do I save data in an Access database using Visual Studio 2005 Express, C# .NET?
Hi,





You might want to check that the Intenet Guest Account (IUSR_YOURCOMPNAME) has write access to the directory where your Access database is located. This account is used when connecting anonymously to IIS through a browser. :)
Reply:If I am not wrong, Access file is MDB, not MDF.





MDF is SQL Database file.





So I think you have the data update done into the SQL database rather than Access. (And you thinking is done on Access)


How do you create a packet/namespace/class library in C# Visual Studio?

I gots me a bunch of classes that I would like to be able to access by





using myClasses;





but I have no idea how to do this. I have done similiar things in Java but never with C#.

How do you create a packet/namespace/class library in C# Visual Studio?
create .cs (class) files from the file%26gt;new menu. this will create a class file using the default namespace of your project. you can then add all the methods and properties you want from existing code et.al. if you use the same namespace, you won't need to use a using statement. or you can create a brand new project with all your classes in it, then create a reference to that project from the solution explorer. good to put the project in the same solution as your main project. then use the using command just as you are wishing to in your question.
Reply:Change the project to compile as a DLL, and put that DLL somewhere global (e.g. besides the Debug folder)





Now create a new project, and add your DLL as a Reference (browse to it).





Now in your code you can do the using statement of your new library.


How to convert binary form to decimal in C++? (visual studio 2005)?

for example when i key in 00010001


the result will be 17.





can someone give me the code to do this C++ program

How to convert binary form to decimal in C++? (visual studio 2005)?
you can use a structure which contains the 'data' and a 'flag'


take the digits one by one and every time increase the counter. at the end of the scanning. the first objects data ( 1 or 0 ) should be multiplied by 2, counter-1 times. and add all of them. You will reach the result.
Reply:#include "stdafx.h"


#include %26lt;windows.h%26gt;


#include %26lt;iostream.h%26gt;





int toPower2(int value){


int rtnvle = 1;


if(value %26gt; 1)


for(int i=2;i%26lt;=value;i++){


rtnvle *= 2;


}


return rtnvle;


}





int main(int argc, char* argv[])


{


char binary_value[16];


int decimal = 0;





cout%26lt;%26lt;"Type in a binary value 16 max(remember binary is right to left): ";


cin%26gt;%26gt;binary_value;





for(int i=strlen(binary_value) -1;i %26gt;= 0;i--){


if(binary_value[i] == '1'){


decimal += toPower2(strlen(binary_value) - i);


}


else if(binary_value[i] != '0')


return 0;


}





cout%26lt;%26lt;decimal%26lt;%26lt;endl;


return 0;


}
Reply:http://freshbloger.com/


When running WinXP on a macbook via bootcamp How do i type the hash key? i need it for c++ in visual studio.?

I am running WinXP on a macbook via apples bootcamp software, mainly so that i can run microsoft's visual studio software to do c++ programming. what i need to know is how can i type in the hash key without having to go to character map and copy it from there. in mac os x all i have to do is alt +3 and i get the hash key but this doesn't work in windows. please help.

When running WinXP on a macbook via bootcamp How do i type the hash key? i need it for c++ in visual studio.?
Try shift 3

customer satisfaction survey

I need to find out how to change language interfaces in Visual Studio 2005. From C++ to C# or to Visual Basic?

In other words how do I change from C++, to C# in the Visual Studio 2005 suite of languages? Right now I'm in C++ but I'd like to go to other languages in the software package for program development. What do I need to do?

I need to find out how to change language interfaces in Visual Studio 2005. From C++ to C# or to Visual Basic?
Select the File-%26gt;New-%26gt;Project menu item and select C# or VB.
Reply:Make a new project and choose the language you want.


Visual Studio 2008 for C++?

How does Visual Studio 2008 compare to 2005? Specifically for standard C++. Is the compiler more standard compliant now? Any major changes to the IDE for the c++ perspective?





I don't program C# or anything .NET so any refinements to the IDE for that language and the platform don't apply to me. Also, I have been wanting to try XNA and from the forums it seems it only works with VS2005 for the time being.





Currently I have VS2005 with SP1. In the past I have used MFC, but I've heard that is pretty much obsolete now. Through school I can obtain a free copy of VS2008 and I'm wondering if I should spent the time to upgrade.





Please only answer this question if you have knowledge about the subject. No links to Microsoft or Wikipedia please. And Yes I already searched previous answers on this site.

Visual Studio 2008 for C++?
I use both 2005 and 2008 professional at work, and both 2005 and 3008 express at home (although my home use is almost exclusively C# and XNA). The link below is someone else's answer to this question, I myself have yet to notice any major difference in day-to-day usage.





You're correct in that XNA currently only supports 2005, this can cause problems if you have both 2005 and 2008 installed (some of the XNA samples automatically install their template on the latest version of DevStudio, i.e. the wrong one).





Microsoft provide "Express" versions of C++, C#, VB, Web Developer and SQL Server for both 2005 and 2008 editions. They're totally free to download and you can also use them in commercial products (see the second link below). The main difference is that their template support isn't quite as good and they lack some small extras like IDE macro recording/playback.


I am totally new to c++.and i dloaded microsoft visual c++ studio.how do i use it as a complier.?

You can find several books that teach you C++ through the use of Visual C++ studio. Being that you are pretty new, I would recommend you do that and follow the examples. It will teach you how to program in the language and, at the same time, teach you how to use the compiler.





One great book for learning is the one I listed in the sources section. Good luck!

I am totally new to c++.and i dloaded microsoft visual c++ studio.how do i use it as a complier.?
u open a new project as win32ConsoleApplication .. new file as c++ source file. write ur c++ code.. n compile it using ctrl+F7, Execute it ctrl+f5. it has got a compiler to work for you.. try.


C++, Visual Studio and Web Design?

Do I need to learn C# or VB to develop with the .NET Framework ? If not, is it better with C# or VB ?





The reason I ask is because by learning C++ I can apply that knowledge to things outside the .NET framework. However, if I choose C# Im stuck with .NET.





Your help and insights are appreciated.

C++, Visual Studio and Web Design?
I would suggest C# or vb. The reason that I suggest this that all good programmers should be able to use the best tool for to solve any problem. Like perl if you have to parse a bunch of text. vb or c# if you need a quick data driven website. C++ if you have to do any rigorous network programming. C++ and Assembly for intesive graphics and real time programming.





Good programmers have to adapt to the problem that they are solving.
Reply:You may use C++.NET. There's even a free (for a limited time) version with optimized compiler and a complete IDE: Visual C++ Express.


It is _not true_ that the only way to use C++.NET in Web applications would be CGI, and it is _not true_ that it is slower.


You should know that you can effectively create ASP.NET Web Pages with C++.NET (see the link below).


Let me quote MS' George Shepherd:


"The final, and perhaps most compelling reason to use Managed C++, is that the Microsoft C++ compiler is optimized. It's the most evolved and best-tuned compiler available for generating code to run under the CLR."
Reply:C++ uses the CGI (Common Gateway Interface) to interact with the web, which can create overhead and sluggishness on dynamic webpages. C# (in my opinion) would be the better choice between C# and VB, though as long as you have access to .NET I would recommend using ASP.NET (Active Server Pages), and reserve C# for back-end server-only processing.





Bottom line: C++ will be slightly slower than your other two alternatives.

free survey

Is Microsoft Visual C++ Studio compatible with just C programming?

Yes. You can create C or C++ with the compiler. It'll know which you're using based on the file extension (.c or .cpp) or from the comiler settings.

Is Microsoft Visual C++ Studio compatible with just C programming?
You might have to be careful what you select when creating a new project, but I'm sure it can handle regular C or C++ code. (Though if you don't need all the extra Visual Studio stuff there are free C/C++ compilers out there, like Dev-C++ which uses a Windows port of GCC, the GNU Compiler Collection.)





http://www.bloodshed.net/devcpp.html