132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for judithSampathwa

hi there, i have a datagrid view in a form. when a button is clicked for the first time a new row is added to the daagridview, when i click the button for the second time i want to check whether there is a blank row in the datagrid view, …

Software Development vb.net
Member Avatar for finito
0
65
Member Avatar for sfrider0

I finally figured out that my applet needs to be signed for it to work. So I've spent the last few hours figuring out how to do that. I used the keytool to create my .crt file, then created the .jar file using jarsigner. After I did all of that, …

Software Development java
Member Avatar for bigdognec
0
106
Member Avatar for itshibu

Dear all, I am creating a small project for my company ie; document controller. In this project a small module is reading documents. I already made reading of other documents like word,text, etc. But I am unable to create a program that can read pdf files. My main aim is …

Software Development pdf vb.net
Member Avatar for tyagnesh
0
185
Member Avatar for mtxgroup

hi can someone tell me how to write a code in assembly language(ASM16,TASM Compiler,Windows) to implement a simple countdown timer (to miliseconds accuracy) display on the command prompt screen? after starting the program when you press the space - the stopwatch will start - press space bar again - stopwatch …

Software Development assembly
0
57
Member Avatar for bbman

Hey, I noticed that I have been using var instead of string, int etc. in delegates due to a habit from another language where they were cleared after, and it just makes a temporary value for the class only, and once it has executed, is deleted. Is this the same …

Software Development
Member Avatar for bbman
0
73
Member Avatar for Graphix

Hello everybody, I am currently developping a GUI interface game for windows XP. I am currently having difficulty changing the background of a EDIT box created with CreateWindowEx(). It's default background is white (which is the color I want). But the user is not supposed to be able to adjust …

Software Development c++ gui user-interface windows-api
Member Avatar for gashtio
0
4K
Member Avatar for Melechesh

Hello I've been designing a Bookstore where students can login to their accounts and buy books. And since then i've been struggling with this " error '424' Object required " and i i don't know how to fix it. This starts at the beginning of the program at the login. …

Software Development visual-basic
Member Avatar for Bashir ahmad
0
262
Member Avatar for py.thon

Hello ,Iam trying to write a programme for the connect -N game : Your program must allow two people to play Connect-N against each other using a text-based interface. Since this is a text-based game, we do not represent the players as colours(traditionally red and yellow), but instead as numbers: …

Software Development python
Member Avatar for ANTALIFE
0
825
Member Avatar for RIsagara
Member Avatar for RIsagara
0
154
Member Avatar for ebiemami

Format of the connection string to access an ACCESS database in c# over network? I want to make a OleDbConnection in c# and connect it to an access database in another PC on my lan. This is an example of a connection string to connect to a database on my …

Software Development c# microsoft-access
Member Avatar for Ramy Mahrous
0
467
Member Avatar for colmcy1

Hey all, stuck on abit of a problem. I am outputting afew strings to a text file. However when I check the text file it has been automatically split into 2 lines. Is there anyway to force the output to remain in one line or what is the reason for …

Software Development c++ ios
Member Avatar for colmcy1
0
82
Member Avatar for xenanovich

Hi, i am trying to read the contents of a text file containing a single line into a string. i'm doing this in a while loop. the text file gets updated in each run of the loop and therefore the string should contain a new value in each run. but …

Software Development c file-system lan-wan
Member Avatar for xenanovich
0
266
Member Avatar for BonaDrag

I'm a newbie so please forgive me if this is a stupid question. I don't understand what I've missed in the code below and how I can get it to work. I have a few lines of code that works fine. It makes a * show as an error message …

Software Development
Member Avatar for BonaDrag
0
96
Member Avatar for Swiftle

I've made a Circular List and I need help implementing a simple memory management. It's the first time I'm doing this so I really have no idea where to start. What I want to do is pre-allocate X amount of Nodes that I can use for my list. Only when …

Software Development c++
Member Avatar for nbaztec
0
157
Member Avatar for ceyesuma

Hello Is there a recommended way to drag a table from netbeans pallet and use ResultSetMetaData or any class to have the table change automatically for any table being displayed? thanks

Software Development java
0
49
Member Avatar for Ferny84

Hey everyone, I'm trying to get this code to work... [CODE]#include <stdlib.h> #include <stdio.h> #include <stdbool.h> int allPrimes(int n) { int kiloN = n*1000; int count = 0; int i; for(i = 2; i <= kiloN; i++) { boolean hasfactor = false; int j = 2; while(j<i and !hasfactor) { …

Software Development c
Member Avatar for Aia
0
105
Member Avatar for DYE

Hi I'm new and have a question regarding MIPS hardware single cycle datapath. I've search and looked through many textbooks and I couldn't find the answer to my question. My question is how does a shift instruction (srl, sll, etc.) get interpreted and travel through a single cycle datapath. Everything …

Software Development assembly data-structure pdf
Member Avatar for asra62
0
815
Member Avatar for lulusweety

The following function DateAdd("h", -24, DateAdd("d", 1, DateValue(Now))) gives todays date without any minutes or seconds. How is it possible by just adding 1 day and subtracting 24 hours we get todays date without time in the result. 'Now' actually displays time along with date

Software Development vb.net
Member Avatar for lulusweety
0
113
Member Avatar for elnaz1010

hi i want to redirect python compiler messages to a file. for example if i run a python which has a line [CODE=python]a=;2[/CODE] python compiler will give me an error message saying 'syntax error' how i can fetch this error and write it to a file? i run it with …

Software Development python
Member Avatar for Gribouillis
0
147
Member Avatar for tinanewtonart

[CODE] //************************************************************************************ //function playagain(); //parameters char cAns //resets game variables and board or exits game //************************************************************************************ void playagain(char cAns) { cout<<"would you like to play again?(y/n)"<<endl;//function call depending of the choice of the player cin>>cAns;//sts value to variable do { iTotalMoves=0;//resets # of moves ResetBoard();//resets game array cPlayerSymbol='a';//resets game char …

Software Development c++
Member Avatar for tinanewtonart
0
260
Member Avatar for wade2462

I figured it out. To return an array you need to write your function as so [CODE] int *foo() {} [/CODE]

Software Development c++ mathematics
Member Avatar for wade2462
0
98
Member Avatar for rahul8590

i have a very simple program which takes in file name as argument and print the content of the file , but for some reason it isnt working here is the code [code] import sys ,os def Cat(filename): f = open(filename) text = f.read() print '----', filename print text def …

Software Development python
Member Avatar for rahul8590
0
198
Member Avatar for epicasian

Hi, I'm trying to code a tile engine for a game a couple friends and I are making. The main speed bump that I've run into is converting a string, which the contents are only integers(from a text file), into a integer array. How would I go about this? Thanks …

Software Development
Member Avatar for JOSheaIV
0
119
Member Avatar for Nintendo

I just upgraded my server and now a simple log script reaks of errors. [code]#!/usr/bin/perl use CGI ':standard'; use warnings; $database = "/full_path/filename.shtml"; $shortdate = `date +"%D %T %Z"`; chop ($shortdate); open (DATABASE,">>$database"); print DATABASE "$ENV{'REMOTE_ADDR'} - $shortdate - $ENV{'SCRIPT_URI'} - $ENV{'HTTP_USER_AGENT'}<!-- - $ENV{'HTTP_REFERER'}--><BR>\n"; close(DATABASE); { print "Content-Type: text/html\n\n"; print …

Software Development perl
Member Avatar for Nintendo
0
439
Member Avatar for oaktrees

This should be simple, but I think I am missing up the syntax. I am trying to make a list of the letters that appear in a string. import string values=[] values[5]="12234.7B" holder=[] holder.append(values[5].letters) This code gives me an error on the letters function. Any idea why? Many thanks.

Software Development python
Member Avatar for oaktrees
0
118
Member Avatar for togdem

Hi Im a bit new here and i have been learning programming for a while now. But i just started to learn asm. I've been all over the internet to find how to build a simple os. But there is not much information that is related to my problum so …

Software Development assembly
Member Avatar for maf5693
0
114
Member Avatar for needanswer

How your guys run the IIS? I am just done a project (vb.net with access) on the vb 2008 express, but not sure the steps to set up and run the project on the internet with IIS? THANKS.

Software Development vb.net
Member Avatar for needanswer
0
152
Member Avatar for socal

This is my class [CODE]import java.io.*; public class bankAccount { //instance variables public String name; public int number; public double balance; public double deposit; //constructor public bankAccount(String name, int number, double balance, double deposit) { this.name = "John Smith"; this.number = 123456; this.balance = 0.0; } public double getBalance() { …

Software Development java
Member Avatar for idlackage
0
101
Member Avatar for Osas106

Good day my masters first let me start by saying that i am a complete novice to c++ programming. i got myself into some trouble while debugging a win32 program in 2008 V.studio. with this code line(with similar lines anyway): ::MessageBox (wndhnd, "Error!", "Exception Occured", MB_ICONINFORMATION | MB_OK); Here's the …

Member Avatar for griswolf
0
111
Member Avatar for didi00

Ok, guys I know that I'm asking too much questions, it's just that I really want to understand how things work. So I have a little project: Make a program in C which runs three processes (A,B,C), which use a common memory (buffer). Process A generates 50 random numbers and …

Software Development c
Member Avatar for didi00
0
682
Member Avatar for phil333

Just downloaded C# 2008 Express and I am working from the 'dummies guide to C# 2008'. Having initial problem with some things in the book not corresponding to what I am trying to do- 1 cant find a build-build program 1 from the drop down menu. Just build solution. Is …

Software Development
Member Avatar for phil333
0
167
Member Avatar for WildBamaBoy

Hi, I'm writing a program that totals how long someone has worked by the starting time and the ending time. It DOES work if the times entered are both AM or PM. Like if they worked from 2:00 to 9:10, it tells me the right answer of 7 hours and …

Software Development python
Member Avatar for WildBamaBoy
0
2K
Member Avatar for rohit_static

Hi , I actually have a script to bundle up two files but i don't know how it works .Can someone please explain. Here's the script:- [code] for i do echo "echo $i 1>&2" echo "cat >$i <<'End of $i'" cat $i echo "End of $i" done [/code] now suppose …

Software Development shell-scripting
Member Avatar for nezachem
0
193
Member Avatar for spikeru

I am a relatively inexperienced coder so please excuse my ignorance. I am attempting to write a code to iterate rotations of functional groups in a molecule. The number of groups that need to rotate and the step size is based on user input. I know i can generate the …

Software Development python
Member Avatar for TrustyTony
0
504
Member Avatar for magnet220

Imagine that we have 10 Labels from up to down in a Form, that each of them contains a number. How can I sort these Labels?, so that the greatest number go to the top of Labels and the smallest one go to the end?

Software Development
Member Avatar for bbman
0
65
Member Avatar for zismad

hi all! i have a table layout panel with lots of controls in it. side to it i have a combobox with 5 options "system A" and "system B" ect. when i pick one system, i clear all the controls one by one (checkboxes to check=falsa , textboxes.text = "" …

Software Development
Member Avatar for Ionelul
0
432
Member Avatar for forneamax

Hello guys, I'm making an application for myself and I need to get the coordinates of the mouse when left click was pressed. I managed to get the coordinates when I click on the form by using[CODE]MouseUp += new MouseEventHandler(KeyCaptured); void KeyCaptured(object sender, MouseEventArgs e)[/CODE] but when I click inside …

Software Development
Member Avatar for bbman
0
2K
Member Avatar for ihatehippies

Can anyone think of an intelligent way to extract the largest sequence of numbers from a list like: [CODE=python][[2, 4, 9], [3, 5, 10], [6], [2, 4, 9], [1, 8, 11], [3, 5, 10], [6], [2, 4, 9], [0, 7], [1, 8, 11]][/CODE] without brute forcing every possibility. You can …

Software Development python
Member Avatar for TrustyTony
0
168
Member Avatar for johndoe444

I was debugging a program and following is the snapshot: [CODE]81 while (j < len_y && suf_arr[j].word[0] == c) (gdb) 184 if (suf_arr[j].len > 1) (gdb) n 186 memcpy(temp_str, suf_arr[j].word+1, suf_arr[j].len-1); (gdb) n 187 ind = search(suf_arr, temp_str, len_y); (gdb) print suf_arr[j].word $13 = 0x7fffffff96d2 "bbit" (gdb) print suf_arr[j].word+1 $14 …

Software Development c
Member Avatar for UncleLeroy
0
2K
Member Avatar for lewashby

I use Ubuntu Linux and I'M running python 3. How do I know what version of pygame to get for python 3? And could someone point me to it? Thanks.

Software Development python ubuntu
Member Avatar for griswolf
0
127
Member Avatar for Ceviz

Hello there! I am pretty new to xml and xsl. I have been trying to achive a dynamic link creation. My xml file has the format like; <root> [INDENT]<customer>company_name</customer> [INDENT]<id>2334</id> <code>xsTu4</code> <mail>info@comany.com</mail>[/INDENT] </customer>[/INDENT] </root> I want to use an XSL file to give me a link like detail.aspx?id=2334 I have …

Software Development seo xml
Member Avatar for iceandrews
0
220
Member Avatar for CppFTW

Hi, I was wondering if the compiler Visual C++ is smart enough to optimize code like this: [CODE=C++]string temp = "abcd"; string temp2 = "hahaha"; string temp3 = temp + temp2;[/CODE] "temp + temp2" can be replaced by "abcdhahaha" [CODE=C++]vector<char> alphabet; for (char i = 'a'; i <= 'z'; i++) …

Software Development c++
Member Avatar for CppFTW
0
162
Member Avatar for sfrider0

I've been working on an applet that gets all the links from a webpage. So far, I have it getting the source. I have found some regular expressions that supposedly will parse out the source, but it doesn't make any change to the original source. I also found some example …

Software Development html-css java
Member Avatar for sfrider0
0
96
Member Avatar for saw77

[code]#include<stdio.h> #include<stdlib.h> main(){ char *tab; int n; int i; char c; printf("dimension du tableau?"); scanf("%d",&n); tab=(char*)malloc(n*sizeof(char)); printf("remplir le tableau :"); fflush(stdin); gets(tab); for(i=0;tab[i]!='\0';i++){ printf("%c",tab[i]); } }[/code] let's say i just want 5 letters in tab,so i run the program and put n=5,but what i don't get is that if i …

Software Development c
Member Avatar for saw77
0
217
Member Avatar for sdinu96

[code]#include<stdio.h> #include<stdlib.h> #include<string.h> struct name { int a; char b[10]; char c; }; int main() { struct name *p; p = (struct name *)malloc(3 * sizeof(struct name)); char *n; n = "12345"; n = (char *)p; n = (int*)n; /*this is not correct . in doubt....change correctly*/ strcpy(n+(sizeof(p->a)),"ALL"); *(n+sizeof(p->a)+sizeof(p->b)) = …

Software Development c
Member Avatar for abhimanipal
0
112
Member Avatar for Don_k

The aim of the program is to add ten numbers then output their sum. I can do this but in a very basic way. for instance the only way I know how to do this is by adding each array and thats quite tedious and long is there any way …

Software Development c
Member Avatar for Aia
0
76
Member Avatar for John Linux

What is a pre-processor macro and how is it processed by the C++ system? Demonstrate a potential problem with this approach by referring to the macro [CODE]#define SQR(t) t*t[/CODE] what is wrong here... besides the fact that if you put a type that cant use the * operator you'll get …

Software Development c++
Member Avatar for Banfa
0
86
Member Avatar for Tellalca

I've been developing console applications using C/C++. I now want to move on and create some GUI applications. For that i saw some libraries to create GUI. I think those libraries are OS dependent. How can we create GUI applications compatible with Linux, Windows and Mac, or is it even …

Software Development c gui
Member Avatar for gerard4143
0
112
Member Avatar for sdhawan

Hi , I am trying to insert chinese characters in database using sql statement but they appear as '????????' in the databse.Can anyone help me with this . Thanks

Software Development
Member Avatar for sdhawan
0
118
Member Avatar for dimios

Hi everyone, can you help me please with then following?? a)The C++ Standard Template Library (STL) contains a number of container data types, explain with suitable examples the advantages these give to the programmer over a procedural language such as C. b)Demonstrate using suitable code the usage of the STL …

Software Development c c# c++
Member Avatar for bandtank
0
221

The End.