132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stupendousomega

#include <stdio.h> typedef struct { int stat1, stat2, stat3; } X_type; void createPlayer(char *X) { X_type X; } int main() { createPlayer("Foo"); createPlayer("Bar"); return 0; } I would like to create a structure ojject based on a string passed to a function. So the above code would create 2 X_type …

Software Development c
Member Avatar for Ancient Dragon
0
166
Member Avatar for Nebil

Hi guys,i just wanted to know how to export a record when ever a user clicks from a listview and export it to excel by adding a worksheet whenever the record is more than 3,basically excel offers 3wrk sheets. can u help?Thank You!!!

Software Development listview vb.net
Member Avatar for Nebil
0
343
Member Avatar for sainaleni.guttula

`**when we write a program in java main() will be executed first why?**`

Software Development java
Member Avatar for stultuske
0
95
Member Avatar for johans22

why this program crashes?. what is the fix?. #include <iostream> typedef struct test { int array[10]; }test; static test *p; int main(int argc, char* argv[]) { p->array[0] = 10; std::cout << p->array[0] << std::endl; return 0; }

Software Development c++
Member Avatar for RonalBertogi
0
170
Member Avatar for newGains

i created a testScores class which initialized an object with an array of scores and had an exception that if the score was <0 or >100 it would throw an IllegalArguementException. I got my main program to work it throws the exception for the array with the bad grade in …

Software Development java
Member Avatar for JamesCherrill
0
303
Member Avatar for dougy83

Hi all, I'm writing a simple application in C# but I'm having an annoying ArgumentOutOfRangeException thrown by Invoke() saying "Text length must be less than 64 characters long.". Is this usual that strings passed through delegates have to be shorter than 64 characters? What's the usual neat way around it? …

Software Development
Member Avatar for dougy83
0
253
Member Avatar for JustLeftRavenholm

/** Saadman's ISU **/ import java.io.*; import java.util.*; public class ISU { public static void main (String[]args) { //Keyboard Initialization Scanner kbin = new Scanner(System.in); //Variable Inititialization & Declaration; String list[] = new String [21]; int price1 = 30; int price2 = 20; int price3 = 25; int price4 = …

Software Development java web-design
Member Avatar for stultuske
0
219
Member Avatar for Papa_Don

Group, I'm trying to write the commands to update a row within a SQL table. I've written the following: USE DATADESIGNSOLUTIONS SET IDENTITY_INSERT LocationID ON INSERT INTO LOCATIONS_SETUP(LocationID, LocationNumber, LocationName, LocationAddress1, LocationAddress2, LocationAddress3, LocationCity, LocationState, LocationZipCode, LocationZipCodeExt, PhoneNumber, FaxNumber, BillToAnswer, BillToLocation) VALUES(10, 1, 'Traditions in Tile / Buford RDC', '4325 …

Software Development sql vb.net
Member Avatar for Papa_Don
0
215
Member Avatar for amvx86

Hey everyone, I hate posting in forums asking people for help, and then searching for hours and wanting to throw my computer out the window because I can never seem to find the resources I need for programming. I feel that in vb 6 everything was well documented and now …

Software Development api vb.net windows-api
Member Avatar for tinstaafl
0
387
Member Avatar for sumitrapaul123

Hi, I am new to c# windows application. I have added a listview programatically to c# win form. I want to add a listview row (editable row) dynamically on click of Add button so that user can type new items and save it. Please see the code which adds a …

Software Development c# listview
Member Avatar for tinstaafl
0
3K
Member Avatar for ManthanB

Hi friend,,,, I am having a little query to ask you all people. Well i have developed project ibn vs2003 few years back. it was having log writing function using stream writer. it is working pefectly on my machine. however it did not seem to working on any other machine. …

Software Development
Member Avatar for ManthanB
0
211
Member Avatar for tingwong

Hi I am working on a project on writing our own huffman coding. I am currently having trouble writing the binary 1's and 0's to an output file. It works with smaller input files but for very large files it does not write anything out to the output file. The …

Software Development file-system java queue
Member Avatar for Schol-R-LEA
0
1K
Member Avatar for Aerigon

I have been working on a project that requires arrival date, departure date, number of nights, price per night and total price. I have everything working somewhat but can not seem to figure out how to get the last three items to display in the text boxes instead of a …

Software Development vb.net
Member Avatar for tinstaafl
0
290
Member Avatar for beginner at c++

Write a complete, well-written, documented program (named convert) that prompts for and reads in a number with at most MAX_DIGITS (9) in one of the following four formats: binary, octal, decimal, and hexadecimal and converts it to a requested base. Once the number has been read in, you should verify …

Software Development c++
Member Avatar for Labdabeta
0
270
Member Avatar for yankeetooter7

I am working on a password project for school, and I am stumped on one part. I know how to test if a string (or file) contains a digit, or a letter, but in this case we have to verify that there is at least one character that is not …

Software Development c++
Member Avatar for yankeetooter7
0
208
Member Avatar for eoop.org

Hi, I am looking for some good ideas for development in C#. I feel that there is nothing more to develop and challange myself. Please let me know if u have any great ideas that can be developd for private or commercial usage. Thanks, Waleed Ahmed

Software Development
Member Avatar for kenjutsuka
0
219
Member Avatar for Dmitriy78

;Dmitriy Potemkin 816 Assignment 3 BR main retVal: .Equate 2 printMes:STRO msg1,d CHARO '\n',i STRO msg2,d CHARO '\n',i STRO msg3,d CHARO '\n',i STRO msg4,d CHARO '\n',i DECI retVal,s RET0 ;******************************************************************* second procedure str1: .Equate 0 rett2: .Equate 3 max2: .Equate 5 sent2: .Equate 7 retVal2: .Equate 9 secPro: SUBSP 1,i …

Software Development assembly
0
122
Member Avatar for Papa_Don

Group, I'm working to use a second for to do task that will be populate texts boxes in the first form. However I'm getting an error that says, "An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an …

Software Development vb.net
Member Avatar for Papa_Don
0
751
Member Avatar for TexasJr

I thought I was finished with my code until I tried to compile it and came out with an error that I really don't know where it's coming from. Can anyone look over and see if they can find the source of the error? Please and thank you! These are …

Software Development c++ open-source
Member Avatar for TexasJr
0
2K
Member Avatar for kshahnazari

I was writing a data structure but suddenly after a little coding a strange error gives that no operator">>" matches these operends and also no operator"=" matches these operends . its just after if (right==1) in the cin>>a[i] and a[i]= mininfinitive the code : #include <iostream> #include <iomanip> #include <fstream> …

Software Development algorithm c++ data-structure queue
Member Avatar for Moschops
0
263
Member Avatar for otengkwaku

Wrote a peice of code that does something uniquc in my point of view. After that i was so excited that i published it. Only to find out that it contain a bug. By the way the bug was very defficul to spot. and by solving the bug i reworte …

Software Development c++ publishing python
Member Avatar for snippsat
0
296
Member Avatar for LeNenne

Hi I have tried evrything in a list box. The listbox contain this 04-25 ene and I will deselect 04-25 when I am going to dbclick on that item the name "ene" shall I display in a book Any Help Lenny

Software Development visual-basic
Member Avatar for LeNenne
0
157
Member Avatar for Wireboy

I'm new here and just started my first class program. It's an input/output assignment and I'm using getline to store the string values since I anticipate whitespace being used. The problem is that in the console, the code doesn't allow me to input anything for my favorite city, leaving it …

Software Development c++
Member Avatar for nullptr
0
151
Member Avatar for pc20912

Sir, In My --MS-Access Data Base, under one Person (Details) have more rows (When Repeat) I code to Create Tab Pages equal to Repeat Time like this, While QReaderQ.Read() RecCount = RecCount + 1 ' Count How many Rows End While 'Add Tab Pages Equal of Records, TabControl1.TabPages.Clear() For xXx …

Software Development vb.net
Member Avatar for tinstaafl
0
323
Member Avatar for markchua89

package Assignments1; import java.util.Scanner; public class Q5 { public static void main(String[] args) { { int size; Scanner reader = new Scanner(System.in); System.out.println("Enter the size :"); size = reader.nextInt(); int [] grades = new int [size]; int sum = 0; double average; for(int i=0; i<grades.length; i++) { System.out.println("Enter the grades" …

Software Development java
Member Avatar for markchua89
0
215
Member Avatar for George_91

Hi, it's a very simple question, but I cant see how to solve it! I'm doing a web form, I have a button inside a table, the thing is, I can't access to the code of this button, Usually you just double click on the design view over a button, …

Software Development gui microsoft-access web-design
Member Avatar for JorgeM
0
194
Member Avatar for mitchell.palmer2

*Hi guys...I am currently working on a really basic scripting langauge that gets the first 4 letters of a textbox's content (in a Windows Form project) and compares it to a in-program list of keywords and then uses the remaining characters to form an argument to the keywords... I was …

Software Development vb.net
Member Avatar for tinstaafl
0
172
Member Avatar for HanyaYgSatu

I have to do final year project based of system .. i've choose to make information technology system .. i have to make it showed up at LCD sceen using database monitoring system .. i have to link to our University student database .. it such a hard work .. …

Software Development audio visual-basic
Member Avatar for Reverend Jim
0
114
Member Avatar for pearl.kumar1

I need to create dataset in my module.If i retrieve the database (Huge amount of data are there),It takes too much time to load..Is it possible to resolve this issue..

Software Development dataset vb.net
Member Avatar for Abu Ehab
0
149
Member Avatar for Forte1292

I have the numbers 0-8 so I can represent a state as 012345678 012345687 .... 876543201 876543210 This gives me 40320 ways to represent a state so I have a HashMap of size 40320 and I need a good way to make sure each state only corresponds to 1 key …

Software Development java
Member Avatar for bguild
0
153
Member Avatar for Papa_Don

Hello group! I've seen one short discussion of ensuring that the controls within a form will shrink, grown and stay in their proportional position as the user changes the form size. Unfortunately it covered parent/child forms, etc. It didn't make a lot of sense to me. Ultimately I do want …

Software Development vb.net
Member Avatar for Papa_Don
0
556
Member Avatar for tony75

Hi Im installing eclipse and I would like run perl but I got this error message “Missing Perl interprete” anyone know how can I fix it? http://ubuntuone.com/7BVJr5y84ApsitTZSldele

Software Development perl
Member Avatar for tony75
0
254
Member Avatar for rgilmore

Forgive the begginer logic, but I can't afford a new degree until I get a raise. Goal: To create a dynamic text search based on a bulleted style procedure. Objective: Use a string reader to read a richtextbox line by line checking for the start and end of bullet points …

Software Development vb.net
Member Avatar for tinstaafl
0
302
Member Avatar for amjadalibooni

Σ = {a, b} Write a Regular Expression, that only accepts strings with exactly two or three a’s in the string. There is no restriction on occurrence of b’s in the string. Few examples of accepted strings are as under; - bbaabbbba - baba - aba - abaa - aa …

Software Development c++
Member Avatar for Moschops
0
88
Member Avatar for austian88

Hi I am currently learning C# with Visual C# 2010 express edition. i am having problem with compiling a whole bunch of files of a project(a project consisting 3 cs files) as f5/ctrl f5 seems faded. I can't add "add existing project" on solution explorer cause it shows empty folder …

Software Development c#
Member Avatar for austian88
0
219
Member Avatar for Labdabeta

Hello, I am making a program that deals with bitmap files and I want to try to load bitmap data manually. The issue is that I cannot find a good resource for exactly what bitmap files can contain. [Wikipedia](http://en.wikipedia.org/wiki/BMP_file_format) has a decent article, but it is missing some important information. …

Software Development c++
Member Avatar for Labdabeta
0
695
Member Avatar for taimor

![bf4dc2600477f6087a38bb2ec34ccd7f](/attachments/large/4/bf4dc2600477f6087a38bb2ec34ccd7f.jpg "bf4dc2600477f6087a38bb2ec34ccd7f") what is the wrong?...this massage came when i decleration a pointer in my program and use it !!

Software Development c++
Member Avatar for taimor
0
162
Member Avatar for zahidpp

Please Help me This Question On computers using the Intel 80n86 series of processors there are two different ways of storing an address. These may be called near and far . A near address requires 16 bits of storage whereas a far address requires 32 bits of storage. An actual …

Software Development c++ data-structure linked-list storage
Member Avatar for Ancient Dragon
0
343
Member Avatar for ganges

Hi, I try to perfom basic CURD operations in hibernate "org.hibernate.InvalidMappingException" this is the error i am getting help me to fix it. i am using eclipse indigo, mysql lib jar files are: ------------------ hibernate 3.jar, asm.jar,cglib - 2.1.jar, commons-logging - 1.0.4.jar, commons-collections-2.1.1.jar, dom4j-1.6.jar, ehcache-1.1.jar, jta.jar, log4j-1.2.9.jar, mysql-connector-java-5.0.8-bin.jar Employee.java package …

Software Development apache java session
Member Avatar for ganges
0
2K
Member Avatar for sliobra

I was doing my assignment till I reached this point. Add a static Date toDate(String str) method to the DateTest class. If the method is called with a string like “23/5/2013”, it will create and return the corresponding date object. If the input string is not valid date, the method …

Software Development java
Member Avatar for JamesCherrill
0
205
Member Avatar for cucolino

Hello One more question. Can't seem to find any info wether it's possible to disable Alt+F4 while MessageDlg pops-up or not. The thing is, that the OnKeyDown event in main form works ok, while set with begin if ((ssAlt in Shift) and (Key = VK_F4)) then Key:=0; end; But that …

Software Development pascal
Member Avatar for cucolino
0
232
Member Avatar for l.worboyz

I have been looking over past exam papers for revision for an upcoming uni exam for Java and one of the questions was, asking for code to add to a given abacus program to make the grid display 3 counters in each column of a 10x6. e.g. as soon as …

Software Development java
Member Avatar for JamesCherrill
0
217
Member Avatar for bhallarahul

hello I want to know to how to make class singleton but donot make constructor private and method static. means want to something which is not possible to clone. Something like that Thanks Regards Rahul

Software Development java
Member Avatar for JamesCherrill
0
185
Member Avatar for trishtren

Hello, I was hoping someone can help me, im looking for a way to extend a basic shape class in particular the roundedrectangle2d class and be able to draw it in the same way we could handle an object with a simple call to g.draw(object instance); However im having problems …

Software Development java java-swing
Member Avatar for JamesCherrill
0
383
Member Avatar for nifhail

I REALLY NEED HELP WITH THIS QUSTION AND I ONLY HAVE 48 HOURS TO COMPLETE IT.. I DONT EXPECT ANY OF YOU TO DO IT FOR ME.. BUT I REALLY NEED SOMEONE WHO WOULD TEACH ME.. EMAIL : nifhail_torres@yahoo.co.uk As everyone knows that Malaysia is going to have the 13th …

Software Development c++ linked-list
Member Avatar for NathanOliver
0
716
Member Avatar for pearl.kumar1

In my module totally 8 forms are there .In one form to open the designer it shows a error like "There is no editor available for ....../Form6.vb, make sure the application for the file type (.vb) is installed."If i open Code in the same form It will open.I don't know …

Software Development vb.net
Member Avatar for Luc001
0
344
Member Avatar for ddanbe

Btw. this is not a sudoku solver. To gain a deeper insight into the workings of the DataGridView beast (but I begin to love and appreciate it) I decided to make myself a sudoku layout with it. Start a forms app. Make the form a bit bigger and fill in …

Software Development vb.net
0
1K
Member Avatar for salesman91

` #include<iostream.h> #include<conio.h> void main() int n; int f,c; cout<<"1:enter the faranheit value to convert:"; cin>>f; cout<<"2:enter the celscious value to convert:"; cin>>c; clrscr(); switch(n) { case 1: ftoc(c); break; case 2: ctof(f); break; default: cout<<"try 1 or 2"; } getch(); } float ctof(float d) { d=d*9/5+32; cout<<"faranheit value is:"<<d; …

Software Development c++
Member Avatar for salesman91
0
273
Member Avatar for androidz

Hi Daniwebians, Is it possible to make my existing exe file an extensible application without touching the code of the existing one?and if it is possible, How can i do that?. Please enlighten my mind. Thank You and Cheers. :-)

Software Development vb.net
Member Avatar for androidz
0
155
Member Avatar for woolf

Hi, I am trying to write a java program for a client server instant messaging system using UPD datagram. I am trying to think of how to start. Anyone has any suggestions? Please advise

Software Development client-server java
Member Avatar for peter_budo
0
806

The End.