43,549 Solved Topics
Remove Filter ![]() | |
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 | |
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! | |
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 | |
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++ | |
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++ | |
[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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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 | |
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, … | |
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 | |
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 … | |
![]() | 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 … ![]() |
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 | |
![]() | 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++ ![]() |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
Hi guys how can I insert multiple xml files in one table. Thanks Software Development xml | |
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 | |
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 | |
[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 |
The End.