I've been writing some C and C++ programs with it, but when I run the program by clicking on the .exe file, the console window closes as soon as the program ends, instead of letting me see the output. When run from inside VS, it ends with the "Press any key to continue . . . "
Do I need to add extra code, or what else can I do to have it run normally?
How do I make applications run independantly of Visual Studio 2005?
Your code ...is... running normally. It's a console program. Since you're double clicking on the exe (and not running from console), a console window opens up, the program runs, and the console window closes down.
So the correct way is to open up a console window yourself and run the program from there.
A kludge for development purposes is to ask for user input. You aren't actually going to do anything with the input, but by asking for input, the program window is forced to stay open. Something like cin.get() will do the trick (part of iostream) (http://cppreference.com/cppio/get.html ).
Reply:In Borland C/C++, the right way would be to call the getchar() function. You must include conio.h in order to call this function, but Visual C++ does not offer support for this function.
Another way would be to use sleep(time) where time is an integer that represents the amount of time to sleep (in miliseconds). Include time.h for this to work.
hamper
Thursday, July 30, 2009
I would like to install the Visual Studio 2005 in a different hd partition from windows how can I do that?
I´ve tried to choose the destination folder but he still requires 1.4 Gb in C: and a few MB in D:. Is there anyway that I can stall at least the Gigantic Framework .NET in D:?
I would like to install the Visual Studio 2005 in a different hd partition from windows how can I do that?
You probably can install some of the Framework on D if you download the Framework 2.0 SDK and the redistributable, install them in advance, and specify as much to the D drive as possible.
Much of the Framework MUST be installed to c:\windows\mirosoft.net (unless your system partition is on D.) This is because these are effectively become system files in Windows Vista, where managed code becomes the native API.
Reply:I think because there is the files need to copy to system folder like Windows/system32 and other file that need place on system folder, like .NET and other server side application.
I would like to install the Visual Studio 2005 in a different hd partition from windows how can I do that?
You probably can install some of the Framework on D if you download the Framework 2.0 SDK and the redistributable, install them in advance, and specify as much to the D drive as possible.
Much of the Framework MUST be installed to c:\windows\mirosoft.net (unless your system partition is on D.) This is because these are effectively become system files in Windows Vista, where managed code becomes the native API.
Reply:I think because there is the files need to copy to system folder like Windows/system32 and other file that need place on system folder, like .NET and other server side application.
How can i downlode visual studio 2005?
for working with C#
How can i downlode visual studio 2005?
U can download it from here:
http://msdn2.microsoft.com/en-us/express...
Reply:Only the express edition can be downloaded. Here is the link:
http://www.microsoft.com/express/
Reply:There are two versions:
Express (FREE): http://msdn2.microsoft.com/en-us/express...
Or you can purchase a MSDN Subscription and get a DVD or download from http://msdn.microsoft.com/subscriptions/
Reply:Or here (there are a few results here):
http://www.download.com/3120-20_4-0.html...
How can i downlode visual studio 2005?
U can download it from here:
http://msdn2.microsoft.com/en-us/express...
Reply:Only the express edition can be downloaded. Here is the link:
http://www.microsoft.com/express/
Reply:There are two versions:
Express (FREE): http://msdn2.microsoft.com/en-us/express...
Or you can purchase a MSDN Subscription and get a DVD or download from http://msdn.microsoft.com/subscriptions/
Reply:Or here (there are a few results here):
http://www.download.com/3120-20_4-0.html...
How do you force a CDialog (Visual Studio 2005) object to refresh it's display?
Under one of my OnBnClicked functions, I have to have a sleep timer. Only problem is, the sleep is causing the display not to update. I need it to update once per loop before it sleeps. Is there a function standard in c/c++ that forces the CDialog display(the whole display or the CEdit box in question) to update?
How do you force a CDialog (Visual Studio 2005) object to refresh it's display?
CWnd::Invalidate();
CWnd::UpdateWindow();
since CDialog is derived from CWnd
CDialog::Invalidate ();
CDialog::UpdateWindow();
Reply:If you do you sleep timer right, it shouldn't block refreshes, and runs in a separate thread. How are you doing your timer?
How do you force a CDialog (Visual Studio 2005) object to refresh it's display?
CWnd::Invalidate();
CWnd::UpdateWindow();
since CDialog is derived from CWnd
CDialog::Invalidate ();
CDialog::UpdateWindow();
Reply:If you do you sleep timer right, it shouldn't block refreshes, and runs in a separate thread. How are you doing your timer?
Information about proxys?
I don't have internet at home, and would like to download Visual C# 2005 Express Edition SP1. Unfortunatly, the library computer has some restrictions on it that cause about half of the things I want to download to randomly not work. The error messege says to "download to a different place" because "you're not allowed to change the .../temp folder." I was hoping that maybe a proxy would be able to get past this, since I can't go to the options to change where it downloads.
Question: Would a proxy get past this, and
Question: If so, how do I use a proyx?
Thanks
Information about proxys?
No, besides that - if you don't have sufficient privileges to adjust IE settings you aren't going to be able to install anything. The error is that the file you want to download exceeds the maximum allowable size of the temporary internet files folder - which is were everything downloads until it's completely downloaded, then IE moves it to where you selected. A proxy is a way of connecting to the internet through an intermediary so your immediate ISP doesn't know what you're doing.
Reply:unfortunately not. Something that you can try to do is just buy a 512 MB flash drive for 10 dollars, and then you could download it. A proxy is for securing yourself on the internet, what it does is changes the header that is sent to a website when you visit it. a header has information like... where you live, what type of OS your using, what browser your using, your screen resolution, your ISP, and a couple less interesting things... your Ip address and other things. but anyway.. the reason you cant download to the computer at the library is for the purpose that someone with malicious intent doesnt download mal-ware to their computers
Reply:In this case a proxy would be a website that your computer goes thru to access websites instead of your computer requesting the site from your isp directly. You can bypass a firewall if not configured to block that site. The issue you have is that the library's network policy doesn't allow you to download the file to the /temp folder. You can try a different folder or directory, or you can try a flash drive to save it. At this point im guessing that they wont let you download anything to the computer unless you have an external device.
Reply:To answer your question, no, a proxy will not work in this scenario.
A proxy is a connection to another computer across the internet. It will help you bypass a firewall, hide your IP or allow you to surf the net anonymously.
The problem you're having sounds like a permissions issue. Apparently you're trying to write to a folder you don't have access to.
This may be fixable by simply changing the directory to the desktop. When you get the 'Save File As..." screen, just select to save it to your desktop instead of the temp folder.
Best of luck.
Reply:No, that security has nothing to do with the actual downloading. It is set in Windows...you do not have access to download to that location. I would suggest having a friend download it for you and then burn it to a CD.
Reply:Using a proxy changes how you access the internet, not what happens on your computer. A proxy is most commonly used to avoid filters and such, (I.E. Accessing MySpace at school).
Reply:No, a proxy wouldn't get past it.
The problem is to do with what the computer will allow you to do, not with what the network will allow you to do.
Reply:I don't believe proxy's have anything to do with that, If the admin of the library computer doesnt want you to download stuff, your pretty much stuck. Proxys basically reroute how you access the informatoin, but either way the end result is going to hit whatever protection the local pc has on it.
Reply:Library computers are locked down so you probably won't be able to change any of those settings, including the proxy settings
Reply:Try this site to get most recent proxies.
http://www.prox-list.info
Or join this group to receive newest proxies in your inbox
http://groups.yahoo.com/group/ProxInbox/...
AND
http://www.prox-today.com
New site giving you every 24 hours a new proxy site
Enjoy!
bloom
Question: Would a proxy get past this, and
Question: If so, how do I use a proyx?
Thanks
Information about proxys?
No, besides that - if you don't have sufficient privileges to adjust IE settings you aren't going to be able to install anything. The error is that the file you want to download exceeds the maximum allowable size of the temporary internet files folder - which is were everything downloads until it's completely downloaded, then IE moves it to where you selected. A proxy is a way of connecting to the internet through an intermediary so your immediate ISP doesn't know what you're doing.
Reply:unfortunately not. Something that you can try to do is just buy a 512 MB flash drive for 10 dollars, and then you could download it. A proxy is for securing yourself on the internet, what it does is changes the header that is sent to a website when you visit it. a header has information like... where you live, what type of OS your using, what browser your using, your screen resolution, your ISP, and a couple less interesting things... your Ip address and other things. but anyway.. the reason you cant download to the computer at the library is for the purpose that someone with malicious intent doesnt download mal-ware to their computers
Reply:In this case a proxy would be a website that your computer goes thru to access websites instead of your computer requesting the site from your isp directly. You can bypass a firewall if not configured to block that site. The issue you have is that the library's network policy doesn't allow you to download the file to the /temp folder. You can try a different folder or directory, or you can try a flash drive to save it. At this point im guessing that they wont let you download anything to the computer unless you have an external device.
Reply:To answer your question, no, a proxy will not work in this scenario.
A proxy is a connection to another computer across the internet. It will help you bypass a firewall, hide your IP or allow you to surf the net anonymously.
The problem you're having sounds like a permissions issue. Apparently you're trying to write to a folder you don't have access to.
This may be fixable by simply changing the directory to the desktop. When you get the 'Save File As..." screen, just select to save it to your desktop instead of the temp folder.
Best of luck.
Reply:No, that security has nothing to do with the actual downloading. It is set in Windows...you do not have access to download to that location. I would suggest having a friend download it for you and then burn it to a CD.
Reply:Using a proxy changes how you access the internet, not what happens on your computer. A proxy is most commonly used to avoid filters and such, (I.E. Accessing MySpace at school).
Reply:No, a proxy wouldn't get past it.
The problem is to do with what the computer will allow you to do, not with what the network will allow you to do.
Reply:I don't believe proxy's have anything to do with that, If the admin of the library computer doesnt want you to download stuff, your pretty much stuck. Proxys basically reroute how you access the informatoin, but either way the end result is going to hit whatever protection the local pc has on it.
Reply:Library computers are locked down so you probably won't be able to change any of those settings, including the proxy settings
Reply:Try this site to get most recent proxies.
http://www.prox-list.info
Or join this group to receive newest proxies in your inbox
http://groups.yahoo.com/group/ProxInbox/...
AND
http://www.prox-today.com
New site giving you every 24 hours a new proxy site
Enjoy!
bloom
Computer Help!?
I have all these programs on my computer.. what the hell are they? should i delete any of them... they've never been used.
Microsoft .NET Framework 1.1
Microsoft .NET Framework 1.1 Hotfix (KB928366)
Microsoft User-Mode Driver Framework Feature pack 1.0
Microsoft Visual C++ 2005 Redistributable
MSXML 4.0 SP2 (KB927978)
MSXML 4.0 (KB936181)
MSXML 4.0 SP2 Parser and SDK
Windows Installer 3.1 (KB893803)
Help me pleaaaase? Xxxx
Computer Help!?
Wow, all these programs are for networkers or programmers. If you have no need I'd suggest saving them on a CD (cause you never know when you might need it) and just uninstall it from your computer. If they aren't affecting your computer, space wise, them just leave them there.
Reply:None look deletable to me.
Reply:leavem them there they are windows updates
Reply:They are essential applications for windows.
Don't mess with them at all.
Reply:Leave the files alone. They are necessary. Serif will not harm your computer.
Microsoft .NET Framework 1.1
Microsoft .NET Framework 1.1 Hotfix (KB928366)
Microsoft User-Mode Driver Framework Feature pack 1.0
Microsoft Visual C++ 2005 Redistributable
MSXML 4.0 SP2 (KB927978)
MSXML 4.0 (KB936181)
MSXML 4.0 SP2 Parser and SDK
Windows Installer 3.1 (KB893803)
Help me pleaaaase? Xxxx
Computer Help!?
Wow, all these programs are for networkers or programmers. If you have no need I'd suggest saving them on a CD (cause you never know when you might need it) and just uninstall it from your computer. If they aren't affecting your computer, space wise, them just leave them there.
Reply:None look deletable to me.
Reply:leavem them there they are windows updates
Reply:They are essential applications for windows.
Don't mess with them at all.
Reply:Leave the files alone. They are necessary. Serif will not harm your computer.
VB code question?
Just want to now is there a code for either VB6 or Microsoft Visual C++ 2005 Express so that u can enter an algebra equation(which include unknown variables like x ) for the computer to solve and actually get the answer right.And also a code for but i thought it but just asking, to make a word problem written into an alegbra equation.And if no such think actually exist but can it be done?
VB code question?
well the first one is easy, u just use the formula to solve it, add 3 text boxes for the equation coff, add two labels for results, here's the code:
--------------------------------------...
A = Text1.Text
B = Text2.Text
C = Text3.Text
Var = (B ^ 2) - (4 * A * C)
If Var %26lt; 0 Then
Label1.Caption = "No Solution"
Else
Label1.Caption = -B + Sqr((B ^ 2) - (4 * A * C)) \ (2 * A)
End If
If Var %26lt; 0 Then
Label2.Caption = "No Solution"
Else
Label2.Caption = -B - Sqr((B ^ 2) - (4 * A * C)) \ (2 * A)
End If
--------------------------------------...
but i think making the cpu understanding a word problem is very hard maybe impossible..
if u need anything else in vb jst mail me: biboeg2001@yahoo.com
VB code question?
well the first one is easy, u just use the formula to solve it, add 3 text boxes for the equation coff, add two labels for results, here's the code:
--------------------------------------...
A = Text1.Text
B = Text2.Text
C = Text3.Text
Var = (B ^ 2) - (4 * A * C)
If Var %26lt; 0 Then
Label1.Caption = "No Solution"
Else
Label1.Caption = -B + Sqr((B ^ 2) - (4 * A * C)) \ (2 * A)
End If
If Var %26lt; 0 Then
Label2.Caption = "No Solution"
Else
Label2.Caption = -B - Sqr((B ^ 2) - (4 * A * C)) \ (2 * A)
End If
--------------------------------------...
but i think making the cpu understanding a word problem is very hard maybe impossible..
if u need anything else in vb jst mail me: biboeg2001@yahoo.com
Subscribe to:
Posts (Atom)