|
Am I misunderstanding something or with a VisualStudio subscription I can use any version of VS?
So if I buy a VS Professional subscription I should be able to use VS 2015 Pro, VS2017 Pro and VS2019 Pro with the same license.
So far I always had the sw licensed by the employer but I may need to license my own for a customer with more restrictions than a straitjacket.
EDIT: I have an unlicensed VS 2015 enteprise version installed by the customer's admins but I can only obtain a Pro license from my company. The customer doesn't have access to the Pro version. Can I activate the Enteprise version with a Pro license and use only the Pro features?
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
modified 20-Nov-20 8:02am.
|
|
|
|
|
I downloaded a github project (SimVDI) and tried to compile it under VS 2013 (being the only VS I have). The author named all the files with extension .c.
Almost all code is C but in one place the author seemed to let a sloppiness creep in and
did some C++-ish thing (auto declaration in for (int i=0...)).
I repaired that to C style.
But is there a way to make S treat all files with extension .c as C++ files? (rather than nameing them .cpp)?
|
|
|
|
|
|
Thanks. That helped partially. For the file in question it cured the problem. But it fired a cascade of other errors in other files.
I choose the project settings and add the /Tp as an additional command line switch, right?
|
|
|
|
|
No, it is the /TP option (capital P). Please go to the link I gave you to see the difference.
|
|
|
|
|
OK thanks. Sorry for misunderstanding. It turns out that the author must have had the intention to mark all soource files being C-files (there was the option /TC alreay there). Overriding that with /TP triggers so many errors that I decided to leave in the /TC option, repair the error manually in that one C-file and will contact the author about that.
|
|
|
|
|
Hi all, whenever I try to add a project to TFS Visual Studio tries to add it to Git - I've set Tools/Options/Source Control/Plugin to Team Foundation Server but it still tries to add it to git and fails - I have lot's of projects under TFS and when I open them they correctly show up in the TFS Explorer - I'm using V2 2019 Community Edition
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
|
Thanks but no help there - I don't want cloud connectivity I want to connect to my local CI server
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
modified 30-Sep-20 14:35pm.
|
|
|
|
|
Hi all,
Problem domain:
1. I have several files and subfolders I want to copy from one git repo to another, and make sure the git history is copied.
2. I MUCH prefer to use a GUI solution than CLI. My preferred GUI is Team Explorer with SourceTree as a secondary solution.
I have seen a number of CLI-based solutions to do this, but I detests CLI and have stayed away from using the command line for the most part since GUIs came out over 30 years ago.
Even with TortoiseGit installed, just copying files in the TortoiseGit menu doesn't copy the history to the local working branch.
Any help would be appreciated.
|
|
|
|
|
Hi
just wondering if anyone has changed from MSVC to Mingw. I recently wanted to write my own prologue and epilogue code. for (I am using C++ with MFC)
and I noticed the mingw supports X64 inline assembler. There are no intrinsics to access registers in MSVC which would make if difficult
Thanks
|
|
|
|
|
|
not supported for X64
Quote: error C4235: nonstandard extension used: '__asm' keyword not supported on this architecture
1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2065: 'mov': undeclared identifier
1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2146: syntax error: missing ';' before identifier 'RAX'
1>c:\dbgr\dbgr\dbgr\casidlist.cpp(135): error C2065: 'RAX': undeclared identifier
1>c:\dbgr\dbgr\dbgr\casidlist.cpp(136): error C2143: syntax error: missing ';' before '}'
1>CControlRegs.cpp
|
|
|
|
|
|
Just wondering why they removed that option if you want to write your own prolog and epilogue it is helpful more so there are no intrinsics to access the registers in C\C++
Thanks
|
|
|
|
|
I doubt that many people these days even know that a prologue and epilogue exist.
|
|
|
|
|
That is sort of why we have high level languages with their compilers. You shouldn't have to know.
I am really curious to why the standard one is unsuitable, in this case.
(Don't take this as any critical voice, or any sort of "objection" - it is meant as positive, curious question!)
|
|
|
|
|
I think your message was not meant for me, but ForNow.
|
|
|
|
|
Hi,
I am getting below error while generating the SQL scripts using a web installer with Integrated security as true /Windows authentication mode on.
It works perfectly fine with SQL authentication mode.
The server principal "DOMAIN\MACHINENAME$" is not able to access the database "<db name="">" under the current security context.
Regards
|
|
|
|
|
Windows authentication uses the account the code is running under, which, in an installer, can be the System account. System is just another name for the machine's own account. Yes, even the machine running Windows has to log into Windows.
Either the security on the SQL Server has to be modified to allow the machine account to login to the database, or you do NOT use IntegratedSecurity in your connection string. You will, of course, have to ask for the credentials to use during install and put those credentials into your connection string when running the SQL script on the server.
|
|
|
|
|
That is because it is using the windows account of the web server which will be very restricted.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Hi,
Not sure which forum I need to use for this issue. Currently we are using visual studio 2012 ,Community edition ,net framework 4.0. On our workstations, we installed Visual Studio Enterprise 2019 version. We Should migrate our project to.net framework 4.7.2 in VS2019. When I open project in VS 2019 with .net framework 4.7.2, it is giving the run time error as Authentication error (Project was successfully build without any error). Where the same project worked good on VS2012.
It is showing
"
Exception Details: System.UnauthorizedAccessException: Windows Integrated Security is not enabled
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true">, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 115: {
Line 116:
Line 117: throw new UnauthorizedAccessException("Windows Integrated Security is not enabled");
Line 118: }
Line 119:
"
Where i have enabled windows integrated security .
windows authentication as enables and anonymous authentication as disabled.
Can anyone please help me what changes i need to make over here?
|
|
|
|
|
You have already posted this in the C# forum.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am developing an app to manage bank transactions. Each transaction is related to a bank. I display transactions on a Datagridview control. One of the columns is defined as a combobox which contains a list of banks. Each transaction record has an accountID which should select an item in the combobox, ie showing the correct bank for that transaction.
What I have done..
1. The transactions are displayed correctly on the grid;
2. The combobox is loaded with the correct list of banks
Problem..
Everything is working fine except the combobox does not show the correct bank for each transaction (ie, no item selected)
Not sure the fact that I have 2 data tables is the problem. A table to load the transaction grid. Another table to load the combobox. Both data tables have a column called "account_id".
Do I need to do anything else? Here is my code below
Any help would be appreciated
My grid is called "TransDataGridView"
This code loads the combobox using data table dt_Accounts
DataGridViewComboBoxColumn accountsComboboxColumn = (DataGridViewComboBoxColumn)TransDataGridView.Columns["Account"];
accountsComboboxColumn.DisplayMember = "xaccountname";
accountsComboboxColumn.ValueMember = "xaccountid";
accountsComboboxColumn.DataSource = dt_Accounts;
This code loads the datagrid using data table dt_Trans
TransDataGridView.DataSource = dt_Trans;
|
|
|
|
|
I don’t know if this question belongs to this forum.
I'm developing a website with vb.net web application using visual studio 2015 where a client is able to download a pdf file and I have considered 2 approaches as follows.
Dim sqlcom As New SqlCommand("select bookcontent,bookname from books where bookn=" & Page.RouteData.Values("bookn").ToString & "", conn)
Dim da As New SqlDataAdapter(sqlcom)
Dim ds As New DataTable
da.Fill(ds)
Dim filename As String = ds.Rows(0)("bookcontent").ToString
Dim fff As String = ds.Rows(0)("bookname").ToString
Dim fileInfo As FileInfo = New FileInfo(filename)
If fileInfo.Exists Then
Response.Clear()
Response.Buffer = True
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.ContentType = "Application/pdf"
Response.ContentType = "application/ms-word"
Response.AddHeader("Content-Disposition", "inline; filename=""" & ds.Rows(0)("bookname").ToString & ".pdf" & """")
Response.AddHeader("Content-Length", fileInfo.Length.ToString())
Response.TransmitFile(filename)
Response.Flush()
HttpContext.Current.ApplicationInstance.CompleteRequest()
I'm having trouble with the first approach above because when downloaded start the website
Hang on until pdf file fully downloaded to client PC ,this is bad since website will be access
By thousand of users every day,so I want to make the download process asynchronous.
I use the .NET Framework WebClient class in the second approach:
Dim Client As New WebClient
Dim weburl As String= ....here is some procedure to get url
Client.DownloadFileAsync(New Uri(weburl), @"c:\myfile.pdf")
But the problem here is that a path must be set and I want clients to get the file in the default download folder according to the Internet browser they use and the download process not appear through browser user can't see downloading file progress .
I will very much appreciate any comment that points me in the direction to solve this issue.
Thanks a lot.
|
|
|
|