Questions tagged as 'c#'

1
answer

How to get the current process that the user is using?

I made a program to get the current user process, but only what it takes is " ConsoleApplication1.vshost "( ConsoleApplication1 is the name of the program), even in windows like Google Chrome, etc. Code: Process process = Process.GetCurrentPro...
asked by 06.05.2017 / 03:55
0
answers

Error when using a c ++ dll in a C #

I created a dll with a code in C ++, when I went to use it gave an error. function within the dll that I tried to use extern "C" __declspec(dllexport) void ClickLeftMouse(int x, int y){ POINT cursorPos; cursorPos.x = x; cursorPos.y = y; HWN...
asked by 25.04.2017 / 20:01
1
answer

WCF + Web API - How to integrate?

I'm developing a web api and need to integrate with a service from a third party that is a WCF. I have the WSDL definition, I integrated it into my solution as a service reference, but it is pointing to a physical file on my PC. How do I inte...
asked by 25.04.2017 / 20:09
3
answers

webservice REST GET method with token in external browser

I'm developing a client that consumes a webservice, all POST methods are ok. It has a GET method that should return an HTML page for customer registration. In this method, you need to define the header: content-type:"application/json"...
asked by 25.04.2017 / 20:17
1
answer

Filter a NULL type in lambda expression or linq

Hello, my A entity has an attribute of type long that can be NULL making a relationship with entity B , making a filter with a Lambda expression with this attribute to bring up all records that are different from NULL it does not recogniz...
asked by 06.04.2018 / 13:37
0
answers

StreamWriter inserting blank lines

I'm implementing a file download in ofx, I am generating the string and then adding it to a StreamWriter , however if I add row by row or add the entire string at once without breaking lines, it creates a multi-line file in the blank end, after...
asked by 10.04.2017 / 15:22
1
answer

Application template for .net standard library

In Visual Studio, I know that I can create a UWP - Universal Windows Platform application template, where the wizard places references to the .net core libraries in the project, among them the .net standard. The .net framework supports .net stan...
asked by 08.04.2017 / 22:21
0
answers

Can not find column 22276451.

Good morning, I'm developing a code that can defer the X and Y values of a chart I inserted into ASP.NET. For this I made a query to the sql server to be returned to the average of a column, until the following error appeared: Can not find colum...
asked by 06.04.2017 / 11:29
1
answer

The input string was not in an incorrect format [duplicate]

I'm developing a three-tier application, but there's a catch when saving non-string data types! The following is the code below: //Camada dados Método inserir produto! public string Inserir(Dproduto Produto) { string resp = ""; S...
asked by 17.04.2017 / 19:05
1
answer

Modify visual element by another thread

I want to define a Thread in a RichTextBox but I get an error saying    Can not make calls from another thread than the same TextBox I've heard that it's possible to use the Control.Invoke option, so I was very much in doubt at th...
asked by 18.10.2015 / 00:46