132,726 Archived Topics

Remove Filter
Member Avatar for
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 Wakesta

Is there any free C++ programme that I could use as Im trying to learn this?

Software Development c++
Member Avatar for ctaylo21
0
97
Member Avatar for spartan118

Heyy daniweb! I have a couple questions that need answering :) 1. Is there a way, in C++ to do a do - if loop? 2. Can there be a way to do something like: [CODE]#include <iostream> int main() { if (g == string) // if something were to EQUAL …

Software Development c++
Member Avatar for Radical Edward
0
114
Member Avatar for shaqywacky7

Hello everyone, I've just started using the pypcap and dpkt modules and tried the code on google code for pypcap and I get nothing. Heres the code I used: [code] import dpkt, pcap pc = pcap.pcap() pc.setfilter('icmp') for ts, pkt in pc: print `dpkt.ethernet.Ethernet(pkt)` [/code] I think this is suposed …

Software Development python
Member Avatar for shaqywacky7
0
260
Member Avatar for emmonssw

I have a csv file that has 12 columns. I've been using: [code=c++] while(!infile.eof()) { getline( infile, source, ',' ); outfile << source << ", "; getline( infile, native_ID, ',' ); outfile << native_ID << ", "; getline( infile, index, ',' ); outfile << index << ", "; getline( infile, …

Software Development c++
Member Avatar for emmonssw
0
133
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 elexender

Hi all, Im trying to read data that is send from my Arduino Duemilanove(Atmega328). Link to arduino: [URL="http://arduino.cc/en/Main/ArduinoBoardDuemilanove"]http://arduino.cc/en/Main/ArduinoBoardDuemilanove[/URL] My arduino sends a max of 24 chars. example 1: 32767*32767*32767*32767 Now if send 24 chars and read them in "UitBuff"(24 chars) the data is correct. However if i send less then …

Software Development c++
Member Avatar for elexender
0
91
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 benji_k

Hi Everybody I wrote this program to experiment with dynamic binding. One class inherits from another which inherits from another. The user creates a new object of their choice at run time and 2 functions within that object should be called but it doesn't seem to be working out that …

Software Development c++
Member Avatar for Fbody
0
132
Member Avatar for BLKelsey

Hi all again, I'm now in my 3rd week of my C++ course and I have a few little issues I need explained to me. The Hangman game in question is NOT supposed to be functional yet. It's an generic exercise in classes in which Hangman will be MY final …

Software Development c++
Member Avatar for BLKelsey
0
77
Member Avatar for judithSampathwa

hi there, i have a datagridview in that i have coded the CellBeginEdit. how can i attach the CellBeginEdit event in another function that i have implemented in C# ??? thanxxx

Software Development vb.net
Member Avatar for judithSampathwa
0
279
Member Avatar for tennis

1. an int and a class with only an int member, are they of the same size? 2. what is the size of a class containing 4 ints and a virtual function?

Software Development c++
Member Avatar for Radical Edward
0
140
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 evak77

I need a little help with this code, I cannot get it right, and i know it is something simple that i am missing. Can someone help me out please. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.text.DecimalFormat; import java.util.*; import java.lang.*; import java.text.NumberFormat; public class week2 extends JFrame …

Software Development gui java java-swing
Member Avatar for quuba
0
104
Member Avatar for powerbox

Hi guys I need help how to convert my uint and int to 3 byte array. Converting it to 4 byte array is easy since .Net has BitConverter class but now I really need to convert it to 3 Byte Array hope someone can help me out. Thanks

Software Development
Member Avatar for powerbox
0
114
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 madhan

Hi, This is my first post here. I am a Java programmer. Recently, bought a book visual C# step by step and learning chapter 1. I am trying to run the CompletedWPFHello. I thought solution explorer will open all of the project files. but .cs is opening only one file …

Software Development
Member Avatar for PierlucSS
0
105
Member Avatar for MillStrike

Hello! I'm trying to get my program to automatically open a file when I doubleclick on it, I have set the file assosiation right but my code isn't working. I have read about the "Application.Run(new MyProgram());" but I have some problems. When I do this: [code] public static void Main(string[] …

Software Development
Member Avatar for PierlucSS
0
528
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 pytup

I have program: [CODE]Dim ItemCode(6) As String Dim Description(6) As String Dim price(6) As Currency Dim Quantity As Integer Dim SaleCost As Currency Dim item As String Dim position As Integer Option Explicit Private Sub Command1_Click() item = Text3.Text Quantity = Val(Text2.Text) If Option2.Value = True Then Call CodeSearch(item) Else …

Software Development visual-basic
Member Avatar for jp26198926
0
90
Member Avatar for denmiller3
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 pytup

can someone convert that to case statement: [CODE]Private Function Discount(curr As Currency) As Currency Dim temp As Currency If curr < 15 Then temp = 0 ElseIf (curr > 14.99) And (curr < 30) Then temp = 0.05 ElseIf (curr > 29.99) Then temp = 0.1 End If Discount = …

Software Development visual-basic
Member Avatar for jp26198926
0
95
Member Avatar for thuyson

i have a datagridview with last column is a checkbox.When user check on a row or rows, i will add columns' contents on that row into a new row in sql database. Please help me! Thank you so much!

Software Development
Member Avatar for nick.crane
0
84
Member Avatar for nanosani
Member Avatar for peter_budo
0
166
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 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 adityabakle
Member Avatar for peter_budo
0
350
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 hasbeenbad

Hail! Wise and Glorious Gods of C Coding. I have written a little function to search an array and it is cousing the program to hang after I enter the search criteria,It should should the array for a match and then return the whole string it was found in. There …

Software Development c
Member Avatar for Greg8202
0
115
Member Avatar for kelokely

I have a list of files of similar format. I want to extract all lines form each file that are containing exact character for example I need to extract only lines with TPO and saving to another file also I need to extract only lines with HOH and saving to …

Software Development file-system python
Member Avatar for baki100
0
119
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 vampke

Hi guys, I was wondering about something: is there a way to communicate with another program/process on the PC without using files? What would this look like? Is there a search term I can use to get more info? This is not a vb.net question per se, but a general …

Software Development vb.net
Member Avatar for vampke
0
208
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 venuvasulu

What are the different posibilities of getting "Invalid floating point operation" in dephi applications?

Software Development pascal
Member Avatar for deyken
0
433
Member Avatar for MrBlack

Can any body explain me[B] Adding parameters to AddParams method [/B] I cant understand the code in this code it try to delete a row from article table, for that i use SqlDataAdapter,DataSet and DataTable , //Preparing Delete Sql Command [CODE] dataAdapter.DeleteCommand=conn.CreateCommand(); dataAdapter.DeleteCommand.CommandText="DELETE FROM article WHERE artId=@artId"; AddParams(dataAdapter.DeleteCommand,"artId"); [/CODE] This …

Software Development dataset sql
Member Avatar for MrBlack
0
559
Member Avatar for maleeha munawer
Member Avatar for maleeha munawer
0
63
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 Ayaat Monem

It was a question in an old exam : the expression if(num != 65)can not be replaced by....... and the answer is: if( !(num-65) ) but I can't understand this condition :( what is num-65, what does it mean? Thanks

Software Development c++
Member Avatar for Ancient Dragon
0
130
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 n_angelov

Define a class Queue_time that represents a queue of Time objects (from our textbook) by keeping its elements in a dynamically allocated array (with maximum capacity) and make the queue as a "circular array" (the first element follows the last one). Supply the "big three" memory management functions. Use this …

Software Development c++ file-stream queue
Member Avatar for xuebao
0
1K
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 Geodude0487

Hey I was just wondering if I could get some advice from you guys. I'm trying to write basically a cookbook program for my mom. She wanted to put them on the computer to save them and I thought WTH I could write her a program not only helping her …

Software Development linked-list
Member Avatar for bbman
0
165

The End.