132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tkdlady

I have the following code in some source I am looking at but I have never seen it before. Can someone tell me what it means? The code snippet is below: [CODE] [B]#define SET_EXPIRE(sa, delta, exp){[/B] [B]if[/B](((sa)->ipsa_ [B]## delta) != 0){[/B] (sa)->ipsa_ [B]## exp = sadb_add_time((sa)->ipsa_addtime,[/B] (sa)->ipsa_ [B]## delta);[/B] [/CODE] …

Software Development c
Member Avatar for tkdlady
0
174
Member Avatar for CoilFyzx

I am doing a personal project to get to know C a little better: Some essential information - I have a usb printer - I am using Windows 7 OS..suggest better Os..haha..not NT or ms-dos ;) - I am using Visual C++ 2008 Express edition..coding strictly in C however(You can …

Software Development c c# c++ printer
Member Avatar for Ancient Dragon
0
614
Member Avatar for akaban

How can i create a task to run a program by coding in vb6 and 2010

Software Development visual-basic
Member Avatar for Jx_Man
0
493
Member Avatar for Khoanyneosr

[CODE]cout << endl << "\n\n\nWhat would you like to do?"; cout << endl << " Add" << endl << " View" << endl << " Delete\n- "; cin >> todo; transform(todo.begin(), todo.end(), todo.begin(), toupper); cout << todo; bool done = true; while (!done) { if (todo == "DELETE") { system("cls"); …

Software Development c++
Member Avatar for Fbody
0
104
Member Avatar for kukuruku

Hi ,I am learning java ,and wondering why is this return in this method Thanks [CODE]public void updateDisplay() { if (curIndex<0 || curIndex>=appObj.array.size()) { display.setText(""); return; } display.setText( appObj.array.get(curIndex).toString()); }[/CODE]

Software Development java
Member Avatar for RunTimeError
0
105
Member Avatar for Joshua Kidd

Hello all, I have been trying to use the Gmap.Net.Windowsforms Control I do have it in my Components tab but When I try to add it to my Form it Does Absolutely NOTHING. I dont know why, But it will add every other component I try. Can someone please help? …

Software Development vb.net
Member Avatar for sgt_toasty
0
117
Member Avatar for Theisonews

how do i make an array read from a file. i tried google it. but i cant get it to work.[CODE]// theisonewscpp.cpp : Defines the entry point for the console application. // #include<iostream> #include <vector> #include <algorithm> using namespace std; bool myfunction (int i,int j) { return (i<j); } int …

Software Development algorithm c++
Member Avatar for Theisonews
0
471
Member Avatar for niketakapoor

[COLOR="Green"]exception occur i my code is: Violation of PRIMARY KEY constraint 'PK__lib_book__1ADC427003317E3D'. Cannot insert duplicate key in object 'dbo.lib_book_details'. The statement has been terminated. [/COLOR] [CODE]SqlConnection cs = new SqlConnection("Data Source=IRIS-CSG-174;Initial Catalog=library_system;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(); da.UpdateCommand = new SqlCommand("Update Lib_book_details set book_tag_id=@book_tag_id,book_name=@book_name,book_author_name=@book_author_name where book_category_id=@book_category_id", cs); da.UpdateCommand.Parameters.Add("@book_tag_id", SqlDbType.Int).Value …

Software Development open-source
Member Avatar for Mitja Bonca
0
91
Member Avatar for swathys

hi, How do i [COLOR="Red"]disable[/COLOR] user from goto desktop and when they press Control+Alt+Del it must prompt with admin username/Password.Is it possible to do....any idea ? i have created a login page but i have no idea on how to make it prompt when user press Control+Alt+Del

Software Development vb.net
Member Avatar for swathys
0
108
Member Avatar for predator78

Hello I'm learning a bit about data structures for the first time and so far I seem to understand how they work "I think" at this stage. My questions at this point would be. 1. Are data structures essentially classes minus methods which can preform actions on the memebers that …

Software Development c++ data-structure
Member Avatar for NicAx64
0
380
Member Avatar for Speleo

Hey all, I'm relatively new to python, just started learning it about a week ago. I've been working on making some small scripts to make learning easier for me. This is a cypher script I've been working on that is based off of the order of letters used on a …

Software Development encryption python
Member Avatar for predator78
0
273
Member Avatar for aprilchica3

Hello, I have spent numerous hours re-working this code and I hope someone can clear up my confusion! This program asks the user to enter a file name which will then create and display that file with a poem in all caps. The user is again prompted to enter another …

Software Development c c# c++ ios
Member Avatar for aprilchica3
0
178
Member Avatar for rovis

can anyone help with this program I tried to get user input but everytime I change the celcius to double or move it I get an error code that says it may not have been initilized. thanks for any help. [CODE]import java.util.Scanner; class conversion{ public static void main(String args[]){ Scanner …

Software Development java
Member Avatar for Tarkenfire
0
176
Member Avatar for Krstevski

Hello friends, I searching for "Combination generator" and I found something but not this what I need me... I want to write a script who will generate all possible combination by given string and range of length. e.g. string = "daniweb" length_range (3, 5) The results should be: _____________ ddd …

Software Development python
Member Avatar for Tech B
0
116
Member Avatar for sergent

This is when I try to output uninitialized characters on the screen. I thought C++ should declare all of them to 0's (or '\0' for characters) when I declare them without initializing?

Software Development c++
Member Avatar for NathanOliver
0
113
Member Avatar for charchar88

Ok, I'm using gcc in ubuntu to compile. Below is a boggle solver that basically loads a dictionary.txt file and then you would input a 5x5 grid of letters like below into the letter[][] array a b c d e f g h i j k l m n o …

Software Development c legal puzzle ubuntu
Member Avatar for WaltP
0
149
Member Avatar for TheSassyDragon

Im trying a practice problem from a textbook and here is my attempt at it, was wondering if I could get some advice both with structurally how to approach the problem, efficency, and any words of wisdom on dynamic memory. This is my study for my final exam which so …

Software Development c++ motherboards-cpu-ram
Member Avatar for Lerner
0
290
Member Avatar for twigan1015

Im trying to make an application that collects how many items were sold and which items they were, I was thinking something like this for checking the upc number, to see if it matches the names in the “files” [CODE] Select Case TextBox1.Text ' 0921115150 “Dark Chocolate Truffles”, 2221001501 “ …

Software Development display listview vb.net
Member Avatar for Unhnd_Exception
0
190
Member Avatar for sha11e

Heard people say c# for big programs, c for fast programs and c++ is just something that failed at being object oreanting c is c++ useful?

Software Development c++
Member Avatar for sergent
0
214
Member Avatar for gruffy321

hi all , can i access the parallel port using c`s assembly language syntax and using windows 98 se as the os or xp if i could (dont think xp is possible though, i dunno?) AOAP Thanks for reading , gruffy bw , if is possible can i get direction …

Software Development assembly c
Member Avatar for gruffy321
0
512
Member Avatar for gruffy321

hi guys , what am i doing wrong here, i have instigated several approaches, in assembly 8086 using borland/turbo 7.0 pascal on win 98se (so i can communicate easily to parallel port and stipulation of assignment) my issue lies with being able to allow execution of a looped routine but …

Software Development assembly pascal
Member Avatar for gruffy321
0
606
Member Avatar for katscandybar

I honestly have no idea what part of the code i messed up on. It says line 94 but there is nothing wrong with that line, i tried all i could do to fix it...maybe someone can help a bit? [ICODE]# Tic-Tac_toe # Plays the game of tic-tac-toe against a …

Software Development legal python
Member Avatar for woooee
0
155
Member Avatar for kannibalkiwi

okay, i'm stuck on an assignment! (first post btw, so tell me if i'm doing anything wrong please :) ) okay, my assignment is as follows : Write some efficient and commented python code to do the following: Accept an input value between 33 and 126 and convert it to …

Software Development python
Member Avatar for woooee
0
163
Member Avatar for sha11e

After some google-ing I found a page saying that .o files are " “Object Code” is just the translation of “Source Code”, which can be referred as machine language code." What .depend files are I didn't really understand. Someone said it... kinda... links to libraries or something? Else my exe …

Software Development c++
Member Avatar for nezachem
0
180
Member Avatar for StudentUoP

This is my calculator. I am trying to add the user input option. The combo box works with the calculate button, however, the user input option does not work with the calculate button. I only get $oo as the output in the Payment text field. Could someone please give me …

Software Development gui java java-swing
Member Avatar for mKorbel
0
844
Member Avatar for L0s3r

[CODE]class mymatrix{ private: int** arr; int m ,n; public: mymatrix() { std::cout<<"\nConstructor entered."; std::cout<<"\nEnter no. of rows of the matrix:"; std::cin>>m; std::cout<<"\nEnter no. of columns of the matrix:"; std::cin>>n; arr = new int*[m]; for(int i=0;i<m;i++) { arr[i]=new int[n]; } std::cout<<"\nConstructor exited."; } /****************************************************************************************/ mymatrix (mymatrix& t) { m=t.m; n=t.n; std::cout<<"\nCopy …

Software Development c++
Member Avatar for L0s3r
0
190
Member Avatar for Labdabeta

I am making a diplomacy tool, for the board game diplomacy. I need to make a map of each territory. I have a 75 #define MAP_"NAME" lines but I don't know how to set them to a mask value that can be checked since I don't know any 75-bit or …

Software Development c++
Member Avatar for Labdabeta
0
202
Member Avatar for lpmike

Hi guys, i have two tabs one is expiry date and block. my problem is, when i click block tab for 1st time it will correctly populate the datagridview. but when i click expiry date tab then block tab again, i got this error 'Provided column already belongs to the …

Software Development dataset vb.net
Member Avatar for Oxiegen
0
121
Member Avatar for pengkeanh

Hi All, For each element in data1, I need to figure out what elements in data2 are related to it. Also, for each element in data2, I need to figure out what elements in data1 are related to it. Therefore, I setup a mutual data structure as you can see …

Software Development c++ data-structure linked-list
Member Avatar for pengkeanh
0
370
Member Avatar for noobcoder

Hello all, I will be placing my source code onto pastebin and making it private as I am scared of my fellow students stealing my hard work for this class. So far I have about 1000 lines of code that is pretty easy to understand and it compiles and runs …

Software Development c++
Member Avatar for noobcoder
0
2K
Member Avatar for lu2lu

Hi I wrote a script for class that took one specific file as an input. Ideally, it should be able to take any file as an input. How do I do that? Someone suggested using $@ since is a global variable but I'm kinda confused on how to implement it. …

Software Development shell-scripting
Member Avatar for lu2lu
0
166
Member Avatar for Skeldave

Hi, Could someone explain to me how to create, store and manipulate variables please? At the moment i have this but I get errors: [code] BUTTONPRESSED DEFINE 0x000000 LDR r4, =BUTTONPRESSED ;Seems to be ok ADD r4, r4, #1 ;Seems to be ok MOV BUTTONPRESSED, r4 ;'Operand Syntax Error'[/code] All …

Software Development assembly
Member Avatar for Skeldave
0
108
Member Avatar for drake10k

Hello, I need to get the IP adress from a machine on the local network by knowing only it's name. Is there any way to do that? Thank you.

Software Development
Member Avatar for gusano79
0
91
Member Avatar for jrp370

i have a few .c files, pro3.c is the only file that complies without a problem however when i go to compile the other ones i get a error message: warning useless storage class specifier in empty declaration, i was hoping someone could tell/show me what i am doing wrong. …

Software Development c storage
Member Avatar for Narue
0
503
Member Avatar for tikoti

Hi! I am looking for something to compact the clear and push_back in one line... [CODE] std::vector<int> v(3,100); v.clear(); v.push_back(4); [/CODE] I have thought that vector::swap may be usefull for this task but still figuring out how. Any sugestion or idea? Thank you in advance!

Software Development c++
Member Avatar for tikoti
0
172
Member Avatar for dyingatmidnight

Okay this feels like a really silly question. Values that I have set to private should be able to be used through out that class alone, yeah. Say I have this: [code] #include <iostream> using namespace std; class Telegram{ public: Telegram(); ~Telegram(); void getData(); private: int **telegram; int rows, cols; …

Software Development c++
Member Avatar for Narue
0
96
Member Avatar for xanawa

i have datagrid view which uses dataset.. i would like to filter my datagridview by idCardNumber (getting it from the textbox1) how can i do so? could u explain pls?

Software Development dataset
Member Avatar for xanawa
0
98
Member Avatar for Arjun_Sarankulu

following is my code [CODE] namespace Test1 { public partial class Form1 : Form { string emp_code = ""; public Form1() { InitializeComponent(); } private void Uploadbutton_Click(object sender, EventArgs e) { openFileDialog1.ShowDialog(); filenametextBox.Text = openFileDialog1.FileName; }//Uploadbutton_Click private void save_to_DBbutton_Click(object sender, EventArgs e) { SqlTransaction transaction = null; SqlConnection connection_string = …

Software Development sql
Member Avatar for jbisono
0
136
Member Avatar for geekme

While compiling a simple code in c++ i get the errors C:\Users\ila\Desktop\mule\mule.c|1|iostream: No such file or directory| C:\Users\ila\Desktop\mule\mule.c||In function `main':| C:\Users\ila\Desktop\mule\mule.c|6|error: `cout' undeclared (first use in this function)| C:\Users\ila\Desktop\mule\mule.c|6|error: (Each undeclared identifier is reported only once| C:\Users\ila\Desktop\mule\mule.c|6|error: for each function it appears in.)| ||=== Build finished: 4 errors, 0 warnings …

Software Development c++
Member Avatar for JasonHippy
0
779
Member Avatar for araib

hey guys!! im in urgent need for help. im designing my own media player with basic functions! i have done the play, stop, pause button with IMEDIACONTROL mc; // mc is the object's name then mc.stop, mc.play. mc pause; but im confused on how use the my progressbar/trackbar to move …

Software Development
Member Avatar for zachattack05
0
80
Member Avatar for aska07

I got a dataset which contains the following data: id code description eff_date end_date --------------------------------------------------------- 1 ADV ADVANCE 2007-12-01 2007-12-31 2 ADV ADVANCE 2008-01-01 3 BUS BUS TICKET 2005-03-09 2007-04-05 4 BUS BUS TICKET 2007-04-06 5 PET PETROL FEES 2008-01-02 2009-10-11 6 PET PETROL FEES 2009-10-12 7 BOK BOOK 2010-01-01 …

Software Development dataset listview vb.net
Member Avatar for aska07
0
159
Member Avatar for Naruse

Hi, Anyone know how to delete items from recycle bin? please help. Best regards.

Software Development visual-basic
Member Avatar for smith.mitchell7
0
182
Member Avatar for vb6lover

Hi i need your help to make a webbrowser work automaticly i need make make webrowser enter automaticly to a link then wait 10 seconds and enter to auther link then wait 10 seconds and enter to auther link then wait 10 seconds and close automaticly i want the webrowser …

Software Development visual-basic
Member Avatar for smith.mitchell7
0
131
Member Avatar for uchendu korie

Please how can i make a Label control to have the present day an time value and also make the time tick as in a normal digital watch.i would be glad if anyone could help with a good idea and clear illustration with codes.Thanks and God bless

Software Development vb.net
Member Avatar for Luc001
0
184
Member Avatar for get connected

Hi Guru's I would like to be able to run code from a text file - is that possible. Ideally multiple applications will read this file and all behave according to the code inside the file. rather than having to keep rebuilding and distributing new versions./ I can't think of …

Software Development vb.net
Member Avatar for get connected
0
118
Member Avatar for geekme

I need to implement graphics in c++.what IDE should I use and what are the library files required for it? Note-I have just a week time so please tell some suitable way by which I can learn. Regards

Software Development c++ ide
Member Avatar for Kanoisa
0
212
Member Avatar for xanawa

[COLOR="Red"]txtIDCardNo.Text = c.IDCardNumber.ToString();[/COLOR] why is it giving me a [COLOR="Red"]nullreferenceexception[/COLOR]?

Software Development
Member Avatar for xanawa
0
105
Member Avatar for lowhzplayinfool

I've been working for a while now on a module assesment which is due in tomorrow. The trouble I have is that I have an extension, the module has finished and there is no one in my school to ask since it's been the Easter holiday :( Instead of 'borrowing' …

Software Development c++
Member Avatar for lowhzplayinfool
0
134
Member Avatar for razree

Hi all I have a simple program which calculates some values for me. Let's say I receive some money in advance, go to a trip and spend some money there (not necessary in the same currency that I received advance in. Now if I spent more money then advanced, I …

Software Development vb.net
0
120
Member Avatar for pooran.c

import java.util.LinkedList; import java.util.ListIterator; import java.io.*; public class llist { public static void main(String[] args) { String abc="poo"; String[][] array_string; array_string= new String[10][10]; array_string[0][0]="123"; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ array_string[i][j]=(String)j; System.out.print(array_string[i][j]); System.out.println(""); } } } } error is: Exception in thread "main" java.lang.Error: Unresolved compilation problem: Cannot cast from int to …

Software Development java
Member Avatar for pooran.c
0
245

The End.