43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for dospy

i am planning to start learning how to use threads. my question is: should i first learn windows.h's functions for threading before boost to get the pattern or should i jump right to the boost threads? ps: sry if i posted in the wrong section

Software Development api c++ windows-api
Member Avatar for dospy
0
251
Member Avatar for SyncMaster170

Hello peeps, This is really getting annoying, Im trying to figure out how to check whether or not a member is in my datagrid. I have 5 columns: firstname, lastname, membership, accountid, date. Can someone help me out here????????

Software Development
Member Avatar for Mitja Bonca
0
129
Member Avatar for neeraj goswami

[CODE]//ASSIGNMENT NO- 4 //EMPLOYEE DATABASE #include<stdio.h> #include<conio.h> //STRUCTURE DEFINATION struct emp1 { int id; int dflag; char name[10]; float salary; }; int main() { //INITIALISATION struct emp1 e[20]={0,0,"\0",0.0}; int accept(struct emp1 [],int); int display(struct emp1 [],int); int append(struct emp1 [],int); int delete1(struct emp1 [],int,int); int modify(struct emp1 [],int,int); int no=0,v=0,u=0,ch=0,count=0; …

Software Development c data-structure
Member Avatar for N1GHTS
0
158
Member Avatar for sunny124

I tried using (*game_data.blocks), (game_data.*blocks), (game_data.blocks) but none of them work. I'm getting a error msg: 'cannot convert sprites* to sprite_data** in assignment' ----------------------------------------------------------- [CODE] typedef struct{ //sprite _sprites[]; sprite *blocks; sprite ball; sprite paddle; int numb_brick_sprites; }sprites; [/CODE] ----------populate_bricks procedure------------- [CODE] void populate_bricks(sprites &game_data){ game_data.numb_brick_sprites++; sprites *temp_ = (sprites*) …

Software Development c
Member Avatar for sunny124
0
134
Member Avatar for rahman86

Hello everyone here. I am new to vb.net database programming yet i want to create a point of sale software using it. So far I have created a local database, POSSdatabase.sdf , and I have 2 tables, Inventory and Transactions. My problem is how do I relate these 2 tables? …

Software Development vb.net
Member Avatar for Netcode
0
164
Member Avatar for gunjannigam

I am attaching my complete code, which I was currently developing. I am not able to get why doesn't my KeyListener work. None of the KeyListener events are fires on pressing the keyboard. Please have a look and tell me the flaws in my code [ATTACH]22414[/ATTACH]

Software Development java
Member Avatar for gunjannigam
0
8K
Member Avatar for tebogop

I'm trying to save data from textboxes in visual studio using vb.net to sql server 2008. the coonectiong is working perfectly but is not displaying the data output in data grid. This is the part of the code. [CODE] Imports Microsoft.VisualBasic Imports System.Collections.Generic Imports System.Data Imports System.Data.SqlClient Imports System.Text Dim …

Software Development open-source sql vb.net visual-studio
Member Avatar for tebogop
0
1K
Member Avatar for TrustyTony

I participated discussion about complex numbers and did some experiments in Python. I do not understand this behaviour (same behavious in 2.7.2 and 3.2.2): [CODE] >>> -(0+1j) (-0-1j) >>> -(0+1j)==-1j True >>> -(0+1j)+0 -1j >>> -(0+1j)-0 (-0-1j) >>>[/CODE] EDIT: Further investigation shows that there is -0.0 in Python, is this …

Software Development python
Member Avatar for Gribouillis
0
224
Member Avatar for eviandc

Hi, I'm a beginning C++ student and have an assignment to dynamically create an array of a struct to store students' first names, last names, and test grade scores, and then pass it via pointer to a function that will sort the grades and names in ascending order. I wrote …

Software Development c++ data-structure
Member Avatar for eviandc
0
1K
Member Avatar for NerdyChick27

I'm working on an assignment and now that I've finished I'm supossed to write a tester file to demonstrate how well the program works. While writing it I was just testing in a main file within the library itself. Now I'm getting an invalid pointer error when I try to …

Software Development c
Member Avatar for NerdyChick27
0
262
Member Avatar for aanders5

Trying to read a list of numbers in from the arraylist, and stick em into a matrix of int[][] int[][] board; board = new int[row][col]; ArrayList<Integer> temp = new ArrayList<Integer>(); so those are my two variables, and i have a for loop with variables, i and j...so I am trying …

Software Development java
Member Avatar for aanders5
0
364
Member Avatar for kweigand

First off, I am a Java Noob coding in latest version of NetBeans. I am trying to create a program the will allow the user to enter two decimal values: time and earnings in a swing GUI. [B]Basic Flow[/B] [LIST=1] [*]The user will enter the values in two different text …

Member Avatar for kweigand
0
175
Member Avatar for etm9413

Hi, I am new to Unix/Linux... I have a TCSH shell script (on AIX4) in which, at a certain point, I want the user to be able to pass commands to the TCSH interpreter. What I do is I create the illusion that the user is at his usuall shell …

Software Development shell-scripting unix
Member Avatar for etm9413
0
439
Member Avatar for sohiabmaroof

hi all m having problem deleting table row from button in jtable .here is my error when i press on delete button this code is similar to my original code . please i need immediate feedback m stuck in this error from days.this is the error [code]Exception in thread "AWT-EventQueue-0" …

Software Development java java-swing
Member Avatar for sohiabmaroof
0
2K
Member Avatar for iamthesgt

In writing a logfile program, I need a function to output the log entries between two dates. I use [ICODE]seekg()[/ICODE] and [ICODE]tellg()[/ICODE] to save the position of the first entry to output and last entry and then go back later to output the data in between. However, [ICODE]seekg()[/ICODE] when told …

Software Development c++
Member Avatar for iamthesgt
0
277
Member Avatar for Zssffssz

Ok how do I make a C++ console app format a floppy disk for a Win or Linux Computer? I really want it to be auto-matic like without the whole volume tilte, filesystem; that sutff. PS How would I setup virtual memory in linux? Thanks answer the floppy question first. …

Software Development c++
Member Avatar for Moschops
0
173
Member Avatar for jrp370

every time i try to run my program (driver) is receive the following error message, arithmetic.pm did not return a true value at ./driver line 9, begin failed--compilation aborted at ./driver line 9 can anyone help me sort this out? thank you very much [CODE]#!/usr/bin/perl -w #Driver #program by James …

Software Development perl
Member Avatar for jrp370
0
162
Member Avatar for Creatinas

Hello everyone, i have a question for You. i have a script with grabs URL and etc. here is a [B]example[/B] of it: Sorry for very messy code... I'm just testing [CODE]while (a < 10) : if a == 2 : f = urllib.urlopen("****" % params1).read() linkai = re.compile('</a> - …

Software Development python
Member Avatar for Creatinas
0
244
Member Avatar for mike_2000_17

Hey, I have a set of types which are all arithmetic (have operators for addition, subtraction, multiplication, etc.). I want to aggregate any number of them into a single object, so I'm using the std::tuple class template and the <tuple> library (and Boost.Tuple for backward compatibility). My question is a …

Software Development c++
Member Avatar for mike_2000_17
0
531
Member Avatar for churva_churva

[CODE] Public con As ADODB.Connection Public cmd As ADODB.Command Public dept_rs As ADODB.Recordset Public gen_rs As ADODB.Recordset Public stud_rs As ADODB.Recordset Public sql As String Private Sub cmdExit_Click() con.Close End End Sub Private Sub cmdSave_Click() With cmd .ActiveConnection = con .CommandText = "student_table" .CommandType = adCmdTable End With With stud_rs …

Software Development open-source visual-basic
0
78
Member Avatar for arindam31

Hi guys, My intention is to find all possible words starting with any letter of my choice example 'p' from a paragraph.I want all the possible results . How can i do that . Take the example : 'This rule says that any match that begins earlier in the string …

Software Development python
Member Avatar for arindam31
0
244
Member Avatar for Ruchi224

Hello... I have form having a button and a gridview. The gridview is ok and generates data. But now, i want to populate only the data when i click on the button specified. Can anybody please help me with this ?? Here is my code : Private Sub button1_Click(ByVal sender …

Software Development open-source vb.net
Member Avatar for Ruchi224
0
136
Member Avatar for Adam Ma

Ok so i have trouble with looping with while and for statments heres the questions: 1. Write a program that gets a positive integer from the user and prints all the numbers from one to that integer. If the inputted number is zero or negative, then the program will print …

Software Development c c# c++
Member Avatar for cherrymae.calma
0
167
Member Avatar for java.util

Hello, I have written a program for an assignment and all was working well, I tested everything and all that was left was to put in a few error-messages. Then, I changed the format from ISO to utf-8 and when I tried to run it again it suddenly stops at …

Software Development java
Member Avatar for javaAddict
0
1K
Member Avatar for Duki

When I debug this method, I can clearly see that currentNode = Workstation, so I am puzzled as to why I'm still entering into the "Node" buffer print, rather than the "Workstation" buffer print. Shouldn't polymorphism handle this for me?: part of Node Class [code=java] public void printToBufferAsHTML(Network network, StringBuffer …

Software Development java
Member Avatar for Duki
0
121
Member Avatar for kylelendo

I am trying to login into the system I have created 3 pages 1.Registration Page 2.Login Page 3.Secure Page In registration page I can enter new username and password and that gets registered well that works fine..but when i try to login with that username and password I get an …

Software Development session
Member Avatar for kylelendo
0
333
Member Avatar for Carrots

Hi, I am trying to a play a .wav file in a C++ program. I think my code is OK, but when it plays, it plays the default windows 'error' sound, not my .wav file. This is the program: [code] #include <iostream> #include <windows.h> #include <mmsystem.h> #pragma comment(lib,"Winmm.lib") using namespace …

Software Development c++ visual-studio
Member Avatar for pseudorandom21
0
6K
Member Avatar for raaif

I want to write an XML file in the following format [ICODE]<?xml version="1.0" encoding="utf-8" ?> <trans> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from listbox2"/> <trans eng="string from listbox1" type="string from …

Software Development vb.net xml
Member Avatar for raaif
0
184
Member Avatar for sirlink99

I am trying to do basic animations with images, and I am wondering how I could get a smaller image from a larger one without going through and editing it. I made a sprite [URL="http://translate.google.com/translate?hl=en&u=http%3A%2F%2Fwww.famitsu.com%2Ffreegame%2Ftool%2Fchibi%2Findex1.html"]here[/URL] and downloaded the image. As you see in the thumbnail the animation is from all …

Software Development image java
Member Avatar for sirlink99
0
268
Member Avatar for techlawsam

Ok so while working on this I want to figure out at about line 23 for "hours" I understand the argument "NUMBER_OF_SECONDS_IN_AN_HOUR" but not "totalSeconds" is totalseconds the value coming from : "totalSeconds= GetNumberOfSeconds();" ? Which is the input received by the user? For lines 25-29 , how does totalSeconds …

Software Development
Member Avatar for techlawsam
0
252
Member Avatar for aldeene

I created a barcode and displayed it in a picture box and i want to print it. i can't figure how to do it..

Software Development vb.net
Member Avatar for aldeene
0
10K
Member Avatar for kccute

Hi guys i working on a project that open an excel document using vb6 but i encounter this. Run-time error 1004 : C:\aaaaa\aaaa\myBook1.xls' could not be found. Check the spelling of the file name, and verify that the file location is correct. This is the Code: Private Sub Form_Click() Dim …

Software Development visual-basic
Member Avatar for diamondw
0
218
Member Avatar for Zeref

Hi guys, I'm having trouble with this particular code [code=c] #include <stdio.h> int main() { char aChar; printf("Please enter a character: "); scanf("%c",&aChar); while (aChar!='x') { printf("The Letter is %c\n", aChar); printf("Please Enter another character: "); scanf("%c", &aChar); } return 0; } [/code] The output is: Please enter a character: …

Software Development c
Member Avatar for Narue
0
215
Member Avatar for rinoa0424

Guys.. I need help in my RPG game project.. I used visual basic 2008, windows form applications. I used panel and its background is the map, and I used picture box as the character and with transparent gif pictures in every keyevents, I already can move the picturebox with keyevents. …

Software Development vb.net visual-basic
Member Avatar for nick.crane
0
216
Member Avatar for sidyusuf

hi frnds.... i am working on a window based student registration project using vs2008 and ms access database.what i have to do is to register students for main or comptt. exam according to the course they are in. The students are shown in a datagridview as per the course generated …

Software Development vb.net
Member Avatar for sidyusuf
0
163
Member Avatar for Labdabeta

I am still having major trouble with my openGL model program. The big issue is that I cannot figure out how to debug it since I am saving the important data to the graphics chip using vertex buffer objects (VBOs) so at least as far as I can tell, I …

Software Development c++ opengl
Member Avatar for raptr_dflo
0
488
Member Avatar for dospy

there are 2 common ways to loop through a vector 1: [CODE] vector<int> myvec; // let's assume it's initialized for(int i = 0; i != myvec.size( ); i++) { // code // access by 'myvec[i]' } [/CODE] 2: [CODE] vector<int> myvec; // let's assume it's initialized for(vector<int> :: iterator i …

Software Development c++
Member Avatar for dospy
0
182
Member Avatar for bibiki

Hey there, I am aware of GridLayout, BorderLayout and FlowLayout classes. However, I find them not to work satisfactorily well for me when trying to layout the entire content in a frame. What I usually do is this: I identify parts that I want in my window. For each part, …

Software Development java
Member Avatar for bibiki
0
108
Member Avatar for dev90

/* can any 1 tell me wats the problem."[COLOR="Red"]Que: reverse an array without using temporary array[/COLOR] " [COLOR="Green"]This works for N =5 but when N =6 it displays the original values of an array.[/COLOR] */ [CODE]#include <stdio.h> #include <conio.h> #define N 6 void print(int b[N]) { int i; printf("\n"); for(i=0;i<N;i++) …

Software Development c
Member Avatar for Narue
0
3K
Member Avatar for loserspearl

I'm trying to create a java applet that displays farhen and cels temperatures in a chart. Temps below freezing need to be displayed in blue, and about boiling displayed in red. It needs to use applet graphics to draw the strings in different colors but I'm fairly lost when it …

Software Development java
Member Avatar for Ezzaral
0
323
Member Avatar for techlawsam

Alright So I want to know when looking at the code below: every so often with each method argument there is an "identifier" starting with the first one: "Inside() , Show(), Outside(), Display() " I know the names can be made up literally but what do the parenthesis signify ? …

Software Development
Member Avatar for techlawsam
0
173
Member Avatar for Ruchi224

Hello !! I am making a simple windows application. In one of the forms, I have buttons with various names and datagrid that displays the table. Now, what i would like to do is if I click on a button titled "softwares", i want only those elements from my table …

Software Development vb.net
Member Avatar for Ruchi224
0
158
Member Avatar for kutuup

I am not sure why but this code (an attampt at a point and click game engine using Allegro 5) throws up an unhandled exception. The program starts and displays a picture, but as soon as the mouse is moved the exception pops up and the program crashes. I have …

Software Development c++ ide
Member Avatar for kutuup
0
270
Member Avatar for de.ICeman

In the following example: [code] public class JavaExample { public static void main(String[] args) { system.out.println(args[0]); } }[/code] when no parameter is passed Exception given is java.lang.ArrayIndexOutOfBoundExpection So my Question is that Why is that Exception is thrown , why not NullPointerException. (I know when both expection thrown) But in …

Software Development java
Member Avatar for de.ICeman
0
223
Member Avatar for reojavier

honestly i was new to C and i just need a codes for finding the mean for grouped data. i hope this site can least help me. you have my thanks.

Software Development c
Member Avatar for reojavier
-1
926
Member Avatar for dangari

Hi all, I am attempting to connect to a MS SQL Server Express Edition with Advanced Services (MS SQL10) on a remote Windows NT 5.2 machine on the LAN. My driver is [B]net.sourceforge.jtds.jdbc.Driver[/B] My url for the connection string is [B]jdbc:jtds:sqlserver://127.68.0.201:1433/LOD[/B] My user is [B]d[/B], password is [B]d[/B]. Now, when …

Software Development client-server java sql
Member Avatar for mKorbel
0
789
Member Avatar for Ole Raptor

I am getting this message: value of type "System.data.datacolumn" cannot be converted to "System.windows.forms.datagridviewcolumn" when I am trying to add a column to the dgv [code=vb.net] Dim dtcCheck As New DataColumn("Select") dtcCheck.DataType = System.Type.GetType("System.Boolean") dtcCheck.DefaultValue = False Dim sa As New SqlDataAdapter("SELECT * FROM therapy", myconnection1) sa.Fill(ds, "Therapy") dgvther.DataSource = …

Software Development vb.net
Member Avatar for concepcionmark
0
5K
Member Avatar for dospy

basically i have a header full of function prototypes(util.h) and a cpp file with the functions body [CODE] // util.h #include <ctime> uint32_t GetTime( ); uint32_t GetTicks( ); // util.cpp #include <util.h> uint32_t GetTime( ) { return GetTicks( ) / 1000; } uint32_t GetTicks( ) { return clock( ); } …

Software Development c++
Member Avatar for Fbody
0
2K
Member Avatar for pepyrs

Hello guys, My question is not very direct and clear but i'll try to explain it nicely. I have a database running on MySQL with 1 important table which i need to use. Then I put this table into my C# application (I'm using Microsoft Visual Studio 2010). The only …

Software Development visual-studio
Member Avatar for pepyrs
0
167
Member Avatar for zack_falcon

The Board Game I have in mind is Game of the Generals. It's somewhat similar to Stratego, but I'll just give a quick description of the game; every piece has a rank from Private all the way up to 5-star general, as well as a Spy and a Flag. The …

Software Development gui
Member Avatar for thines01
0
191

The End.