132,726 Archived 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 mike_cao

hey all, i got problem about count method. for example, there are three students(a,b,c), and there are two courses(coure1,course2), then student a and b enrol course1, and student c enrol course 2. i need to count how many students enrolled course1. [CODE] Public Function numStudents() As Integer 'return number of …

Software Development vb.net
Member Avatar for Netcode
0
272
Member Avatar for meli123

hey alll..I posted earlier on needing help for a code on input #..base..print decimal form..I actually didnt learn this in high school so thats why I was having so much trouble :@ Now that I read up and understand the logic in bases..I was thinking that for my code I …

Software Development algorithm c++
Member Avatar for VernonDozier
0
154
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 Allander

Hi! I don't understand why I can't use my functions declared like this: [CODE]#include "groundArray.h" int groundArray::getlistX(int i) { return x; } int groundArray::getlistY(int i) { int groundlistY[] = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}; return groundlistY[i]; } int groundArray::getlistWidth(int i) { int groundlistWidht[] = …

Software Development c++
Member Avatar for MonsieurPointer
0
214
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 Srcee

I have an application in C#, .Net 2.0. I want it to run on Mac. The application has .cs files, .exe etc. What of the file should I put in the .dmg file?

Software Development
Member Avatar for SyncMaster170
0
244
Member Avatar for murnesty

It's my first time to use functor. So hope can get some guide here. My program need to call different function depend on input. so i thinking to use functor to do that. e.g. main.cpp [CODE]#include "functor.h" #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { …

Software Development c++
Member Avatar for Eagletalon
0
165
Member Avatar for mdheerajgupta

Hi All, I want to trap inRange and outRange event of the bluetooth device i.e. paired with my windows7 machine. Thanks in advance.

Software Development c++ windows-vista-7-8
Member Avatar for Eagletalon
0
194
Member Avatar for ferretfool0x77

[CODE]try { dataFile = args[0]; } catch (Exception e) { System.out.println("The file was not found. Please input file name now: "); dataFile = scan.nextLine(); }[/CODE] This gets a file name from the command line, and if no file is specified it asks the user to input a file name, however, …

Software Development java
Member Avatar for skoiloth
0
240
Member Avatar for StarF

Hi I have ben trying to figure out how to sort a array by date, all the examples i have found so far, i have had a hard time making any sence of. I got a tab seperated txt file, with the following data. Date - Meeting - Duration what …

Software Development
Member Avatar for SyncMaster170
0
186
Member Avatar for nanologic

hello, i have a problem with combobox to stored in sql database this is my code cmbDept.Items.Add("" & dtUser.Rows(i).Item(0) & "/" & dtUser.Rows(i).Item(1) & "") how to take the first item from combobox "dtUser.Rows(i).Item(0)" and stored in sql database. ??

Software Development vb.net
Member Avatar for nanologic
0
117
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 pseudorandom21

Hi I have a struct in my form, and I need to pass a reference/handle to it to a separate class, which is ok with the simple "ref" keyword. Now, how do I store this ref to a struct in the class (as a member variable)? Is this possible? I …

Software Development
Member Avatar for pseudorandom21
0
95
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 HaNcOoK

Hi everybody, Im pretty new (or u can say that completely new) to python and i try to learn from the very basic. I try to create grid data structure from array. Here i have some code, would you mind to look at it and give me an instruction: [CODE]import …

Software Development data-structure python
Member Avatar for TrustyTony
0
152
Member Avatar for fizznur

I am creating a DataReport using the Data Report Designer (VB6) and using the following SHAPE command to create a hierarchical recordset. Dim cmd As New ADODB.Command Dim rz As New ADODB.Recordset With cmd .ActiveConnection = CN .CommandType = adCmdText .CommandText = " SHAPE {SELECT * from Relation where Institution …

Software Development visual-basic
Member Avatar for Capritarius21
0
147
Member Avatar for virusisfound

I don't know how to solve this problem. I want to create simple project in visual studio 08 in C# windows application which can save update delete data from database. here are the steps i use : open new project right click on solution explorer -add- add new items-service-based-database when …

Software Development dataset open-source visual-studio
Member Avatar for virusisfound
0
189
Member Avatar for oberlin1988

This is the program I need to write: At each step the user is asked if she wants another number. If she does, the program adds a random number between 1 and 10 onto her total. The game ends when she quits, or when her total is 18 or higher. …

Software Development mathematics python
Member Avatar for JoshuaBurleson
0
264
Member Avatar for daW0lverine

Hello all, I used to be relatively well versed in .Net back when 2.0 was still the latest framework and I have stayed out of the loop for a few years. Looking to kick in a new pet project, I am interested in developing in Visual C# / SQL again. …

Software Development c# finance sql visual-basic visual-studio
Member Avatar for daW0lverine
0
143
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 agrawal.priyank

Hello, I have to make one project similar like "Assistware Connector" below is link for that [URL="http://www.baydon-solutions.com/CorpWebsite/section3.htm"]http://www.baydon-solutions.com/CorpWebsite/section3.htm[/URL] In this product when application get started, after that on what ever window mouse is clicked it take snapshot of that object, Eg like i open calculatar application,now i start my c# application …

Software Development windows-xp
Member Avatar for agrawal.priyank
0
215
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 Jonathan C

i want to know how to do when the form is closed, the current contents of the listbox will be stored in the bookmarks textfile (called bookmarks.txt). If a file error occurs, display a messagebox specifying the error. [CODE] public Form1() { InitializeComponent(); } private void btn_go_Click(object sender, EventArgs e) …

Software Development
Member Avatar for Jonathan C
0
132
Member Avatar for casey_sunako

Hi. Guys, I need some help. Does anyone know how to Call cross threads in vb.net while accessing the backgroundworker as well? I keep getting error everytime I run my program... Here is my code: [CODE]Imports System.IO.Directory Imports System.IO Public Class Video_to_Mp3 Public folderopen As String Dim ofd As New …

Software Development audio multithreading vb.net
Member Avatar for GeekByChoiCe
0
358
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 mahesh vidhate
Member Avatar for DaSpirit
0
346
Member Avatar for jefroxnergal

I'm currently practicing on python language and I try to make a sample program that will Add, Show, Delete and Update students info.. But I have this error "global name 'b' is not defined" on the 'Show()', 'Delete()' & 'Update()'.. please help me me guys..Thank you.. [CODE]x = 1 y …

Software Development python
Member Avatar for woooee
0
482
Member Avatar for markfw

Hi I have a code as follow: [CODE] template<class T> inline bool IsValidUnsignedLong(T n) { return (T)(unsigned long) n == n; } [/CODE] When I pass -l to that function, it returns TRUE which it shouldn't since its not unsigned. Can anyone explain to me the reason behind this? why …

Software Development c c# c++
Member Avatar for mike_2000_17
0
202
Member Avatar for jellybeannn

Hi I'm trying to use the Microsoft.VisualBasic IRR function, but to no success. [code] double[] values = new double[73]; for (int j = 1; j <= 73; j++) { values[j] = C158_Calc; } B162_Calc = Financial.IRR(values, 0.1) * 12; [/code] I'm having trouble in this line: [code] B162_Calc = Financial.IRR(values, …

Software Development c# microsoft
Member Avatar for nick.crane
0
559
Member Avatar for m1n1m3

Hi ! To improve my java programming skills i like to write a really fancy fib. nr. calculator. Did it in C using memory allocation methods and hot to 1M digits in ~10min. So something like Step-Up challenge. The only thing as far as i can see limits my progress …

Software Development data-structure java
Member Avatar for NormR1
0
217
Member Avatar for bluehangook629

I have a function for a dialog which returns the dialog result back. However, the value of the dialogresult changes from ok to cancel after the value is returned. How can i fix this? this is the part where the dialog is called and the value from the dialog is …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
833
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 gaurav_gandhi13

hello i have 5 text boxes and labels and database in sql server so just need coding for the next and the previous button any one can help please thanks

Software Development c# sql
Member Avatar for Mitja Bonca
0
4K
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 techlawsam

Ok so after modeling after another application Im modifying a previous console app which converts Celsius[CODE][/CODE] temp (with user input) to Fahrenheit. Visual Studio has annoying habits to give errors on variables that "haven't been declared yet". Im looking at this and wondering why the heck is it complaining. I …

Software Development visual-studio
Member Avatar for techlawsam
0
186
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 neeraj goswami

i am writing one java code in notecode.once i am compling the code in command prompt it is showing the following error: javac is not recognised as an internal or external command ,operable program or batch file. what does this mean?..i am using jre7 java version.i have also specified the …

Software Development java
Member Avatar for NormR1
0
120
Member Avatar for Labdabeta

I would just like to know how x86 ASM instructions are translated into binary. EG: [ICODE]mov al,061h[/ICODE] becomes [ICODE]10110000 01100001[/ICODE]

Software Development assembly
Member Avatar for miker00lz
0
1K
Member Avatar for ben1996123

I've managed to use classes in separate files before, but I can't seem to get it to work here. I was just programming some very basic classes for a simple game I wanted to make. Here is the main.cpp file: [code]#include <iostream> #include "energySystem.h" #include "healthSystem.h" #include "intelligenceSystem.h" using namespace …

Software Development c++ oop
Member Avatar for ben1996123
0
560
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 valestrom

My program is in an infinite loop, when It hits the "Bye" part in the code it goes right back up to the top. Help with this. It's a pretty simple program so I can't see what I did wrong. [CODE]#include <iostream> #include <windows.h> using namespace std; int main () …

Software Development c++
Member Avatar for Zssffssz
0
166
Member Avatar for JoshuaBurleson

I'm having an issue getting python 3.2 to recognize files in ubuntu, it's the first time I've tried to code while running it. A specific example of the issue is when setting an .ico to be a bitmap logo for a Frame in tkinter it's claiming that there it's not …

Software Development python tkinter
Member Avatar for woooee
0
673
Member Avatar for JBazil

hello, i got a quick and trivial (not to me though) question for ya involving matlab. i am relatively new to matlab and have encounter a few problems using the function command. here is my code: **********main.m********** clear all IC = [1 0.1 2]; time = [0 30]; global test1 …

Software Development first-post
Member Avatar for saz101
0
307
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

The End.