|
Hello,
Actually I have changed the path of generation of exe from Debug to some other folder in Visual Studio 2012. Its generating in desired folder but its not able to launch it becuase it still looking the exe in Debug folder while launching.
Can you please help me to change the setting to run it.?
|
|
|
|
|
Go to the project properties settings, by right clicking the project name in Visual Studio. Select the "General" node under Configuration Properties, and change the "Output Directory" setting.
|
|
|
|
|
Thanks for reply.
This is what I am doing. Changing the output dir path will only change the creation of executable path.
But when I run it using ctrl+f5 it gives error because program is looking the exe in old(debug) folder
|
|
|
|
|
Hi,
For debugging this... right click on your visual studio solution and click 'Properties'. Go down to 'Build Events' and add a 'Pre-Build Event' and add the following two lines:
echo Debugging Path: $(TargetPath)
echo Executable Path: $(OutDir)$(TargetName)$(TargetExt)
These should always be the same. The paths will be in your build output.
Follow the instructions given by Richard MacCutchan and only change the 'Output Directory' located in the 'General' property page. I have a feeling that you mistakenly changed the 'Linker->Output File'. If I am correct... change it back to the default value of '$(OutDir)$(TargetName)$(TargetExt)' and follow his instructions.
Best Wishes,
-David Delaune
|
|
|
|
|
Go to the next node in Properties named Debugging, and change the Command entry from $(TargetPath) to the same path as you previously changed, followed by $(TargetFileName) ; you may need a backslash in front.
But all of this begs the question: why? You are just storing up trouble for the future by not sticking to the defaults.
|
|
|
|
|
I created a poll to find out what IDE developers use when working with C/C++.
I will publish the results as soon as I get a number of answers which is statistically relevant.
Feel free to comment here why you use a particular IDE after voting.
|
|
|
|
|
vim , because is the fastest one.
|
|
|
|
|
I would not consider Vim an IDE, but I use it for quick tests and while running this poll I found out a massive amount of developers use it!
|
|
|
|
|
Well, it is not.
Why did you include it, then?
Still it is one of my favourite development tools.
|
|
|
|
|
As I said many people use and consider it an IDE, especially when combined with several plugins.
Also, the poll is not about what I think/use, it's about what people use.
|
|
|
|
|
emacs, Visual Studio Code, Visual Studio 2017, eclipse, notepad even.
|
|
|
|
|
Member 13665647 wrote: ...what IDE developers use when working with C/C++. VS6 at work, and VS2017 Community at home.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
David Crow wrote: VS6
HOT DAMN!!!
Must be working on really important legacy code to keep using VS6 ?
I'd rather be phishing!
|
|
|
|
|
It does what it needs to do.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Amen! Have a 5.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
David Crow wrote: It does what it needs to do.
Are you developing commercial products with VC6?
Best Wishes,
-David Delaune
|
|
|
|
|
Yes.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hmmm,
You are working at IBM now? I thought you were at Pinnacle Business Systems. I remember e-mailing you there many years ago when you needed help with a CEdit derived class.
|
|
|
|
|
Randor wrote: I thought you were at Pinnacle Business Systems. Still am. We own the AJS product that IBM sells.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Respect!
I use VS2017 and still miss the old good VS6!
|
|
|
|
|
My preferences:
Visual Studio 2017 on Windows
CLion on Linux
|
|
|
|
|
Mostly I use Visual Studio, but once in a while Eclipse too does the job for me.
|
|
|
|
|
Code::Blocks
Wont touch VS any more unless I need to debug something - that pig of a thing is far, far too slow nowadays.
|
|
|
|
|
I have the basic level knowledge of pointers, arrays and recursion's.
But i it is really confusing and hard to implement in programming, like when returning a multi-dimensional array from a user-defined function to the main, and problems like that. I surfed through the net but did not get enough questions to practice these concepts neither did get any books that i can practice from.
So it would be really helpful if i can get some recommendations for the books or even websites from where i can practice.
THANK YOU.
|
|
|
|