132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bennyp

How do you call passwords from a txt file to check with the entered password to allow access. I hope that makes sense.

Software Development visual-basic
Member Avatar for HNgoc
0
333
Member Avatar for Petrock6

Hello. I'm developing a encryption program. I'm testing with encryption right now. I use bitwise operators and also bitwise shifts. [OR [|], XOR[^], AND[&], NOT[~], right[>>],left[<<]] To add even more security, I went ahead and added bitwise shifts. Whenever I shift the numbers, they go over 256 [max int in …

Software Development c encryption
Member Avatar for NeoKyrgyz
0
142
Member Avatar for DotA

I'm having trouble with a class which is fine until another method tries to access variables in the same class, seems like a scope issue to me. I get null pointers when i try to access an object which clearly works in a previous method. All my data and called …

Software Development java
Member Avatar for DotA
0
125
Member Avatar for JLopeman

Hi all - hope your weekend is going well. I've got the following code. It compiles, but gives a warning about a stack overflow error in the istream& operator function. When running the program, it just continuously outputs "Enter ID for student." What am I missing that makes this recursive? …

Software Development c++
Member Avatar for JLopeman
0
241
Member Avatar for saravananrmca

I developed this application on C++ I am using 5X5 and 3X3 kernels to convolve with Image. As I know convolution is computational Intensive and I have to convolve many kernels with my image to achieve the result, the execution takes 2 seconds. I would like to reduce the processing …

Software Development c++
Member Avatar for Salem
0
184
Member Avatar for schaffino

Heya, i'm learning c at the moment and have a project i need to complete. I'd like to start of by saying that the course i'm on is pretty poorly taught. They taught us scanf printf basic arrays basic structures and fflush which doesn't even work on my compiler. We …

Software Development c data-structure ubuntu
Member Avatar for schaffino
0
109
Member Avatar for alilskeetskeet

Hi, I am trying to code a program which will allow a user to search through a .db file for a word which is specified through an argument. The main class is in a different file. I am having a hard time putting the contents from the DB file into …

Software Development java
Member Avatar for BestJewSinceJC
0
124
Member Avatar for k007

I am a novice user and am proposing to do a project on airline reservation system in C++ as a part of class. This is something I myself have proposed. I have started to design the classes and need some help. So far I have only created 2 basic classes: …

Software Development c++ database-design
Member Avatar for k007
0
2K
Member Avatar for bharanidharanit

Hello, I am using OLEDBConnection and OLEDBDataAdapter and connected to the MS-Access database. how can i add the textbox value to the table in database on a button click and want to display it in datagridview??

Software Development vb.net
Member Avatar for c0deFr3aK
0
103
Member Avatar for roby22

I have a couple text boxes A,B, C A is time in B is time out And C calculates the difference. Those 3 boxes are datetime boxes This form has a report binding navigator that manages the interaction to the database. The problem is that the values entered and calculated …

Software Development vb.net
Member Avatar for roby22
0
95
Member Avatar for BlackStar

Can I have some idea's as to how to do that? Like say you have a piece of code that created n lists that are linked. Then you ask which node would you like to change the data? How would one do it? My Idea was the node contains N …

Software Development c++ linked-list
Member Avatar for BlackStar
0
505
Member Avatar for Q8iEnG

Hi mates.. I have a small question.. I have now 3 different classes, sounds ok? this is the 1st class, called "Wire" [CODE]public class Wire { private boolean Value; public boolean isValue() { return Value; } public void setValue(boolean value) { Value = value; } }[/CODE] This is the 2nd …

Software Development java
Member Avatar for BestJewSinceJC
0
162
Member Avatar for sasukeuchiha

Hi, I'm trying to find out how to call a method from another class every 0.5 seconds until I tell it to stop using a function from the same class (the class that is doing the calling). Does anyone know if this is even possible? I've done a few Internet …

Software Development java
Member Avatar for BestJewSinceJC
0
139
Member Avatar for mostermand

Hi and sorry for the inconvenience I am trying to make an interface where a function is run given a number(windows API). I want a default function to be run if it hasn't been overwritten by the user. So my question is can i assign a number to a function/method …

Software Development api c++ user-interface windows-api
Member Avatar for mostermand
0
149
Member Avatar for bernadlosini

i have to read input from .sql file .but that file name should be read from command line instead of cin.how to do that command? if my file t.sql ,how it would be? i tried like this but i couldnt get the output int main(int argc, char* argv[]) which file …

Software Development c++ file-system
Member Avatar for tux4life
0
157
Member Avatar for richardcyper

1.write a program segment that computes 1+2+3+...+(n-1)+n, where n is a data value. follow the loop body with an if statement that compares this value to (n*(n+1)) /2 and displays a message that indicates whether the value are the same or different. what message do you think will be displayed. …

Software Development c
Member Avatar for ArkM
0
134
Member Avatar for teddycow

I'm having some problems with my code: [CODE] int a, b,x, c, d, cdnr ; char songname[4][3000][30]; char sok[4], avsok[30], cdtitel[4][30], r[30], i; { ifstream array2; array2.open ("array.txt"); array2 >> i; for(a=1;a<=i;a++){ array2>>cdtitel[a]; array2>>r[a]; for(b=1;b<=r[a];b++) array2>>songname[a][b]; } array2.close(); } for(a=1;a<=i;a++){ cout<<cdtitel[a]<<endl<<endl; for(b=1;b<=r[a];b++) cout<<songname[a][b]<<endl; }[/CODE] My text file: [CODE]3 AAAAAAAA 2 …

Software Development c++ file-system
Member Avatar for tux4life
0
105
Member Avatar for bernadlosini

im given an very tuff assignment like this a. Introduction we have read all input from q sql file.the name of sql file should be read by a command line.please any body help me to do? i tried some. support of SQL of your ADT table to CREATE TABLE, DROP …

Software Development c++ data-structure linked-list storage
Member Avatar for bernadlosini
0
2K
Member Avatar for dzoch89

[code]typedef struct item { int number; char package[20]; char start[20]; char finish[20]; int weight; int distance; }ITEM; int i = 0; int num = 0; while(fscanf(ifp, "%d %s %s %s %d %d", &item[i].number, item[i].package, item[i].start, item[i].finish, &item[i].weight, &item[i].distance) != EOF) { num++; i++; } rewind(ifp); printf("\n\nnum = %d\n\n", num); [/code] …

Software Development c
Member Avatar for dzoch89
0
131
Member Avatar for fireup6

[img]http://img4.imageshack.us/img4/5140/71788648.jpg[/img] [code]program stub; {$APPTYPE CONSOLE} uses SysUtils,Windows; var bufferhandle : THandle; bufferaddress : pointer; processhandle : THandle; begin ///build buffer bufferhandle := GlobalAlloc(GMEM_MOVEABLE and GMEM_ZEROINIT, 1); bufferaddress := GlobalLock(bufferhandle); //get process handle processhandle := GetCurrentProcess; //read one byte of file and load into buffer ReadProcessMemory(processhandle, ptr($830022), bufferaddress, 1, nil); end. …

Software Development pascal
Member Avatar for FlamingClaw
0
233
Member Avatar for mr.g.at.lot33

Hello to whom ever can help me out there. I have created a game where the player selects on a suit to bet. this suit will be shared among three dice. if the player gets his symbol shown up on all the dice he wins three times the bet amount, …

Software Development python
Member Avatar for woooee
0
465
Member Avatar for CoolAtt

hi all. i have read a text line from a file using [CODE]fgets() [/CODE]into a char array [CODE]char astr[30][/CODE] then i did [CODE]strcat(astr,"secondstring") [/CODE] The output of [CODE]printf (astr)[/CODE] is appearing on 2 lines instead on same line. plz advise me wat i did wrong. thanks.

Software Development c
Member Avatar for Aia
0
5K
Member Avatar for sachintha81

I want to run a Transact SQL statement from within C# in order to create a login to SQL Server. It is important that I do it inside the code, without executing a .sql file from outside the program. How do I do that? Following is the T-SQL statement I …

Software Development c# sql windows-server
Member Avatar for sknake
0
145
Member Avatar for VIPER5646

Hi I have a checklist box and I am trying to Check and Uncheck the the Items with a single click. My code seams to be checking and uncheking if the Item is not selected. If I Click on an Item that is checked it will uncheck it or vice …

Software Development visual-basic
Member Avatar for VIPER5646
0
141
Member Avatar for AirmanTheGreat

Hello yet again =) I am required to create a program that consists of two classes. The driver class calls on the other class to set/get radius and height variables and calculate the volume of a cylinder. The problem I am having is that; I create two objects with two …

Software Development java java-swing
Member Avatar for AirmanTheGreat
0
122
Member Avatar for kiske

Hi, I have a function in VB6 like this: [CODE]tot = CLng(tot Xor Not lngdata)[/CODE] I'd like to do the same in c++, but I can't get the same results... I've tried like this: [CODE]tot = (int)((-1) * (tot ^ lngdata) ); [/CODE] But I don't get exactly the same …

Software Development c++ visual-basic
Member Avatar for ArkM
0
244
Member Avatar for sabian4k

I have to take in a number that is bigger than one digit and put them into an array and give each digit it's own place in an array. then I guess i have to create an array with those same digits to an int. lol how? haha [code] // …

Software Development c++
Member Avatar for tux4life
0
93
Member Avatar for wedunnit

I feel as if I have gone over this code until my eyes are bleeding. I am missing something, and I cannot seem to locate my problem. I am supposed to use an array to store my items, my output should display my items one at a time, and should …

Software Development java
Member Avatar for BestJewSinceJC
0
126
Member Avatar for SallyJ

Hi I need help with a function to determine if a triangle is a right angled triangle when three points are entered. Hers's what I have so far, it's the function at the bottomthat I struggle with: #include <iostream> using namespace std; struct pointType { int x; int y; }; …

Software Development c++
Member Avatar for ArkM
0
2K
Member Avatar for clR3vv

Well I decided to work on a GUI for this because I need the practice. However I ran into this weird problem. If I change line 67 from 1000 to 100 my program prints two of the last letter... [url]http://pastebin.com/d656cfd09[/url] (with 1000) [url]http://www.grabup.com/uploads/195f84b4dab3...f199.png?direct[/url] with (100) [url]http://www.grabup.com/uploads/8fd5d3d988ec...b568.png?direct[/url] That just makes no …

Software Development gui python
Member Avatar for clR3vv
0
331
Member Avatar for Mitja Bonca

I have created my own dataset: this.abcTableAdapter.Fill(this.dataSet1.abc); And I created DataGridViewComboBoxColumn called AllGrades: DataGridViewComboBoxColumn AllGrades = new DataGridViewComboBoxColumn(); for (int grade = 5; grade <= 10; grade++) { AllGrades.Items.Add(grade); } AllGrades.DataPropertyName = "Grade"; AllGrades.HeaderText = "Grade"; AllGrades.Width = 60; AllGrades.MaxDropDownItems = 6; AllGrades.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing; dataGridView1.Columns.Add(AllGrades); In a dataGridView I …

Software Development dataset
Member Avatar for kvprajapati
0
138
Member Avatar for dragonspectrum

I am trying to access a Clientside server file from an HTML file. Can anyone help me with how to code it? :eek: here is what I have: [code=html]<form method="get" <if true then action=" :?: *****This is were I need to access Client side server ****** " else action= "file:///K:/web-content/Client …

Software Development client-server html-css image java web-server
Member Avatar for kvprajapati
0
275
Member Avatar for TeCNoYoTTa

hello All I want to make a chat program where people enter a room and chat together :D like IRC i intend to use C# ....but i need to use free server [not ASP server :D] soo how can i do that :D ??

Software Development
Member Avatar for kvprajapati
0
72
Member Avatar for DaveD3

Hi, I am very new to .net and C#. I have a datagridview that I want to print. I found the code below on the internet and adapted it to my project. It sends a blank page to the printer. Can someone tell me what is wrong? printDocument1 is declared …

Software Development printer
Member Avatar for kvprajapati
0
119
Member Avatar for Sri_r

I am a junior Developer, working on asp.net,C#. I would require some code guidence in c#. Right now i am working on server controls, as in on click of radio button, data in dropdownlist shld appear. i have done this on javascript but trying do this in c#. Can anyone …

Software Development asp.net
Member Avatar for kvprajapati
0
89
Member Avatar for hammans

#include<iostream.h> #include<conio.h> #include<graphics.h> #include<dos.h> union REGS i,o; struct SREGS s; initmouse(); showmouse(); void changecursor(int *shape); int cursor1[32]={ 0x0000,0xf00f,0xe007,0xc003, 0x8001,0x0000,0x0000,0x0000, 0x0000,0x0000,0x0000,0x8001, 0xc003,0xe00f,0xf00f,0x0000, 0xffff,0x0ff0,0x1ff8,0x3ffc, 0x799e,0xf99f,0xffff,0xffff, 0xffff,0xffff,0xffff,0x7ffe, 0x3c3c,0x1ff8,0x0ff0,0xffff, }; int cursor2[32]={ 0xe00f,0xf10f,0xf81f,0x8c63, 0x0001,0x0001,0x0001,0x0001, 0x8003,0xc007,0xc007,0x8003, 0x8003,0xc7c7,0xffff,0xffff, 0x1010,0x0820,0x0440,0x739c, 0xfbbe,0xfffe,0xfffe,0xfffe, 0x7ffc,0x3ff8,0x3ff8,0x7ffc, 0x7d7c,0x3838,0x0000,0x0000, }; int cursor3[32]={ 0xffff,0xffff,0xffff,0xe03f, 0xc01e,0x800c,0x0801,0x8001, 0xc003,0x8003,0x0001,0x8009, 0xc01c,0xe03e,0xffff,0xffff, 0x0000,0x0000,0x0000,0x1fc0, 0x3fe1,0x7ff3,0xf7fe,0x7ffe, 0x3ffc,0x7ffc,0xfffe,0x7ff6, 0x3fe3,0x1fc1,0x0000,0x0000, }; int cursor4[32]={ …

Software Development c++
Member Avatar for MosaicFuneral
0
120
Member Avatar for Playtner

Hi, I've been trying to create program that can access a binary file with a vector in it without first saving it to the file. If I just try to read from the file without saving something, the vector will have information in it but when I output it to …

Software Development c++ file-system ios
Member Avatar for Playtner
0
93
Member Avatar for Bhoot

We are developing a client monitoring network application. We would require IP addresses of all the computers in the network. how do we retrieve these IP addresses ? I have already seen some code that makes use of unmanaged C++ or WinAPI. But I would prefer C# code (ofcourse). I …

Software Development dns
Member Avatar for ddanbe
0
232
Member Avatar for Yomet

Hello, I have the same problem as this poster [URL="http://www.daniweb.com/forums/thread89221.html"]http://www.daniweb.com/forums/thread89221.html[/URL] but to summarize: I have a VB6 project that worked fine until Sep. 2008. I have not worked on it since then so when I started working on it in the last month and got error messages I was very …

Software Development visual-basic
Member Avatar for jdn
0
2K
Member Avatar for MicrosoftMahmou

hi every one, As I said earlier i am very very beginner in c++ and programming in general .Then,I hope you bear with me and help me. in pointer: if i definition a pointer as integer ********************************** int **p = new int*[M]; for ( int i = 0; i < …

Software Development c++
Member Avatar for MicrosoftMahmou
0
82
Member Avatar for tasosa

[code=language] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char *arr[],int size) { int unique = 0; /* The length of dst after removing duplicates */ int n=size; char *dst[n]; /* The …

Software Development c file-system
Member Avatar for BestJewSinceJC
0
109
Member Avatar for vijju23

Can someone help me understand what exactly is the diffrence between SQL/XML and XPath? Are they same?

Software Development sql xml
Member Avatar for bigtiny
0
151
Member Avatar for nishantsharma

Hey guys Am working on this program, a part of which requires the input fixed-point binary number to be converted to decimal for example; 11001.101 to its equivalent mixed decimal number...........any suggestions(a function would be excellent :) )?

Software Development c++
Member Avatar for tux4life
0
241
Member Avatar for ning2009

Hi, there I have been confused about format control of List. My problem is that I get strange format when exchanging List[-1] with List[-2] using a middle variable. My code is to handle a text file. Old code in a For loop is: [QUOTE]sinf.write('*element,type=s4r,elset=WSLAB\n') path4b2_value[0]=str(int(path4b2_value[0])+100000) path4b3=','.join(path4b2_value) sinf.write(path4b3)[/QUOTE] which produces a …

Software Development python
Member Avatar for ning2009
0
131
Member Avatar for arpeggio54

Hello, I am in school programming a game using SDL. It's a simple game where the player shoots at ships, which spawns randomly. For this I call random function rand() each time in the game loop, then using the modulus operator to determine wether a new enemy will spawn. The …

Software Development c++
Member Avatar for Narue
0
88
Member Avatar for Poab9200

Ok, first things first. Hello everyone, I have a question. How would I go about adding Shortcut Arguments to my program(Code shown below). My idea: I play a game called [I]Counter-Strike:Source[/I] and recently I've needed to gather all the names of custom maps added to the \map directory. To the …

Software Development c c# c++ linked-list
Member Avatar for ddanbe
0
260
Member Avatar for shaynerossum

I am in the progress of trying to write a C++ (Visual C++ compile) program that dynamically reads in files from a series of sub directories that the user inputs. I am trying to catenate several strings together to prevent to many input request from the user. I could probably …

Software Development c++
Member Avatar for shaynerossum
0
162
Member Avatar for scheda

I'm having a little trouble running wxPython. I did a little Googling and didn't find a whole lot though. Here is a sample of what I'm trying to run... [ICODE]import wx app = wx.PySimpleApp() frame = wx.Frame(None, wx.ID_ANY, "Hello World") frame.Show(True) app.MainLoop()[/ICODE] This code is straight from the tutorial provided …

Software Development machine-learning python
Member Avatar for vegaseat
0
138
Member Avatar for norulez43

Hello, I have a program that splits up a single .txt file into separate files (one per sales rep). The original text file has a layout that used to be printed on wide tractor feed paper. I am saving these output files as .doc's. My only problem is that, when …

Software Development c++ file-system
Member Avatar for ArkM
0
161
Member Avatar for vddmanikanta

Sairam to everyone Good morning I am using AVR Studio to compile MuCOS II onto Micrium site. Micrium is the provider of all MuCOS II an RTOS for various ports. I had the following error : ../../os_dbg.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'INT16U' Addressing this line: …

Software Development c
Member Avatar for Salem
0
65

The End.