8,298 Topics

Member Avatar for
Member Avatar for Gacso

Hello everyone! I'm sorry to bother you all, but I really need your help. I'm an economy and management student at uni, but somewhy I have to deal with programming. We got a task that looks like this: There's a 5x5 sized field where there are 8-8 disks for both …

Member Avatar for Reverend Jim
0
364
Member Avatar for Prachi_5

I want to print database value on multiple pages using C# using HasMorePages property. I have worked on the same, but the loop goes infinetly (without stop) and the same data is repeatating on each page, how to solve it?

0
227
Member Avatar for kg16w

Hey guys! I got super behind in my C++ class and I feel like I dont really know what I am doing. I've been trying to piece together from other examples of password coding, but I got a little lost in the sauce. Anyways, the requirements for this program is …

Member Avatar for rproffitt
0
440
Member Avatar for Dragonmh

I have been at this for weeks and I am able to get most of the errors cleared on my own. I am stuck on these errors and I am unable to find out what is really wrong and going on. I am still pretty new at this. The code …

Member Avatar for rproffitt
0
352
Member Avatar for joao_9

hello i am developing an application in c ++ and mysql and i am having a lot of difficulties in more specified login in the query where the query needs the user and the pass which are in variables. Can anyone help me? Thanks.

Member Avatar for rproffitt
0
2K
Member Avatar for misstj555

Hi. I wanted to review the idea of "Link List" but using C++ and not Java. I borrowed a header file from a textbook to test how a link list works (I know that if I don't paste the whole code [its not my code anyway. It was from a …

0
185
Member Avatar for misstj555

Hello. I am taking a "Data Structures" class. I have to create a code that will print the following "Output": 8 6 4 2 0 6 4 2 0 4 2 0 2 0 0 I tried doing this code three different ways. Here is the first way. I did …

Member Avatar for misstj555
0
1K
Member Avatar for Prahlad4145
Member Avatar for dongtrien

Compress and fix access data in C#, I have to look for examples on google network but it's not running examples, how to compress and fix data in C# ?

0
187
Member Avatar for T3STO

hi brothers , i work on a ASP.NET MVC Project, please i try to get a cookie who created already using server side C# , and in a pure HTML page not .CSHTML i talk now about .HTML page , in this page i want to using javascript to read …

Member Avatar for madCoder
0
1K
Member Avatar for Rushabh Verma

I have a class A like this: public class Article { public Tag Test1 { get; set; } = new Tag(); } public class Tag { public List<News> Test{ get; set; } = new List<News>(); } I have a list like this: News 1 Tag 1{ News 1 **Tag** { …

0
231
Member Avatar for VRamone

Hello, i'd like to capture the content of an ext:panel or a screenshot of the whole browser from a client, but i'm having troubles. In localhost, i can do it with CopyfromScreen method, but since the system is in a server and the user acessing it via web, it gives …

Member Avatar for rproffitt
0
301
Member Avatar for Rushabh Verma

I´m need to parse a json object into a c# class, my problem is that json object has a nested array and it´s throwing some errors when parsing. I have tried a couple of options: a) do foreach in the elements of nested array, and add them to a new …

Member Avatar for rproffitt
0
447
Member Avatar for Rushabh Verma

I have a C# project that creates a COM object for use with a POS terminal. Before I give it to the customer, I want to make sure that it will work as a COM dll. The RegAsm says it works. using System; using System.Runtime.InteropServices; namespace POS { [Guid( "0135bc5c-b248-444c-94b9-b0b4577f5a1a" …

0
273
Member Avatar for steven8579

I have an sql database names SubJobs with a column named Date. The data type is Time(7). I have a datagridview named DataGridView1. I want it to display a time like 04:30 PM. I’ve tried the following command to format the column but it gives me an error saying that …

0
364
Member Avatar for Rushabh Verma

Hi I have XML something like this : <component AttributeA="1"> <Node1 AttributeB="AAAA" Name="John" /> </component> in powershell I can load and read through xml like this : [xml] $xmlDocument = Get-Content (#path to xml file) Write-Host $xmlDocument.componet.AttributeA Write-HOst $xmlDocument.componet.Node1.AttributeB Write-HOst $xmlDocument.componet.Node1.Name that gives me the fallow output : 1 AAAA …

0
219
Member Avatar for Sebi_1

//I want it to ask me for a number at first. Let's say I pass "5" and then type more numbers so I can add them as elements. And in final to make it show reversed elements. Thank u so much!

Member Avatar for rproffitt
0
244
Member Avatar for plump23$

The library optimezedr should determine if a collection of books is in ascending or desending order.Your solution must read books from a text file and produce 2 additional text files one in ascending order and one in Descending order. then your solution will indicate if your original text file in …

Member Avatar for chuckc
0
569
Member Avatar for Tim_18

Hello, I am very new to programming as I am only a few weeks into my C# class. I have a project and after reading and reading my book, sadly I am stuck. Here is what the project calls for: I need to create a program that converts inches as …

Member Avatar for smerilatt
1
3K
Member Avatar for zachattack05

I have a string representing a date time, and a datetime local variable property. The string representing the datetime could be null or an empty string. To check for this, I thought I could check for a null or whitespace value and assign the appropriate value using this code: ReturnValue.ArrivalDate …

Member Avatar for tinstaafl
0
4K
Member Avatar for shafici

first of all: I plugged USB modem to my Computer and I want to communicate that usb modem using C# Code as follows:- first connect to USB then access its services like internet and checking balance using Code. if any Idea please give me ENGs

Member Avatar for rproffitt
0
1K
Member Avatar for pratikmishra22@yahoo.com
Member Avatar for javi.crecenteespino

Hello people. Sorry for my English, I use google translator .. Please Can anyone convert this code to C # or vb.net? import sys VERSION = 0 SUBVERSION = 2 def usage(): print "[+] WPSpin %d.%d " % (VERSION, SUBVERSION) print "[*] Usage : python WPSpin.py 123456" sys.exit(0) def wps_pin_checksum(pin): …

Member Avatar for happygeek
-2
11K
Member Avatar for judithSampathwa

hi there, I have a mask text box with the mask as $9999999999.99 as money. when i type in a value as 12345.67 it appears as $_____12345.67 and when i save it to the database it is saved in the correct format as 12345.67 as money as the data type. …

Member Avatar for Renathu
0
8K
Member Avatar for Michal_5

Hi All. I have a problem with col sorting of my csv file public static void SORT(string input, int col_num) { string[] lines = input.Split(new[] { Environment.NewLine }, StringSplitOptions.None); var data = lines.Skip(1); var sorted = data.Select(line => new { SortKey = Int32.Parse(line.Split(';')[16]), Line = line } ).OrderBy(x => x.SortKey).Select(x …

0
260
Member Avatar for prudvi_1

can anyone help me with Add to cart functionality in xamarin(i.e) C# code using SQLite

Member Avatar for Dani
0
307
Member Avatar for differentiation

Hi, I've been playing a game from a few years back (I really enjoyed it) and I found that it was open source on github. I would love to make my own version and see how it goes. I have experience with python as a hobby, and I've had a …

0
356
Member Avatar for Kelvin _1

Write a C++ program that would depict car pooling is of much advantage to the environment and to the user . NB:Enforce security in currency output.

Member Avatar for rproffitt
0
667
Member Avatar for mike888

Hi, I have a problem with my homework assignment. I am able to access the database and insert new customer but it doesn't work when i try to update any record. if anyone can tell me what is wrong with my code. thank you so much this is all my …

Member Avatar for vishal_30
0
11K
Member Avatar for ddanbe

Why is it that C# disappeared from the Programming menu? Something to do with upcoming changes?

Member Avatar for Dani
0
2K
Member Avatar for talon88

using c# socket programming. For the program on computer A, i would probably need to create a windows form, to allow me to trigger computer B software to run by clicking. How do i implement the async socket into window form? How can i start the connection of both computer, …

Member Avatar for talon88
0
608
Member Avatar for overwraith

How do I start a MonoDevelop software program as a system service on Windows, Linux, and Mac? Windows appears to not have a system service setting. I have a WCF service that essentially runs from command line. Even if I have to run from command line, I will need to …

Member Avatar for RabidDog5150
1
2K
Member Avatar for open2join

Hi Pobably it is going to be repeated question but I wasnt able to find such thread. I just would like to do sql through C++ and I have 2008 ms database. What are free libraries available for doing such job? Thanks

Member Avatar for rproffitt
0
349
Member Avatar for overwraith

Hello all, I was wondering if I could get some questions answered about how cupons work in the work place. I have an idea which involves creating a very flexible cupon service, but would require knowing the rudiments of how cupons work. The main question I have is how is …

Member Avatar for Schol-R-LEA
0
3K
Member Avatar for RemH

Hi Everybody, I Just started C# and have an issue with this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace testurl { public partial class WebForm1 : System.Web.UI.Page { public void Page_Load(object sender, EventArgs e) { } public void Button1_Click(object sender, EventArgs e) { string …

0
391
Member Avatar for KLane

[CODE] //I need to make a class that calculate the mean and standard deviation. I have to test my program with an external file containing about 300 data. My program doesnt return the correct valuesAny help? #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double …

Member Avatar for mellguth
0
1K
Member Avatar for open2join

Hi I am considering to use C++/CLI because of .NET. My aim is to create DLLs where these would be used by some language. Would I be getting any problems if I decided to export DLL containing managed code? Any portability issues? Thanks in advance

Member Avatar for rproffitt
0
290
Member Avatar for hollywoood69

Hey everyone of the c++ world. I am a little stuck. Here is what i am suppose to be doing. Write the program as an object-oriented C++ program that calculates and displays the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, …

Member Avatar for Yasin_4
0
2K
Member Avatar for Pankaj18
Member Avatar for rproffitt
0
159
Member Avatar for cambalinho

heres my actual code for find\search a folder: string FindDirectory(std::string FindDirectoryName[2], std::string StartDirectory="C:") { WIN32_FIND_DATA file={0}; string str=StartDirectory+ "\\*"; HANDLE search_handle = FindFirstFile(str.c_str(), &file); static bool blnFindDirectoryName=false; static string strFolderName =""; //testing if the folder is valid: if (search_handle != INVALID_HANDLE_VALUE) { do { //if the folder was founded, then …

Member Avatar for cambalinho
1
2K
Member Avatar for CSharpUser

If I'm not asking this in the correct forum, please point me in the right direction. I am using System.DirectoryServices.AccountManagement.GroupPrincipal FindByIdentity in C# to create an object containing the group members (user IDs and names) for the target group. My goal is to iterate through the resulting list of UserPrincipals …

Member Avatar for rproffitt
0
720
Member Avatar for s_ghonem

i am using zk sdk to connect to fingerprint i tried Connect_Com(1, 1, 38400) BaudRate is the same in the application and the fingerprint i am using com1 the deviceid =1 but the connection between fingerprint and pc failed do u have an idea about configurations needed to the serial …

Member Avatar for Rupesh_3
0
11K
Member Avatar for paulofficial

write a C++ program to find the volume of a cube. The program should provide setting and gettng the values of cube( height, length and breadth). show how encapsulation and abstraction is implimented in your programme. you must use a class concept and the main function.

Member Avatar for nullptr
0
152
Member Avatar for peregrinepair

Hello, this is my first post. I need help with this assignment here, dont know where to begin! maybe I should use strstr()? The output needs to be what is shown at the bottom. I cant use the string class, only c-style functions. Any hints would be welcome thank you! …

Member Avatar for Reverend Jim
0
351
Member Avatar for Lokesh_S

Hi, I'm generating word doc on the fly by using html in asp .net with C#. And I want to add image at top but after creation of word doc I'm not able to see that image. I don't want to use Word or any third party dll. Please Help …

Member Avatar for RabidDog5150
0
833
Member Avatar for jeffersonalomia

Hi, I would like to ask a question about returning the column value(s) returned by stored procedure in c#. I have created the code but somehow I encountered an error saying: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: Subquery returned more than 1 value. This …

Member Avatar for RabidDog5150
0
996
Member Avatar for ddanbe

Sometimes you have long processes and you even want display them up to the millisecond. Here is a way to do it.

0
1K
Member Avatar for DaveAmour

I've been studying TDD for a few years and read quite a few books but none that good to be honest. Can anyone recomend any good ones. I'm not interested in BDD but am keen on anything that tackles the many problems of mocking intrinsic MVC objects.

Member Avatar for dkalpesh1992
2
471
Member Avatar for djbsabkcb

Question: I have to do a program on alternating sums using vectors. I am not sure how to start this program. I thought about using an array and every even index add the value and every odd index subtract the value. Does that sound right? Any ideas?

Member Avatar for jacklin
0
2K
Member Avatar for chandan_14

#include<iostream.h> #include<conio.h> class game { int a,b,c; public: void g() { cout<<"Enter value of a<<endl; cin>>a>>b; if(a<b) { cout<<a,<<endl; c++; } } }; void main() { game g1; g1.g(); getch(); }

Member Avatar for Reverend Jim
0
343

The End.