visual-studio-2010

MFC Toolbar icon not visible in Visual Studio 2015

这一生的挚爱 提交于 2019-12-25 08:25:33
问题 We have MFC Application and it has Toolbar, Toolbar use bmp 32 colors resource file in Visual Studio 2010. This application runs fine in VS2010. After converting this application in Visual Studio 2015, toolbar icon does not visible. Visual Studio 2015 shows Format properties 32bpp BGR Is anything change in VS2015 bitmap editor or Am I missing some properties settings here ? 回答1: We are able to resolve this problem after creating low resource version of toolbar that MFC will accept. We have

std::string Array Element Access

ε祈祈猫儿з 提交于 2019-12-25 08:19:24
问题 Despite being a Project Euler program, the following code doesn't actually concern it much. I want to add 50 100-digit numbers, and I'm assigning each digit of each number to an element in the array addends[100][50]. I'd then add up each digit/place individually, and carry over extra digits. The numbers are being read in from a text file named Input.txt , and it merely contains all the numbers. http://projecteuler.net/problem=13 I'm having trouble assigning characters to elements of a string

Can't Install MSVCP100.dll

为君一笑 提交于 2019-12-25 08:14:33
问题 I'm using CMake to build a Qt based application of mine on Windows with Visual Studio 2010 Express. When configuring with cmake I get the following error: System runtime library file does not exists: 'MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcp100.dll System runtime library file does not exists: 'MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll Then when I try to compile, I'm getting this error (both trying in Visual Studio, and with msbuild): MSVCRT.lib(crtexew

Properties value reflects another's

◇◆丶佛笑我妖孽 提交于 2019-12-25 08:09:30
问题 I am creating a Loan Calculator and I have 3 TextBoxes that I am trying to get to reflect one another. After I change the input of one of the TextBoxes I want the other 2 to recalculate based off the input either by pressing a calculate button that I have on my program or after the TextBox loses focus. The three TextBoxes I've got are bound to certain values that get set upon the program being ran as well as the ability to be changed at run time: <TextBox Width="55" Height="23" Style="

How do I add more “elements” or “dimensions” to a single dimension array?

怎甘沉沦 提交于 2019-12-25 07:54:13
问题 I hope I am wording my question the right way, and using the correct terminology. I have an array of student names, arrSummary , that is distinct (no duplicates). Then, I have another array, arrTest1 , that contains a list of the same students' names and their test scores on Test1. Then I have a third array, arrTest2 , that contains a list of their names and their test scores on Test2. arrTest1 and arrTest2 are such that arrTest1[0].Name = "Bob" and arrTest1[0].Score = "98" . How do I make

XML file couldn't be detected after windows service setup

依然范特西╮ 提交于 2019-12-25 07:47:57
问题 I have created a windows service. I do the setup of the service using the windows installer. I have one XML file like a config file. Whenever i debug windows service with attaching the debug project it works fine. But after the installation i can see the event saying couldn't find the example.xml file in C:\Windows\system32. It's a repeating problem. Can anyone tell me whats going on with this. Or any suggestions? 回答1: This isn't an installer problem. Windows Services are always started with

Not Knowing How to Display Username After Login

試著忘記壹切 提交于 2019-12-25 07:27:19
问题 I’m still stumbling with this page over and over again. Just couldn’t get the user’s Username (using email as the username) to display on mysupport.aspx page after she’s successfully logged in. The result should look like this with the email showing but it is not retrieving anything: Email: barb@hotmail.com Being an amateur, I know I’m missing a big piece of the puzzle but I don’t know what. Am I using the mailLBL.Text = User.Identity.Name.ToString() wrongly? Below are the code-behind:

adding connection string during installation of vb.net

落爺英雄遲暮 提交于 2019-12-25 07:24:55
问题 this is a follow up for my last question which is on: adding connection string during installation of vb.net project this is the code that I have so far but the "Configuration" in the line: Dim config As Configuration = ConfigurationManager.OpenExeConfiguration(exePath) has a blue line and I can't run the program because of it. I converted the C# code to that one and the blue line appears. what I'm trying to do here is to get the a string that I can use for the connection string which will be

Error Writing to File in Visual Studio

余生长醉 提交于 2019-12-25 07:09:08
问题 Unhandled exception at 0x102e1cee (msvcr100d.dll) in filename.exe 0xC0000005: Access violation writing location 0x00416858 on. The debugging points to line: if (_putc_nolock(ch, f) == EOF) of code #else /* _UNICODE */ if (_putc_nolock(ch, f) == EOF) #endif /* _UNICODE */ *pnumwritten = -1; else ++(*pnumwritten); } in output.c which I believe is linked in visual studio library. I did not link it. My code is: body="" myFile=CreateFile("Sample.txt",FILE_APPEND_DATA,FILE_SHARE_WRITE,0,OPEN

VB2010 Get Mouse Position On Form

血红的双手。 提交于 2019-12-25 06:58:35
问题 i currently have a form that is not maximized. I have some code in the MouseDown sub that when i click on the form, it will give me a msgbox that has the mouse click position. The problem is that when i move the form and click at the same location, it does not give me the same location. It is giving me the position of the window screen, not the form. Is there a way i can fix this? Code: sub MouseDown....... msgbox Mouseposition.x & ", " & mouseposition.y end sub 回答1: If you want client coords