132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gsmoura

I really need help in some parts of my minesweeper code using Tkinter. I don´t have much experience in python and I am facing two major problems that I just can´t solve. The first one is that, as I generate buttons dynamically, they all have the same name and receive …

Software Development python tkinter
Member Avatar for strider1066
0
150
Member Avatar for appunu

[CODE]#include <stdio.h> int main(void) { int a,b,c; printf("Enter the sides of the triangle"); scanf("%d%d%d",&a,&b,&c); if(a+b<c || b+c<a || c+a<b) printf("cant form a triangle"); else if(a==b==c) printf("eq triangle"); else if(a!=b && b!=c && c!=a) printf("sca triangle"); else if(a==b&&b!=c || a!=b&&b==c) printf("Iso triangle"); } [/CODE] am starting to code.. i have coded …

Software Development c
Member Avatar for NP-complete
0
121
Member Avatar for ms_farenheit1

I am in the process of updating and modifying source code for an existing application that runs on Linux systems. As part of my modifications, I will be needing to use the library function unlink() from unistd.h However, the class that I need to modify, has an existing public member …

Software Development c++
Member Avatar for ms_farenheit1
0
165
Member Avatar for basma.lm

hi, i work on a windows application and i use crystal report. i use this code to generate report from database: [CODE] private void imprimerB3button_Click(object sender, EventArgs e) { SqlCeConnection con = new SqlCeConnection(); con.ConnectionString = @" Data source= |Datadirectory|\Database1.sdf"; Database1DataSet ds = new Database1DataSet(); SqlCeParameter paramNom = new SqlCeParameter("@nom", …

Software Development open-source
Member Avatar for basma.lm
0
104
Member Avatar for helios0684

Hey, I need help with setting up an authentication code. I am currently working on a project to build a blog server in python for an intro level python course. We are using the PESTO and POSTGRESQL wsgi and sql clients respectively. I am trying to authenticate against a user …

Software Development postgresql python session sql
Member Avatar for helios0684
0
485
Member Avatar for thomasekugm

Here is my assignment rules, i am stuck and cannot find what it is i am doing wrong. If some one could help me i would appreciate it * The main routine must be a 'manager' routine, which means o The function can declare variables o The function can call …

Software Development c
Member Avatar for Aia
0
156
Member Avatar for emmas4impact

Hello everyone my task is to write a [COLOR="Green"]program that reads quizzes from a file 'q.txt', randomly selects a number of questions, and presents them to the user one-by-one, collecting user answers. After user has answered all questions, program gives user the score. [/COLOR] please can someone give me the …

Software Development c
Member Avatar for abhimanipal
0
119
Member Avatar for chrisMed7

Hello i have an assessment to make a car park in GUI and i have tried some stuff but didnt work I need to make in two classes one with the main method and a JFrame container and the other with the buttons for park controls and others Any help …

Software Development gui java
Member Avatar for JamesCherrill
0
100
Member Avatar for b89smith

I am trying to download an excel file that is avalible on this site: [url]https://www.arcavision.com/Arcavision/index.jsp[/url] Once you are logged a frame opens where you fill out a form and then click submit. On pressing submit the result of the query shows and gives you the option to download the data. …

Software Development file-system http-protocol java
Member Avatar for Stefano Mtangoo
0
157
Member Avatar for bbman

[url]http://msdn.microsoft.com/en-us/library/ms632653(VS.85).aspx[/url] I want to get the size of a window being resized (I will show a tooltip by the mouse). I have the code below: [CODE] protected override void WndProc(ref Message m) { base.WndProc(ref m); if (m.Msg == WM_WINDOWPOSCHANGING) { WindowPos mwp; mwp = (WindowPos)Marshal.PtrToStructure(m.LParam, typeof(WindowPos)); //mwp.flags = mwp.flags | …

Software Development
Member Avatar for finito
0
390
Member Avatar for RossSCann

I have downloaded the trial package and am trying to update an old project developed on VC++ 2002. The old environment will not develop an executable to run on W7. The VC++ 2010 generated an upgrade, compiled, linked and lists just a single error MSB3061 which is labeled "unable to …

Software Development c++
Member Avatar for RossSCann
0
100
Member Avatar for P00dle

Okay, so I'm having problems with my code. I've browsed Daniweb and couldn't find any solutions on here that work. I'm extracting 2 sets of texts from a .xml file. The first part is a directory name(eg. "C:\work\") and the second part is the name of a file in that …

Software Development java regex xml
Member Avatar for P00dle
0
4K
Member Avatar for cyon

What is the most efficient way to: [LIST=1] [*]Check if a list has duplicate items (return a boolean) [*]Get duplicate items in a list (return a list) [/LIST] I'm looking for something quick and concise, as my solutions are rather cumbersome: [CODE]def list_has_duplicate_items( L ): for item in L: if …

Software Development python
Member Avatar for TrustyTony
0
2K
Member Avatar for Theanonymous

hi i need a urgent help for a program that i cant make and this is : Write a program that implements a game, to teach arithmetic to little children. The program tests addition and subtraction. In level 1 it tests only addition of numbers less than 10 whose sum …

Software Development c++
Member Avatar for Theanonymous
0
145
Member Avatar for sayeedbd

Hi Everyone, I Need a simple project which is developed in Microsoft Visual Studio 2005 in VB.net the project features are 1. I have to send multiple SMS from a mobile device connected through a USB. 2. I have to receive SMS from a mobile device and parse it and …

Software Development ide vb.net visual-studio
Member Avatar for Luc001
0
637
Member Avatar for tashiDuks

Hello Everyone, I have designing a desktop application using VB.NET 2008 & SQL Server 2005. In my Application i have a frmUserRegistration to add a user & frmLogin to login to my application. i can add the user details in the database but my password seems to be in characters. …

Software Development vb.net
Member Avatar for BigJames
0
3K
Member Avatar for Daffodil_Thursday

I am trying to include this piece of code in my Java Class. But the compiler tells me that it can't find Class Calendar. I can't create a class within a class though, can I? Any advice on how I can link this in to the rest of my code? …

Software Development java
Member Avatar for Daffodil_Thursday
0
4K
Member Avatar for codedhands

Hello Good people,am not so sure if this should go here,i am student who is interested in developing a search engine that indexes pages from my country.I have been doing my research on Algorithm to use for sometime now and i have found HITS and PageRank as the best out …

Software Development algorithm c++ pdf seo
Member Avatar for binoykp
0
1K
Member Avatar for sivaprakashm

I need to calculate percentage relative to a particular bar within the series in a barchart Could any one help me out

Software Development java
Member Avatar for jwenting
0
64
Member Avatar for sawant_nitesh

I want to develop a JAVA application which can send and receive SMS. I have a mobile phone connected to PC through USB cable. This JAVA program in PC should be able to send and receive SMS. AT commands are used to instruct mobile phone to send/receive SMS. But how …

Software Development java
Member Avatar for peter_budo
0
503
Member Avatar for marc311

hi guys.im new here at the community. im marco a computer science student. guys/sir/madam is it ok for you if ill ask a help from your expertise. right now im doing a project a bout a home security system its a simple anti burglar system, its kinda weird but it …

Software Development cybersecurity vb.net video
Member Avatar for TheMasterThingM
0
240
Member Avatar for ceyesuma

I have a combobox on a panel that changes tables on the panel. How would I get it to repaint if this panel was on a JTabbedPane in a InnerFrame in a JDesktopPane? It repaints but after I switch for one tabs and then back to the said tab. thanks.

Software Development java
Member Avatar for JamesCherrill
0
88
Member Avatar for vlady

Hello, pls.can anybody help me? I try to solve a exercise where I need to involve random module. Here is a text: Exercise 2 In this example, ties are broken by comparing words, so words with the same length appear in alphabetical order. For other applications you might want to …

Software Development python
Member Avatar for vlady
0
147
Member Avatar for MorrisL

I am trying to convert a piece of code into Delphi but fall down when it comes to this example : [CODE] void __stdcall GetBuffers( short **xBuffers, unsigned long nValues) { ....... memcpy(TargetA, xBuffers[0], nValues * sizeof(short)); memcpy(TargetB, xBuffers[1], nValues * sizeof(short)); memcpy(TargetC, xBuffers[3], nValues * sizeof(short)); memcpy(Targetd, xBuffers[4], nValues …

Software Development c++ delphi pascal
Member Avatar for BitFarmer
0
495
Member Avatar for "ICode"

i made a web service that returns the name of the images in a file and returns the array of string with the file name with its folder name attached to it i.e. "pictures/image1.jpg". the client takes the url and adds it to the string i.e "http://localhost:3323/pictures/image1.jpg". The images is …

Software Development web-browser
Member Avatar for kvprajapati
0
179
Member Avatar for anuragcoder

Hi guys, Here's my project finally. It's name is C.L.O.S.E - The Command Line Open Source Editor Please review and comment. Mention errors if any, Also, for this code to work. Please download open.cpp, find.cpp, new.cpp, append.cpp, compile them and place all of them including the main source in a …

Software Development c c# c++ open-source
Member Avatar for anuragcoder
0
327
Member Avatar for gameon

hey i used findfirst and findnext function but they can access only a path which is given by us. i want to access all folders and file of a drive like a antivirus do, when it scans the drive.... do u know how can we do it using c language?

Software Development c
Member Avatar for Aia
0
193
Member Avatar for revenge2

Hi there, is it valid to have a java class name and file as [CODE]public class DVD extends Items{[/CODE] and [CODE]public class CD extends Items{[/CODE] where its all in capitals? -thanks, sorry for the short question.

Software Development java
Member Avatar for JamesCherrill
0
213
Member Avatar for xenanovich

hi, (on a linux system) i wrote the following code snippet to 1. write to a serial port 2. read the data that i have just written to the serial port. the write is functioning, but the read is not. if i use just the read (without "write", but by …

Software Development c lan-wan
Member Avatar for xenanovich
0
1K
Member Avatar for lionaneesh

[code]// Dumps raw memory in hex byte and printable split format void dump(const unsigned char *data_buffer, const unsigned int length) { unsigned char byte; unsigned int i, j; for(i=0; i < length; i++) { byte = data_buffer[i]; printf("%02x ", data_buffer[i]); // Display byte in hex. if(((i%16)==15) || (i==length-1)) { for(j=0; …

Software Development c
Member Avatar for WaltP
0
214
Member Avatar for new2programming

I am trying to use the playsound function i have the code [CODE] PlaySound(L"C:\Documents and Settings\Louisa\My Documents\Visual Studio 2010\Projects\Ninja_Wars\Ninja_Wars\music.wav",NULL,SND_FILENAME|SND_ASYNC | SND_LOOP); Sint32 delta;[/CODE] But when i play the game all i hear is a beeping sound- the one windows has when there is an error or something. Can anyone help …

Software Development c++ visual-studio
Member Avatar for nbaztec
0
109
Member Avatar for alexbadboys

Hi, I've to send a string using serial communication. I've tried to use WriteFile function but maybe I wrong something, because I cannot send my data. I hope someone can help me! Tnx everybody Bye Alex

Software Development c++
Member Avatar for Alexandra_Os
0
4K
Member Avatar for Fisher78

Write a program that simulate a die roller. The user should type in the number of the throws. Let the program count how many ones, twos, threes... are in the series. In the end the program should write down how many ones ... that was and also figure out the …

Software Development java java-swing
Member Avatar for javaAddict
0
122
Member Avatar for soUPERMan

[CODE] StringTokenizer st = new StringTokenizer(line); while (st.hasMoreTokens()) { String wordIn = st.nextToken(); if (wordIn.endsWith(".")) wordIn = wordIn.replace('.', ' ').trim(); if (wordIn.endsWith("?")) wordIn = wordIn.replace('?', ' ').trim(); if (wordIn.endsWith(",")) wordIn = wordIn.replace(',', ' ').trim(); String result = bd.searchBase(bd.getWords(), wordIn, 0, bd.getWords().length -1); if (result != null) System.out.println("Word found \n"); else …

Software Development java
Member Avatar for masijade
0
769
Member Avatar for epicasian

Okay, like my other thread says, I'm working on a game engine. A couple if minutes ago, I compiled, and it ran perfectly. Now, when I compile it, I don't even see a DOS prompt or anything. I'm really confused, can someone help me and tell me what I did …

Software Development c++
Member Avatar for epicasian
0
142
Member Avatar for spach79

Hello, I'm pretty new to C# and .NET. I have been working with the arrays within comboBoxes I have created a method to add multiple comboBoxes, each with defined items to select from (1,2,3,4,5,6,7,8,9,10) When I run the program, comboboxes get created automatically. When I select the value from a …

Software Development
Member Avatar for spach79
0
637
Member Avatar for vadalaz

Hey guys, I've recently started learning WinAPI and I want to make a Tic Tac Toe game with it but I have a problem I have a main window ("field") and 9 child windows ("tiles") and I want to make the tiles clickable so that a click calls the Beep() …

Software Development c++ windows-api
Member Avatar for thelamb
0
286
Member Avatar for challeng

can any one suggest me solution please [CODE]//CAtlString str=(_T(buffer)); //buffer wil have{{ ( ab != cd } == true }} as my input CString str=(_T(buffer)); CString symb[10]={ "{{","}}","==","<=",">=","!=" , "true", "flase", '(', ')' }; (LPCTSTR)str.trim(_T(symb));[/CODE] if i am trying to execute this code iam getting some errors like 1>d:\c++_test_code\simple\simple\simpledlg.cpp(197) : …

Software Development c++
Member Avatar for challeng
0
312
Member Avatar for oaktrees

Is there a way to append the current date to an output file. My output statement looks like, [CODE]result=open('Results.csv','wb')[/CODE] If I run it today, I would like the file name to be something like Results20100528 (for May 28, 2010). If I run it tomorrow, I would like it to be …

Software Development python
Member Avatar for oaktrees
0
111
Member Avatar for FoziaZafar

can any1 kindly help me how can i wirte in database using JDBC, i had alredy made connection with me database,,, so plz tell me how to write in database access file?

Software Development java
Member Avatar for jwenting
0
121
Member Avatar for OnlyDanny

I have a problem in getting data in a textbox from a query, actually its like getting Item_code from Inventory table and the corresponding Unit_Price from related table Inventory_Price If i write a constant value of Item_Price in the query, the textbox shows the corresponding Unit_Price... Code: [code] sql = …

Software Development vb.net
Member Avatar for kvprajapati
0
119
Member Avatar for leo1937ca

I am using savesetting and getsetting in vb6, W2k. I am still in the testing stage. The savesetting and get setting are working correctly. I would now like to use the deletesetting function to remove the registry entry but I have found no examples to initiate this function. I want …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
338
Member Avatar for Mz3g

Hi folks, Can someone tell me what is the meaning of this line? and how to use this command properly? [CODE] Lock::~Lock() { DEBUG('t', "Deleting lock \"%s\"\n", name); [/CODE] Thanks

Software Development c++
Member Avatar for NathanOliver
0
79
Member Avatar for justech

[CODE] private DataViewManager dsview; private DataTable dtgen; MySqlConnection myconn = new MySqlConnection("server=localhost;database=octupus_db;userid=root;password=sys"); MySqlDataAdapter sqlgender = new MySqlDataAdapter("Select * from gender", myconn); MySqlCommandBuilder comgen = new MySqlCommandBuilder(sqlgender); sqlgender.TableMappings.Add("gendermapping","gender"); DataTable dtgen = new DataTable("gender"); sqlgender.Fill(dtgen); cbxgender.Items.Add(dtgen.Rows()"sex".ToString); [/CODE] My problem looks simple, but i cannot crack it. I have connected to my DB, …

Software Development mysql
Member Avatar for finito
0
737
Member Avatar for epicasian

Okay, I have absolutely no idea what is wrong with this code. When I comment out the parameters of the functions, everything works fine. Just like last time, it may be something obvious, I don't see it, though. [CODE] #include <SDL/SDL.h> #include <iostream> class tnt_Player { private: SDL_Surface *Sprite; int …

Software Development c++
Member Avatar for NathanOliver
0
174
Member Avatar for tomtetlaw

How do I call a pointer to a member function? doing it like this gives the error 'term does not evaluate to a function taking 1 argument' ent->GetInputs()[i]->function(i); where function is of the type void (__thiscall CBaseEntity::* inputfunc_t)(inputdata_t *data) and ent is of type `CBaseEntity*`

Software Development c++
Member Avatar for NathanOliver
0
130
Member Avatar for CarleneGriffith

I have written my code for my class and i keep getting a couple of errors. Could someone take a look for me and point me in the right direction. Here is my code: // DateProject.cpp : Defines the entry point for the console application. // /*specification: Create a date …

Software Development algorithm c++
Member Avatar for CarleneGriffith
0
139
Member Avatar for foco

I am trying to compile code that will perform an http POST using the GNU c++ compiler, and I get the following error: http_post2.cpp:93: error: ‘strlen’ was not declared in this scope The line that it points to is simply: [CODE]SEND_RQ("POST ");[/CODE] I went up to see where SEND_RQ is …

Software Development c++
Member Avatar for foco
0
115
Member Avatar for phohammer

Hello everyone, I'm attempting to write a program for an assignment dealing with a class in C++. As you may have guessed, classes are new to me. And it seems as though that is what is giving me these errors: [QUOTE]1>c:...main.cpp(90) : error C2228: left of '.number' must have class/struct/union …

Software Development c++
Member Avatar for phohammer
0
173
Member Avatar for toadzky

I use python for various personal projects and hobby stuff. I do mostly command line stuff, just cuz I don't need the gui for a lot of it. I would like to start moving on to GUIs, but I have run into a problem. I started with Python v3. All …

Software Development gui python
Member Avatar for vegaseat
0
216

The End.