132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tom384

Hi folks, First a bit of context (Errors are shown at the bottom of the post): I am creating an object viewer for opengl in Visual C++ 2008 Express Edition. I have written a parser which reads the file and stores all the info I want in a Mesh object. …

Software Development c++ file-system ios opengl visual-studio
Member Avatar for tom384
0
358
Member Avatar for Dabareah

Hey everyone, I need help in figuring out how to make this program work. I am attempting to reverse this TraverseList. Yet I am still encountering issues when I compile. I am hoping that someone might assist me in re-creatin the program so that it goes forward. Anxiously waiting!! Please …

Software Development c++
Member Avatar for Ancient Dragon
0
70
Member Avatar for IT21

hey im in the middle of doing sql queries i can search my data base using GetDateFrom (Select, from, where) [code] Me.nameTableAdapter.FillBy(namenDataSet.descip, Me.box1TextBox.Text, Me.box1TextBox.Text, Me.box2TextBox.Text, Me.box2TextBox.Text) [/code] i have this working fine im struggling with inderting data to my databse i have made the query .. [code] INSERT INTO `details` …

Software Development vb.net
Member Avatar for IT21
0
100
Member Avatar for OzY360

I don't believe there is a Forum dedicated to Cryptography so I will post in the C forum since the program I've used to decode a base 64 encoded file was written in C. I have been given a base64 encoded file and I have managed to remove the base64 …

Software Development c encryption file-system
Member Avatar for OzY360
0
118
Member Avatar for kavourdoukos

I've got this: [CODE]#include <iostream> #include <vector> #include <string> #include <cstdlib> #include <sstream> using namespace std; class alfa{ private: int x; public: alfa(){ cout<<"Dimiourgithike ena alfa"<<endl; x=rand()%10; } ~alfa(){ cout<<"Katastrafike ena alfa"<<endl; } void get_x(){ cout<<"To x exei timi: "<<x<<endl; } }; int main(){ alfa* alfadi; int no; cout<<"Dose enan …

Software Development c++
Member Avatar for mitrmkar
0
98
Member Avatar for lee.j.baxter

Hey there folks! I've created a class, ATHENADictionary which extends Dictionary, as listed below... [CODE] /// <summary> /// Extends the Dictionary class to provide more functionality. /// </summary> /// <typeparam name="TKey">the key type.</typeparam> /// <typeparam name="TValue">the value type.</typeparam> public class ATHENADictionary<TKey,TValue> : Dictionary<TKey,TValue> { /// <summary> /// New indexer method, …

Software Development
0
106
Member Avatar for jhai_salvador

Hello!... Can anyone help me on this project? I already have created a simple program called Website manager and ive already release it on my website [URL="http://www.silentproject.tk"]http://www.silentproject.tk[/URL] i want to improve it by adding an Auto login feature for websites like yahoo mail..etc.. does anyone of you know how to …

Software Development visual-basic
Member Avatar for jhai_salvador
0
277
Member Avatar for jemz

hello please help me on this how to make the log in password in gui that can accept at least 6 characters and not more than 10 characters..and if i will re enter the password and it will prompt to the user that password is already exist..hoping for your positive …

Software Development gui java
Member Avatar for jemz
0
190
Member Avatar for jallan2010

Sir, Please anybody help me My another question is in txtlani textbox I have to enter only digit i.e. 0 to 9 and currency formate i.e. 1,000.00 and 1,00,000.00 it is possible in text box. and another text box which I have to enter only date i.e. at run time …

Software Development vb.net
Member Avatar for kvprajapati
0
268
Member Avatar for msvasu

Please send sane code for a complicated report using Data report Designer Using VB6. without using Data Environment. how to increate the height of the rpt shape in detail section of the data report.

Software Development visual-basic
Member Avatar for dageci
0
251
Member Avatar for COKEDUDE

How would I make all letters be an invalid input? I want all letters, numbers greater than 20, and numbers less than or equal to 0 to be invalid inputs. I used an or cause I want any case to be an invalid input. Any help would be greatly appreciated. …

Software Development c
Member Avatar for sumitunya
0
2K
Member Avatar for cwarn23

Hi and I am making a script but am having a slight math logic problem. Below is an example of an encoder I am working on. [CODE]for(int m=0;m<80;m++) { if(m<=19) { f = (b & c) | ((~b) & d); k = 0x5A827999; } else if(m<=39) { f = b …

Software Development c++
Member Avatar for cwarn23
0
120
Member Avatar for abhimanipal

Hello People, I cannot understand how this expression gets evaluated .. 1+~0 From what I know ~ has higher priority . So the expression becomes 1+(~0)= 2 But the answer that I got was 0. I know it is some thing to do with the fact that ~ is right …

Software Development c
Member Avatar for abhimanipal
0
85
Member Avatar for ukshir

I have a form developed using the Dataform wizard (VS 2003). The Form shows Master-Detail data. The details are showen in a Datagrid. The form automatically loads the data in the Form_load event. Now I want to store the data from the datagrid to a datatable. I am using following …

Software Development dataset vb.net
Member Avatar for kvprajapati
0
951
Member Avatar for Logi.

I'm having trouble combining tkinter windows/functions, i have simplified my problem down to this which i think seems to be the problem. Both these functions will work on their own, but not together. (at least the way i want them to!) What I am after is to be able to …

Software Development python tkinter
Member Avatar for bharatk
0
8K
Member Avatar for Takarakujin

Basically I am totally confused on how to pass a char, which is given by the user, and then store it and pass it to another function by reference.

Software Development c
Member Avatar for Ancient Dragon
0
102
Member Avatar for johndoe444

The following code gets segmentation fault: [CODE] void dfs_visit(graph g, int u) { // printf("u: %d\n",u); /* g.vertices[u].color = GRAY; g.vertices[u].d = time++; printf("before visit for loop\n"); for (int i = 0;i < g.number_vertices;i++) { if (i != u) { if (g.vertices[i].color == WHITE) { g.vertices[i].p = u; // dfs_visit(g, …

Software Development c
Member Avatar for johndoe444
0
137
Member Avatar for habibalbi

I need to write a program that accepts coins(nickles, dimes, quarter) and single dollar bills, dispenses the item and returns change if the deposited money exceeds the item's value. There are 5 items with the prices of: 65 cents, 95 cents, 50 cents, 110 cents and 75 cents. There is …

Software Development java
Member Avatar for VernonDozier
0
169
Member Avatar for Takarakujin

[CODE] int main() { char c1, c2; printf("Enter a character: "); scanf("%c", &c1); printf("Enter another character: "); scanf("%c", &c2); system("pause"); return; } [/CODE] Thats what my code looks like, the problem is the code skips the part where it lets you input c2. I dont understand why its doing this. …

Software Development c
Member Avatar for gerard4143
0
135
Member Avatar for msr

Hello, How can I disable beep sound in KeyDown event? I already tried using "e.Handler = true" but it doesn't seem to work. I have used it sucessfuly with KeyPress events, but now with KeyDown I can't get it work... This is my code: [CODE] private void msg_textbox_KeyDown(object sender, KeyEventArgs …

Software Development
Member Avatar for jonsca
0
512
Member Avatar for techie929

[CODE] //This is what we are asked to print in the assignment of Binary Search Trees.The Nodes are printed like: F +-- D | +-- NULL | \-- NULL \-- R +-- P | +-- M | | +-- NULL | | \-- N | | +-- NULL | | …

Software Development c c# c++
Member Avatar for techie929
0
79
Member Avatar for rwill357

I am new to binary trees. I have been given the task to write functions to count the number of nodes, to count the number of leaves in nodes, to count the number of right children, to find the height of the tree, and to delete all the leaves of …

Software Development c++ queue
Member Avatar for WaltP
0
171
Member Avatar for 140chris140

Hey, I have no idea if this thread already exists. I did try to make one before but it seemse like it didn't work. So here goes ! My question is - How do I put my .o files into an object library file? I'm using c++ visual studio express …

Software Development c c# c++ gui visual-studio
Member Avatar for 140chris140
0
534
Member Avatar for corby

pretty much where i have many of my comments are where i need to call the functions from the player and cell class in the tictactoe class? anyone have any ideas on how to do this? [CODE]#include <iostream> #include <cstdlib> using namespace std; class TicTacToe { public: TicTacToe()//contructor initializes the …

Software Development c++
Member Avatar for WargRider
0
676
Member Avatar for intervade

So I'm working on a linked list class, for a class I'm taking. I've basically just started working on it and I'm getting an unknown error that I really don't know how to deal with. The compiler is not returning an error in my code really, its returning a bunch …

Software Development c++ linked-list redhat
Member Avatar for mitrmkar
0
153
Member Avatar for navaidstech

OK...guys... I'm about to have a cow here. It sounds real simple but I just can't seem to get it. Here is the deal: I have a normalized database made up of four tables (Primary Key in bold) Player ([B]PlayerID[/B], PlayerName) NHLTeam ([B]NHLTeamID[/B], PoolTeamName) PoolTeam ([B]PoolTeamID[/B], PoolTeamName) PlayerStats (PlayerID, NHLTeamID, …

Software Development sql visual-basic
Member Avatar for navaidstech
0
199
Member Avatar for plodder

Hey. I have an arraylist; [CODE]public static ArrayList<String> name = new ArrayList<String>();[/CODE] and its made of of names; [CODE]public static String name;[/CODE] They both had to be static as it didn't work if they weren't. In the public void static main method, I populate this arraylist. I then want to …

Software Development java
Member Avatar for BestJewSinceJC
0
2K
Member Avatar for AnnetteM

Hello, I would like to execute a double for-loop in python. I use the python interface with ArcGIS (hence the gp. prefixes and weird functions). Here is my double-for loop attempt but I can't execute the code due to 'invalid syntax.' If I remove the bottom loop, the code runs …

Software Development python
Member Avatar for AnnetteM
0
1K
Member Avatar for pinansonoyon

Hello everybody! I use the actiWATE library for one project. This is a code file Main.java [CODE] import bro.bro; import java.io.IOException; import java.io.UnsupportedEncodingException; public class Main { public static void main(String[] args) throws UnsupportedEncodingException, IOException { bro doBro= new bro(); } } [/CODE] file bro.java [CODE] import com.actimind.actiwate.http.HttpResponse; import com.actimind.actiwate.testing.ActiwateTestCase; …

Software Development api google-api ide java java-netbeans
Member Avatar for BestJewSinceJC
0
198
Member Avatar for NinjaLink

First, I want to say that I am Java beginner and I do not have a lot of experience. This is my 2nd program. My objective is to write a program using stacks to see if a line inside of a file such as test.txt has matching scope symbols such …

Software Development java objective-c
Member Avatar for BestJewSinceJC
0
749
Member Avatar for valeriy_zf

I'm confused totally... Ok, I create the class with the array: [CODE]ref class my_child { public: array<int>^ mas_1D; my_child() // constructor { mas_1D = gcnew array<int>(10); }; };[/CODE] Next, I create one more class with the variables of the previous class: [CODE]ref class Father { public: my_child dear_baby; // 1-st …

Software Development c++
Member Avatar for valeriy_zf
0
152
Member Avatar for Kirielson

I'm having Buss Error issues. I feel that it has to do with either my deconstuctor or my insert/delete functions. I know I'm not supposed to put up whole source code, but I will put it up if needed. Assume that ItemType is an integer and Next is a pointer. …

Software Development c++
Member Avatar for Kirielson
0
118
Member Avatar for kendaop

Hello. Can someone please tell me what happens when you cast a large number to a char? For example: [CODE=C] char string[8]; int num = 2040; string[0] = (char) num; [/CODE] I'm working my way through a larger program to figure out what it does, but I'm not sure how …

Software Development c
Member Avatar for Dave Sinkula
0
5K
Member Avatar for wwsoft

hello my question is, How do you sort a vector containing a bunch of game_object* 's ? You can use STD's algorithm.sort() somehow ... right ?

Software Development algorithm c++
Member Avatar for mitrmkar
0
105
Member Avatar for techie929

Hi, Could anyone please tell me how can i input data either from a file or stdin. If the file name is not specified the data can be read from the UNIX command prompt using stdin. I know stdin is a file pointer but how to use it please explain??

Software Development c++ unix
Member Avatar for Duoas
0
592
Member Avatar for JohnnySpider

Hi All..Im new to Visual Basic 2008 and I'm having a really hard time figuring out how to to print all my tabs in my application. I have 5 tabs which have text boxes, labels, and combo boxes. Is there a way to print the contents of each tab and …

Software Development vb.net visual-basic
Member Avatar for JohnnySpider
0
836
Member Avatar for suncica2222

I need start up function that will make registry entries and make my .exe app start with the windows start up.Where can I find code for such function?

Software Development c++
Member Avatar for suncica2222
0
127
Member Avatar for CppBuilder2006

temporaries: Definition: a temporary is a C++ object which is niether a constant nor a variable, but is has type. example1: [CODE]TYPE f(int a) {...}[/CODE] f(2) is a temporary. it is niether a constant nor a variable but it has a type. example2: [CODE] class A { public: A(char ch) …

Software Development c++
Member Avatar for CppBuilder2006
0
277
Member Avatar for angel6969

Create a temperature class that internally stores a temperature in degrees Kelvin. However, create functions named setTempKelvin, setTempFahrenheit, setTempCelcius that takes input temperature in the specified scale, converts the temperature to kelvin, and stores that temperature in the class member variable. Also, create functions that return the stored temperature in …

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

Hello, This might not appear like a programming question, but inherently deals with code. I have a following piece of test-code, which has obvious errors like array index out of bounds, memory leak:- [CODE] #include "stdio.h" #include "stdlib.h" main() { int i; char *ptr; ptr = (char*)malloc(5); for(i=0;i<10;i++) { ptr[i]=(char)i; …

Member Avatar for Dave Sinkula
0
287
Member Avatar for katjaschmidt

Hello Assuming we got the following memory dump: [CODE]0x80004a3 <main+19>: call 0x8000470 <function> 0x80004a8 <main+24>: addl $0xc,%esp 0x80004ab <main+27>: movl $0x1,0xfffffffc(%ebp) 0x80004b2 <main+34>: movl 0xfffffffc(%ebp),%eax[/CODE] So when the call of <function> is finished, i.e. the function returns, the next Instruction is at 0x80004a8 (which the IP pointed at). If we …

Software Development assembly
Member Avatar for katjaschmidt
0
108
Member Avatar for tetron

There is probably a joke in the comment that I am missing but this post is going to give the design approaches to solving the problem posed by FirstPerson in his signature: find the last ten digits of x^x (x raised to the power of x) for all the positive …

Software Development c++
Member Avatar for mrnutty
0
295
Member Avatar for PixelHead777

OK, so I made a FastScrabble game. My code is currently: [CODE]from random import * from itertools import * scrabbletiles = [] showntiles = [] def drawtile(): nexttile = sample(scrabbletiles, 1) scrabbletiles.remove(nexttile[0]) showntiles += nexttile def possibilities(): possi = [] for i in range(2, len(showntiles)+1): for word in permutations(showntiles, i): …

Software Development python
Member Avatar for Gribouillis
0
149
Member Avatar for MrYrm

Hi all, As a learning project I'm rewriting a spider i have in php to c++. One part of the spider is a multi-threaded downloader, all this downloader does is read urls from a text file download the page and save it. I would like the downloader to strip out …

Software Development c++ regex xml
Member Avatar for MrYrm
0
83
Member Avatar for Aliun

So, this is my version of battleship with single space ships instead of a ship with 2,3,4, and 5. The only issue is the cpu I programmed isn't always choosing five, or it's choosing spots not on the map, I am completely lost if you can offer any help at …

Software Development c++
Member Avatar for Aliun
0
999
Member Avatar for aswin cp

Ive been told to do a program that prints the first [B]15 non-fibonacci series[/B] using 'while'...i got the fibonacci series correct, but cant find a solution for this... Here is my code for printing the first 15 fibonacci series... [CODE]#include<iostream.h> #include<conio.h> void main() { int n=1; int a=-1; int b=1; …

Software Development c++
Member Avatar for mrnutty
0
1K
Member Avatar for shahji

Hello all, I am trying to write a code. I need the code to do the following: An input box asks for a number, Then the below code divides values in a given column and paste them in the next available empty column. Then the 2nd formula runs and it …

Software Development visual-basic
Member Avatar for shahji
0
90
Member Avatar for brave2010

Write a shell script named displayargs that prints FOUR lines. The first line tells the name that was used to invoke the script, the second line tells how many parameters there were, the third line tells what the last parameter was, and the fourth line tells what the first parameter …

Software Development shell-scripting
Member Avatar for brave2010
0
117
Member Avatar for martin_dore

Here is my problem. I have a class Template define like this. [CODE]// File Vecteur.h template<class Elem> class Vecteur : public AdenEtEve { public : ... BOOL bInserer (Elem &elemAInserer, MOT32 wIndice);` ... protected: Elem elem; Elem *pElem; MOT32 wNbElem; } template<class Elem> BOOL Vecteur<Elem>::bInserer (Elem &elemAInserer, MOT32 wIndice) { …

Software Development c++
Member Avatar for martin_dore
0
108
Member Avatar for ziaul1234

Hi I am using netbeans and mysql. I am trying to run the an inventory system. I have linked the program with mysql. The program is running but when in log in page I input username and password which is preinstalled in mysql and then press submit, its not going …

Software Development java java-netbeans java-swing
Member Avatar for javaAddict
0
3K

The End.