132,726 Archived Topics
Remove Filter ![]() | |
Hello, Iv been trying to compile a simple opengl / wxwidgets program in c++ on linux mint. However when i try to compile with : g++ MyGLCanvas.cpp MyGLCanvas.h openGLProjectApp.cpp openGLProjectApp.h openGLProjectFrm.cpp openGLProjectFrm.h `wx-config --cxxflags --libs --gl-libs -lGL` -o simpleprogram I get an error message : cannot find -lwx_gtk2u_-lGL-2.8 collect2: error: … | |
DynDNS has recently changed their policy so that if you want to maintain your "free" account you have to login to their site at least once every 30 days. I'm trying to write a script that I can kick off on a scheduled task. I'm not very adept at coding. … Software Development vb.net | |
Heres my code [CODE]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Order extends Applet implements ActionListener { String password = "pword"; TextField txt1 = new TextField(10); TextField txt2 = new TextField(10); Button btn1 = new Button("Ok"); Button btn2 = new Button("Ok"); Label lbl1 = new Label("Choose Your Order"); … Software Development java java-swing | |
My code only outputs 0.00 when 'y' is entered. Clearly, I'm a beginner. #include <iostream> #include <iomanip> #include <string> const double ADULTFEE = 18.00, CHILDFEE = 7.50, TRAINFEE = 6.00, BIRDFEE = 5.00; using namespace std; int main () { char reply = ' '; double adultNum = 0, childNum … Software Development c++ programming-construct | |
All, I have a personal script that I'm trying to write, and I've run into a small problem. The problem is that I want to be able to support a '-s' argument no matter where the argument is. I also want that argument to be allowed more than once. For … Software Development python | |
is it possible to use two different databases in vb 6.0? I will use DB A to fetch the records and save it to DB B,,Thanks :) Godbless Software Development visual-basic | |
I have two files: apple.html banana.cs apple.html contains a html table. So my question is: Is it possible to write values to the html table in apple.html using banana.cs? Any help is appreciated. Thank you! | |
hey there, in a project I am involved, someone put a test class in main code. eclipse would not find the bug but mvn, not that in eclipse, would report a compile error, and we found the bug. because of that, I wanted to build my new maven project without … Software Development java | |
Hello. I am currently working on a huffman code program for my class. As of right now, I am currently in the development/debugging stage. I've got the whole thing pretty much covered, but I am having trouble with my tree traversal. I am trying to do an inorder traversal but … Software Development algorithm c++ open-source | |
Hey there! I'm currently trying to get my first text-adventure-game in python started,and I wanted to import some features that are totally unnecessary. just for the lulz. So,I want to start a timer,that starts when the game starts,and ends,when the player is dead or won the game. I want it … | |
Further along in this code I'm trying to access processRow, which is of type DataRow, but I get a RowNotInTableException This row has been removed from a table and does not have any data. In an attempt to figure out when this data is getting deleted, I added a bunch … Software Development microsoft-access microsoft-office multithreading | |
Hi, First, thanks for reading this stuff. I am learning java. I recognize that I am a beginner. Last weekend I have coded a clock. Sourcecode is: import javax.swing.JFrame; import java.util.GregorianCalendar; import java.awt.image.BufferedImage; import java.awt.Canvas; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Color; import java.util.TimerTask; import java.util.Timer; import java.awt.BasicStroke; public … Software Development java java-swing ubuntu | |
How can I get the mouse position even when an event hasn't been performed, eg. I haven't clicked or left window, etc. Kind of like mousing over something. I am currently using a class that implements MouseListener, MouseMotionListener for events such as clicking and releasing but I would like a … Software Development java | |
Hi, I have a little project to do relating picture boxes in visual c++. I have googled for very long and cant find a solution. I have a picture box with 3 buttons, previous, play pause and next. It involves a timer control which will run and enable the slideshow. … | |
Hi, How do you get the WebBrowser's Url in a Combobox? I've tried the Url member but it says "Value of type 'System.Windows.Forms.WebBrowser' cannot be converted to 'String'." I also tried the LocationURL member also but it was in VB6 and not VB.NET. Please help me. Thanks in advance Software Development vb.net | |
#ifndef LOTTO_H #define LOTTO_H #include <QWidget> #include <QLabel> #include <QTextEdit> #include <QPushButton> #include <QGridLayout> class lotto : public QWidget { Q_OBJECT private: //widget data members QLabel* numbersLabel; QTextEdit* numEdit; QPushButton* lotusButton; public slots: int generateLotteryNumbers (); void displayNumbers(); public: lotto(); }; #endif // LOTTO_H #include "lotto.h" #include <stdlib.h> #include <time.h> … | |
Hi everyone, It might sound simple but I am having nightmares with this function What is the best way to delete a file without the machine complaining that i cannot acces the file because it is in use by another process? Is this a bug in the .net framework? Is … Software Development | |
For my **Java to C#** conversion project, I need to use something equivalent to Java's `Calender` class. I have some codes like: Calender cal = Calender.getInstance(); long time = Calendar.getInstance().getTime().getTime(); long time2 = System.currentTimeMillis(); which returns some random values at different times. I have come to know C-sharp's `DateTime` is … | |
Hi All, Im still finding it hard to understand Paint method, Almost all websites i had gone thru, they are showing examples of how to use it in an applet. I just cant understand on how to use it in a GUI application by extending Jframe object. Here is one … Software Development gui java java-swing | |
Hello, I'm trying to get my program running but I ran into an error. When I want to type a block of text on a new line, I get this error below: AttributeError: 'str' object has no attribute 'append' What am I suppose to adjust in order to fix it? … Software Development python | |
Hi, I'm trying to prompt the user to enter a block of text until he/she types EOF on a separate line by itself. After that, the program should present him/her with a menu. When I go to Option 1, it only prints out EOF and not everything that was typed … Software Development python | |
Hello everyone, I just started with the book 'Learning Python the hard way' by Zed A. Shaw,and I have to say that it is really fun to learn code. I thought that it would be a problem because I'm 15,but I'm understanding it pretty well so far. Anyway,enough of the … Software Development gaming python web-design | |
hello, I just had a quick question on my program. I'm trying to perform an elevator class program to simulate an elevator that has 3 stops. The only problem is that I can't figure out how my floors increase or decrease, it just increases by one. Here is my code: … | |
Hi all, Could someone please explain me why "Listview.Selected" alway retuns a value? After I upload data into list view, system will highlight first line in list veiew. Although I dehighlight it and my UI will not see any selected item, but my softwre always get "return value = 1" … Software Development listview visual-basic | |
I'm a Python noob trying to make a program where the user will enter as many integers as they want and have the program calculate the total sum. They have to type the word "done" to execute the sum calculation. When I ran my program, I tped in 'done' and … Software Development python | |
Greetings fellow developers, can you guys give me a hint on how to check if the datacolumn or datarow on the database has a value or null value what i want to happen is if the column1 has a value then the button is disabled. Dim Str As String Str … Software Development vb.net | |
This is **Python** language. Hello, I'm trying to make a program where the user enters his/her initials followed by a block of text. After that, the program will print out the number of times his/her initials showed up in the block of text. For example, if my initials are VKL, … Software Development python | |
Hi there! I have to read data from a file and load it into an array: here is the data of the text file: Team Creative 6 100 Anwar Khan 201 Belal Ahmed 150 Sara Amjad 400 Nida Khawar 342 Rehan Sheikh 341 Nadia Kanwal My code is: class Player … Software Development c++ | |
Hello, I got some code from: http://stackoverflow.com/questions/1859201/add-seconds-to-a-date this is the code: #include <time.h> #include <stdio.h> int main() { time_t now = time( NULL); struct tm now_tm = *localtime( &now); struct tm then_tm = now_tm; then_tm.tm_sec += 50; // add 50 seconds to the time mktime( &then_tm); // normalize it printf( … Software Development c | |
I need help printing 5 Fibonacci numbers per line. The user is asked how may numbers would they want printed and if the user indicates they want 15 numbers printed then it should look like this: 1 1 2 3 5 8 13 21 34 55 89 144 233 377 … Software Development assembly operating-system | |
Hello. I'm going through LazyFoo.net's SDL tutorials and right off the bat I got stuck. I am using Visual Basic and it is giving me an error saying that the identifier 'args[]' in the main function (line 5) is undefined. Anyone have a solution? //Headers #include "SDL.h" #include <string> int … Software Development c++ visual-basic | |
For some reason the program is not reading the if and else statements. Please help The assignment: Assignment: The city zoo charges the fees shown in the table below. General Admission Price Adult $18.00 Child (age 5 to 13) (Under 5 years of age: free) $7.50 Extra Events Train ride … | |
What are the differences and similarities of JAX-WS and JAX-RS? Software Development java | |
This is my ScreenManager class which is used for getting the perfect DisplayMode & setting the screen to fullscreen import java.awt.*; import java.awt.image.BufferStrategy; import java.awt.image.BufferedImage; import java.lang.reflect.InvocationTargetException; import javax.swing.JFrame; public class ScreenManager { private GraphicsDevice vc; //give vc access to monitor screen public ScreenManager() { GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); vc … Software Development java java-swing | |
I have recently started learning to program in c. I have written a very basic program its a currency converter. I would like to know how to put an icon into my program so when its on the desktop it looks nice. I am sure there are more important things … Software Development c | |
Please help me to translate this code from c to c++ #include <stdio.h> #include <conio.h> void main() { int n,i,j,a[20][20],ok=1,grade=0,aux=0;ok=1; FILE *f=fopen("c:\graph.txt","r"); fscanf(f,"%d",&n); for(i=1;i<=n;i++) for(j=1;j<=n;j++) fscanf(f,"%d",&a[i][j]); fclose(f); for(i=1;i<=n;i++) if(a[1][i]==1) grade++; for(i=1;i<=n;i++) { for(j=1;j<=n;j++) if(a[i][j]==1) aux++; if(aux!=grade) ok=0; aux=0; } if(ok==0) printf("graph is not regular."); else printf("graph is regular."); getch(); clrscr(); … Software Development c++ | |
int index = 3; map<int, Class> list; std::map<int, Class>::iterator test = list.begin(); std::advance(test, index); for(map<int, Class>::iterator it = test; it != list.end();++it) { cout << it->first << " " << it->second.GetPrice() << endl; } Hi Everyone, Please help me on this issue. I know how to start at a certain … Software Development c++ | |
How would i make python read a text file and find something then read a certian number of lines below it i.e if you had: card 1: ball red it need to find card 1:, then it needs to read the line below (ball) and set it to a string … Software Development python | |
Hi All,We have a java application which does deal with lots of insert,update and select statement.We are using bonecp. So we took some sample heap and analyse it with MAT and its pointing to jdbc leaking. Thus we went into the codes and ensure that all resultset,statement and connection are … Software Development java | |
Hello, I'm a starter in Python and I need help. I'm trying to ask the user to input as much text as he/she likes until he/she types EOF (end of file) on a separate line. Once he/she does, the program should end. I started on my code and below is … Software Development python | |
my code can't seem to find the maximum price. program Mobile; uses winCrt; type Mobilephone=record brand:integer; model:String; price:real; end; var hp:array[1..100] of Mobilephone; count,m,MobileNum:integer; max:real; PROCEDURE read_data(var newMobile:Mobilephone); begin writeln('Brand:(1:Samsung 2:iPhone 3:Nokia)'); readln(newMobile.brand); writeln('Model:'); readln(newMobile.model); writeln('Price:'); readln(newMobile.price); end; PROCEDURE displayexp(var exp:Mobilephone); begin if(exp.price>max) then begin writeln('THE MOST EXPENSIVE HP:'); writeln('Brand: … | |
How can write these fuctions differently ? def computeVoltages(Vs, TC, tValues): return [Vs * (1 - e ** (-t / TC)) for t in tValues] def computeTimeValues(TC, intervals): time = [] width = 5 * TC / intervals for i in range(intervals + 1): time.append(i * width) return time Software Development python | |
im currently working on listview and i think i need help :) all i need to do is when i click the button it select the items and so on up to the last item and set back to beginning bu im my code its just up to the first … | |
I spent about an hour or so googling but no luck. I want to program for hardware(which apparently people seem to think is obsolete for some reason) however i can find no tutorials on it period i suppose i could always use Assembly but my knowledge isn't that great. Is … | |
I would like to know how is it possible to pass registers as function arguments in C. Let's say I have something like this: int main() { register a,b; a = b; register c = a; return 0; } I want to extract a = b as a new function. … Software Development c | |
hi how i can use ILMerge for making my c# program portable? you can see it's web site [here](http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx) and download it [here](http://www.microsoft.com/en-us/download/details.aspx?id=17630) thanks Software Development | |
I am a beginner with programming and I really need to resolve this problem. So, I need to implement the following class that represents this type of crowd and operations with those : class Crowd { int* element; int number; public: Crowd(int m_number, int* m_element); Crowd(Crowd&); ~Crowd(); Crowd& operator= (Crowd& … Software Development c++ | |
Hi there, I finished my program and want to sell however I learnt that its pretty easy to decompile programs. A friend is using TNTLicensing to protect his programs and said me its doing well but when i researched I saw its a new company. Did you hear this company … Software Development | |
dim x as integer dim myday as string myday = format$(now,"mm") for x = 0 to 11 image(x).picture = image(index).picture next if myday = myday then image1(index).picture= app.path & "\*.jpg" ' that's okej Now is the question when I have in app.path 12 pictures numbered from 01 to 12 How … Software Development visual-basic | |
My code is working but my only problem is that the entire program freezes while it is looping and the freeze only stops when the loop is done, is there any way to get rid of this freezing? i want to see it display from 1 to 21 but instead … Software Development vb.net |
The End.