Questions tagged as 'c#'

0
answers

how to use the voices of virtual assistants separately in c #?

Choices lista = new Choices(); lista.Add(new string[] { "Hola Helena" }); Grammar gramatica = new Grammar(new GrammarBuilder(lista)); try { reconocedor.SetInputToDefaultAudioDevice(); reconocedor.LoadGrammar(gramatica); reconoce...
asked by 23.03.2018 / 20:42
1
answer

LiteDB in UWP open a database in share mode

I wanted to know how I can open the LiteDB database with the shared mode application so I can see the changes with a PC? var localFolder = Windows.Storage.ApplicationData.Current.LocalFolder; var folderPath = localFolder.Path;...
asked by 23.03.2018 / 16:21
1
answer

error when executing bat from a program in c #

Good I have the following bat, that I execute directly and it works without problems: FOR /F "skip=2 tokens=2*" %%A IN ('REG QUERY "HKLM\Software\JavaSoft\Java Runtime Environment" /v CurrentVersion') DO set CurVer=%%B FOR /F "skip=2 tokens=2*...
asked by 24.03.2018 / 21:55
1
answer

Object reference not set as instance of an object (2.0) [duplicate]

I am getting an error called "System.NullReferenceException:" in my C # program. I have searched on this website how to solve it and I have read that it is usually because the initialization is not used, so the values that it tries to acces...
asked by 24.03.2018 / 17:03
1
answer

it is advisable to pass many parameters [closed]

Cordial greeting. I am making an application in c # use the program in three layers but I have the doubt that if it is advisable to pass many parameters to a method, if not, what can I do? Is there a design pattern to solve this? example: Publ...
asked by 30.03.2018 / 01:59
0
answers

Error with Insert MSSQL, PetaPoco and C # (WPF)

Good morning, I am developing a desktop application using WPF, in visual Studio 2017 ; and I'm using the PetaPoco library for CRUD with SQL. I would like to know if you could advise me in this case, since I do not find much information on...
asked by 30.03.2018 / 20:11
0
answers

how to read files ZW, YG, YG5, in C #?

I've been struggling to be able to read .zw, .yg, .yg5 files, among other formats, which are files that are downloaded by us from the biometric industry reader ANVIS the W1 model . Within these files should be users 'and users' marks , bu...
asked by 29.03.2018 / 23:29
1
answer

How to get extra hours in Jquery

I have an html with Jquery but I want to get the extra hours with the following code, in my html I have 4 input type="time": for the entry ( ✓ ). for the output ( ✓ ). gets the hours worked ( ✓ ). the extra hours, which would be obtain...
asked by 30.03.2018 / 06:02
0
answers

System.NullReferenceException: 'Object reference not set as an instance of an object. When trying to implement a POST method in .net

This is my code: public IHttpActionResult PostNewStudent(StudentViewModel student) { if (!ModelState.IsValid) return BadRequest("Invalid data."); using (var ctx = new SchoolEntities()) {...
asked by 30.03.2018 / 03:19
0
answers

Functions / Stored Procedures PostgreSQL Entity Framework

I'm doing a WebAPI project with Postresql, and integrate the tables and the connection works fine, but when doing functions in postgres and wanting to import them I get the following error:    Error 6046: Unable to generate function import re...
asked by 21.03.2018 / 18:04