132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jean_5

I have the code if (!(row.IsNull("bigInt") || row["bigInt"].Equals(String.Empty))) { this.bigInt = Convert.ToInt64(row["bigInt"]); } But, it's give to me the error: Cannot inplicity convert type 'long' to 'int'. An explicit conversion exists (are you missing a cast?)

Software Development sql
Member Avatar for ddanbe
0
69
Member Avatar for kotachari

Hi , any one can help me code for how to parse the below file. -*: M V3.1SP0010*20140925 #-+: 131854 # PROLIM Package V20.02 { FILE = "54377948"; COMM = "U:fe "S; { COMM = "FE_slt"S; SEQ = "FE_crt"; SEQID = "FE_slt"; MEMO = " "S; SA = HEAD; PORI …

Software Development c++ file-system
Member Avatar for L7Sqr
0
408
Member Avatar for cambalinho

i did the Get macro and works fine: #define Get(x) [this]()->x (like you see it's a lambda function header) but i see 1 problem(sample): Get(int) like you see the type is inside of the macro function :( but i need it: int Get() can anyone advice me for do these …

Software Development c++
Member Avatar for cambalinho
0
138
Member Avatar for rehpolin

hi i need K-means cluster algorithm for documents in c#.plz send the code to my mail id ....

Software Development algorithm
Member Avatar for Cesar_3
0
51
Member Avatar for Muzaffer_Ali

`use the button click event ` then type the following codes opendialog dp= new opendialog.show(); dp.location=dp.flielocation

Software Development c#
Member Avatar for JOSheaIV
0
164
Member Avatar for Diellza

I want to addtiming execution in java code but I don't know how? Here is the code of Bucket sort import java.util.*; public class BucketSort{ public static void sort(int[] a, int maxVal) { int [] bucket=new int[maxVal+1]; for (int i=0; i<bucket.length; i++) { bucket[i]=0; } for (int i=0; i<a.length; i++) …

Software Development java
Member Avatar for Diellza
0
310
Member Avatar for satyanani40

os.environ['HOME']+'/.xsend' what it means

Software Development python
Member Avatar for Gribouillis
0
174
Member Avatar for Kwasi Sefah

please am now a biginner in learning c++ programming. I want to know when do we use include <cmath> apart from the normal include <iostream>

Software Development c++
Member Avatar for Kwasi Sefah
0
172
Member Avatar for lewisy95

Hi, I'm looking to make a log form, for a car park at a hotel, where I have to enter the plate, customer names and the space it has been assigned to. Program Requirements When a guest arrives, the valet will take or note the following details and enter them …

Software Development
Member Avatar for ddanbe
0
143
Member Avatar for Luiz Eduardo

I'm with a problem for show my Form1 and listen the active url in on browser. In code following, after the test with showmessage function, apper an Acess violation in my project as on following images: [IMAGE_1](http://prntscr.com/51vh96) [IMAGE_2](http://prntscr.com/51vkdn) Here is my code: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, …

Software Development pascal
Member Avatar for darkagn
0
350
Member Avatar for notywq

I'm fairly new to java, so forgive my incompetence. This program is pretty simple, I'm trying to take the string that a user inputs and return the vowels in the string. The error I'm getting is as follows: > VowelsA3.java:16: error: cannot find symbol > if (isVowel(letter) == true) > …

Software Development java
Member Avatar for zolymo
0
651
Member Avatar for ziarashdi26

have to write a program using array that asks the user to input any 10 numbers the program than sorts the numbers in ascending order and displays the sorted numbers, kindly help

Software Development c++
Member Avatar for NathanOliver
0
139
Member Avatar for andreas.petrou.967

I have write this program,how to sort the numbers? // ddd.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> using namespace std; struct nodeType { int data; nodeType *link; }; nodeType *head; int main() { // // Init the list // nodeType *first; nodeType *last; …

Software Development c c# c++
Member Avatar for andreas.petrou.967
0
202
Member Avatar for mxwarning

Hello, I am having trouble with my inventory program. I made the first part last week and thought I did a good job. Come to find out I did not and the feedback I recieved from my instructor was not very helpful. Is there anyone that can help me fix …

Software Development java
Member Avatar for mxwarning
0
435
Member Avatar for Killakia

Hello all I'm learning VB and I've hit a road block. I've tried looking in books and searching the web but I can't seem to find an answer at all. I've been trying to get the streamreader to read my text file and display it in a list box. Hever …

Software Development visual-basic
Member Avatar for Santanu.Das
0
250
Member Avatar for kidkardel

HI again!!!!!!!!! so i have this button where if i press it words will be typed on my richtextbox but my problem is i want the half part to be centered and the half part would be aligned to the left. how can i achieved that. i have already done …

Software Development
Member Avatar for kidkardel
0
234
Member Avatar for COKEDUDE

I have this if block that is supposed to be creating a pipe then forking and I would like to combine the while loop below it with it. How would I do that? p = pipe(pipe1); if (p < 0) { printf("pipe error"); exit(0); } else { printf("successful pipe1 = …

Software Development c
Member Avatar for L7Sqr
0
953
Member Avatar for fabregas42

<item> <HaberKodu </HaberKodu> <Kategori</Kategori> <Sehir</Sehir> <title</title> <description></description> <pubDate></pubDate> <images> <image> 1 </image> <image> >2 </image> <image> 3 </image> <image> 4 </image> <image> 5 </image> <image> 6 </image> </images> <small_images> <small_image>1 </small_image> <small_image> 2 </small_image> <small_image> 2 </small_image> </small_images> <Aciklamalar> <Aciklamala>1 </Aciklamala> <Aciklamala> 2 </Aciklamala> <Aciklamala> 3 </Aciklamala> </Aciklamalar> <link> </link> …

Software Development c c# c++ dataset mssql sql xml
Member Avatar for JOSheaIV
0
429
Member Avatar for josh187

I'm creating a program that holds three arrays: one for the person's last name, one for the points scored and one for the player number. Now, Ive got all the arrays and everything done but My ProcessDelete method isn't removing the items in the array and I can't figure out …

Software Development
Member Avatar for rubberman
0
136
Member Avatar for COKEDUDE

I started off reading a file with fscanf. I figured I could use fscanf since the file was consistent with just two columns. I got very strange output when using fscanf. Can someone please explain why? When I switched over to fgets with sscanf it worked perfectly. I am curious …

Software Development c
Member Avatar for Banfa
0
1K
Member Avatar for alex.alekan

I have an xlsx file consisting of 10 sheets.How can i read and import these sheets to a textbox in a c# winform project?

Software Development
Member Avatar for ddanbe
0
470
Member Avatar for inspire_all

Hello everyone,i think i know quick sort algorithm.But i need help in figuring out its worst case. Lets look at the below quicksort code----> void quicksort(int arr[],int low,int high) //low and high are pased from main() { int m; if(low<high) { m=partition(arr,low,high); quicksort(arr,low,m-1); quicksort(arr,m+1,high); } } int partition(int arr[],int low,int …

Software Development algorithm c programming-construct
0
136
Member Avatar for pushkar honey

when i try to call a .c file in antother i got a error for multidecalaration of main file.i prepare for a medical shop management using c language what can i do???

Software Development c
Member Avatar for dhanushdee24393
0
9K
Member Avatar for SumTingWong59

So basically we'll just say that, for example, the user inputs 'As' and it is set to variable 'A'. I have an input .txt file that has a list of these characters (it's for figuring out molecular geometry) so somewhere in the text file it says 'Arsenic As 5' I …

Software Development c++
Member Avatar for SumTingWong59
0
209
Member Avatar for hdreyer

Good day, Can anybody help me with this question please? I want to know how to write info back to a program line. In other words to be able to search for a file and put it into the xslt.Load(".....") This is the source code to transform XML to HTML …

Software Development html-css vb.net xml
Member Avatar for Herman_1
0
229
Member Avatar for SumTingWong59

http://pastebin.com/WBvMuQvH my code has become somewhat of a mess from trying to move things around and figure out what isn't working. Basically, what i want it to do is, say the user enters 3, i want it to print out: 1 212 32123 Could you guys give me some help? …

Software Development c++
Member Avatar for AndrisP
0
181
Member Avatar for sabri1990

#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <time.h> #include "GCoptimization.h" #include "opencv/cv.h" #include "opencv/highgui.h" #include "opencv/ml.h" using namespace cv; #include <vector> #include <iostream> #include <limits> using namespace std; #define __PI 3.14159265 void graphcut(Mat& featureVec, Mat& im, int num_lables) { Mat lables, centers; cout << "Kmeans: #centers = " …

Software Development c++
Member Avatar for sabri1990
0
649
Member Avatar for silverdust

I have this as my major code #!/usr/bin/env python # # @author: Joseph Rex # @website: http://josephrex.me # @repository: http://github.com/bl4ckdu5t/registron # # # import sys, webbrowser from PyQt4 import QtGui, QtCore from ui_registron import Ui_MainWindow try: import pyttsx except ImportError: raise ImportError, "pyttsx module is required for speech features of …

Software Development github gui html-css python qt
Member Avatar for vegaseat
0
2K
Member Avatar for Slavi

Hey guys, Just got a quick question ... I am implementing a client GUI, and part of the requirements are that the client is able to start, stop and restart the server. This got me a bit confused since the client connects after the server is running. What I am …

Software Development client-server gui java queue
Member Avatar for Slavi
0
319
Member Avatar for Ravi_exact

How to replace only 1d values in 2d array after filter using numpy in python without loop i.e in pythonic way. I want to filter only t2 rows and replace values in second column ( middle column ). example: `>>> x = np.array([['t1',10,20],['t2',11,22],['t2',12,23], ['t3',21,32]])` >>> x array([['t1', '10', '20'], ['t2', …

Software Development python
Member Avatar for sneekula
0
4K
Member Avatar for LoveAntwinette

Can someone explain to me what I am doing wrong? I am trying to get a word to repeat the number of times as the number input. I tried a list box and a text box and I cant seem to figure it out. I am having trouble with a …

Software Development vb.net
Member Avatar for Reverend Jim
0
415
Member Avatar for moaz.amin.37

if a gui have 2 text fields and there are 10 buttons(0-9) to input numbers in text fields then how it will choose that which field get input. this i problem in my gui i write 2 methods but not working my code is below public void actionPerformed(ActionEvent e){ if(e.getSource()==b1){ …

Software Development gui java
Member Avatar for moaz.amin.37
0
313
Member Avatar for haya_1

Hi, im having trouble to read from the keyboard the number of employees the user wants and in allowing the user to input up to 10 employees. package application; import dataStructures.*; import java.util.Scanner; /* this is the list of employees * */ private LinkedList<String> employeeList; /* constructor */ public TrainingCourses(){ …

Software Development java
Member Avatar for haya_1
0
132
Member Avatar for lester2020

Cannot seem to make the message box to not appear when I click cancel. Help please ! Private Sub btnEnter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnter.Click Dim input As String Dim total As Single Dim average As Single Dim count As Single Const msg1 As String = …

Software Development vb.net
Member Avatar for Santanu.Das
0
174
Member Avatar for wbbb54

Write a program using user-defined methods. Write the following methods: 1. getPrice() which asks the user to input the original price of an item. 2. getDiscount() which asks the user to input the discount rate. The method should return the decimal version of the rate. For example, if the user …

Software Development java
Member Avatar for samson.dadson.3_1
0
318
Member Avatar for samuel1991

Hi all, my question is as follows: If I use the code as below: text = '中文' #Text is in Chinese, whereby text = 'chinese' with open('file.txt','w', encoding = 'UTF-8') as f: f.write(text) f.close() My file.txt on Windows notepad will show it as saved as UTF-8. However, if the text …

Software Development python
Member Avatar for samuel1991
0
660
Member Avatar for TheGuy831

Hi ive been trying hard to get a img url collection from a textbox.. or how to stop loop on 3rd img url please help me. Thank You.. Heres What ive Got.. URL: https://www.facebook.com/tony.trujillo.3517 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim PageElement As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName(TextBox1.Text) …

Software Development vb.net
Member Avatar for tinstaafl
0
173
Member Avatar for abdul rahman 2

How can we find the logic of a C++ program.

Software Development c++
Member Avatar for deceptikon
0
92
Member Avatar for J.C. SolvoTerra

I was just mucking around with a progress feature for some software, and thought I'd just put this wee demo up of a clocky type progress thing =0) Just Copy and paste the form code and watch it run. (p.s it's in degrees, note minutes and seconds) ![55f1addda67a729e91ae90c980c39deb](/attachments/small/4/55f1addda67a729e91ae90c980c39deb.png)

Software Development vb.net
Member Avatar for J.C. SolvoTerra
0
255
Member Avatar for Adnan S.

I spent 4 hours trying to find out how I can add the digits of a number. Could you give me an idea?

Software Development c
Member Avatar for sneekula
0
960
Member Avatar for telmo96

Hey ya guys, it's my first topic on DaniWeb, sounds like a good place to find help with programming. :) Today I'm trying to compile a simple code made for PyQt4 using cx_Freeze, but I'm getting an error, I'll show you all the codes: [B]example.pyw[/B] [CODE]import sys from PyQt4 import …

Software Development python
Member Avatar for sneekula
0
3K
Member Avatar for COKEDUDE

Can anyone tell me why I have an infinite loop when reading from a pipe? i = 0; while(i < 10) { test_value = read(pipe3[READING], &message, sizeof(struct MESSAGE)); printf("test_value is %d \n", test_value); //printf("Entering infinite loop \n"); //printf("i is %d \n", i); //nbytes = read(pipe3[0], array, 45); //printf("nbytes is %d …

Software Development c
Member Avatar for COKEDUDE
0
595
Member Avatar for aluhnev

//why the getters declared twice,public,and than protected at the end of this code? And how to assign the copy constructor between this 2 classes? class Person { private: string name; string address; string city; string state; string zipCode; public: Person() {} Person(const string& aName, const string& anAddress, const string& aCity, …

Software Development c++
Member Avatar for rubberman
0
157
Member Avatar for jordan.nunnery.75

create a program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as the total point value per grade available

Software Development java
Member Avatar for samson.dadson.3_1
0
127
Member Avatar for silvercats

why do most people use brackets in this way when it comes to Java. Pospular IDEs also use this method by default class Test{ public void test(){ } } than this way class Test { public void test() { } } The second method is obviously easier to read.

Software Development java
Member Avatar for samson.dadson.3_1
0
507
Member Avatar for xardoz

Here is a sample of the XML I need to get the <Order Header> Nodes, then loop through the <Order Detal> <Line> Nodes Using xml Reader "Using reader As XmlReader = XmlReader.Create(New StringReader(sFileContects))", i get all the header information, but cant properly parse the Line Iformation Using LINQ "Dim xd …

Software Development api vb.net xml
Member Avatar for xardoz
0
146
Member Avatar for entei

I'm fairly new to C++, I've only been learning it for 4 months now and I've been having problems with a template class file that i was creating for my project i kept getting the error [QUOTE] main.obj : error LNK2019: unresolved external symbol "public: __thiscall Intervals<float>::Intervals<float>(float,float)" (??0?$Intervals@M@@QAE@MM@Z) referenced in …

Software Development c c# c++ file-system visual-studio
Member Avatar for Tarun_1
0
4K
Member Avatar for fabregas42

<Aciklamalar> <Aciklama HaberKodu="20141101AW232013" ResimKodu="20141101AW232013_01"> <![CDATA[ YENİ MALATYASPOR MAÇINDA SAKATLANAN UMAR, KARŞIYAKA DEPLASMANINA GÖTÜRÜLMÜYOR. ]]> </Aciklama> <Aciklama HaberKodu="20141101AW232013" ResimKodu="20141101AW232013_02"> <![CDATA[ YENİ MALATYASPOR MAÇINDA SAKATLANAN UMAR, KARŞIYAKA DEPLASMANINA GÖTÜRÜLMÜYOR. ]]> </Aciklama> </Aciklamalar> Select HaberKodu text? Select <!CDATA text? Help.Thanks

Software Development xml
Member Avatar for Santanu.Das
0
135
Member Avatar for Muzaffer_Ali

for(int i=0;I<20; i++) { `Inline Code Example Here` messagebox.show("the values is " '"+i+"'); } else { messageBox.show("ooops vlues is greater then 20"); }

Software Development c#
0
59
Member Avatar for Gurjit_1

The code below is giving me the SIGSEGV error, segmentation fault at line number 66(found using debugger).According to me everything is fine but still don't know what is done wrong by me. Please someone help me out to sort the problem #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include …

Software Development app-store c++ ios
Member Avatar for Gurjit_1
0
2K

The End.