visual-studio

Calculate the total cost of the products within the shopping cart and displaying it at the bottom rather than manual input

℡╲_俬逩灬. 提交于 2021-02-05 11:32:26
问题 I have made a checkout form that displays the cost of a product, the subtotal, GST cost, delivery cost, and total price. What id like to do is take the cost of each product which has the class class = "price" (but id assume that they may need an id), and add them together to get the total. This total would be calculated with an increase of 15% from the value of the subtotal plus the cost of delivery. Here is the checkout form (sorry for the length) ~ there is some styling that isn't relevant

Why visual studio doesn't show data source of Firebird

天大地大妈咪最大 提交于 2021-02-05 11:15:13
问题 I have installed Firebird server 3.0 and Firebird ADO.net provider Client 7.1.1.0. I am trying to connect a database of this server via Visual Studio 2015 using entity framework. I have installed DDEX. Now, I can connect a database via server explorer but when I try to add a data model, the data source for Firebird is not in the options. I tried to follow this_link but I was still not successful. This is the image from server explorer where Firebird data source is present and connection is

Visual Studio 2017 does not show collapse icon for js file

家住魔仙堡 提交于 2021-02-05 11:14:53
问题 Visual studio 2017 does not show function collapse icon for JS files. However, it highlights function and variable keywords. 回答1: You can enable 'outling' (as it's called) for the current document by selecting the "Outlining" item from the "Edit" menu, and choosing "Start Automatic Outlining," as shown below: In theory, there should be a "global" setting for this, like there is for other languages (e.g. Options -> Text Editor -> C# -> Advanced then "Enter Outlining mode when files open") but,

Visual Studio 2017 does not show collapse icon for js file

南楼画角 提交于 2021-02-05 11:14:05
问题 Visual studio 2017 does not show function collapse icon for JS files. However, it highlights function and variable keywords. 回答1: You can enable 'outling' (as it's called) for the current document by selecting the "Outlining" item from the "Edit" menu, and choosing "Start Automatic Outlining," as shown below: In theory, there should be a "global" setting for this, like there is for other languages (e.g. Options -> Text Editor -> C# -> Advanced then "Enter Outlining mode when files open") but,

Why is CreateFileA failing only when the executable is run under Visual Studio?

北战南征 提交于 2021-02-05 10:39:58
问题 I wrote a simple check_file_ref function using WinAPI to check whether two paths reference the same file. The code is fine. It's compiled with Visual Studio 2017 in C (flag /TC ). The weird thing is CreateFileA (winapi) always fails when the executable is run under Visual Studio (ie execute without debugging), returning an invalid file handle. Otherwise, it works as expected when the executable is run outside of Visual Studio. The working dir is the same in any case. main.c: #include <stdio.h

Why is CreateFileA failing only when the executable is run under Visual Studio?

丶灬走出姿态 提交于 2021-02-05 10:39:07
问题 I wrote a simple check_file_ref function using WinAPI to check whether two paths reference the same file. The code is fine. It's compiled with Visual Studio 2017 in C (flag /TC ). The weird thing is CreateFileA (winapi) always fails when the executable is run under Visual Studio (ie execute without debugging), returning an invalid file handle. Otherwise, it works as expected when the executable is run outside of Visual Studio. The working dir is the same in any case. main.c: #include <stdio.h

Do you have to have .net core installed on a system before using self contained apps?

我怕爱的太早我们不能终老 提交于 2021-02-05 09:40:45
问题 I'm using Visual Studio 2019 to publish a self contained .net core 2.1 app. Many files are emitted during the publishing (application files as well as core libraries). But there is no dotnet.exe included in the published files. Without a dotnet.exe I can't launch the published app! So I'm confused. Must you have a system wide .net core installed to use self-contained apps, and if so, then you're app certainly isn't self contained. 回答1: A self-contained app will contain everything needed to

User input then split string

拟墨画扇 提交于 2021-02-05 09:39:38
问题 I have looked online for many solutions to my problem. I want to ask the user to input a sentence and write the sentence out one word per line using the split method. I have asked the user to enter a sentence and ran the console but the the sentence keeps appearing on the second line. namespace Seperation { class Program { static void Main() { string temp; string sentenceTwo = (" "); Console.WriteLine("please enter a sentence"); temp = Console.ReadLine(); sentenceTwo = temp; string[] split =

Do you have to have .net core installed on a system before using self contained apps?

自古美人都是妖i 提交于 2021-02-05 09:38:47
问题 I'm using Visual Studio 2019 to publish a self contained .net core 2.1 app. Many files are emitted during the publishing (application files as well as core libraries). But there is no dotnet.exe included in the published files. Without a dotnet.exe I can't launch the published app! So I'm confused. Must you have a system wide .net core installed to use self-contained apps, and if so, then you're app certainly isn't self contained. 回答1: A self-contained app will contain everything needed to

listing files in a folder using C in Windows

ⅰ亾dé卋堺 提交于 2021-02-05 09:38:07
问题 I want to list the files in this folder "C:\home\WORK\Desktop\Communication". There are ten files in this folder. My code has no error but it's not printing anything. What is my mistake ? #include<stdio.h> #include<Windows.h> #include<string.h> int main(int argc,char *argv[]) { char path[]="C:\\home\\WORK\\Desktop\\Communication"; strcat_s(path,sizeof(path),"\\*"); WIN32_FIND_DATA fdata; HANDLE hFind =INVALID_HANDLE_VALUE; int numberOfFiles=0; char *files[10]; hFind = FindFirstFile(path,