visual-studio

How to integrate two different website projects under one solution?

谁说我不能喝 提交于 2021-02-11 04:28:24
问题 I am using VS 2010 and trying to integrate my two different website projects. I am able to add both of them under a single solution. By default the start up projects is the already present project. But I am not able to redirect the web pages of project 2 from the first project. I am also unable to find the namespaces of the project. And while adding reference it is not allowing the solution file to be added. Any help in this regard will be helpful. Edited: I have attached a snap as well. As

Characters not recognized while reading from file

為{幸葍}努か 提交于 2021-02-10 22:44:35
问题 I have the following c++ code in visual studio to read characters from a file. ifstream infile; infile.open(argv[1]); if (infile.fail()) { cout << "Error reading from file: " << strerror(errno) << endl; cout << argv[0] << endl; } else { char currentChar; while (infile.get(currentChar)) { cout << currentChar << " " << int(currentChar) << endl; //... do something with currentChar } ofstream outfile("output.txt"); outfile << /* output some text based on currentChar */; } infile.close(); The file

boost spirit qi parser failed in release and pass in debug

坚强是说给别人听的谎言 提交于 2021-02-10 22:20:43
问题 #include <boost/spirit/include/qi.hpp> #include <string> #include <vector> #include <iterator> #include <algorithm> #include <iostream> using namespace boost::spirit; int main() { std::string s; std::getline(std::cin, s); auto specialtxt = *(qi::char_('-', '.', '_')); auto txt = no_skip[*(qi::char_("a-zA-Z0-9_.\\:$\'-"))]; auto anytxt = *(qi::char_("a-zA-Z0-9_.\\:${}[]+/()-")); qi::rule <std::string::iterator, void(),ascii::space_type> rule2 = txt ('=') >> ('[') >> (']'); auto begin = s.begin

boost spirit qi parser failed in release and pass in debug

 ̄綄美尐妖づ 提交于 2021-02-10 22:20:36
问题 #include <boost/spirit/include/qi.hpp> #include <string> #include <vector> #include <iterator> #include <algorithm> #include <iostream> using namespace boost::spirit; int main() { std::string s; std::getline(std::cin, s); auto specialtxt = *(qi::char_('-', '.', '_')); auto txt = no_skip[*(qi::char_("a-zA-Z0-9_.\\:$\'-"))]; auto anytxt = *(qi::char_("a-zA-Z0-9_.\\:${}[]+/()-")); qi::rule <std::string::iterator, void(),ascii::space_type> rule2 = txt ('=') >> ('[') >> (']'); auto begin = s.begin

Failed to load native library grpc_csharp_ext.x86.dll while running Azure Function in Visual Studio

一笑奈何 提交于 2021-02-10 20:18:34
问题 lately I have encountered a following problem. Azure Function that is run in Visual Studio always throws an exception: System.IO.IOException HResult=0x80131620 Message=Error loading native library "C:\Users\\AppData\Local\AzureFunctionsTools\Releases\2.16.0\cli\grpc_csharp_ext.x86.dll" Source=Grpc.Core StackTrace: at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives) at Grpc.Core.Internal.NativeExtension.LoadUnmanagedLibrary() at Grpc.Core.Internal.NativeExtension

BOOST_SPIRIT_DEFINE not understand

我们两清 提交于 2021-02-10 18:21:41
问题 I'm trying to write an expression parser with boost spirit x3. I based my new code on old code that I written years ago (and worked well) with Spirit 2.x (qi). The core of my code is: //Make new rule(s) for expression auto term = factor >> *(('*' >> factor) | ('/' >> factor)); auto expression = term >> *(('+' >> term) | ('-' >> term)); auto group = '(' >> expression >> ')'; auto factor = lexeme["double_"] | group; string s="12.4 + 3.2"; auto first = s.begin(); auto last = s.end(); bool r = x3

BOOST_SPIRIT_DEFINE not understand

戏子无情 提交于 2021-02-10 18:20:42
问题 I'm trying to write an expression parser with boost spirit x3. I based my new code on old code that I written years ago (and worked well) with Spirit 2.x (qi). The core of my code is: //Make new rule(s) for expression auto term = factor >> *(('*' >> factor) | ('/' >> factor)); auto expression = term >> *(('+' >> term) | ('-' >> term)); auto group = '(' >> expression >> ')'; auto factor = lexeme["double_"] | group; string s="12.4 + 3.2"; auto first = s.begin(); auto last = s.end(); bool r = x3

How to get the location of ContextMenuStrip?

此生再无相见时 提交于 2021-02-10 17:47:03
问题 I have attached a ContextMenuStrip to a Chart control. How can I get the chart control coordinates where the top left of the ContextMenuStrip is located when it appears? This is the point I want to translate to chart coordinates: 回答1: Using the answer to query the current mouse cursor position in the Opening event of the ContextMenuStrip can deliver the wrong position when opening the strip is delayed a bit. If you need the really clicked position, remove the ContextMenuStrip from the

Why tap gesture recognizer wont work in absolute layout?

南笙酒味 提交于 2021-02-10 16:29:00
问题 Developing a project on Android with Xamarin.Forms.I am trying to create a page with six image buttons to navigate the user through the app. Vertically half page, 3 on right side 3 on the left side. No scroll no other things. When I use absolute layout, only images in the bottom of the screen is working. Other imagebuttons didn't work. If I put only 2 images they work. They were in a grid. I deleted grid to try and nothing is changed. <AbsoluteLayout BackgroundColor="Black" AbsoluteLayout

Edit Image used in Winforms without closing VS

旧时模样 提交于 2021-02-10 15:17:12
问题 I have an image applied to a control in Visual Studio (in this case a PictureBox, but it could be a Button or any number of other controls). I would like to edit this image in a 3rd party program, but VS will not let any other program access the file while it is open. Even if I temporarily change the graphic to something else so that the image I want to save is no longer being used, VS will still not relinquish control of the file. So instead I have to shut down the entire project in order to