132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tinstaafl

I'm working on a project that contains 3 different lists. 2 lists of 2 different controls, and 1 list of a custom class. I found that I needed each of these lists sorted. The problem with sorting a list of complex types is there's no default comparer for them. That …

Software Development visual-basic
Member Avatar for Ketsuekiame
0
301
Member Avatar for MasterHacker110

I have this RSA encryption code but it doesnt encrypt the whole message its suppose to encrypt. It only encrypts #include <iostream> #include <string> #include <string.h> using namespace std; // prime numbers int p, q; //compute int n ;//= p * q; //totient int phi;// = (p - 1) * …

Software Development c++ encryption
Member Avatar for MasterHacker110
0
149
Member Avatar for a9602

hey.... im supposed to make a school project using files and graphics..my topic is telephone directory.if i have to delete a particular entry,should i keep making a new file or is there any alternative with regards

Software Development c++
Member Avatar for a9602
0
182
Member Avatar for Rahul47

Hello all, I Wish to call Button1_click event of Form1 in Button2_Click event of Form2. i.e Calling event of one form into evnet of other form. How can I achieve this? Thanks.

Software Development vb.net
Member Avatar for Rahul47
0
164
Member Avatar for amaicahglyne.decastro

I need a programme for my mom's business inventory. I tried to download Dev-C and Visual Basic so I could make one, but after downloading it, the software would not open completely in the computer.

Software Development java visual-basic
Member Avatar for JamesCherrill
0
96
Member Avatar for rotten69

Hi there, Today, I had a chat my lecturer about instance methods and static methods. I thought you make methods with static modifier (let me know in the comments below if I'm wrong) if you want to access them without creatng an instance of the class which they're defined in. …

Software Development
Member Avatar for ChrisHunter
0
166
Member Avatar for Rahul47

I want to create tables in database dynamically i.e at the click event of a button or any other event. Suggest me HOW ? Thank You

Software Development vb.net
Member Avatar for Rahul47
0
114
Member Avatar for dr_robert

Hi there, I'm just a hobbyist teaching myself python but I am making progress with the help of "Rapid GUI Programming with Python and QT". I have written what is probably a very poorly designed programme which does just about what I want but when it's closed the process continues …

Software Development gui html-css python qt
Member Avatar for dr_robert
0
1K
Member Avatar for monching

Greetings! I have a problem with my dialog box, my project has multiple form. When I try to exit the dialog will appear, If will the OkButton the method function as what i want, but if I click CancelButton the from will close itself but the program is still running. …

Software Development vb.net
Member Avatar for tinstaafl
0
241
Member Avatar for mattboy64

These days im using xcode and its a bit of annoyingly good amounts of changes from borland which im used to But i keep getting error for this printf ("\nThe amount of First Class cars Stocks remaining are: %d", &stock1); (while stock1 is declared: int stock1) and it says format …

Software Development c ide
Member Avatar for Tumlee
0
184
Member Avatar for Sadhikary

I have one table with content of data with a Status (Yes/No). I want to get sum of total data where status is "yes"and put it into another table and sum of total data where status is "no" and put it into previous table in a different column to maintain …

Software Development mathematics vb.net
Member Avatar for Sadhikary
0
458
Member Avatar for ryklon

I'm encountering a problem when I try to write over a network stream. When I press this button here, I can successfully write to the tcp stream and the other part of the program successfully receives the data. Dim ClientSocket As TcpClient Private Sub btnConnect_MouseClick(sender As Object, e As System.Windows.Forms.MouseEventArgs) …

Software Development vb.net
Member Avatar for ryklon
0
569
Member Avatar for Start4me

I want this code to run in the background but still be active: Private Sub frmMain_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress lblTest.Text &= e.KeyChar End Sub

Software Development html-css vb.net windows-server
Member Avatar for Start4me
0
287
Member Avatar for Valosar

First of all I'm using pythong 2.7.3 and libtcod 1.5.1 I am following a tutorial found at http://roguebasin.roguelikedevelopment.org/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_2 and have code matching (as far as I can tell) exactly what it is telling me to do. My code is below. The general idea is to create a white and yellow …

Software Development python
Member Avatar for Valosar
0
205
Member Avatar for vlkaiser

Hi, Let me preface this by saying I'm about 4 days into learning MSVC++ 2010. I just need a little program that takes in a string, puts it in an array and I'd really like it to display it on the screen as the data comes in (1089 strings per …

Software Development c++
Member Avatar for Ancient Dragon
0
410
Member Avatar for cor.vandijk.779

//Why do I have to use following code to get a column number: ListSelectionModel ks = tabel.getColumnModel().getSelectionModel(); //Rowselection does not require a special row selection, I can get a proper row number with: ListSelectionModel ss = tabel.getSelectionModel();

Software Development java
Member Avatar for mKorbel
0
611
Member Avatar for communism

Hi I'm creating a socket server in Linux using pthreads. I was just wondering, how does the server send specific messages to its clients (for instance, a PM) if each is in its own standalone thread?

Software Development c++ client-server socket-programming
Member Avatar for Lucaci Andrew
0
277
Member Avatar for SumTingWong59

I've been trying for a while and can't figure it out http://pastebin.com/4PZj2c9s

Software Development python
Member Avatar for TrustyTony
0
141
Member Avatar for z.n11

Write a Python program to apply the given formulae above to complete the missing information in Table 2.2. As vMax (his speed at 30,000m) is an unknown, allow the user to input a value of between 500m/s and 600m/s, each time displaying a new completed table. For an extra 3 …

Software Development python
Member Avatar for TrustyTony
0
104
Member Avatar for sciwizeh

My project compiles fine, but when running a push_back on a vector, I'm getting an access violation when the vector attempts to resize itself. I have lots of code, but hopefully I can boil it down to just relevant classes. I am sorry about the HUGE amount of code, but …

Software Development algorithm c++ file-stream microsoft-access
Member Avatar for sciwizeh
0
6K
Member Avatar for Ancient Dragon

![Untitled40](/attachments/small/0/Untitled40.png "align-left") I'm trying to figure out how to add a new connection to MySQL running on a different computer on my network. When I click Project --> New Data Source a list of drivers appears, but none of them are MySQL (see thumbnail) which I have previously installed. I'm …

Software Development dataset mysql open-source vb.net
Member Avatar for Ancient Dragon
0
282
Member Avatar for pars99

I have been making an Adventure Game and when I try to test it, it always comes up with Hello! Welcome to the adventure game! What is your name? Parsia Parsia? Well hello there! Let us begin... You are at a trail with two paths. Left or right? left Traceback …

Software Development microsoft python
Member Avatar for vegaseat
0
279
Member Avatar for glenndr_15

Greetings! I just want to ask on how to transfer a letter from a textbox to label? what I mean is for example we have a label then a textbox, In a textbox I'm going to type a random words/letters then If there is a letter "A" in the text …

Software Development vb.net
Member Avatar for tinstaafl
0
214
Member Avatar for bulleh

Hi guys!, I thought i'd try and learn a bit of python to keep myself occupied, and i was wondering if you could give me some constructive criticism on a word guessing game i have created. I'm an amatuer programmer and i'm always looking at improving when and where ever …

Software Development python
Member Avatar for bulleh
0
254
Member Avatar for pjh-10

how do you link functions written in other computer languages with a C/C++ program? this is in a past paper , & i can't find it anywhere? helps

Software Development c++
Member Avatar for CGSMCMLXXV
0
95
Member Avatar for Tekito

This is an issue that I've discusses many times before, but never with a conclusive solution. I am trying to programmatically change the data range for an existing chart in Excel. My code goes something like this: [CODE] With WS.CharObjects(SelChart).Chart With .SeriesCollection(1) .XValues =DataWS.Range("A1:A101") '<-----ERROR! .Values = DataWS.Range("B1:B101") End With …

Software Development visual-basic
Member Avatar for gmcfarlane
0
267
Member Avatar for rotten69

Hi everyone, I'm learning C# at the moment and really enjoying it. I'm wondering though how I can develop my own algorithms. do I need to read on data structures and algorithms? Is there a book for all programming languages so you can apply the knowledge to basically any programming …

Software Development c#
Member Avatar for ddanbe
0
222
Member Avatar for a_lan

I have got very weird problem with a int variable. There is a code: #include <EEPROM.h> #define dht_dpin 14 byte bGlobalErr; byte dht_dat[4]; int a; void setup(){ pinMode(13, OUTPUT); a = 0; InitDHT(); Serial.begin(9600); delay(300); Serial.println("Humidity and temperature\n\n"); delay(700); } //end "setup()" void loop() { digitalWrite(13, HIGH); delay(300); digitalWrite(13, LOW); …

Software Development
Member Avatar for a_lan
0
164
Member Avatar for Sadhikary
Member Avatar for pritaeas
0
100
Member Avatar for kingsonprisonic

Hi all, **First of all please read the full article and then try to suggest me...** I want to make a java project on streaming video encryption. Where i will use two PCs 1 act like a media server and other act like a client. So a video file (example.avi) …

Software Development java streaming-service video
Member Avatar for kingsonprisonic
0
380
Member Avatar for klint.austero

What and how does shared namespace in C++ works? Are most of the variables, types, and procedures can be used in shared name space?

Software Development c++
Member Avatar for Ancient Dragon
0
127
Member Avatar for nullifyQQ

User is supposed to type an input, and if it's not an integer, the user needs to type another. This repeats 3 times for 3 inputs which go inside an array. The integer checking works, but the problem is that when i display the 3 integers, they are all the …

Software Development c++
Member Avatar for deceptikon
0
306
Member Avatar for mattboy64

There is a small problem i have there is a small error that i didnt use to have with the boorland compiler I'm using xcode these days and in my switch case im trying to execute a function (as you can see, the "main" function) however it says that it …

Software Development c ide
Member Avatar for deceptikon
0
257
Member Avatar for erezz

Hi, I have a log file contain 28 lines, 1-I need to grep the line with the size next to that i need to grep the name from the line Example: Size element 1. 906K ykms2 2. 1.2M ykps1 2-if one or more of the lines are missing I need …

Software Development file-system shell-scripting
Member Avatar for erezz
0
211
Member Avatar for Divinedar

I am trying to reference a cell with a date from one worksheet to the other. I am using ='Statistics MVP'!A16 but it doesn't give me the date format it just gives me the number 41125 or any other number. When I format as a date form I get 1/0/1900 …

Software Development visual-basic
Member Avatar for Divinedar
0
109
Member Avatar for nasim64

I want to print like this in 100 rows in vb.net useing cristal report how to do this?

Software Development vb.net
Member Avatar for vasim jada
0
64
Member Avatar for rajsharma_85

Hi, How can I set the the cursor initially in the text box whenever my application executes? Please help. Thanks

Software Development vb.net
Member Avatar for Rahul47
0
5K
Member Avatar for krystosan

from PySide import QtCore,QtGui import sys class ToolBarUI(QtGui.QMainWindow): def __init__(self,*args,**kwargs): super(ToolBarUI,self).__init__(*args,**kwargs) self.floatingToolBar() pass def buttons(self): self.btnVLay=QtGui.QVBoxLayout() self.incSavbtn=QtGui.QPushButton("Save") self.emailbtn=QtGui.QPushButton("Email") self.upldbtn=QtGui.QPushButton("Upload") self.setPrjbtn=QtGui.QPushButton("Set Project") self.setThumb=QtGui.QPushButton("Set thumb") self.shwMatbtn=QtGui.QPushButton("Show Material") self.fixtexbtn=QtGui.QPushButton("Fix Texture Paths") btns = [self.incSavbtn,self.emailbtn,self.upldbtn,self.setPrjbtn,self.setPrjbtn,self.setThumb,self.shwMatbtn,self.fixtexbtn] [self.btnVLay.addWidget(each) for each in btns] def floatingToolBar(self): self.buttons() self.setLayout(self.btnVLay) self.show() pass if __name__ =='__main__': app = QtGui.QApplication(sys.argv) app.setStyle("cleanlooks") win …

Software Development python qt
Member Avatar for krystosan
0
1K
Member Avatar for Vasthor

not working: // range for for (int (*row)[4] : ia) { for (int col : *row) cout << col << " "; cout << endl; } // error: cannot convert 'int*' to 'int (*)[4]' in initialization. working: // range for for (int (&row)[4] : ia) { for (int col : …

Software Development c++
Member Avatar for Tumlee
0
941
Member Avatar for WDrago

All, How do I get the `readSensor()` method to run in threads? Thread location1Thread; Thread location2Thread; Logger location1 = new Logger("187.20.150.20", 2000); Logger location2 = new Logger("187.20.150.21", 2000); // The next 2 lines lines result in the following error message: // "An object reference is required for the non-static field, …

Software Development
Member Avatar for darkagn
0
214
Member Avatar for neoanomally

Hi all. I have a process that checks the last time a file was updated. If the data is over 3 minutes a separate perl script is started. The problem is that second script takes 5-10 seconds to run. Is there a way to start the second script, but continue …

Software Development perl
Member Avatar for Taywin
0
130
Member Avatar for ThatBitchYeah

i don't have a clue what is wrong here.... the program is supposed to add, subtract, multiply and divide two real numbers. #include<stdio.h> float add(float x, float y); float subtract(float x, float y); float multiply(float x, float y); float divide(float x, float y); int main (void) { int choice; float …

Software Development c++
Member Avatar for CGSMCMLXXV
0
159
Member Avatar for Dewey1040

So I'm using the >> operator to read objects from a file one by one. I am simultaneously counting the objects and need to read them again one by one to print from a certain point. inFile.clear(); inFile.seekg( 0, ios::beg); Doesn't seem to work for me, and I assume it …

Software Development c++ ios
Member Avatar for CGSMCMLXXV
0
155
Member Avatar for filxy

hey guys can someone help me with this i am stuck here where do i define a loop to add more nodes in the linked list or any other way to define nodes itslef in the code class Program { static void Main(string[] args) { List obj = new List(); …

Software Development linked-list
Member Avatar for tinstaafl
0
228
Member Avatar for mumaga

I have a new game item in the menu bar, was wondering if anyone got suggestions on how to accomplish that! Thanks :)

Software Development java
Member Avatar for tux4life
0
178
Member Avatar for waddaharafeh

# **I Need a Code For This Question Please** # Suppose you have a text file containing the name of salesperson followed by 3 numbers representing his sales during a certain period: Ali 30 40 60 Khaled 44 99 88 Suad 88 90 60 ..... .... You are requested to …

Software Development
Member Avatar for peter_budo
0
227
Member Avatar for aisehpe

Private Sub txtDesc_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtDesc.TextChanged Select Case Asc(e.KeyChar) Case 8, 32, 65 To 90, 97 To 122 e.Handled = False Case Else e.Handled = True End Select End Sub **I am encountering these errors: 'Handled' is not a member of 'System.EventArgs' 'KeyChar' is not a …

Software Development vb.net
Member Avatar for tinstaafl
0
2K
Member Avatar for ThatBitchYeah

I have no idea hw to approach this... i need to end my program, shown below by the user pressing the letter Q on the keyboard. Help? #include <stdio.h> #include <stdlib.h> float subtract(float x, float y); int main (void) { float x, y; printf("Please enter a real number:\n"); scanf("%f", &x); …

Software Development c
Member Avatar for ThatBitchYeah
0
337
Member Avatar for manujkathuria

Hi, I would like to write a script to scp files from 1 server to other but the problem is if scp fails maybe because of server crash or somthing like that, i would like to start scp from the last file. i dont want to copy all the files …

Software Development shell-scripting
Member Avatar for L7Sqr
0
115
Member Avatar for trinibaby

Hi, I'm having some trouble with my code that convert binary to decimal using recursion. this is my code #include <cstdlib> #include <iostream> using namespace std; void binaryToDecimal( int binaryNumber, int decimal, int weight ); int main(int argc, char *argv[]) { // binary to decimal int decimalNum; int bitWeight; int …

Software Development c++
Member Avatar for great_learner
0
3K

The End.