132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Py-er

hi, i want to know how can calculate width value of text for example: (text:'help me', font:'Tahoma 25') i want to calculate the full width value of the text so help me please to find a way to do that or with Tkinter lib or with any lib.

Software Development python tkinter
Member Avatar for Py-er
0
121
Member Avatar for glindhot

[code]begin Inc(GamesThisPlayer[Winner]); if GamesThisPlayer[Winner] = SampleGamesBatch then ProvisionalRating[Winner] := Rating[Winner]; Inc(GamesThisPlayer[Loser]); if GamesThisPlayer[Loser] = SampleGamesBatch then ProvisionalRating[Loser] := Rating[Loser] end;[/code] This extract of code is from a player rating program. A player either wins or loses. When a player has played a sample batch of games (20 in this case) …

Software Development pascal
Member Avatar for glindhot
0
135
Member Avatar for trembb22

How do we create a thread with visual studio for windows. I would like to know how can we manipulate thread in a windows program using Visual Studio Ver 6 and Visual Studio 2005 and 2008 for windows 98, XP and Vista. I know how to play with threads using …

Software Development c++ unix visual-studio windows-vista
Member Avatar for trembb22
0
297
Member Avatar for dhanashreegd

I want to display multiple records from multiple table in datagrid Please help me, How I will use the datagrid in vb.net

Software Development vb.net
Member Avatar for Jx_Man
0
92
Member Avatar for cheguashwini

I have two 2d vectors. Both have a column of strings. I have to match both columns based on number of characters matched counted in an order. All the Elements in both the columns are compared first. Then character by character comparison is done in such a way that, if …

Software Development c++
Member Avatar for Ancient Dragon
0
131
Member Avatar for bikehike90

I am relatively new to python. I am calling a a function from another script (imported) from the python shell. However, when I call a variable created in that function (after calling it) the variable hasn't been defined. I thought it was a global issue so I made the variable …

Software Development python
Member Avatar for bikehike90
0
114
Member Avatar for cocotugo

ok im trying to make a program for solving square equations by the general formula but for some reason i cannot get it to solve the equation so if anyone can help me this is my code: va= Integer.parseInt(a.getText()); vb= Integer.parseInt(b.getText()); vc= Integer.parseInt(c.getText()); vac=(4*va*vc); vbc=(2*vb*vb); vac2= (2*va); vb2=(-1*vb); raiz = …

Software Development java
Member Avatar for cocotugo
0
95
Member Avatar for lllllIllIlllI

Hi Using a template from the tutorial Fuse offered i made this program: [code=python] import wx import os WINDOW_WIDTH = 700 WINDOW_HEIGHT = 600 class MainFrame(wx.Frame,object): def __init__(self): wx.Frame.__init__(self,None, title = "Paul's Text Editor", pos = (200,75), size = (WINDOW_WIDTH,WINDOW_HEIGHT)) self.menubar = wx.MenuBar() self.menufile = wx.Menu() self.menuinfo = wx.Menu() self.SetMenuBar(self.menubar) …

Software Development python
Member Avatar for lllllIllIlllI
0
644
Member Avatar for brk235

Hallo friends i have particular number of nodes in a box. I need to connect all these nodes as a teravalent network. I have no idea how to proceed for this task. Please give me,atleast, idea to proceed. Thanks for your help,

Software Development c++
Member Avatar for Duoas
0
119
Member Avatar for ff4930

Hello everyone, I have a project to do which involves reading each line of text from an input file which holds integers. Each line represents a polynomial, and I have to rearrange it in canonical form which is sorted by powers. I was wondering if there is a string tokenizer …

Software Development c++
Member Avatar for Duoas
0
173
Member Avatar for SirDorius

Hello all! I'm new here I was looking through a program and I was wondering what this instruction is: [CODE]LEA EAX,DWORD PTR SS:[EBP-34][/CODE] I know that LEA moves the offset of the second argument into EAX but I don't understand the segund argument very much: [CODE]DWORD PTR SS:[EBP-34][/CODE] I'm guessing …

Software Development assembly
Member Avatar for SirDorius
0
129
Member Avatar for Software guy

Hi, i have a problem here , i have made a class which has three methods , first method is to get size of the array and assign a random number to every element of array. Second method is to just print the whole array , while the last method …

Software Development java
Member Avatar for Software guy
0
155
Member Avatar for pwnz32

Hi, I'm making a small program that sends data to a program that is constantly moving around. (to practice my c++)and it needs to be able to read file paths (C:\\Dev-Cpp\\...etc) from a file and store it in a char array (this is all I could figure out worked for …

Software Development c++ ios
Member Avatar for pwnz32
0
3K
Member Avatar for Borgatto

Hello. I need to create a C application and i have to use a status bar. I think i can use MFC, but i don't know how to start. Can anyone help me? Thanks.

Software Development c
Member Avatar for Borgatto
0
110
Member Avatar for cam9856

Ok so at a specific point in my game, the game just shuts down. I am not sure what the problem is so I am going to throw all the source code up. Any Help is appreciated. [ICODE]#include <iostream> #include <windows.h> #include <fstream> using namespace std; string location = "Amasi …

Software Development c++
Member Avatar for cam9856
0
103
Member Avatar for jesouhaite08

I created a program and when I click on it, it launches the server and runs at [url]http://127.0.0.1:8000[/url] This is my code for it: pyweb.py: [ICODE]import os, sys sys.path += [r'c:\dev\incidents'] os.environ['DJANGO_SETTINGS_MODULE'] = 'incidents.settings' from django.core.management import call_command from threading import Thread t = Thread(target=call_command, args=('runserver',), kwargs={'shutdown_message':"done", 'use_reloader':False}) t.start() import …

Software Development python windows-server
0
54
Member Avatar for Patrick1991

Hello! I'm new in this forum and i have some problems in school. I'm from Germany and my teacher gave me the task to install a dart game in Python. Now i have not much time left. So i want you to ask if you could maybe help me with …

Software Development python
Member Avatar for Patrick1991
0
119
Member Avatar for ronnix

Hi, It is possible to get values from thread , while thread is executing , but not yet complete? if it is possible then how can I realise it in python? with hope to solution

Software Development python
Member Avatar for BearofNH
0
89
Member Avatar for marcux

Hi all! I am all new to shell scripting. I am trying to make a script that searches for a folder and then adds it to PATH First I am serching for the folder: [CODE]find /usr/local -name "jdk1.6*" -type d[/CODE] If version 1.6 of Suns java is installed I get …

Software Development shell-scripting
Member Avatar for eggi
0
125
Member Avatar for Futbol10

Hi sorry about asking so many questions.....and yes i have been searching on the internet, but anyways i am getting to start checking the array words with its chars and whatnot, but i dont know if will work i am confused where to put the array of words i have …

Software Development java
Member Avatar for Futbol10
0
115
Member Avatar for shobhit123

I would appreciate if anybody can explain me MVC in swings. I have heard that each compnent has respective model class but unable to relate it with MVC. Kindly explain.

Software Development java java-swing
Member Avatar for shobhit123
0
50
Member Avatar for Blaine Tuisee

I'm creating a simple application in C# using ASP.NET. I'm trying to give it a sort of login pop-up box. It won't have username and passowrd but instead ask for a program number, name, email address and phone number. Any ideas?

Software Development asp.net
Member Avatar for Ramy Mahrous
0
88
Member Avatar for sireesha.c

Hi, In my Datagridview contains itemno,itemdescription,quantity,price columns. this values can view in crystal report.in crystal report only 10 colums can able to view. so,in item descriptionin cell only 10 lines i have to enter .if it is more than that i want to display messagebox and chance is there for …

Software Development
Member Avatar for Ramy Mahrous
0
139
Member Avatar for cbrules3033

please could you answer ... i searched all over but sadly could not find an answer

Software Development c++
Member Avatar for cbrules3033
0
108
Member Avatar for rajkiran718

CAN any one help me writing a C Program I need to send a Http request to Http audio streaming server get connect if server requires authentication (then again send user name and password) if authentication is OK get the audio stream downloaded on to a folder Else If server …

Software Development audio c
Member Avatar for stephen84s
0
111
Member Avatar for darkMatter2008

Hello, I am an experienced programmer in OO langauges such as C++, C#, Java... etc. The problem I have is that I have written a class, and when I try to instantiate that class from another object, the compiler says that it cannot find it at the Import stage. From …

Software Development python
Member Avatar for bumsfeld
0
91
Member Avatar for JoutPerl

Hello, I am currently working developoning C++ app. with the codeGear Ide. I want to keep trace of every stored procedure I call using ADO executeComplete event in my ADO connection object (just for loging propourses). My problem is that I can not access any Command property because of const …

Software Development c++ ide
0
111
Member Avatar for darkMatter2008

How do I make a static function in an Class that can be called by another object? Thanks in advance.

Software Development python
Member Avatar for darkMatter2008
0
101
Member Avatar for Tareq85

i have this design internet | Router(Suse) ---- Content-Filter Server | LAN am using iptables to redirect client httprequests from Port 80 to my own program's port that is writen (in java) on the router now in my code i want to send ( redirect ) all client http requests …

Software Development client-server java suse
Member Avatar for jwenting
0
129
Member Avatar for zawpai

Hi, Could anyone give me some suggestions? Now, I want to put the labels beside the list box to show the number of string lines, but i cant' do adjust all between string lines and labels although the size of text are same. You all will know the smallest size …

Software Development visual-basic
Member Avatar for selvaganapathy
0
130
Member Avatar for SwathiSangral

Hello, I have a sample code which is a header file and I am trying to write a CPP program which uses this file. But I am getting errors while running the code. Here is the header file: #ifndef FineInterfacePtr_h #define FineInterfacePtr_h template<class T> class CSafePtr { public: CSafePtr( T* …

Software Development c c# c++
Member Avatar for Radical Edward
0
126
Member Avatar for cdub

I'm running 2.4.4 using gentoo. I've compiled python with Tk. (USE="tk" in /etc/make.cont) I can not get "turtle.setup(width=800,height=600,startx=400,starty=300)" to set the screen size. Any ideas? Is there another way to set the screen size? ? cdub [code = python] import Tkinter import turtle turtle.setup(width=800,height=600,startx=400,starty=300) turtle.down() turtle.right(30) turtle.forward(100) [/code]

Software Development python tkinter
Member Avatar for Fuse
0
4K
Member Avatar for preethi_ga

hi, when i update records in VB, only 0's are stored in database, can anyone halp me to solve this? send me appropriate code for this?

Software Development visual-basic
Member Avatar for preethi_ga
0
126
Member Avatar for Derice

i am trying to coonect ms access with vb6. The code is working but after i execute "SELECT * from table" it is showing the content for the last row in the ms access. I am wondering how i can change my code so it display all the content instead …

Software Development display visual-basic
Member Avatar for Derice
0
112
Member Avatar for cam9856

Ok so I am interested in learning some assembly so that I can create programs for my windows xp operating system. I have looked through some tutorials and the one on here but I am still lost on what to do to get started. Could someone hook me up with …

Software Development assembly operating-system
Member Avatar for cam9856
0
95
Member Avatar for Utter_iMADNESS

Hi everyone. I'm making a simple text rpg and battle system with C and I was just wondering if it was possible to add sounds to it. I've heard that it's possible with C++ but I'm not sure if it's possible with C as well. Any help is greatly appreciated …

Software Development c
Member Avatar for jantazone
0
162
Member Avatar for FTProtocol

[CODE] #include <windows.h> #include "Resource.h" HWND hWnd; LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { DialogBox(hInstance, MAKEINTRESOURCE(IDD_Main), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return FALSE; } LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) { switch(Msg) { case WM_INITDIALOG: …

Software Development c++ gui
Member Avatar for FTProtocol
0
124
Member Avatar for bobraj

hi all, i am new to programming, my problem is that after certain data manipulation i will a array which will have only zeros & ones. (example x[5]={0,0,1,0,1} now i would like to store the contents of the array in another variable like A(say)=00101. but the codes which i written …

Software Development c
Member Avatar for bobraj
0
125
Member Avatar for herms14

guys..I would like to ask for your help..I was given a programming assignment about searching a random number in a array of also random numbers. here's the problem: [B] write a program that creates an array of 100 random integers in the range from 1 to 200 and, then use …

Software Development c++
Member Avatar for mitrmkar
0
111
Member Avatar for herbally

I'm trying to add a row to my dataset using the following: [CODE] Dim foundRow As DataRow = DsMembers.Members.NewRow foundRow("FirstName") = scannedMember.FirstName foundRow("MiddleName") = scannedMember.MiddleName foundRow("LastName") = scannedMember.LastName foundRow("Address") = scannedMember.Address foundRow("City") = scannedMember.City foundRow("State") = scannedMember.State foundRow("Zip") = scannedMember.Zip foundRow("DOB") = scannedMember.DOB foundRow("TDL") = scannedMember.TDL foundRow("MemberID") = scannedMember.MemberID foundRow("DateJoined") …

Software Development dataset vb.net
Member Avatar for dadelsen
0
175
Member Avatar for AnjaliAnuradha

Hello, As a part of my program, I have to convert a column of strings in a vector(containing strings of both upper and lower case) to uppercase. The column is accessed as array.at(i).at(2) I have tried to convert character by character using toupper() , but I didnt work for me. …

Software Development c++
Member Avatar for Nick Evan
0
134
Member Avatar for instructor_c

hey everyone am totaly stuck on these questions. am new to programming and a begginer is even a big word for me i guess am still at the scratch level so plz help :'( here are the questions 1. Write a program that asks the user to enter 10 integers. …

Software Development c++
Member Avatar for Nick Evan
0
177
Member Avatar for doaji

please i need help in gettin data interaction between forms, basically what i want to do is to create a questioniare of about three forms where data is requested from the user and the last (4th) form, displays an intepreted set of information based on the data that was enter …

Software Development visual-basic
Member Avatar for QVeen72
0
98
Member Avatar for camproject

I have a main dialog that is shown when my application starts running.It consists of a VLCplayer control that streams the live video and plays it.I have another dialog with a second VLCcontrol which is displayed when I select a menu item.What I have to do is play the same …

Software Development c++ video
0
251
Member Avatar for prasadsatam

I want to display multiple tables record into datagrid (challan number wise). Please help me. how will i can use datagrid.

Software Development vb.net
Member Avatar for Jx_Man
0
88
Member Avatar for kittensaretasty

I'm a complete beginner. I know how to get things to print to the screen, with the print command. But I want to be able to input a string of text and have that text returned in all caps. Do I do this with an argument to the print command …

Software Development python
Member Avatar for Fuse
0
96
Member Avatar for krammer

I am trying to print a random line from a text file that has 10 lines. The problem that I run into is that it sometimes picks the number "0" which is not a line in the text file. How would I have it pick a random number between 1-10? …

Software Development shell-scripting
Member Avatar for ghostdog74
0
203
Member Avatar for niernier

Is there anyone who knows how to locate the file pointer and display its value? I am currently doing an assembly program that searches for a string in a given file and returns its offset from the beginning of the file. For example, the display would be "string found at …

Software Development assembly
Member Avatar for niernier
0
103
Member Avatar for happimani

Dear All, What is the Major Differences between Python 2.3 and 2.4 and What are all the Major Features in Python 2.4?????????? regards Mani

Software Development python
Member Avatar for paddy3118
0
142
Member Avatar for acecombat

I'm trying to have VB open a basic 1 line settings text file but I want it (for first time users) to create the file if it doesn't exist, but I can't open the file without getting an error. How do I go about creating this file if it doesn't …

Software Development file-system visual-basic
Member Avatar for selvaganapathy
0
1K

The End.