43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for DeathEater

hey ya all.... i have a tab control in a win form app. and the tab control has 3 tabs. in every tab there is a DGV docked in a container's panel, here is the thing. up until now i used the containers click event to load data into the …

Software Development
Member Avatar for DeathEater
0
175
Member Avatar for quinnifir

Hola. so, im making a simple program right now to work on my java skillz, and just for fun in general (im pretty new to java). so, i was wondering, whats the fastest way to find the maximum number in an array of STRINGS. because i tried parsing the ints …

Software Development java
Member Avatar for quinnifir
0
129
Member Avatar for dilequeno

I am having problems using the accumulate to find the sum of all elements in a vector. Here is what I have: [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> #include <fstream> #include <istream> #include <string> #include <vector> #include <numeric> using namespace std; int main() { vector<float> energy; for(int i = 0; …

Software Development c++
Member Avatar for dilequeno
0
158
Member Avatar for dilequeno

Here is what I have so far: [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> #include <fstream> #include <istream> #include <string> #include <vector> using namespace std; class dm_energy_vec { public: vector<float> m_energy_dep; }; int main() { const int phantom_size = 50; int energy_index; vector<float> xpos; vector<float> energy; vector<float> energy_dep (0, phantom_size); vector<dm_energy_vec> …

Software Development c++
Member Avatar for dilequeno
0
102
Member Avatar for pseudorandom21

I recently stumbled upon a boost installer (which I think is awesome), here [url]http://www.boostpro.com/download/[/url] and I was wondering if there is anything similar for QT and Visual Studio 2010? On the QT Website I found this page, but no VS2010 installer. Will the 2008 one work ? [url]http://qt.nokia.com/downloads[/url] I suppose …

Software Development c++ qt visual-studio
Member Avatar for GreenDay2001
0
103
Member Avatar for reemhatim

I'm doing a small GUI program it is that I have two buttons when I press on any of the buttons it displays a dialog box saying which button I pressed .One of the buttons is a text with image displayed on it . my problem is that an exception …

Software Development gui java
Member Avatar for reemhatim
0
159
Member Avatar for awah mohamad

hey guys.. i have problem compiling this code.. i am new to c++ by the way. this is my code. [CODE]// Project.cpp : Defines the entry point for the console application. // Doodle Program #include"stdafx.h" #include<iostream> #include<conio.h> #include<random> using namespace std; int main(){ randomize(); cout<<"Doodler! Press I/J/K/M to move, Q …

Software Development c++
Member Avatar for awah mohamad
0
707
Member Avatar for kalz

Hi I am working on a personal project for a friend of mine.The requirement is to display the data fetched from a hand held device namely the product barcode and the quantity.I have followed the manufacturers guide and have flashed the device with a sample program that records the barcode …

Software Development java
Member Avatar for kalz
0
126
Member Avatar for KLIM8D

Hello everyone! I've started developing a little application for one of my friends, which he will use at work to measure his hours working + the time he has breaks. I wanna do this in python cause, I just started with this language and wanna get more fimiliar with it. …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
1K
Member Avatar for jtodd

Hey guys. I am trying to sort a list that has been populated using a random number generator. I am trying to use collections to sort the list but I am not have any luck. I have been stuck on this for a while and would greatly appreciate any help …

Software Development java
Member Avatar for jtodd
0
156
Member Avatar for sergent

Hello, I am making a program that will draw a ramps for a bike game. It does that by making many lines which form a ramp or other figures. For one of the ramps I have a small problem. In the game if something is too smooth, it will slip …

Software Development c++
Member Avatar for sergent
1
278
Member Avatar for bigdan182

I keep getting this error while trying to make my football tournament simulator, anyone know how I can solve it? or even just what it means! ------ Build started: Project: world cup sim, Configuration: Debug Win32 ------ main.obj : error LNK2019: unresolved external symbol "void __cdecl teamstructure(void)" (?teamstructure@@YAXXZ) referenced in …

Software Development c++ visual-studio
Member Avatar for bigdan182
0
160
Member Avatar for Dhanesh10

hello friends, i have two frames suppose A and B, when i open or make visible frame B from frame A by making a new object of frame B, I make invisible frame A by " [COLOR="Red"]this.setVisible(false);[/COLOR] " when i done with work in frame B, i need to close …

Software Development java
Member Avatar for Dhanesh10
0
119
Member Avatar for Marc Smets

I am rather new here and have already a good (I hope so) question. I work with an access mdb When I run the program with the following code it gives an error “Nullreference exception unhandled” “the object… is not for an example of an object…” (very free translated but …

Software Development vb.net
Member Avatar for Marc Smets
0
382
Member Avatar for arlir

Hi there Everbody, I am using Borland c++ 5.02 for my C projects but a funny thing happens at run time.Though the source code compiles minus errors, I can't get to see my output because the command prompt just appears and disappears straight away.What could be causing this?

Software Development c
Member Avatar for arlir
0
115
Member Avatar for vb2learn

Hey guyz Is this possible to get text automatically in textbox1 whenever any textbox is copied to the clipboard. I am talking to get it automaticaly. So if i copies abc then textbox1 value will be abc automatically (Not by clicking any button or form loading)

Software Development vb.net
Member Avatar for adam_k
0
2K
Member Avatar for jaejoong

How can I get all the data in dropdownlist? For specific data, I encode: Dropdownlist.selecteditem.text. But how can I get all the data? Thanks in advance.

Software Development vb.net
Member Avatar for yorro
0
100
Member Avatar for triumphost

Not sure why this moderator or admin or whatever deleted my previous thread because it wasn't anything malicious.. My problem is that getfileattribute doesn't work for me.. and my code below is just a snippet of my entire program which is below that.. Dear Mod: I think you deleted it …

Software Development c++
Member Avatar for Ancient Dragon
0
551
Member Avatar for sirlink99

I am trying to make a snake program The code I currently have looks like this [CODE] import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.*; public class SnakeG extends JPanel implements KeyListener, Runnable{ private Vector<Point> snake = new Vector<Point> (5,2); private Vector<Rectangle> snakeRectangle = new Vector<Rectangle> (5,2); public void startGraphics …

Software Development java java-swing
Member Avatar for sirlink99
0
370
Member Avatar for tiredoy

Well, I define a function gotoxy(). [CODE]void gotoxy(int x, int y) //定位到第y行的第x列 { HANDLE hOutput; COORD loc; loc.X = x; loc.Y=y; hOutput = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleCursorPosition(hOutput, loc); return; }[/CODE] However,whenever I use it.There is a flashing cursor which is ugly to see. I want to get rid of it.But I don't …

Software Development c++
Member Avatar for tiredoy
0
231
Member Avatar for Oneryavuz

Now i have some images and i have a database (MS Access) i need to convert all images to !one byte array!(couse i have 1 column for images) and i save this array. Then when i need a picture i should take some pic on this byte array. umm i …

Software Development image vb.net
Member Avatar for Oneryavuz
0
683
Member Avatar for MareoRaft

What is the easiest way to check if a vector is empty? [CODE]#include <iostream> #include <vector> using namespace std; typedef std::vector<double> Vec; typedef std::vector<Vec> Mat; int main(){ Vec v; // this is what i consider to be an "empty" v if( /*check if v is empty here*/ ) cout<< "v …

Software Development c++
Member Avatar for NathanOliver
0
140
Member Avatar for domifa621

I know this may be easy to many of you but it hasn't been so for me. I want to apply some exception handling in this simple code. My instructor skimmed over this. If I were in the world of visual studio I would have applied some isNumeric, and some …

Software Development java visual-studio
Member Avatar for domifa621
0
172
Member Avatar for HeyJoey

I've been trying to get this to work. It complies but my char array won't display anything. 'cipher2.in' contains this: 3 L E ABCDEFGHIJKLMNOPQRSTUVWXYZ Output: Cipher Code: Cipher Text: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher Key: 3 [CODE]import java.util.*; import java.io.*; public class Test2 { public static void main (String[] args) throws IOException { …

Software Development java
Member Avatar for hfx642
0
231
Member Avatar for chixm8_49

I would like to know what "Invalid Stream Header : 61646F62" means? It happens when I run my program. Thanks. :)

Software Development java
Member Avatar for chixm8_49
0
214
Member Avatar for pseudorandom21

Hi this project is actually C++/CLI but I expected more useful help from the .NET developers (most things are similar). So, I have a transparent form (completely transparent) and I want to draw a visible rectangle onto it and since I am using C++/CLI I was hoping to do it …

Software Development
0
72
Member Avatar for Boubakr

Hello, I've this lise: [CODE]lst = ['10:User1', '80:User2', '100:User3', '00:User4', '75:User4', '45:User5'][/CODE] I want to print it as: [CODE]100 User3 80 User2 75 User4 45 User5 10 User1 00 User4[/CODE] So, I want to organize them by the number.

Software Development python
Member Avatar for TrustyTony
0
143
Member Avatar for ahmed30

hello i just have started learning c++ but i have a big problem at sources .. i want to make something is unsigned then i have to change it from int3t_t to unit64_t but when i change it at player.h it says it must be changed at creature.cpp and alot …

Software Development c c# c++
Member Avatar for ahmed30
0
120
Member Avatar for NetByte

Greetings to Everyone :cool: , I just would like to know how to run/launch/start the IDLE ide of python in linux? (In windows the IDLE ide comes part of the python download, I assume its the same for linux??! or not?!) I currently have installed ubuntu linux, its already got …

Software Development ide python ubuntu
Member Avatar for snippsat
-1
1K
Member Avatar for sirlink99

I am trying to make a snake game and I am wondering how I could get an element of an vector and then use the number for the y coordinate like when using ararys lets say the x element I am using is 3 then I could type in arrayY[3] …

Software Development java
Member Avatar for mKorbel
0
133
Member Avatar for sirlink99

I am making a simple game and I cant seem to get the line to center. I would like it all to be in a column and centered. I have this line of code that is not centering [CODE] JLabel numberOfChangesLabel = new JLabel("" + totalChanges); pane.add (new JPanel ().add(numberOfChangesLabel)); …

Software Development java
Member Avatar for sirlink99
0
202
Member Avatar for hfx642

I have a few JSpinner(s) and I'm trying to change the button sizes. I know how to change the font of the SpinnerModel(s), but not the button sizes. Can someone please point me in the right direction? TIA!

Software Development gui java
Member Avatar for hfx642
1
1K
Member Avatar for sadsdw

Hi there, I need to read a file with unknown number of columns and lines. Basically, I have an ID per line (ID00005) and many columns containing 2 letters. The format is: ID00005 RR WW SS QQ TT RR UU II ID00008 WW SS QQ YY HH JJ KK LL …

Software Development c++
Member Avatar for sadsdw
0
507
Member Avatar for vomhaus

I posted this out here yesterday and received several great responses using an ArrayList. During a code review it was suggested that a use a List<Sting> for the reusultset. Any Ideas would be welcomed. Thank you for all of your responses yesterday... [code] public List<String> getAnswers() throws DAOException, SQLException{ //This …

Software Development java
Member Avatar for stultuske
0
4K
Member Avatar for oltokom

I recently started visual studio 2010.After searching in google I was able to create a .cpp program. everything is fine; I can build it and run it without getting errors.But everywhere in the internet I see when they run the program they can see a black command prompt window which …

Software Development c++ visual-studio
Member Avatar for oltokom
0
326
Member Avatar for MareoRaft

This function is returning the error "matrixOpsLibrary.h:11: error: invalid initialization of reference of type ‘const std::Vec&’ from expression of type ‘const double’" [CODE]#include <vector> #include <cmath> using namespace std; typedef std::vector<double> Vec; //Vector Vec floor( const Vec& y ){ unsigned n = y.size(); Vec bottom(n); for( unsigned e=0; e<n; ++e …

Software Development c++
Member Avatar for MareoRaft
0
195
Member Avatar for DeathEater

:confused: I'm trying to select multiple rows in a DGV and then do something with them(delete them for example) and then apply these changes to DB. and I'm using sql server express. the problem is when i load data from a table that is bound to the DGV and then …

Software Development
Member Avatar for DeathEater
0
125
Member Avatar for M.S.

Hello All This is my first post in this forum, despite my long visiting hours as a guest:D I don't have any background in programming and I'm a newbie in python too. But Learning python for S60(Python distro for Symbian Phones. anyway, I have a problem with printing from two …

Software Development python
Member Avatar for M.S.
0
538
Member Avatar for kumarmpk4u

Hi All, When my code tries to free the memory allocated by the new operator it throws a debug error while using the delete operator... [CODE] CDocum* pDocum = new CDocum(); int nResult = pDocum -> QuoteDocProd(); delete pDocum; [/CODE] Error Am getting is Debug Error! Damage after Normal Block(#298753) …

Software Development c++
Member Avatar for kumarmpk4u
0
411
Member Avatar for venomxxl

Ok, first of all, I'm not sure if this belongs to C section. Since WinAPI is written in C, I'll post here. I'm using OpenGL with Win32 windows (not sure how to call that). I can't switch to fullscreen mode after creating the window. I'm using Windows 7 (64-bits) and …

Software Development c opengl windows-api
Member Avatar for venomxxl
0
540
Member Avatar for Majestics

I have connected java with oracle and providing the facility of accessing data on the lan... I have also open a port, but still my java app over lan start very slowly after that it speed up, but at startup its very slow Y? Thank you for any suggestion

Software Development java oracle
Member Avatar for Majestics
-1
75
Member Avatar for L3gacy

Hello everyone, I have a small question about the code below, I understand just about every part of it. Except for this small snippet, could someone explain how the loop works? [CODE] while(begin != end ) //<-- I believe the stream iterator is getting input here words[*begin++]++; // <-- I …

Software Development c++
Member Avatar for mrnutty
0
324
Member Avatar for Barnifericus

Whenever I try to compile my code for this function my compiler keeps throwing projectB.c:31:15: error: conflicting types for ‘returnDegree’ projectB.c:19:17: note: previous implicit declaration of ‘returnDegree’ was here [CODE] #include <stdio.h> #include<math.h> int main(){ double sanantonioLat; sanantonioLat = returnDegree(29.0,25.0,51.0); printf("blah %f\n" , sanantonioLat); return 0; } static double returnDegree(double …

Software Development algorithm c
Member Avatar for Barnifericus
0
140
Member Avatar for rscoville

I am trying to read through a table and for each row execute a few lines of code. (The lines of code are taking an data type integer column which contains a time HHMM and a data type datetime column which contains a date. The code combines the time into …

Software Development dataset vb.net
Member Avatar for rscoville
0
151
Member Avatar for rEhSi_123

Hi Guys need a bit of help! Basically I have a parent table called users which stores all the user info with a prime key field called ID. Now in the child table which has a seperate foreign key associated with the ID field in the parent table. What I …

Software Development dataset vb.net
Member Avatar for adam_k
0
2K
Member Avatar for nsyncpilu

Hy again , I have another problem now , I have an application with a jTabel , you can double click a cell and you can change the value that is inside it , after you changed the value inside the cell and hit enter the value i enterd remains …

Software Development java
Member Avatar for nsyncpilu
0
1K
Member Avatar for xxlt3xx

Hi, I'm stuck... I'm writing a program that creates a data file then populates the file with 500 random integers both positive and negative. The problem I'm having is reading the integers from the file and storing them into three arrays for processing neg[],posEven[],and posOdd[]. I really just need a …

Software Development c++ file-system
Member Avatar for xxlt3xx
0
172
Member Avatar for MareoRaft

What happens when you set an int or double value to less than the minimum? I need my program to recognize when a number is smaller then the minimum, and then set the value to equal the minimum instead. This behavior is not the default... [CODE]#include <iostream> using namespace std; …

Software Development c++
Member Avatar for mrnutty
0
136
Member Avatar for Pro2000

Hello everybody.. I've been thinking what the best programming language to be used with the internet is.. In addition I want not to use ASP 'cause my web server works on Linux. Is C# better than ASP.net to download files automatically from the internet, update and retrieve information from databases …

Software Development c# web-server
Member Avatar for Pro2000
0
308
Member Avatar for libathos

hi, i want to compile a file through the makefile command.Once i type make example it says that it is up to date but when i try to run it (correct me if I'm wrong ./example) it says that permission was denied..does anybody have any clue about that?

Software Development c
Member Avatar for libathos
0
127

The End.