132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sanghai45

I am making a blackjack game in cocos2d-x here is the following code of the same where I am getting crash but can not understant why this is happening whats going wrong ? I tried several things thinking that crash might be because of string memory leak or something CCSprite* …

Software Development c++
Member Avatar for dx9_programmer
0
167
Member Avatar for Dman01

Hey daniweb, I stumbled upon an issue I can't solve myself. Here is the code : #include <sstream> #include <iostream> template <class T> inline T htot(std::string str) { T x; std::stringstream ss; ss << std::hex << str; ss >> x; return x; } int main() { int x = htot("0x0F"); …

Software Development c++
Member Avatar for Dman01
0
199
Member Avatar for Poojaaa

I am working in sql2000 database as backend and Vb6 as frontend. Its for bank scenario I am trying to display the balance corresponding to particular account number. Do try to help. Following is my code. ************************************* Private Sub Command1_Click() Dim con1 As New ADODB.Connection Dim cmd1 As New ADODB.Command …

Software Development open-source visual-basic
Member Avatar for AndreRet
0
106
Member Avatar for jontennyeah

i have a listview with subitems namely NAME Age and Position. The positions are Driver, Conductor and Inspector. I have 3 textbox namely CountD, CountC, CountI. What i want is if i Click the Name in the listview where the position is driver, the CountD.text will display 1 and if …

Software Development listview vb.net
Member Avatar for Begginnerdev
0
812
Member Avatar for waleed.makarem

Dear Experts, I have a situation , I am sure about the best approach for it. I have a database application that is designed to handle both SQLServer database and Oleddb "Access mdb" database. the issue is that during application start up , the application detects the configuration file and …

Software Development
Member Avatar for waleed.makarem
0
163
Member Avatar for vaishvik.nakhashi

I dont know what goes wrong in this code... Help me here I simply want to save the initial and final positions after dragging the mouse... #include"iostream" #include<glut.h> class point1 { public: point1() { x=0; y=0; } int x; int y; }p[2]; int flag=0; void processMouse(int button, int state, int …

Software Development c++ opengl pc-peripheral
Member Avatar for vaishvik.nakhashi
0
2K
Member Avatar for codechrysalis

Ok so this is my code so far: I have a issue where near the end in the getSum() method I need a way for the all the methods that i have that ask for the user input need to go into the respective arrays that i made in the …

Software Development java linked-list
Member Avatar for NormR1
0
213
Member Avatar for angel06

Hello! I'm currently working with my monitoring system now, is there a code to append records from table 1 to table 2? Please help me guys! Thanks.

Software Development visual-basic
Member Avatar for BitBlt
0
237
Member Avatar for cih1091

Hi guys, I am trying to write a program that takes in a file, which has the last name first name and grade of a student. I then need to sort the grades from highest score to lowest with the corresponding names and then calculate the average grade. I have …

Software Development c file-system
Member Avatar for WaltP
0
116
Member Avatar for jontennyeah

I have a 1 datagridview in form1 with columns namely ID,Name_, Address, Birthday, Age, Gender,Status, Position, Driver License , Attendance, and password. The position is a combobox where the items are Driver, Conductor and Inspector. In form2 i have 3 listview namely Ldrive, Lcon, Lins. The problem is this , …

Software Development listview vb.net
Member Avatar for jontennyeah
0
161
Member Avatar for mashitah

How to write a program use pointer on array that needs eleven numbers, compute their average and find out how many numbers are below the average?.

Software Development c++
Member Avatar for np complete
0
133
Member Avatar for Mounica Chirva

Hello everybody, I'm a beginner in the world of game programming. I'm working on Pacman project in C/C++. I want to know if any such 2d game requires an IDE to compile or execute it succesfully? Or is it possible to write a program to run Pacman with graphics.h and …

Software Development c++ ide
Member Avatar for myk45
0
481
Member Avatar for aidan.fowell.5

Hello, I am trying to create a currency converter, but when I press 'convert' it get the error message: Index was outside the vounds of the array. Here is my code: Imports System.IO Imports System.Text.RegularExpressions Public Class Form1 Private Sub doCalculate() ' Need the scraping Dim Str As System.IO.Stream Dim …

Software Development regex vb.net
Member Avatar for SaintQJ
0
175
Member Avatar for Dili1234

Dim bill As integer=textbox14.text Module1.billno = bill Form18.txtbillno = Module1.billno Value of Type 'Integer' cannot be converted to System.Windows.Forms.Textbox

Software Development vb.net
Member Avatar for Dili1234
0
193
Member Avatar for bryangino20

question is: Give 5 type checks that should be made for the following c++ statement: x=f(v[i]); NOTE: assume x, f,v and i are all declared and in scope. 1. compatibility check (compile time) 2. v[i] is a valid array element. (compile time) (i.e. (i is not a float or something)) …

Software Development c++
Member Avatar for mike_2000_17
0
502
Member Avatar for zeppelyn

I'm nearly complete in figuring out this program, but for some odd reason, my program will either output "segmentation fault" or a "floating point exception" when it attempts to evaluate the postfix expression. The objective of the program is to take in an infix expression, convert it to postfix, then …

Software Development c++ data-structure
Member Avatar for Ancient Dragon
0
646
Member Avatar for i.nikei

hello. i am a new learner. i build some program that able to read .doc file and pass them to Cache database. i've done the passing part. but the problem is, how can i diffrentiate between paragraph and table content? for example, i have **Section A** as a title and …

Software Development java
Member Avatar for NormR1
0
140
Member Avatar for jemz

Hi,i have a program and i created into a jar file,but the problem is when i am going to remove the jar file into the directory where my java classes and pictures resides,when i click the jar file the picture of my buttons are gone.can you help me please how …

Software Development java
Member Avatar for jemz
0
415
Member Avatar for vicky30312

I had to make a program that calculates how much you gain or loose in a stock markect. I have everything worked out excpet how to use char. I've looked it up but i don't understand anything. Can you help explain it to me? // Project 6.4. Calculates how much …

Software Development c++
Member Avatar for vicky30312
0
266
Member Avatar for ilvanhellovan

i have a problem conversion from char to LPTSTR as parameter, could anyone help me,, for example char temp[10]="abcde"; how convert to LPTSTR from char above?? thanks

Software Development c++
Member Avatar for deceptikon
0
2K
Member Avatar for vicky30312

Same project as before but now I have diffrent Errors. fatal error C1075 and error C2450. //Project 7.4. Program determines what your weight would be on another planet.2.3. #include <iostream> #include <cmath> using namespace std; int EarthWeight ; int WeightOnPlanet, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto ; int …

Software Development c++ visual-studio
Member Avatar for vicky30312
0
454
Member Avatar for rithish

#include <stdio.h> #include<conio.h> #include<alloc.h> struct data { int value; struct data *next; }; int main() { int s; struct data *m,*i; printf("enter the data: "); scanf("%d",&s); i=(struct data *)malloc(size of(struct data); i->value=s; i->next=m; m=i; printf("enter the 2nd data: "); scanf("%d",&s); i=(struct data *)malloc(size of (struct data); i->value=s; i->next=m; m=i; printf("\n …

Software Development c
Member Avatar for deceptikon
0
254
Member Avatar for noahjer

Im trying to implement a program that will check the descriptions of two FA and check if they are equivalent. Im assuming (for simplicity) that each FA is in minimal form, the input alphabet is {a b} and each FA only has one finish state. Format for an FA is …

Software Development c
Member Avatar for deceptikon
0
114
Member Avatar for rhowell

I'm working with some old code and the users tell me that the original program's output was a single binary file containing multiple stuct data. The output I get is a binary file containing a single structure. The comment also indicates that this what is happening but I need to …

Software Development c data-structure file-system linked-list
Member Avatar for poornamoksha
0
254
Member Avatar for Dino000

I want my combo box's value to be .Items[i]. Item is of type DataRowView. My combo boxes are binded by database. Value member of cmbx is IDplayer in database. Selected value is playersBindingSource - IDplayer. This is the error: Column 'IDplayer' is constrained to be unique. Value '2' is already …

Software Development
Member Avatar for Mike Askew
0
198
Member Avatar for israruval007

Ok let say i have the following xml file <Users> <User> <Name>David</Name> <Attempts> <Place>Paris</Paris <Date>3/29/2012</Date> <Duration>50 seconds</Duration> <Distance>100</Distance> </Attempts> <Attempts> <Place>New York</Paris <Date>7/28/2012</Date> <Duration>30 seconds</Duration> <Distance>100</Distance> </Attempts> <Attempts> <Place>Paris</Paris <Date>8/19/2012</Date> <Duration>70 seconds</Duration> <Distance>60</Distance> </Attempts> <Attempts> <Place>New York</Paris <Date>9/29/2012</Date> <Duration>60 seconds</Duration> <Distance>200</Distance> </Attempts> </User> <User> <Name>Lenny</Name> <Attempts> <Place>Paris</Paris <Date>9/29/2012</Date> <Duration>51 seconds</Duration> …

Software Development asp.net c# sql xml
Member Avatar for ChrisHunter
0
262
Member Avatar for guru_iyer

I've a DataGrid Control in my application and a button. When i click a button it should display the contents of the Logins table in the DataGrid. For this I've coded the following, but its giving me an error "Rowset is not bookmarkable.". I've searched a lot, many suggestions include …

Software Development open-source vb.net visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for sundog1

Hi Guys, I'm quickl writing a little application which sends an email via SMTP and has the option to add a attachment. This is working fine however, When I went to send a email without attaching a file the Error Message I get is the following **"The Parameter 'fileName' cannot …

Software Development email pdf
Member Avatar for sundog1
0
199
Member Avatar for paoi00

Hello again! :) How can i put a Captured Image by a Webcam in picture Box? I'm Using VB.Net 2008 I dont know what to do. Thanks in advance!

Software Development image vb.net webcam
Member Avatar for paoi00
0
338
Member Avatar for ibthevivin

My Java is pretty rough. So far I've completed one class of Java all the way up to basic array functions. I've asked my Professor to explain it, but he talks with so much jargon. Could someone explain to me why this program spits out the "24" when I run …

Software Development java oop
Member Avatar for richard89AZ
0
255
Member Avatar for javalover

Hi frnds!!! Am new to ubuntu .. Am using netbeans7.1 .. I need to connect my java application with mysql server... I dont know how to configure netbeans for that.. I tried to configure mysql server in netbeans itself through (Right Click Databases-> select Register MYSQL Server-> select Admin Properties) …

Software Development java java-netbeans mysql ubuntu
Member Avatar for Ajinkya Jagtap
0
226
Member Avatar for Stjerne

Hello again, This time, I want to create a simple function where you choose a date with JSpinner, and next to it, I want a textfield where you can enter the time. I've already created a JSpinner with both date and time, but it kind of looks bad, but that's …

Software Development java
Member Avatar for Ajinkya Jagtap
0
328
Member Avatar for london-G

When I run the application my labels are al spaced out, however in the design they are fine. Do you have any ideas why? Also when I preview the jframe everything looks fine. Thank you

Software Development gui java
Member Avatar for Ajinkya Jagtap
0
110
Member Avatar for panchdeo

how can i play music in C# visual studio please give a simple example.

Software Development c# visual-studio
Member Avatar for aaruj
0
206
Member Avatar for will.penfold.71

private ArrayList<Student> students; public void loadFromFile(String x){ try { FileReader reader = new FileReader(x); Scanner in = new Scanner(reader); int lineNumber = 1; while (in.hasNextLine()) { String name = in.nextLine(); int score = in.nextInt(); students.add (new Student(name, score)); lineNumber++; } in.close(); Hey Guys i am getting unknown errors when trying …

Software Development java
Member Avatar for jalpesh_007
0
161
Member Avatar for abdulhamid1

How will i use java in the blog?

Software Development java
Member Avatar for jalpesh_007
0
56
Member Avatar for jamesmadison43

I am supposed to create an arraylist from an integer[] array, iterating the elements in the list in decending order ex: int[] array = {1,4,2,3,5}; goes into array list to become {5,4,3,2,1} how do i even being to do this (without first sorting the array and then putting it into …

Software Development java
Member Avatar for jalpesh_007
0
303
Member Avatar for mohana_61

hey frds, help me i don know the how to copy the content from one table to another(in access) using oledb,dataset.. for clear understanding i gve eg., there r 2 tables, the 1st table with the fields studentID,StudentName, Course,Year and 2nd table with the fields studentID,StudentName, Course,Year,marks,grade. here i want …

Software Development dataset vb.net
Member Avatar for mohana_61
0
343
Member Avatar for zeeters

I have to write a program that takes a word from the user and replaces it if it is in the text file with another word given by the user. Then takes that input and writes it to a new file. The only problem is, I have to do it …

Software Development python
Member Avatar for zeeters
0
3K
Member Avatar for hoosier23

I'm retarded and can't find this on the net. How do I pass data that i've stored in a variable via a textbox into a MessageBox? [CODE] MessageBox.Show("Name:", BName, MessageBoxButtons.OK, MessageBoxIcon.Information) [/CODE] When I run this, BName does not show the name. BName is a name from a textBox BName.

Software Development vb.net
Member Avatar for Rakesh jack
0
547
Member Avatar for jalpesh_007

dear all, I am working on hashmap and treemap. At the starting of my program i have declared two map,m1 and temp,both are hashmap. At starting point both map contains same kay value pair. At some instance of program, i want to change the value in temp, remove some key …

Software Development java
Member Avatar for jalpesh_007
0
751
Member Avatar for jimmy.teohmingsiong

#include<iostream> #include<iomanip> using namespace std; class circleType { public: void setRadius(double cRadius); double getRadius() ; double calcArea() ; double calcCir() ; void print() ; circleType (); circleType(double cRradius); private: double radius; }; void circleType::setRadius(double cRadius) { radius = cRadius; } void circleType::print() { cout << "The radius of the circle …

Software Development c++
Member Avatar for np complete
0
475
Member Avatar for xtianpark

gud evening sir/maam , can i ask for a help regarding on how to change the mouse pointer using image in vb.net to look like its a mouse cursor ... i dont have any idea with this stuff cause we havent discuss this yet and i need it by tommorrow …

Software Development image vb.net
Member Avatar for TnTinMN
0
352
Member Avatar for nitin1

hey, i want to do a question in which i am given n line segments and i want to find the number of intersection of them. Can anyone tell me the most efficient way i can do it ? I have got some links on google and also from books …

Software Development c
Member Avatar for rithish
0
95
Member Avatar for zawpai

Hi all, I am using vb.net2003. I have one solution and different projects under its. But, I don't know how to declare a varibale for many projects and use it? Can anyone show me how to do it? Thanks and regards, zawpai

Software Development vb.net
Member Avatar for zawpai
0
134
Member Avatar for shakatra

Hi all... I'm beginner in c#, Now I'm doing project contain [U]3 forms[/U]... And if I want to show form 2 and hide form 1 as example ... write this code [CODE] Form2 f2=new Form2(); f2.show(); this.hide(); //hide form1 this.close(); //when I need close the form [/CODE] This is most …

Software Development
Member Avatar for hirosht
0
206
Member Avatar for abulut

Hello; While this script working, in case of not to connect a node ("BADYK01","BAGRK01", "BAHLK01", "BAHLK02", "BAHLK03") , it stops. I want it to be continue even if it doesnt connect a node. I mean if it couldnt connect to BAGRK01, I want it to be continue and connect the …

Software Development perl session unix
Member Avatar for wickedxter
0
178
Member Avatar for kgal

I want to write a program that does the following: reads and integer matrix from stdin and outputs the input matrix, its transpose and multiplication of the input matrix with its transpose. I limited the matrix to a 10x10. I want to ask the user to enter a number of …

Software Development c matrix-multiplication
Member Avatar for kgal
0
116
Member Avatar for discovery-power

Hi All, I sware I am loosing the will to live, I have tried to accomplish this by my-self for about 2 weeks now and I am still at square one, I prey someone can help me. I am writing an application for booking conference rooms and I need a …

Software Development open-source sql vb.net
Member Avatar for pratik65
0
333
Member Avatar for debayanmitra

[CODE] Dim mDocDtT As Date Dim mDtPeriod as Integer = 4 mDocDtT = DateAdd(DateInterval.Month, mDtPeriod, mDocDtT) mDocDtT = Format(mDocDtT, "yyyy-MM-dd") [/CODE] But the codes are not working the date is still in #01/27/2011# format I want it in yyyy-MM-dd format Please help!!!

Software Development vb.net
Member Avatar for debayanmitra
0
188

The End.