Questions tagged as 'c#'

0
answers

How to check if pepflashplayer.dll was started and get Pid

I'm getting the modules being used by Chrome to see if the pepflashplayer.dll (FLASH PLAYER) has started I'm using this code for this void ListAllProcesses() { var hProcessSnap = WinAPI.CreateToolhelp32Snapshot(WinAPI.SnapshotFlags.TH3...
asked by 11.05.2017 / 21:06
0
answers

Problems in integration between C ++ and C #

Hello, I'm having problems integrating a C ++ DLL with Unity C #. I found some code ( link ) This is my C ++ code, in it theoretically I send a structure with 2 points for Unity in C #. struct Pontos { int i; float f; }; Pontos **pontos; Dl...
asked by 02.05.2017 / 21:26
1
answer

Run mongoimport command via C #

I need to run the mongoDBD command from mongoDB via code but it is not right: 'pro.FileName = "cmd.exe"; //pro.UseShellExecute = false; pro.Arguments = @"/k cd C:\Program Files\MongoDB\Server.4\bin\";...
asked by 05.05.2017 / 03:33
2
answers

Restrict access to only one page in the application, leaving the others free

I would like to restrict access by requesting login to only one page in my application. In webconfig I put it like this, but obviously this requires authentication on every page of the application. <authentication mode="Forms"> &l...
asked by 05.05.2017 / 16:28
1
answer

Get date from a website C #

I'm developing a C # program that lets you click at a particular time chosen by the user. For now the program clicks by subtracting the time chosen by the user with local time, but I soon discovered that through a Headers website you can tel...
asked by 19.04.2017 / 14:47
2
answers

Input submit does not call ActionResult

I'm having trouble calling ActionResult using input type="submit" and passing the model data. I did a test using ActionLink but the Model is not sent. Could someone give a light? Follow the code: Controller: [HttpPost] p...
asked by 17.05.2017 / 22:05
1
answer

How to use inheritance and polymorphism when passing a JSON to an MVC C # Controller?

I have an MVC method that receives a client class as a parameter: public async Task<ActionResult> Cadastrar(cliente model) { } It turns out that this class has two children, a class called a person. and another class...
asked by 12.04.2017 / 01:13
0
answers

Visual Studio 2013 Debugger does not work with external DLL

I have an application that was migrated from VS2008 to 2013, .Net FrameWork 4 and C #, which uses a DLL from another project. Build without errors. But after running, at the moment of instantiating the dll object, it has the following error (...
asked by 11.04.2017 / 19:53
1
answer

Entity Framework 6, many X many relationship and Scaffolding

I am doing a college project and my knowledge in ASP.Net is not very deep. In my project I came across a MxM relationship and I can not implement this situation in a useful way. The relationship is as follows: A company registers one or m...
asked by 15.04.2017 / 23:38
7
answers

How do I remove accents in a string?

I have a string áéíóú What I want to convert to aeiou How do I remove the accents? I need to save in the database as a URL.     
asked by 11.12.2013 / 16:51