I'd like to read a binary file and use something like std::string that automatically resizes the buffer and such.
I'm using Visual C++. What are my options?
In Visual Studio 2010 we have MSBuild for C++ project. Also we can add additional custom properties files "*.props" to projects, which are just MSBuild scripts.
Is it possible in imported "some.props" file know its directory?
for example there is "project.vcxproj" file and "common.props" file.
I would like to write something:
<IncludeDir>$( [and something for common.props file directory here] )\include</IncludeDir>
What should I write there?
Sometimes when I get an Exception while debugging in Visual Studio, all the code lines in the stack trace belong to the System.. name space. It doesn't display my line of code which was responsible for the exception.
Is there a way to be make the stack trace show more lines or to ignore stack trace from the system namespace? Something like Just-My-Code for stack trace?
Hi,
I don't see a LINQ option when picking a data source for a grid view - any ideas?
I just upgraded to Visual Web Developer 2010. I see the other options like SQL etc.
Thanks!
I need to debug a winCE application over the ethernet using Visual Studio 2005. I
have connected to the device over the ethernet and now need to run
conmanclient2.exe and cmaccept.exe before I can start debugging.
However, I don't know how to copy these files over the ethernet.
Please guide me.
Thankyou!
Using Visual Studio 2005
Language: c#
A new to c#
I have software, the software should communicate with gprs devices. So i want to write a protocol, TCP, UDP communication code.
Can any one give some idea for writing a source code and some sample code also.
i'm new to programs so bear with me
For example, Firefox.. I go to the C/program files/mozilla/firefox folder ..but I don't see the images/buttons they used for the default theme of the program
Also, photoshop and other programs: how are the buttons, images, and other media stored (not in a folder from what I see)?
same thing when I made a simple program in visual c++, i don't see where the icon is located at?
thanksvery much
An expert in highly optimized code once told me that an important part of his strategy was the availability of extremely high performance timers on the CPU. Does anyone know what those are and how one can access them to test various code optimizations?
While I am interested regardless, I also wanted to ask whether it is possible to access them from something higher than assembly (or with only a little assembly) via visual studio C++?
Under the visual C++, we have " hash_map" and "hash_set". In g++, we have " stdext::hash_map" and " stdext::hash_set". Is there any difference in terms of their respective performance or other factors?
I hit control + Scroll lock, control + break, and control + every other key on the keyboard.
I have a feeling I am going to see this error in Visual Studio 2050.
Does anyone know how to resolve it when it occurs?
Is there a way to configure visual studio to limit the characters on aspx page to a certain number of characters?
I tried setting the character limit on Formatting and Validation on aspx page. but that didnt work.
Very often I hear: use a profiler and unit test. How do I do that? I would be glad if someone would provide either links to websites with tutorials or recommend a good book. I'm using Visual Studio 2010 Ultimate.
What is the easiest way of pulling an excisting method out of it's class and into a new class using Visual studio 2010 / Resharper?
Edit: I use Resharper version 5.
I use two monitors. The second one has a browser open. I use Visual studio in the first monitor and making edits to the web page.
Would love to press a key and instantly see the change in the browser. Basically doing a refresh in the browser behind the scene and still keep window focus in the editor. Instead of keep switching to the browser, refresh, switch back to VS.
Any better ideas than using a keyboard recorder like AutoPilot?
As far as I know some company will use Devexpress to speed up the UI design
some company might use the AssistX .
another question:
is there any plugin which can help to keep a eye on our company 's code convention? If someone don't follow the convention, visual studio will warn him ?
Hi,
I am creating a setup project using Visual Studio. I want to reboot the system after the installation completed successfully.
I want it one time effort. I do not want to modify the setup each time using any external tool/ utility before delivering it to client.
Can I tweak the setup project itself?
How Can I do that?
Are there any known issues with visual studio and code being swapped between projects?
I had a project running in VS2008 and when i went back to it, the code from another project had been swapped in the Program.cs class. I havent made any mistakes, im not talking about some code- i mean the whole project had been swapped out. Its as if the .proj files or .soln files had been swapped from their project folders???
EDIT
Ive restarted laptop, opened the code again and its still showing the wrong code BUT when i execute it, its the right code?!?!?!
I need a table control where one can edit properties by various ways, just like editing properties in Visual Studio (it's for XML editing). Does anybody know about something like that, written by others, or maybe a solution from MS itself?
Say that I'm writing a test and my caret is here (indicated by "|"):
[ExpectedException(typeof(InvalidOperationException|))]
In Visual Studio 2010, I'd like to press some shortcut that would take me to the next line so that I could start typing "public void Etc()".
Right now, I need to press
Right arrow
Right arrow
Right arrow
Enter
Which is too many key presses IMO. Is there a VS2010 / ReSharper shortcut to aid this operation?
I'd like to build an MSI installer that installs a managed DLL and makes it accessible to users from Visual Studio's "Add References" menu in Solution Explorer. I believe I am supposed to add a key into the Windows registry but I cannot see how to tell the VS project for the MSI to do this at install.
How is this done and where should I look for tutorials on this kind of thing?
OK, see the numbers? I can barely see them because my Visual Studio 2010 theme has the backround as almost-black, and the numbers show up in the default color, which is black. I can't figure out which setting changes the color for a number in a .sql file. Does anyone know?
I did a git merge and ended up with a file like that looks like this:
class member extends item{
/********CONSTANTS**********/
const is_flaggable = true;
const is_commentable = false;
const is_ratable = false;
const table = 'member';
<<<<<<< HEAD
const table_about = 'mem_about' ;
const table_to_about = 'mem_to_about' ;
const table_hobbies = 'mem_to_hobby';
=======
const table_friendship = 'friendship';
const table_about = 'mem_about' ;
const table_to_about = 'mem_to_about' ;
const table_hobbies = 'mem_to_hobby';
const table_friendship_id = 3;
>>>>>>> my-copy
In this file there are many blocks like this. Is there a visual tool to help me look at this file and pick and choose the changes I want? Most of the diff tools I found are for looking at two files.
Hello,
i looks for pseudo graphics lib for C++ under Visual Studio, lib like in TurboVision in Borland Turbo C++ or NCurser.. Or can i do it with standart c++ libs ?
Thanks.