43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for wlalth

Hi, i wrote a patch system. It check the links and download them, if the files not same with the users files. All steps are working, i have only one problem. First download is perfectly complated, but when DownloadFileAsycn fired second times, its don't work. It creates strange file of …

Software Development
0
53
Member Avatar for leiger

Python works fine in the console, but I'm having problems using python in a Java program. In case someone here has any ideas, I'm posting a link back to my original post (please reply there and not here): [url]http://www.daniweb.com/forums/post1246152.html#post1246152[/url] Thanks!

Software Development java python
Member Avatar for leiger
0
154
Member Avatar for sdhawan

Hi Guys, I am reading a text file and i want to store that file ina string, below is my code, can anyone tell me what am i doing wrong [code] private void toolStripButton1_Click(object sender, EventArgs e) { // OpenFileDialog dialog = new OpenFileDialog(); FolderBrowserDialog dialog1 = new FolderBrowserDialog(); parser …

Software Development
Member Avatar for kdcorp87
0
102
Member Avatar for Excizted

Hi people, I'm trying to compile my C++ project under Windows, which it should be able to. I've got a whole bunch of dependency libraries. When I compile everything seems fine until these error pop up: [CODE]1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\rpc.h(27) : error C2598: linkage specification must be at global scope 1>C:\Program …

Software Development c++
Member Avatar for Excizted
0
916
Member Avatar for sasTReSS

Hello everyone, i have a problem in my code. I want to make 2D vector with type char and the char read from a file, because i want to make it as dynamic array regarding the size of input can be different. Here is my file: bla.txt ------------------------------ K1, K2. …

Software Development c++
Member Avatar for sasTReSS
0
204
Member Avatar for lewashby

[CODE]def find_details(id2find): surfers_f = open("surfing_data.csv") for eash_line in surfers_f: s = {} (s["id"], s["country"], s["average"], s["board"], s["age"]) = eash_line.split(";") if id2find == int(s["id"]): surfers_f.close() return(s) return({}) lookup_id = int(input("Enter the id of the surfer: ")) surfer = find_details(lookup_id) if surfer: print("ID: " + surfer["id"]) print("Name: " + surfer["name"]) print("Country: " …

Software Development python
Member Avatar for TrustyTony
1
250
Member Avatar for jv_05

Excuse, I need to work with data bases. In a little research I made, I found that python has a library call sqlite3 but I don't find information of how I use it. So if anyone can explain it to me I'll be so thankful. PD: I need this because …

Software Development python
Member Avatar for vegaseat
0
363
Member Avatar for alphaOri

I'm using python and I want to be able to create an object of a base class and have it initialize the object using the __init__ of a subclass. I use a function defined outside of the classes to determine which subclass' __init__ method should be called. I found a …

Software Development python
Member Avatar for alphaOri
0
151
Member Avatar for Jennifer84

Hello I have a form where I have a lot of code perheps about 1000 pages. Now in an event I have 160 lines of this code that I show below. I am showing 2 lines to give an example here: [code] for(int i = 0; i < 6; i++ …

Software Development c++
Member Avatar for Jennifer84
0
652
Member Avatar for EireJoker

Hello Daniweb :) I am currently doing a programming assignment for college and have hit a brick wall. I am getting an error while trying to fill a combo box. [CODE]Private Sub Form_Load() 'Fill the Network List With adoNetwork.Recordset [COLOR="Red"] Do Until .EOF[/COLOR] If !Networks <> "" Then cboFilterNetwork.AddItem !Networks …

Software Development visual-basic
Member Avatar for arjunad
2
156
Member Avatar for prashanth s j

Hi all, Currently I execute multiple scripts in the following format: os.system(./script1) os.system(./script2) os.system(./script3) But now I need to modify the code in such a way that script1, script2 etc return a success code(0) or failure code(1). But os.system can not return these values. What I need to do so …

Software Development python
Member Avatar for prashanth s j
0
207
Member Avatar for ArtemisFowl

I've been working through the book Python Programming In Context and everything runs fine except cImage. I went to the website to download it, but so far I haven't found a version for Python 3.1.2. I can use the cImage.py file they give on the website, but in order to …

Software Development python
Member Avatar for vegaseat
0
543
Member Avatar for pi_lord12

Hey, so I'm trying to make a text-based game using mostly Swing GUI; the code I have so far is below. When I use JOptionPanes I modify the icon, title, and suchlike on them, so I have about two lines of code for every JOptionPane. I created methods for them …

Software Development gui java java-swing
Member Avatar for pi_lord12
0
175
Member Avatar for danielagaba

hi i designed an application in VS 2008 and i'm using .rdlc reports. My problem is when i deploy on the client machine and try to generate a report i get an error saying 'Operation must use an updatable query' then when i click the details See the end of …

Software Development assembly vb.net xml
Member Avatar for lolafuertes
0
457
Member Avatar for kdcorp87

i have a c# application which is use for from design, it creates .kd file on save option , After running application i have to browse my saved files and open them in my application. but i want a way that that a click on file with .kd extension will …

Software Development file-system
Member Avatar for kdcorp87
0
111
Member Avatar for ramy89

Hello to everyone,I'm using a Borland BCC55 compiler to describe the logarithm function. It works fine,but only with numbers higher than 1,if I insert any floating point the result stucks on -46,whatacer number <1 I write. Here is the function,I made it myself (on a text host): [url]http://freetexthost.com/kv0rdi4gno[/url] Of course …

Software Development c
Member Avatar for ramy89
0
113
Member Avatar for Kekosavar

Hi there.. im new at c# and got some problems with my list an example [CODE] public List<Example> Test(int x) { var list = new List<Example>(); var data = (blabla linq to sql) } foreach(var item in data) { list.Add(new Example(...)); } [/CODE] some of my data's are null and …

Software Development
Member Avatar for Kekosavar
0
94
Member Avatar for mhopper

All, I am developing a Socket Server in Java. Its job is to receive TCP packets from a unit sending Hayes AT commands via GPRS/sim chip combination over broadband. The software for the unit sending the packets has been written in C++. Packets sent are all in hex bytes. I …

Software Development client-server java
Member Avatar for mhopper
0
8K
Member Avatar for fussballer

Hi, I am working on a project, I need to control a CD Drive via the IDE/ATA Interface using a C/C++ program. My goal is to control the Speed of the Drive, and hopefully the radial position of the optical pickup head. I am still fairly new to this field, …

Software Development c hard-drive ide
Member Avatar for rajeevpareek
0
273
Member Avatar for onlinessp

Hi, I am unable to get User Name And Password from SAM file.Can Any One have Experience that how to get the password from SAM file. Thanks ALOT!

Software Development
Member Avatar for onlinessp
-1
88
Member Avatar for Kingcoder210

I want to know how can I get specific record to make report? For example I have student information there in my program. Its easy to create a report of all students. but if user wants to get & print specific record of a student what should I do? I …

Software Development vb.net
Member Avatar for lolafuertes
0
99
Member Avatar for virendra_sharma

In the code given below m not getting , 1) wht he has written in "Console.WriteLine("Enter Value p[{0}]:", i);" wht is P[{0}] n wht is i ,,,,, 2) Console.WriteLine("c[{0}]={1}, c[{2}]={3}", i, c[i], j, c[j]); wht is c[{0}] = {1},c[{2}]={3} " , i , c[i] [code] using System; class AscendingBubbleSort { …

Software Development
Member Avatar for ddanbe
0
117
Member Avatar for wolfje

Hi I'm trying to load a treeview from 4 tables in the database, i'm using the code attached. The problem is that only 2 of the nodes show up, as soon as I get down product level, the node will not show up. Can anyone see where I went wrong?[code]private …

Software Development dataset
Member Avatar for kvprajapati
0
102
Member Avatar for newbiecoder

Hello I want to have a code which gives a random value faster than a value per second. Here is my code: [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int x; srand(time(NULL)); x = rand()%100 +1; printf("%d", x); return 0; } [/CODE] Can you please tell me how …

Software Development c
Member Avatar for newbiecoder
0
126
Member Avatar for vlady

Hello, I make an exercise from a book : Think Python: How to Think Like a Computer Scientist by Allen B. Downey, Version 1.1.22, random words exercise 7. I made a script like this (see below) but how can I make list (named book) just once and since then after …

Software Development python
Member Avatar for TrustyTony
0
161
Member Avatar for Nicris

[CODE] boolean isavail=false; new Thread(){ public void run() { . . . isavail=fun(); . . . } }.start(); [/CODE] I need that value assigned in the run() method ..... But eventhough the function returns "true", the value being present in that variable after the thread is "false" only...... How to …

Software Development java
Member Avatar for Nicris
0
102
Member Avatar for puppykillaz

I am losing a value in the array with my bubble sorting and the sorting does nothing. Here is the Items Class [CODE] public class Items { // * A String instance variable to hold the item name private String itemName; // * A double instance variable to hold the …

Software Development java java-swing
Member Avatar for JamesCherrill
0
3K
Member Avatar for Kingcoder210

Hi! I have five text boxes & one button there in my form. I have written this code to get user`s current age. But problem is that I have to get user`s age with months. I am little bit confused. Please help me. My code to get age : Private …

Software Development vb.net
Member Avatar for Teme64
0
81
Member Avatar for SoulMazer

Hi, so I'm having quite the difficulty here. Let me start by explaining the architecture of my scripts. My "Listener.py" is a script that uses asyncore in order to listen for connections and receive commands from them. If it receives the text "play" from a connection, it calls another script, …

Software Development python tkinter
Member Avatar for SoulMazer
0
275
Member Avatar for Gargen

im just curious im currently learning all major programming languages that are usefull to me and i am wondering what is python useful for in a realistic sense

Software Development python
Member Avatar for Orion2k
0
528
Member Avatar for Buolbear4444

So, I'm writing a roguelike game in C++. But, its complaining about a class I made called "Player" in the file "player.h" in the file "monster". When I input into monster this function: [CODE] void attackplayer(Player& hero, bool checkup, bool checkdown, bool checkleft, bool checkright) { if (checkup == true …

Software Development c++ oop
Member Avatar for Buolbear4444
0
186
Member Avatar for Griff0527

Another new coder here, and yes, I am a student. I am NOT asking for a solution, but I am asking for guidance to point me in the right direction. I am supposed to write a code that receives input from the terminal as to the temperature in Fahrenheit and …

Software Development c++ ios
Member Avatar for Griff0527
0
2K
Member Avatar for pytup

Hi, I have to do search engine for shop (my course assessment) it have to search produckts by code and description. I dont really know how to do it. Can someone help me? that what i have: [CODE]Private Sub Command1_Click() Dim code(6) As String Dim description(6) As String Dim price(6) …

Software Development visual-basic
Member Avatar for pytup
0
182
Member Avatar for iamthwee

Hi, I am using [icode]setw[/icode] from [icode]#include <iomanip>[/icode] library to format the output and it works just fine... Par exemple. [code] cout<<std::setiosflags ( std::ios_base::right ) << std::setw ( 20 ) << "---------025125222" << std::endl; [/code] However, I wish to format the same output as a STRING. So instead of doing …

Software Development c++
Member Avatar for iamthwee
0
5K
Member Avatar for mona_j05

i have 10 data notepad files (with column x= 1 to 5 and column y = some random number) x y 1 12 2 13 3 8 4 6 5 2 i want to multiply the 1st file's second column with 3, and save it as new data file Increase …

Software Development file-system perl
Member Avatar for mona_j05
0
179
Member Avatar for hasbeenbad

Hello, I have a question, if you please. I have been trying to fill an array with values from a text file for hours. I has been 12 years since I have used any C code, and I thought I would be able to remember this. I have an opportunity …

Software Development c
Member Avatar for Adak
0
1K
Member Avatar for arpanm

Hi all, My code is giving the desired o/p, but at the end its producing segmentation fault. (I know this is very column and also I have checked other posts, but couldn't understand the solution) Here is my code[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "blake.h" int genShortMsg(int …

Software Development c
Member Avatar for arpanm
0
138
Member Avatar for onlinessp

Hi, i want to make a key-maker and i am not know how to make it can u help me to write it . OR by giving some source code hint..... Thanks on your kind deed

Software Development
Member Avatar for onlinessp
1
303
Member Avatar for cl2020

So far, here's my code. It is running after I built it but it runs differently that I typically supposed to play tic tac toe with a partner ( two players only). Where do I go wrong on this code? [icode] //Timing. #include<iostream> using namespace std; int check( char g[3][3], …

Software Development c++
Member Avatar for VernonDozier
0
97
Member Avatar for vardhmansk

Hi. I have created an application wherein I am showing a large image inside a JScrollPane . As I move my mouse over the image within the jscrollpane i want to display the RGB values of the pixel under the mouse pointer on a status bar. I am able to …

Software Development java
Member Avatar for vardhmansk
0
225
Member Avatar for wlalth

Hi, im working on basic macro program. I want to select applications by window name and sending keys(f5 f1 etc.) to them basically. The problem is, sendkeys dont work on non-active windows. I search for this problem internet. I can get window names to combobox with; [CODE=cs]foreach (Process FFget in …

Software Development delphi
Member Avatar for kvprajapati
0
156
Member Avatar for vardhmansk

Hi , I am trying to create an image-viewing application , wherein the user chooses an image file using a file chooser . I have created a Jpanel ,inside a jframe with a menu bar, which gives the user a variety of options to select from , using combo boxes …

Software Development java
Member Avatar for vardhmansk
0
993
Member Avatar for bbman

Hey, I have the code as follows: [CODE] public Form1() { InitializeComponent(); string[] _args = Environment.GetCommandLineArgs(); if (_args.Contains("options")) { this.Show(); } } [/CODE] This will be a tray app (and close quickly after the work is done), so if I add a notifyicon above the InitializeComponent(), could I move that …

Software Development
Member Avatar for CFusion
0
374
Member Avatar for mitch9654

I am working on some code for getting user input on what songs they want for a dance. Unfortunately, when running the applet with some html, java opens a window saying [CODE]Java has discovered application components that could indicate a security concern[/CODE] three times, and no matter what you click, …

Software Development java
Member Avatar for mitch9654
0
569
Member Avatar for sdhawan

Hi Guys , I am trying to load a xml file as follows and i am getting file not found exception even though the file is on the desktop.I have checked the file name and extension they are correct , can anyonehelp please [code] private void button1_Click(object sender, EventArgs e) …

Software Development file-system xml
Member Avatar for CFusion
0
113
Member Avatar for az7_neli

Please, help me! I am a student in Technical University in Plovdiv, Bulgaria. I must finish my graduation work very soon. For the purpose I must create trigger(actually a few triggers) at run time. For my graduation work I use Borland C++ Builder 6. I use BDE palette. I try …

Software Development c++ oracle
Member Avatar for az7_neli
0
588
Member Avatar for sdhawan

Hi guys how can I insert multiple xml files in one table. Thanks

Software Development xml
Member Avatar for sdhawan
0
141
Member Avatar for onlinessp

i am developing an application but i am unable to change the text of label quickly i am using following code [CODE]for(int i=0;i<199;i++) label1.text=Convert.ToString(i); [/CODE]

Software Development
Member Avatar for pabloh007
1
220
Member Avatar for erka4444

I've got two member functions: [code=c] //Particle.h class Particle { public: bool isDead()const; static bool isDead(const Particle & par); }; //Particle.cpp bool Particle::isDead()const { return(xPos<=0 || xPos>=SCREEN_WIDTH || yPos<=0 || yPos>=GRASS_HEIGHT); } bool Particle::isDead(const Particle & par) { return(par.xPos<=0 || par.xPos>=SCREEN_WIDTH || par.yPos<=0 || par.yPos>=GRASS_HEIGHT); } [/code] But when a …

Software Development c++ visual-studio
Member Avatar for mrnutty
0
191
Member Avatar for wlalth

[code=cs] foreach (ComboBox a in Form1.ActiveForm.Controls) { MessageBox.Show("hello"); } [/code] Hi, i want to add same items to all ComboBoxes, expect one. The part of my code is here. The problem is foreach loop never fire. I never see the MessageBox which is saying "hello". What is wrong in my …

Software Development
Member Avatar for nick.crane
0
3K

The End.