132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DOT6

Hello, I am creating a card game and need some advice/pointers or code snipets if possible on sprite movement in the sence I need to create an action of a card been drawn from the deck. Basicly I need to make the sprite(card) move from the deck posion(x,y) to the …

Software Development c gaming
Member Avatar for DOT6
0
274
Member Avatar for profyou

Does a thread gives up monitor lock when Thread.sleep() is called?

Software Development java
Member Avatar for canwilf
0
88
Member Avatar for radiata

Hello, my programming project requires me to write an overloaded function max that takes two or three parameters and returns the largest of them. I'm having trouble with the program outputting the largest number, with my code below it just says the largest number is 0 no matter what numbers …

Software Development c++
Member Avatar for Nick Evan
0
206
Member Avatar for cerezo_mark

Hi i am a College Student and has a thesis of Face Recognition, this thesis was great and i want to have an experience building this thesis. But the problem is i don't know where to start. I have already studied some of structure approach of this thesis and apparently …

Software Development c# visual-studio
Member Avatar for cerezo_mark
0
280
Member Avatar for androidz

hi guys its me again wanted to learn something new about how to use winsock.i am making a program that would detect the computer if its turn on through ip address that is connected on lan..anyone can help me or suggest something that i could learn?hoping for your replies guys..s:)

Software Development visual-basic
Member Avatar for debasisdas
0
176
Member Avatar for vergil1983

Good day to all of you. I'm looking for advice for my code below. My code was intend to print out a set of asterisk base on the rows and columns in my array(cinema[20][23]). The code works fine and i was trying to print out numbers (which is from 1 …

Software Development c++
Member Avatar for zomgser
0
229
Member Avatar for sha11e

* How does stringstream work? Someone kind of explained it like, in cout it sends it to "standard out stream" or something, and using stringstream, you stream it into that instead. [CODE]stringstream a; int b=12; a << b;[/CODE] * How can it convert characters into int and such? [CODE] char …

Software Development c++
Member Avatar for Narue
0
304
Member Avatar for stevanity

I have been tasked with building an application that maintains a simple Student DB to store and process marks of students of 5 departments with 4 batches of students in each dept. I first thought of developing a UI-dataAccess style application. But Was unable to process because of various complexities …

Software Development api daniweb-api java oop
Member Avatar for stevanity
0
105
Member Avatar for rEhSi_123

Hi Guys need your help on this :( Basically I am developing a web crawler so once the html source is converted to plaintext in a textbox, i intent to save it in dB. But the dB seems to be having trouble excepting some characters into the table and throwing …

Software Development html-css open-source sql vb.net
Member Avatar for rEhSi_123
0
220
Member Avatar for KKR_WE_RULE

I've made a library for Delphi to work with matrices. Everything in the library works perfectly as intended save the Matrix Inversion Procedure. I've used the Gauss-Jordan method of Matrix Inversion & everything works excellent for square matrices upto 7x7. From 8x8 onwards, I get a 'Invalid Floating Point' Error …

Software Development delphi matrix-multiplication pascal
Member Avatar for Mikav6
0
502
Member Avatar for Luckychap

[CODE=c++] #include <QtGui> class MaskedLabel : public QLabel { protected: void resizeEvent(QResizeEvent* event) { QLabel::resizeEvent(event); QPixmap pixmap(size()); pixmap.fill(Qt::transparent); QPainter::setRedirected(this, &pixmap); QPaintEvent pe(rect()); paintEvent(&pe); QPainter::restoreRedirected(this); setMask(pixmap.mask()); } }; int main(int argc, char* argv[]) { QApplication a(argc, argv); QLabel* label = new MaskedLabel(); label->setText("Qt Centre!"); QFont font = label->font(); font.setPointSize(72); label->setFont(font); label->show(); …

Software Development c++ qt
0
100
Member Avatar for mrar85

Hello, am a newbie in c#.. i have a question, how do you use read data from file and use it? my data file is something like this: Name amount1 amount2 [CODE]johen 1234 231411[/CODE] i have this code so far: [CODE]using System; using System.Data; using System.IO; class Class1 { static …

Software Development c c# c++
Member Avatar for mrar85
0
344
Member Avatar for ztdep

Dear friends: I run my C++ programm in opensuse linux, after it sucessfully run, the system give me the following feedback.Could you please tell me what wrong with my program. [CODE]*** glibc detected *** ./flowingheat: double free or corruption (!prev): 0x00000000007e28b0 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x733b6)[0x7f9b6dc2c3b6] /lib64/libc.so.6(cfree+0x6c)[0x7f9b6dc312dc] ./flowingheat[0x411cde] ./flowingheat[0x40e9fe] ./flowingheat[0x40af3b] …

Software Development c++
Member Avatar for Caligulaminus
0
142
Member Avatar for luckyismb

Hello I am going to use datagridview checkbox column to check the desired records to insert into sql server database.how it is possible?

Software Development c#
Member Avatar for Mitja Bonca
0
113
Member Avatar for ztdep

Dear friends: I have a txt file to read. I only need the number of ELEMENTS and the ENTITIY NAME. which function should i use to read in these two values. Regards [CODE]GROUP: 2 ELEMENTS: 4 NODES: 2 GEOMETRY: 0 TYPE: 0 ENTITY NAME: WALL_LEFT 33 16 10 34 20 …

Software Development c++
Member Avatar for mrar85
0
95
Member Avatar for vnsatishch

hi, this is satish,I have faced problem to update the gridview with template columns without using sql datasource.So please send me the code with events for updating gridview with teplate columns including one dropdownlist inatead of textbox without using sql data source. i hope you will understand my question, please …

Software Development sql
Member Avatar for M.Kiruba
0
150
Member Avatar for ejazmusavi

I m trying to connect an sql express database over lan. my connection string is as below. Data Source=Mr-4f04a26307ff\sqlexpress; AttachDBFilename=F:\\Projects\\MyProj\\FirstProj\\bin\\Debug\\Database\\MyDB.mdf;Integrated Security=ture; User Instance=true; but unable to connect and throw this exception Login Failed for user 'Mr-4f04a26307ff\Guest' What is the problem with this and what is the solution. thnx

Software Development sql
Member Avatar for k.d.m
0
141
Member Avatar for apanimesh061

Please tell me what r interfaces ..... I tried to understand them myself but could not !!!??? Please help !

Software Development
Member Avatar for k.d.m
0
108
Member Avatar for strmstn

Hello, I have been struggling with this for hours now. Is there any way to completely remove the icon that is displayed in the upper left corner of a window in WPF, without setting the window style to ToolWindow? I have tried loading user32 and setting various WinAPI-styles with no …

Software Development asp.net assembly windows-api
Member Avatar for k.d.m
0
1K
Member Avatar for jazz_vill

I'm trying to populate our database using some curl command like curl --user username:password [url]https://somewebsite.com[/url] curl - d "name=New User Name&address=New User Address" [url]https://somewebsite.com/api/add/new[/url] The instructions that they gave to me uses curl but I want to do it in Java so I decided to use HttpClient here's my code …

Software Development api java json
Member Avatar for jazz_vill
0
270
Member Avatar for visual28

Looking for a good manual on c++. Anyone know where i can get one? Thanks Jeffrey Revell Reade

Software Development c++
Member Avatar for JasonHippy
0
85
Member Avatar for luckyismb

Hello i load my data in datagrid and from here i want to update all that data(records),is it possible?

Software Development
Member Avatar for ChrisHunter
0
44
Member Avatar for Netcode

I have written the following code in a class as my connection string. I want to retrive data from a field in a table in my database using this connecyion string. Please how do i go about it? [CODE]Public Class ConnectionString Public Shared Function ConnSQL() As SqlConnection Dim connectionString As …

Software Development open-source vb.net
Member Avatar for Netcode
0
658
Member Avatar for byrosport

[CODE]// name-printer.cpp : Defines the entry point for the console application. // #include <stdlib.h> #include <iostream> #include <iomanip> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main () { string inputNameString; //the Name string that is entered by the user string names[3]; // A string array that will …

Software Development c c# c++ printer
Member Avatar for WaltP
0
199
Member Avatar for insanity99

Hello... I already know how to connect the Drive to Directory but I don't know how to connect File to Image can someone teach me how to connect the File to Image?? Pls......

Software Development image visual-basic
Member Avatar for debasisdas
0
70
Member Avatar for wan28

I am developing a windows phone application using VB.NET Can anyone suggest me of which database to use as MySQL is said to hang on a mobile device...

Software Development vb.net
Member Avatar for brettg
0
92
Member Avatar for ztdep

Dear friends: I get different resutls when copy my code from windows to linux system. the string comparion " if( keyword==Key[0] ) " is true in window system, but it is false in linux system. I am really confused about this.I copy the same source code and the same input …

Software Development c++ open-source suse
Member Avatar for mrnutty
0
241
Member Avatar for WildBamaBoy

Here's my dilema. My client program is going to request a certain file from my server program, so the server program needs to send the size of the file it requests and then the file itself by using a Socket all in one go. My client will then read the …

Software Development client-server file-system
Member Avatar for WildBamaBoy
0
409
Member Avatar for D33wakar

I'm trying to convert hexadecimal values to Binary. I've done Decimal values to Binary up to 32 bits in this way: [CODE] #include <stdio.h> int showbits(int);/**************function*prototype******************************/ int main() { unsigned int num; printf("enter the number."); scanf("%d",&num); printf("%d in binary is ",num); printf("\n"); showbits(num);/*********************function*call********************************/ return 0; } showbits (int n)/******************function*definition****************************/ //* …

Software Development c
Member Avatar for D33wakar
0
407
Member Avatar for churva_churva

how to trap? for example in my textfield i don't want my textfield to accept double data type only integer is accepted..i don't have any idea how to do it.. can someone here give me a clue...please a sample code.

Software Development visual-basic
Member Avatar for ChrisPadgham
0
176
Member Avatar for kezkez

Wondering what the proper way to test a collection, that is not an [I]ICollection[/I], is since Assert.Contains(object, [I]ICollection[/I]) cannot be used for something like a constructed PriorityQueue? [CODE] [Test] public void AddTest() { PriorityQueue<Vertex> vertexQueue1 = new PriorityQueue<Vertex>(); Vertex v1 = new Vertex("V"); v1.minDistance = 10; vertexQueue.add(v1.minDistance, v1); Assert.Contains(v1, [I]vertexQueue1[/I]); …

Software Development
Member Avatar for kezkez
0
113
Member Avatar for Reverend Jim

I have two forms that are called by the main form. One is named frmEdit, and is invoked by the ShowDialog (modal) method. The other is named frmSearch and is invoked by the Show (non modal) method. In both cases I want to preserve the last window position so each …

Software Development vb.net
Member Avatar for Reverend Jim
0
164
Member Avatar for fashxfreak

[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int num, unit, ten; Console.Write("\t\t\t** Developed by : GE ** \n\n "); Console.Write("Enter number here in range 0-50 : "); num = Convert.ToInt16(Console.ReadLine()); unit = num % 10; ten = num …

Software Development c#
Member Avatar for thines01
0
526
Member Avatar for sha11e

I found a page saying that int a = 12; and int a (12); do the same thing. But is there something special with the int a (12); way of initializing a variables? Like, you can do: string test(5, '-'); which would make test = ----- I couldn't seem to …

Software Development c++
Member Avatar for Narue
0
102
Member Avatar for cozmo87

Hi everyone, I'm writing a program that reads numbers from a text file, stores them in a table, does calculations on the numbers and displays the result in a jTable. The scanner reads the numbers as doubles and stores them in an ArrayList. My tablemodel is very similar to the …

Software Development java java-swing
Member Avatar for Zetlin
0
175
Member Avatar for baby_c

Hey dear Friends... I'm developing a code for an assignment given that find a solution for a modified Dining philosophers problem.. For that problem I had to create four classes. [ICODE]Philosopher[/ICODE] , [ICODE]chopStick[/ICODE] , [ICODE]samllBowl [/ICODE] and [ICODE]bigBowl[/ICODE].. I implemented the class [ICODE]philosopher[/ICODE] as Runnable.. And the problem is this.. …

Software Development java
Member Avatar for baby_c
0
169
Member Avatar for murnesty

let say i have a class A (base) class B , C, D also inherit A [ multiple ] then class E inherit class B, C, D... But class E also want to inherit class A [ multilevel ] *I want to use class A protected function in class E... …

Software Development c++
Member Avatar for Ancient Dragon
0
122
Member Avatar for debasishgang7

Hi all, I am trying to calculate checksum of some data using python. I am putting a sample ICMP header here and the correct checksum of that packet(Got this by sniffing network with wireshark) [B]DATA is "08 00 69 eb 8e 13 00 01" And the correct checksum is "0xa9eb". …

Software Development python
Member Avatar for debasishgang7
0
451
Member Avatar for syria718

[CODE]char main()/*Start of the function main???*/ { char choice1; char choices = 'y'; while(choices == 'y' && choices != 'n'){/*while loop initialization*/ print(); getchar(); scanf("%c",&choice1); printf("%c",choice1); switch(choice1){/*Switch case statement,,,*/ case 'a': case 'A': addContact(); break; case 'f': case 'F': search(contacts); break; case 'v': case 'V': list(); break; case 'e': case …

Software Development c
Member Avatar for Narue
0
277
Member Avatar for tbanisida
Member Avatar for k.d.m
0
374
Member Avatar for cerezo_mark

i already finished my app and now i deployed it using Setup Wizard. But when i installed my app to my computer, the Crystal Report didn't work.... it says "Load Report Failed"... and when i red about this Merge Module thing i want to figure it out but the problem …

Software Development
Member Avatar for cerezo_mark
0
203
Member Avatar for jas2010

hi all friends I wanna check if presses keys shift and tab then focus will go to the textbox that i want.

Software Development
Member Avatar for prasan7
0
91
Member Avatar for toadzky

I'm trying to write out a series of objects as an XML file so they can be read in later. I have all the code to build the XML tree and set all the attributes, etc. I've looked through the whole tree in VS so I know all of my …

Software Development xml
Member Avatar for toadzky
0
227
Member Avatar for sirlink99

I am attempting to make a chatroom as my first program that communicates between computers. I am having trouble setting up the Server Socket Though. My program stops when it tries to set up. Here are my variables [CODE] private JTextField textArea; private ServerSocket servSock; private Socket sock; private BufferedReader …

Software Development java
Member Avatar for NormR1
0
222
Member Avatar for TheProgramer

i need the snake not to pass by the walls...can anyone help me? here is the progam.cs [CODE]using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace TikTak { class TestCon { [DllImport("msvcrt")] static extern int _getch(); static void Main() { ConsoleHelper ch = new ConsoleHelper(); char move; short x = …

Software Development
Member Avatar for pseudorandom21
0
170
Member Avatar for stevanity

Im not asking for home work help .I need a guide.. My teacher gave a huge project work for me. I have to develop an application that maintains basic info about all students in my college (every department and IV batches in each department). And I need to maintain their …

Software Development java java-swing
Member Avatar for stevanity
0
384
Member Avatar for zack_falcon

I'm working on a game version of Game of the Generals (board game). Basically, it plays like checkers, but I wanted to add multiplayer functionality, with an additional chat function. A player starts a server, another player on another PC (in the same network) starts a client, client connects to …

Software Development client-server windows-vista
Member Avatar for zack_falcon
0
183
Member Avatar for Majestics

How to open already present text file... So user can see the data in that file... I dont mean FileInput or OutputStream open.

Software Development java
Member Avatar for peter_budo
0
88
Member Avatar for dennysimon

hello all how to count numbar of mysql tables programmatically (c#) thank you

Software Development
Member Avatar for dennysimon
0
62
Member Avatar for Chamath

Please tell me a good IDE to develop C programs.

Software Development c ide
Member Avatar for Chamath
0
157

The End.