132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for eslmz

I want to reach linked list like an array. I write a code like that but i get unexpected result. Main problem is, when i check sizeof(myrecord) value, i get 27 bytes, but actually difference between the records is 32 bytes. Do you know where is the error? [CODE]#include <stdio.h> …

Software Development c linked-list
Member Avatar for UncleLeroy
0
131
Member Avatar for g2gayan

Hello Experts :) My Name is GaYan and im still learning C# :D lol.. im a newbie :idea: what i need to do is to create a program in C# to enter a number series and to get the the highest(largest) value and minimum(smallest) value of the entered numher series …

Software Development algorithm
Member Avatar for kvprajapati
0
122
Member Avatar for g2gayan

:yawn: Since last year,, i ve being trying to create something Like this ! * control the windows desktop using windows mobile , the windows screen or the desktop should be also present in the mobile.. the connection must be established via internet ! with the new WM6, i heard …

Software Development client-server
Member Avatar for g2gayan
0
95
Member Avatar for GAME

Hello, Right now I have like 11 forms on my program. When I debug my program, my program keeps loading every 1 second (with the timer and the mouse). All the mouse icons are default. Is there any way to make a program faster?

Software Development
Member Avatar for GAME
0
103
Member Avatar for mdutton

I'm extreamly new to programming actually learning on my own, college is not an option now. Need some help. I'm trying to write the code to add users to sql 2005 backend server, and a windows login form. so that certain area's of my program have restricted access. Can anyone …

Software Development vb.net
Member Avatar for kvprajapati
0
78
Member Avatar for GAME

Is there any way to make it so a .dll is not visible? Or is there a way to import a .dll into your program, so its not outputted on debug?

Software Development
Member Avatar for GAME
0
151
Member Avatar for foco

I'm currently working on an application that involves reading pdf files into a variable and passing them to a server via http POST method. On Linux, everything is fine because I can use cat and popen: [CODE=python]pdf = os.popen('cat testpdf.pdf').read() #read pdf data in Linux[/CODE] However, in Windows, the DOS …

Software Development pdf python
Member Avatar for jagan605
0
89
Member Avatar for Pinchanzee

I'm quite new to Python (and programming past pascal) so I'm looking for a relatively simple-to-understand way to do this. All help is much appreciated. I'm looking for the program to take a variable as if it were just normal code, I'll explain via example. I want the code to …

Software Development pascal python
Member Avatar for Pinchanzee
0
159
Member Avatar for runit

I have a set of objects of questions and answers and I need to return all possible combinations of each question and answer in a set of dictionaries. I am new to Python and have done some Google-ing but I don't think I know enough to even know how to …

Software Development python
Member Avatar for ultimatebuster
0
261
Member Avatar for iamcreasy

Why Animal constructor is not being called by the declaration of the array? LINE 12 Isn't 10 instances of Animal class is being created with this line? [CODE]package javaapplication; class Animal { Animal() { System.out.println("Animal Constructor");} } public class Main { public static void main(String[] args) { Animal[] animal_obj = …

Software Development java
Member Avatar for NormR1
0
104
Member Avatar for G_S

Hi, I have a Text widget and a button that is supposed to sort the Text's contents alphabetically. This time I won't ask you how to do it, I'll rather ask you to correct me. This is how I solved the problem: [code]unsortedT = text1.get(1.0, END).replace("\n", "\n*").split("*") sortedT = sorted(unsortedT) …

Software Development python
Member Avatar for TrustyTony
0
134
Member Avatar for happymadman

I have put some xml data in a file the python code below and have been trying to figure out how to get the data from the file add another "person" and then save to the same file again. [code=python] from lxml import etree from lxml.builder import ElementMaker E = …

Software Development file-system python xml
Member Avatar for happymadman
0
229
Member Avatar for jcao219

Interesting right? If you read [URL="http://www.daniweb.com/forums/post1252636.html"]this[/URL] amazing tutorial by lionaneesh, you will understand why I posted this brain-boggling code.

Software Development python
Member Avatar for jcao219
0
161
Member Avatar for abhi74k

I read that the initialisation of the vptr is done by the default constructor automatically . What happens when u provide implementation for the default constructor . Is the initialisation code added automatically ???

Software Development c++
Member Avatar for abhi74k
0
53
Member Avatar for dchunt

I have a file over 100 Kb long. I want to perform operations on successive batches of 256 characters. [CODE] int fs=0; char ss[32556]; ifstream nm,nm1; nm1.open("as86.txt"); if(nm1.is_open()) { nm1.seekg(0, ios::end ); fs = nm1.tellg(); } nm1.close(); nm.open("as86.txt"); nm.read(ss,fs+1); nm.close(); cout << endl << fs << endl; ofstream mn; mn.open("as86.txt"); …

Software Development c++ file-stream file-system ios
Member Avatar for nbaztec
0
106
Member Avatar for srinivas88

Please help me..i m getting this error in vista... java.sql.SQLException:General error at sun.jdbc.odbc.createSQLException(JdbcOdbc.java:6986) at sun.jdbc.odbc.StandardError(JdbcOdbc.java:7114) at sun.jdbc.odbc.SqlExecDirect(JdbcOdbc.java:3110) at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbc.java:3110) at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288) ....etc there are 2 code pages..one is employee registration page and the details entered in this page is sent to EmpAddServlet.... [icode] import java.io.*; import java.sql.*; import javax.servlet.*; import …

Software Development java mysql
Member Avatar for srinivas88
0
81
Member Avatar for SJP99

I know this gets asked a lot but i want to make a program that sends me some form of an alert at a certain time of day. I am using windows 1. i want it too run invisibly so no windows, doesn't show in task bar, or task manger …

Software Development c++
Member Avatar for SJP99
0
146
Member Avatar for GAME

On my form, I have a webbrowser, that navigates to nothing on start. But on webBrowser navigated I have this code, but the msbBox keeps showing on start up. [code] if (webBrowser1.DocumentText.Contains("Hello")) { this.Text = "iUltimate - Cheating Zone - " + txtUser.Text; } else { MessageBox.Show("Error, please try again. …

Software Development
Member Avatar for GAME
0
84
Member Avatar for roswell67

Hello, I would like to create a p2p application; File sharing / chat / etc.. and I am looking for a proper API, tutorial and documentation. I've been googling here and there for the past 6 hours trying different API's but failing.... I stumbled upon JXTA / JNMP2P ... but …

Software Development api java
Member Avatar for gandalf123
0
141
Member Avatar for m-e-g-a-z

Hi, Im trying to match patterns to get A-F and number range 0-9 So like 9D 4EEE Not 15d heres the code i have got so far [CODE] import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class sam { public static void main (String [] args){ //instantiate scanner Scanner s = …

Software Development java regex
Member Avatar for stephen84s
0
104
Member Avatar for virendra_sharma

Hi Frnds ... i want to know , how to optimize bubble sort , if you realize that at the end of the i-th pass, the last i numbers are already in place. Consider the sequence {3, 9, 1, 7}. After the first pass, the 9 will end up in …

Software Development
Member Avatar for bbman
0
632
Member Avatar for Roulaa

helleo all; how make text written int text box unshown E.g. if I eritte any word appear **** :)

Software Development
Member Avatar for bbman
0
73
Member Avatar for neithan

Hi all! I'm new to pixel/graphic management and fairly new to C# as well but i'm learning some AI at the same time, very basic of course. I did some kind of "Game of life", you know that it imitates cell birth and death and whatnot. I have it working …

Software Development listview
Member Avatar for neithan
0
128
Member Avatar for charlie4oct

hey please can anybody guide me how we can take input from the command prompt as we do in C++ and Java. I can take input using .dat files but I want the user to give input in the command prompt. I will be very thankful.

Software Development c++
Member Avatar for nbaztec
0
81
Member Avatar for dansnyderECE

I'm attempting to test an assembly file compiled from my c++ program and I keep getting errors. My program is a simple "hello world" but no matter what I try and what variation of assembly files I try I can't get a solid run on anything bu the exception.s that …

Software Development assembly
Member Avatar for dansnyderECE
0
947
Member Avatar for Roelof Wobben

Hello, For a exercise I have to make a programm where several student puts thier home-grades in and thier names. here's the code [code] #include <string> #include <vector> #include <iostream> using namespace std ; int main() { vector<string> names ; typedef vector<double>::size_type siz_tp ; siz_tp aantal ; vector<double> numbers; typedef …

Software Development c++
Member Avatar for Roelof Wobben
0
99
Member Avatar for Roulaa

hi with visuial studio c# i'm doing form include another forms the basic form contain #of buttons if button click basic form hide and new one open all that is ok the problem: if any form (basic or others) closing by (x) in the bar the form close but it …

Software Development
Member Avatar for Roulaa
0
174
Member Avatar for Leppie

So close (I think)! I've been working on this for some time now (on and off, coming back to it) and now I'm stuck. Hopefully there's not to much wrong with the coding of it, the compiler throws up lines 50 & 63 with errors? Not to sure if I've …

Software Development c++
Member Avatar for Leppie
0
185
Member Avatar for G_S

Hi, I have a different question today: how do I call the python interpreter AND tell it to open a python program from inside another program UNDER WINDOWS? My program is running fine, and it even has a text mode without any graphical interface. Under Linux, you click on the …

Software Development python tkinter
Member Avatar for G_S
0
376
Member Avatar for Priyesh_17

Hi, I am trying to write a python test script which will start a Server and Client locally and then transfer their STDOUT to two files. This I need to do from the same test script and the asserts should be the next step. When I am doing the same, …

Software Development client-server python
Member Avatar for woooee
0
158
Member Avatar for J-M DESMETTRE

Hi folks, I've got a little problem with my queries in sqlite3. I need to select 'brands' (a, b, c, ...) for a 'date' YYYY-MM-DD from my table. As you can see in my script, I'm able to build a query by passing 'selectedDate' or 'selection', but not both values. …

Software Development open-source os-x python sqlite
Member Avatar for woooee
0
142
Member Avatar for ryan461

Following this text book, i need to take this card dealing program and turn it into dealing 5 cards, and identifying pairs(and various other hands). The 5 cards was easy, now im just experimenting on how to identify pairs when i came into the error: missing ; before const. The …

Software Development c
Member Avatar for ryan461
0
399
Member Avatar for WildBamaBoy

Does anyone here know how to use the UnRAR2 module? [URL="http://code.google.com/p/py-unrar2/downloads/list"]http://code.google.com/p/py-unrar2/downloads/list[/URL] I can't for the life of me I can't figure out how get it to do the same thing that zipfile does in a project I am working on. I want it to look for all files of a …

Software Development python
Member Avatar for Beat_Slayer
0
265
Member Avatar for neithan

Hi! I'm a newbie and i have kind of a teoric doubt. I wonder where the functions/events truly reside. For example, when i doubleclick a form or a button, i can see in the events properties that a function is created in my code (private void Form1_Load(object sender, EventArgs e), …

Software Development
Member Avatar for nick.crane
0
151
Member Avatar for judithSampathwa

hi there, i have a code that try to get the file name from the path the file is the code is below [CODE] a = @"C:\Documents and Settings\awaduge\Desktop\Purchase Order\Purchase Order Excel\20100427 REQ (ASG NI Framegrabber for ARL Camera).xls"; MessageBox.Show(a.ToString()); int Findex = a.LastIndexOf('\'); MessageBox.Show("index of a " + Findex.ToString()); …

Software Development
Member Avatar for nick.crane
0
2K
Member Avatar for Ror1

I need help with the code. It otherwise works fine. But whenever i enter 'Y' to play the game once again it automatically keeps entering character as input to scanf every time i press enter. So, the program never, ends what to do??[code]#include<stdio.h> #include<stdlib.h> #include<ctype.h> #define SEED 12345 void play(void); …

Software Development c
Member Avatar for Ror1
0
83
Member Avatar for meepokman

Hi guys, I'm currently trying to produce a facial detection application, but I seem to have some problems. My program, is able to recognise multiple users, and match their captured image to one saved in the database. However, if a person who has not registered is photographed, it is supposed …

Software Development algorithm c++ gui ios
Member Avatar for meepokman
0
449
Member Avatar for KAY111

[CODE=C] #include <math.h> void greedyMatch() { Xnode *u; Ynode *v; arc *e; forallXNodes(u,G) { assert(!u->isMatched()); forallOutArcs(e,u) { #ifdef STATS stats.searchArcCnt++; #endif v = e->head(); if (!v->isMatched()) { #ifdef STATS stats.mVal++; stats.greedCnt++; stats.flowArcCnt++; #endif v->match(u); u->match(v); break; } } } } void augment(Ynode *last) { Ynode *v, *v1; Xnode *w; arc …

Software Development c++
Member Avatar for arkoenig
0
116
Member Avatar for zreed

I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. …

Software Development gaming java oop
Member Avatar for CrazyDieter
0
199
Member Avatar for shubhamjain1

I want to make a simple website blocker in vB. I mean it should have capablity of checking the ongoing HTTP request and block them accordingly. How it is possible?

Software Development visual-basic
Member Avatar for asaukani
0
128
Member Avatar for RoyMicro

My USB device is communicating with my C# application once in 500ms and exchanging data(Using a timer and interrupt transfer.) So far seems Ok. If my device is abruptly removed,(I think)windows 'device removal' message arrives only after removal is complete. But my application tries to write to my device in …

Software Development
Member Avatar for RoyMicro
0
104
Member Avatar for mattloto

I am interested in using DirectX to make games. I'm using MinGW, which is a windows command line port of GCC. How would I get it so that DirectX 10 is included in the files? It probably is in the headers, but I don't know which to include because most …

Software Development c++ ide
Member Avatar for Ketsuekiame
0
280
Member Avatar for akssps011

I am new to C++ in terms of large projects distributed over various source files. When I compile(gcc compiler) I get the following error: undefined reference to 'C::C()' I have this code: [B]/src/lib/abstract/[/B]A.cpp [CODE] #include "src/plugins/geo/C.h" #include "B.h" class A:public B { public; A() { B m_b; } void speed() …

Software Development c++
Member Avatar for akssps011
0
167
Member Avatar for hisugan

...well i would like to practice c++ by analyzing the logic of the sample programs.... ..thank you for your help.. i really appreciate it...

Software Development c++
Member Avatar for Ketsuekiame
0
83
Member Avatar for Schoorsteen

Hey there, I am attempting to open Firefox using C++ on Linux (Ubuntu). However, I get an segmentation fault. What am I doing wrong, and what should I do? [CODE]std::cout << system("/usr/bin/firefox") << std::endl;[/CODE] /usr/bin/firefox works in commandline and when I run this program in debug mode in Netbeans, firefox …

Software Development c++ ubuntu web-browser
Member Avatar for daviddoria
0
580
Member Avatar for venomxxl

I'm writing a small game engine and I have a little problem. The code below shows the exact situation: Header1.h [CODE] #ifndef _HEADER1 #define _HEADER1 #include "Header2.h" namespace HNamespace { class HClass1 { public: HClass1() { } ~HClass1() { } HClass2 * A; }; } #endif [/CODE] Header2.h [CODE] #ifndef …

Software Development c++
Member Avatar for venomxxl
0
101
Member Avatar for homeryansta

as the title states. Is there a way to determine if both datatypes are the same?

Software Development vb.net
Member Avatar for homeryansta
0
70
Member Avatar for bluem1

Team - HELP!!! I have broken my code and it can't get up! When I go to run my application within Visual Studio I get the dreaded "There are build errors. Would you like to continue and run from last successful build?" That build runs fine, but how do I …

Software Development vb.net visual-studio
Member Avatar for bluem1
0
1K
Member Avatar for Mithrandir85

hey there Everybody... I want to have a unit, without a form attached/declared, and have only a recorrd and a bunch of functions, though the functions dont neccessarilly have anything to do with the reccord... so my question is where do i put the public declaration? or do i do …

Software Development pascal
Member Avatar for Mithrandir85
0
107
Member Avatar for ankyG

hey guys i m finding it difficult to link the different files together in c.. here is my code... [code=c] //main.c #include <stdio.h> #include "other.h" int main (void) { printf("%d\n", getfavorite()); return 0; } //other.h #ifndef _OTHER_H #define _OTHER_H int getfavorite(void); #endif //other.c #include "other.h" int getfavorite (void) { return …

Software Development c
Member Avatar for Ancient Dragon
0
162

The End.