43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jmurph333

I am creating a simple program where a character (Picture Box) is moved using the arrow keys through adjusting the x and y. I have figured out how to detect key presses and adjust the x and y, but I cannot figure out how to redraw the picture box so …

Software Development
Member Avatar for ChrisHunter
0
103
Member Avatar for Mr.BunyRabit

Hey there I have a project im working on in netbeans6.9.1 I was having problems with all the bugs in that version so i went over to 7 But now all my generated code has a bug in wich messes up EVERYTING. is there something im missing? this is the …

Software Development java
Member Avatar for Mr.BunyRabit
0
157
Member Avatar for shandoosheri

Hi i need to get all running application not process and then list it in a listview Thank you but by the way can any one tell me how can i do an action to the selected element of a listview on buttonclick thank you all again this will help …

Software Development listview
Member Avatar for thines01
0
286
Member Avatar for Cupidvogel

Hi, I want to iterate over a list, printing each item and subsequently deleting it, so that at the end, the list is empty, while all the numbers are printed out. I have tried two tactics (to me the logic for both is the same, just checked to spot the …

Software Development python
Member Avatar for Cupidvogel
0
88
Member Avatar for Alicito

I am trying to Build a JAR File of Interface Classes I am using Linux and working throughout the terminal I keep getting this error Syntax error , type parameters are only available if source level is 1.5 I searched many sites and most solutions were about java on windows …

Software Development java
Member Avatar for Alicito
0
258
Member Avatar for ariez88

Hello, Any help will be much appreciated. I have created a page tht will show search results on a datalist. this page was running perfectly before the addition of following lines in the page Load and BtnSearch_Click respectively. if (Request.QueryString["query"] != null) { string searchParam = Request.QueryString["query"].ToString(); BindList(searchParam); } .................................... …

Software Development dataset
Member Avatar for ariez88
0
224
Member Avatar for DigitalPackrat

I have been assigned to write a program to print the calendar of a given year. Its almost complete, but, I haven't yet found a proper algorithm to find the first day of the year which is required by the function to print the calendar year. Will provide the code …

Software Development algorithm c++
Member Avatar for bbman
0
901
Member Avatar for Despairy

Hi i would like to build a c++ game with SFML graphic library now i see sprites can move using floats ( sprite.move(+x,+y) ) how do i connect between the graph ( configured by a matrix ) and the graphic library? since the graphic library uses floats and set positions …

Software Development c c# c++
Member Avatar for Despairy
0
528
Member Avatar for aishapot

Hello again! So now i can save the picture in the database, now i have to retrieve it. this is my code for the saving of the picture, [CODE]Dim ms As New MemoryStream() studentpic.Image.Save(ms, studentpic.Image.RawFormat) Dim arrImage() As Byte = ms.GetBuffer ms.Close() Dim strFilename As String = lblfilePath.Text.Substring(lblfilePath.Text.LastIndexOf("\")) Dim cnn …

Software Development mssql vb.net visual-basic
Member Avatar for prathapsv3
0
3K
Member Avatar for SaimaAsif

Error: Debug Assertion failed: Expression: BLOCK_TYPE_IS_VALID(pHead->nBlockUse) Code: #include "stdafx.h" #include<iostream> #include<stdlib.h> #using <System.dll> #include< math.h> #include< time.h> #include<List> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; int someSize=2000; # define SIZE 20 class queue { int aMsg[SIZE]; int front; int rear; public: queue(); ~queue(); void insertMessage(int i); int removeMessage(); …

Software Development c++ queue
Member Avatar for thines01
0
250
Member Avatar for chrisname

[COLOR="Green"][b]I reworked my code into a way that was simpler.[/b][/COLOR] [COLOR="Red"]I have a URL in the following format: "http://sub.domain.tld/path/to/page" I need to extract 'path' and 'page' and discard the rest of the URL. I know about the [ICODE]System.Uri[/ICODE] class and with [ICODE]Uri.AbsolutePath[/ICODE] I can get "/path/to/page/". I need a way …

Software Development
0
155
Member Avatar for paranoidSandra

I'm trying to create 10 files with random names and random data. Each line in the file consists of two integers and represents one "record". Naming the files and generating random data didn't turn out very difficult. But for some reason I fail to recognize, while I create 100 records …

Software Development file-system java
Member Avatar for paranoidSandra
0
155
Member Avatar for discovery-power

Hi All, I always have trouble with this every time I create a desktop app which needs to update data from a database. So, I have created and coded my form to load data into a data grid view control, I can add data to the data grid view and …

Software Development dataset vb.net
Member Avatar for discovery-power
0
122
Member Avatar for enterpise

i'm a beginner for coding at java . net now i got a problem with input the port plz see the code [CODE]package test; import java.net.*; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class UDPCliet { final int buffSize = 10001;//buff size final int TIMEOUT = 3000; final …

Software Development client-server java tcp-udp
Member Avatar for enterpise
0
176
Member Avatar for Majestics

I have using following code over jdk 6.0 but after first round it doesnt work .... [code] if(table.getRowCount() -1 == table.getSelectedRow()) table.editCellValues(0,columnno); else table.editCellValues(table.getSelectedRow(),columnno); [/code] These lines are in mouse clicked method... Problem is when it reaches to end, and when fw button is pressed it jumps to another column.... …

Software Development java
Member Avatar for Majestics
0
230
Member Avatar for GBignell

Hi, can anyone advise how to make a button run code only while it is pressed? Basically I have found this code on the Net for changing the system volume, but you have to keep clicking on the buttons to change the volume. I want to be able to hold …

Software Development vb.net
Member Avatar for GBignell
0
185
Member Avatar for HacruLeian

hello, i want to get some guidance from the reader who read my post. I'm doing a game called deal or no deal using c++ and i can't think of other way to print the box's number instead of printing the value inside. what i want to do is, user …

Software Development c++
Member Avatar for LRRR
0
2K
Member Avatar for c_learner

Dear All, I'm new to C, and would appreciate your help about the below code. The purpose of the program is to multiply the elements of the array and print the result. The user enters the value for how many elements he wants to have multiplied, and then the function …

Software Development c mathematics
Member Avatar for c_learner
0
2K
Member Avatar for guccimane

[CODE]#include <iostream> #include <string> using namespace std; class shapes { protected: int width; int height; public: shapes() { width=0; height=0; } ~shapes() { } void getWidth() { cout<<"What is the width"<<endl; cin>>width; } void getHeight() { cout<<"What is the height"<<endl; cin>>height; } }; class rectangle:public shapes { public: void area() …

Software Development c++
Member Avatar for LRRR
0
103
Member Avatar for myk45

Hello everyone, I came across the following in a book: [CODE]Keyword typename The keyword typename was introduced to specify that the identifier that follows is a type. Consider the following example: template <class T> Class MyClass { typename T:: SubType * ptr; ... }; Here, typename is used to clarify …

Software Development c++
Member Avatar for myk45
0
100
Member Avatar for triumphost

How do interpreters do it? I've seen bots for games that encrypt files then decrypt them at runtime and run what's in them.. Well How? How can I do this in C++? I plan to do this in another language but I decided to ask in C++ section because this …

Software Development c++
Member Avatar for VernonDozier
0
172
Member Avatar for coding101

How do strings work? In C we must declare the size of a char array to represent a "string". But in java we do not allocate memory for the size of a string. So how does the string work? Is there a pre deterimed size assigned to strings from the …

Software Development java
Member Avatar for dheaven
0
238
Member Avatar for shandoosheri

Hi I have a folder containing a lot of shortcuts so i need to check if the shortcuts paths exist Thank you

Software Development
Member Avatar for thines01
0
183
Member Avatar for annonymous21

I have been working on this for some time and need some help. I have posted to another forum with no results. I figured i would try here and see if i can get some real help. I am trying to populate an array with the contents of a file …

Software Development c
Member Avatar for annonymous21
0
329
Member Avatar for Bladtman242

As part of our exam project we need to write a GUI in java, the problem is that the structure has got us stumped. I'm not asking you to do our work, but if someone could nod us of in the right direction it would really be appreciated. We want …

Software Development data-structure gui java java-swing
Member Avatar for Bladtman242
0
204
Member Avatar for Karlwakim

Hi everybody, I have a crazy problem with a basic calculator. [CODE]#include <iostream> using namespace std; main (){ int num; int y; int ans; cin >> num; for (int x = 0;x < num;++x){ cin >> y; ans += y; cout << ans << endl; } } [/CODE] it take …

Software Development c++
Member Avatar for Karlwakim
0
135
Member Avatar for Cenchrus

I'm typing the code: [CODE] import cmath import math print r"pow(2,3) returns 2^3 pow(2,3,1) returns 2^3 modulo 1" pow(2,3) pow(2,3,1) [/CODE] and I'm getting this error: File "sample2.py", line 26 print r"pow(2,3) returns 2^3 pow(2,3,1) returns 2^3 modulo 1" pow(2,3) pow(2,3,1) ^ SyntaxError: invalid syntax Why is this invalid syntax?

Software Development python
Member Avatar for woooee
0
887
Member Avatar for aproxx

Hi everyone! I'm experiencing some trouble with a fairly simple problem I guess. First of all, I'm not a real expert when it comes to java, but I would like to learn it mostly by self study. And I'm sorry for the lots of code, but I can't really specify …

Software Development java java-swing
Member Avatar for aproxx
0
154
Member Avatar for auwi987

hi guys i have existing column in datagridview sample column name (Student ID, Last Name) now i have mysql table column name sample(STUD_ID,LNAME) STUD_ID = int Type, LNAME= varchar Type. i used these code to display mysql table in datagridview if their is no Existing column [CODE] void dlist(string sqlQry, …

Software Development dataset
Member Avatar for M.Waqas Aslam
0
127
Member Avatar for Despairy

Hi, i have a client which reads from the socket: [CODE] for (index=0;index<SCALERS;index++) { read(my_socket,vectorScalerPointer,BUFLEN); read(my_socket,resultScalerPointer,BUFLEN); sum+= atoi(vectorScaler)*atoi(resultScaler); }[/CODE] and a server program which writes to it. [CODE] for (index=0;index<SCALERS;index++) { sprintf(ascii,"%d",(*matrixStruct)._vector[0][index]); write(fd,ascii,BUFLEN); sprintf(ascii,"%d",(*matrixStruct)._mat[atoi(whichRow)][index]); write(fd,ascii,BUFLEN); }[/CODE] now the problem is the programs are in a "race condition" usualy the server …

Software Development c c# c++ client-server
Member Avatar for Despairy
0
173
Member Avatar for Ashenvale

Hi guys I have a bit of a problem here about the alignment no what I try it always end up like that, the 2nd-3rd row course and sexcode column is what I want to fix >.< package studlist; here's my code: public class StudList { public static void main(String[] …

Software Development java
Member Avatar for JeffGrigg
0
130
Member Avatar for anita_86

Hi again!And happy new year to all.Just got to attained an interview and was asked about some c questions.Would like to know what does these lines means?Can anyone tell me? [CODE]int main() { int k=printf("Hello"); return 0; exit(10); } [/CODE] I got answeres like [QUOTE]You're outputting "Hello" on the screen …

Software Development c
Member Avatar for anita_86
0
161
Member Avatar for stevanity

I wanna know what type of parser is used in the gcc and turbo c++ compilers. whether a top-down or bottom-up parser is used..... ?

Software Development c++
Member Avatar for stevanity
0
871
Member Avatar for stevanity

I wanna know what type of parser is used in the javac compiler. whether a top-down or bottom-up parser is used..... ?

Software Development java
Member Avatar for stevanity
0
215
Member Avatar for hamby

Hi guys, I'm writing a weasel program and needed a random character generator, I used a random number generator to give an ascii code for each character, and made a sequence of them, then I realized I needed to include the "space" symbol, but upon inclusion of the new code …

Software Development c++
Member Avatar for hamby
0
191
Member Avatar for khajvah

Hello people I heard, that c++ is more powerful than c and i want to learn one of them. I want to know if it is better idea to start with C or with C++ without learning C. I know a bit of C# (i can make some basic games …

Software Development c c# c++
Member Avatar for zeroliken
0
256
Member Avatar for KingAudio

Hello. I need some help with variable types. I am currently an 11th grader taking my first Computer science class. I am learning C++ and I would like to know how I can make 10/3 3.33 rather than 3 in C++. For example, a member on the forums updated my …

Software Development c++ data-science
Member Avatar for richieking
0
136
Member Avatar for Mr.BunyRabit

Im writing a java system for some one, and no contract has been established so far. Im just wondering, if i dont sign any contract, to whom does the source code of my project belong to? Is it mine? do i sell it to him? does he just get it? …

Software Development java
Member Avatar for hfx642
0
181
Member Avatar for daviddoria

I read that using a policy class for a function that will be called in a tight loop is much faster than using a polymorphic function. However, I setup this demo and the timing indicates that it is exactly the opposite!? The policy version takes between 2-3x longer than the …

Software Development c++
Member Avatar for mike_2000_17
0
84
Member Avatar for Karlwakim

hi everybody, the double type is 8B, right ? So if i use this code : [CODE]double pear[500000000];[/CODE] it will use 4GB of Ram ? or there's a limit for arrays ? thanks

Software Development c++
Member Avatar for LRRR
0
81
Member Avatar for khajvah

Hello people. I learning phyton and have a problem. [CODE]def Cel2Fah(temp): Fahren = str((9.0/5.0)*temp+32); return Fahren;[/CODE] I was asked to write a function which converts celsius to fahrenheit([url]http://www.pyschools.com/quiz/view_question/s2-q5[/url]). It says: "Return a string of 2 decimal places", but i dont know how to.

Software Development python
Member Avatar for telmo96
-1
111
Member Avatar for PoovenM

Greetings! I have a win32 native dll (perhaps that's not the correct term - it's basically a C compiled dll) that I'm accessing in C#. The method signature of the C code (not the actual signature in the dll): [code=C++] char* TestMethod() [/code] I'd like to access the [B]char*[/B] as …

Software Development c#
Member Avatar for gusano79
0
639
Member Avatar for Mr.BunyRabit

Im reaaly starting to hate netbeans... its like it changes my code for me!!! I use java mail to send emails. Now i got it to work a few days ago. already imported the api, and what have you (images attached). And i was able to send emails, and today …

Software Development api java java-netbeans
Member Avatar for Mr.BunyRabit
0
1K
Member Avatar for roottybrian

Am trying to restore a MySQL database using the 'mysql -u root db < my_db' command. In vb's process.start. it gives me the default output you get when you type MySQL - help. Can someone tell me what's up. I guess it cannot see the < symbol. Regards.

Software Development mysql vb.net visual-basic
Member Avatar for roottybrian
0
116
Member Avatar for Morley93

Hi again all. Having continued with my project I have managed to finish my [I]Board()[/I] which is where my main game occurs. I have also created a main menu which is instantiated from my [I]main()[/I] method and appears as soon as the program is run. My current problem is invoking …

Software Development java
Member Avatar for Morley93
0
113
Member Avatar for PoovenM

Hi there, I'm trying to access a resource only dll (compiled with the [i]/NOENTRY[/i] linker option) within C#. The dll file was created using a rc file that contains a [b]STRINGTABLE[/b]. I used [b]CComBSTR[/b] to load the string resource from the dll in C++; I'm not sure how to do …

Software Development c# c++
Member Avatar for thines01
0
190
Member Avatar for ahoysailor

Hi all, I've been trying to find part of a string in a vector. The problem being that I can only get it to work if I enter the entire string, but I need it so that I only search for the first part of the string in the vector. …

Software Development c++
Member Avatar for Clinton Portis
0
181
Member Avatar for Lillylionhert

I am working on a Priority Based Scheduler which reads the process in from a file. I have it reading from file and printing to the screen. I'm trying to use strtok to tokenize a line from the process test file and store it in three different arrays. The layout …

Software Development c
Member Avatar for Lillylionhert
0
5K
Member Avatar for kyriacos1986

I am trying to create a countdown timer using the javax.swing.Timer class. In order to display it I am only allowed to use javax.swing.JFrame and javax.swing.TextField classes. Well my Timer works as I expected. But I have trouble when I am trying to display it in the JFrame. It appears …

Software Development display java java-swing
Member Avatar for JamesCherrill
0
839
Member Avatar for autorunman22

hello guys, ive been searching for ages on how to disconnect a client whether the request is from client or server but i cant find one. I thought the Naming.unbind() would do the trick but its not. anyway, this is my server code since I want to have my server …

Software Development client-server java
Member Avatar for autorunman22
0
1K

The End.