132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TIP.Synergy

Hi, all i want is to generate a random number/letter in listview per row but i don't know how to play for each.... coz' i have a list of record has already been exported to my gridview>listview so that's why there no ID for each row all i want to …

Software Development listview vb.net
0
104
Member Avatar for janice91

Dear experts, I am trying to practice inheritance coding on my own but i have met some difficulties. I ma supposed to come up with a Square Game with M representing the number of squares. For the start, i will be in the square 0 value and playing by throwing …

Software Development algorithm java
Member Avatar for JamesCherrill
0
125
Member Avatar for Rizi004

please help me i m having problem for making this program First Part: (Using Structures) Create a structure called Complex for performing arithmetic with complex numbers. Complex numbers have the form realPart + imaginaryPart * i where i = √(-1) Use floating point data to represent members of structure (i.e. …

Software Development c++ data-structure oop
Member Avatar for Narue
0
514
Member Avatar for yousafc#

I have a form of c sharp, In winch I have Five Button.I want hit all buttons one by one dynamically. Please send me complete Code of c sharp.

Software Development gui
Member Avatar for yousafc#
0
123
Member Avatar for jumba_4u

hi all, here my problem is i'm preety new to vb.net programming. but have a little knowledge in vb6 programming. Say, when i press the 'edit' button a listview is shown, filled with records('empcode' field from empdetail) from a access table, say 'empdetail'. now if i doubleclick on a particuler …

Software Development display listview vb.net
Member Avatar for Lek Plepi
0
1K
Member Avatar for valestrom

Hi, I wrote part of a program in visual c++, but I use dev c++ at school, so I tried just copying my code: [CODE]char mainmenu[50]; char game[50]; int strength; int intelligence; int dexterity; int health; int mana; int damage; int defense; int k; int roll; int experience; int levelup; …

Software Development c++
Member Avatar for Fbody
0
205
Member Avatar for Hayzam Sherif

Hello Everyone I Have Been Learning C++ For The Past 1 Year :D , So With This Much Experience Can I Make or Modify A Bootloader in C++ Paradon Me For My Bad English Any Replies Would Be Greatly Appretiated

Software Development c++
Member Avatar for Hayzam Sherif
0
181
Member Avatar for ajaxx195

Hi, I just started learning Java.I had attached the doc file.The doc file is already printed on paper.I want to make a program such that only place left blank should b allowed for user to input data and when user print the paper it should b able to print exactly …

Software Development java
Member Avatar for NormR1
0
116
Member Avatar for crapgarden

I have this code: [CODE]#include <iostream> using namespace std; int main() { enum foxtrot {green, yellow, red}; foxtrot colorSelect; cout << red << endl; [COLOR="Red"]cin >> colorSelect;[/COLOR] cout << colorSelect << endl; } [/CODE] Line 10 gives me the result 2 as expected, but line 11 gives me a compile …

Software Development c++
Member Avatar for ashishseo
0
209
Member Avatar for srednakun

Hello, I am not sure why, when I call my method, it goes into a continuous loop and prints out nothing. The operator - method is suppose to be able to subtract a Date object and a Date argument. I will clarify if anything needs clarifying, thanks for the help …

Software Development c++ programming-construct
Member Avatar for tkud
0
157
Member Avatar for murnesty

I having problem of sizeof returning a hexadecimal value which I want it return decimal here is my sample code: [CODE]#include <cstdlib> #include <iostream> #include "stringCascade.h" using namespace std; void StringCascade (void) { unsigned char ucA[] = {0x02, 0x6F, 0x09, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, …

Software Development c++
Member Avatar for tajendra
0
137
Member Avatar for chiiqui

[CODE]public void starGame() { boolean gamestatus = true; casesSetup(); Welcome(); showCases(); setladies(); int choice = player.nUser(); myAmount = briefcase[choice].getAmount(); briefcase[choice] = null; cases--; while (gamestatus == true) { offer = player.offer(turn, briefcase); showCases(); if (cases == 25 || cases == 19 || cases == 14 || cases == 10 || …

Software Development java
Member Avatar for chiiqui
0
139
Member Avatar for Ehtesham Siddiq

Hi, I have two forms.Both having DatagridView.There are two comboboxes to filter the record from Database and fill in Datagridview.My requirement is when all the data is populated in DataGrid after selecting the comboboxes and when the user clicks on Delete. The comboboxes and Datagrid on second form should have …

Software Development vb.net
Member Avatar for Ehtesham Siddiq
0
177
Member Avatar for volkang

Hi, I am writing a file by using fopen("xxxx.csv","a"). However, at a point when i open the same file it gives debug assertion error. The code is the following; I checked if anything, like "helloworld",can be written, but no. The "ENTER??" part is written in the file correctly for 5 …

Software Development c
Member Avatar for volkang
0
410
Member Avatar for coolbeanbob

Hello, I am having trouble implementing the load function below. It compiles, but I get garbage in the array and 0's in the vector. The reason I created load() was to clean up main(). Do I need to open data.txt in main and then call a function to load the …

Software Development c++
Member Avatar for raptr_dflo
0
182
Member Avatar for coolbeanbob

Hello, I am trying to implement a linked list with an h file that was provided to me, which I cannot change. I have created a simple main() to begin, but I am getting an error on line 40 of the h file that says... "template-id 'operator<< <int>' for 'std::ostream& …

Software Development c++ linked-list
Member Avatar for raptr_dflo
0
175
Member Avatar for vdsf

I'm trying to code a traversal function for a huffman tree that will generate the code dictionary containing the binary codes for each letter in the tree. Once it hits a leaf node I want to insert the character and a QBitArray into the QMap that I pass in. The …

Software Development c++
Member Avatar for raptr_dflo
0
307
Member Avatar for complete

How do you pass an array of integers as an argument to a method in C#?

Software Development
Member Avatar for hscoder
0
176
Member Avatar for MrAppleseed

Hello all... again, I'm trying to write a function that will "simulate" the stack. Here's what I have so far... [code=C++] int i = 0; int arraySize; char * stack[100]; void stackPush(char * pushed) { if(i == 100) { cout << "ERROR: Stack overflow!"; } else { stack[i] = pushed; …

Software Development c++
Member Avatar for raptr_dflo
0
108
Member Avatar for ammarcool

hii all! When i tried to access a value from the configuration file ([COLOR=#000080]ConfigurationManager.AppSettings("ADMIN"))[/COLOR] i am getting an error: [COLOR=#000080]'ConfigurationManager.AppSettings' is not declared or the module containing it is not loaded in the debugging session. [/COLOR] [COLOR=#000080][COLOR=#000000][/COLOR][/COLOR] [COLOR=#000080][COLOR=#000000]can you please anyone help me who have experienced the [/COLOR][/COLOR] [COLOR=#000080][COLOR=#000000]above said …

Software Development session vb.net
Member Avatar for afroz375
0
199
Member Avatar for c#dezire

i want to create a code using array in which i can store the month name by a button named ADD and use other to view month name . my code was following but the problem is it is holding last value only not all values [code] using System; using …

Software Development c#
Member Avatar for kvprajapati
0
265
Member Avatar for csckid

I tried to change the text of a textbox from another form and was unsuccessful. I have zip the complete program. please help

Software Development
Member Avatar for samee1985
0
3K
Member Avatar for dennysimon

Hi all I try to copy paste from a site java example ,there are 3 files,Main.java,Login.java,and LoginDialog.java. I can compile Login.java ,but when I compile LoginDialog.java,it said that it cannot find symbol Login.authenticate (a method in Login.java) I have check that there is this Login.authenticate method to make clearer I …

Software Development java java-swing
Member Avatar for jwenting
0
1K
Member Avatar for rotten69

Hello everyone, I'm just having a problem that is stopping me from doiing my work and I've tried fixing it. I don't know what's really wrong with what I've got typed in visual studio. [code] string connString = @"Data Source=.\SQLEXPRESS;AttachDbFilename='C:\..................\Database1.mdf'; Integrated Security=True; User Instance=True"; SqlConnection conn = new SqlConnection(); conn.ConnectionString …

Software Development open-source visual-studio
Member Avatar for rotten69
0
182
Member Avatar for jwelsh

I am trying to save a Collection of form controls (Labels and TextBoxes) in my project's settings (My.Settings). During runtime everything appears to be working as expected. I can save and retrieve the Collection of controls, but when I close and restart the application, the settings are gone. I am …

Software Development vb.net visual-studio
Member Avatar for jwelsh
0
526
Member Avatar for rciprogrammer

Hi I am trying to set a larger calendar font (Calendarfont) for a Datetimepicker control, but vb.net (2010) doesn't seem to use/honor it. It remains the same (very small) regardless of the font/size I choose. Have also tried changing it in program on the onload of my form but that …

Software Development vb.net
Member Avatar for Pgmer
0
521
Member Avatar for valestrom

What I want to do is have a predefined battle function, I can code the function, all I need to know how to do is have the function sitting there, so when I call it, all it takes is one or two variables to set up and go. So every …

Software Development c++
Member Avatar for valestrom
0
122
Member Avatar for Grovega

Hi guys, this is my first week in C++ and was doing some exercises to practice and made a function to calculate primary factors (Still not sure if it works;) Anyway, here is my code : [CODE]#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<unsigned long …

Software Development c++
Member Avatar for Labdabeta
0
228
Member Avatar for ProgrammingGeek

When making overloaded template function is there a difference between template<> or template<type>. For example is there a difference between [CODE] template <class T> void dispm(T array) { cout << "called template<class T> void dispm(string array)"; } template<class T> void dispm(string array) { cout << "called template<class T> void dispm(string …

Software Development c++
Member Avatar for mike_2000_17
0
169
Member Avatar for RealNoob

Hi as u all probably notice Im a noob with Delphi Is it possible to code a case like I did below If it is please correct my faults I made so that it would run redSpan is a rich edit edt1s is a edit chelsea and arsenal are textfiles …

Software Development delphi pascal
Member Avatar for Duoas
0
907
Member Avatar for nagatron

Hello to all java programmers I have a java database problem specifically the auto increment. In my MSAccess I have a table named "[B][COLOR="Red"]Confirm[/COLOR][/B]" and in that table I got two fields, the "[B][COLOR="Red"]confirm[/COLOR][/B]" which is set to text and the "[B][COLOR="Red"]id[/COLOR][/B]" which is set to auto number or auto …

Software Development java microsoft microsoft-access
Member Avatar for nagatron
0
969
Member Avatar for mitchney

hi there ...a pleasant day/evening...i am wrking for a code...wat i wnt to happen s dat in the combobox category when i click all, all d items dsplay but wen i click specific category somethng went wrong with my code..i cannot view all d items under with the choosen category...pls …

Software Development visual-basic
Member Avatar for dspnhn
0
134
Member Avatar for nuliknol

Hi, I am looking for instruction cost list, in clock cycles, for ia-32 intel architecture, something like this: movdqa <-- 3 clock cycles mov <-- 1 clock cycle jmp <-- 1 clock cycle Is this info available somewhere? I checked the manuals, didn't find it. Will appreciate any help Thanks!

Software Development assembly
Member Avatar for nuliknol
0
102
Member Avatar for Grovega

Hi, so the exercise I am supposed to do is : "If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 …

Software Development c++
Member Avatar for Grovega
0
181
Member Avatar for Diamonddrake

This simple static class contains a static method called sOnline that accepts a username as a string param. it make a call to an old yahoo api that will determine if a Y! user is online. This only returns true if the user is not using stealth, this will return …

Software Development api
Member Avatar for miladar91
0
381
Member Avatar for pseudorandom21

Hello there, I'm not too entirely familiar with the operation of scheduled tasks within Windows XP and I'm tasked with finding an operable solution. Firstly, a couple things come to mind: 1. Start the process with windows using a low priority and sleep until it is time to function. This …

Software Development windows-xp
Member Avatar for Momerath
0
217
Member Avatar for isebas

Ok so i just started taking AP Computer Science at my high school and I really have no experience with java (just a little bit with python). So for our fist homework we had to try out a few codes and make some programs. I'm getting a " <identifier> expected …

Software Development java
Member Avatar for isebas
0
243
Member Avatar for ravenous

Question for anyone using KDevelop: Is it possible to have a "workspace" containing multiple projects, like in a MS Visual Studio "solution" (or Code::Blocks or Codelite etc)?

Software Development c++ ide visual-studio
Member Avatar for mike_2000_17
0
438
Member Avatar for webjam

Hello, I'm new to C++ with a fair experience in java. I would like to know the difference between [CODE]Ob o* = new Ob();[/CODE] and [CODE]Ob o = new Ob();[/CODE] I know the first allocates a block of memory and creates a pointer which keeps the address of this block. …

Software Development c++
Member Avatar for NathanOliver
0
126
Member Avatar for nalasimbha

Hello, I am trying to use an OCX control in a console application and I have been doing some reading from the following post [URL="http://www.daniweb.com/software-development/cpp/threads/98162/page1"]http://www.daniweb.com/software-development/cpp/threads/98162/page1[/URL] In the following statement [CODE]HRESULT hr = CoCreateInstance(CLSID_Registration, 0, CLSCTX_ALL, IID__Registration, reinterpret_cast<void**>(&preg));[/CODE] hr has the value Class is not licensed for use. I tried registering …

Software Development c++
Member Avatar for nalasimbha
0
747
Member Avatar for kangkan_14

Here is a part of code I am writing.I am getting a segfault in the CmpFunc function. The segfault occurs when I compare *a and *b i.e in the "if(*a>*b)" line. I am new to function pointers. So, I might be making a mistake somewhere which I don't realize.I would …

Software Development c
Member Avatar for kangkan_14
0
2K
Member Avatar for mcddewitt

I need help in deciding a good path in learning Java. I have recently passed my Data Structures course and although I still have issues and sometimes need to look thinks up, I feel I have a strong enough grasp to move on with my becoming proficient in Java. I …

Software Development data-science developer-tools java
Member Avatar for hag++
0
190
Member Avatar for xellos

[CODE]use strict; use warnings; use IO::Socket; my $sock = new IO::Socket::INET( PeerAddr=> 'localhost', PeerPort=> '7070', Proto => 'tcp'); die "Could not create socket: $!\n" unless $sock; my $run = "yes"; while($run eq "yes") { my $text = <STDIN>; print $sock "$text"; print "Send more strings? yes/no"; $run = <STDIN>; } …

Software Development perl
Member Avatar for d5e5
0
148
Member Avatar for XodoX

Ok, I want to read integers from a text file...a large sum of integers. The input is a regular text file, where each line is terminated with an end-of-line character. The file is gonna contain any valid ASCII symbol between 32 and 127. A number of strings ( no negative …

Software Development c++ file-system
Member Avatar for raptr_dflo
0
1K
Member Avatar for pravin_bug

[CODE]#include<stdio.h> int main() { int i=2,j=3; j= - - i--; printf("%d%d",i,j); return 0; }[/CODE] [B]Somebody please explain the working of this program[/B]

Software Development c
Member Avatar for pravin_bug
0
71
Member Avatar for Onlineshade

Whats wrong here ? Why the code output prints some extra lines? Input:line number=n. Enter number=num.If line=4 and num=2 , the output will be.... 2 4 8 16 My code is.... [CODE]#include<iostream> #include<conio.h> using namespace std; int main() { int n,num,i,j,s=1,m; cin>>n>>num; for(i=1;i<=n;i++) { m=1; while(s<=j){ m=num*m; s++; } cout<<m; …

Software Development c++
Member Avatar for gusano79
0
61
Member Avatar for Nox_1031

So I need emergency help in writing a program that does a few simple things. I have a file that is composed of positive, negative and zero integers. Each integer has its own line and I'd say there's about 100 lines. I need help writing a program that will 1. …

Software Development file-system java
Member Avatar for Nox_1031
0
233
Member Avatar for srednakun

Hello My problem is I am calling a method in my main but this method doesn't have any code written in it, and yet I am getting an output of numbers approximately 10 digits long, and a negative value. For example, in my main I have: [CODE]Date d1(9,20,2011); // Date …

Software Development c++
Member Avatar for pavangajula2007
0
236
Member Avatar for Victoryy

HI, In my crystal report i want to use the SQL expression field to calculate the opening balance of the account based on the date passed to crystal report using parameter field.. How can i do it?? Thanks & Regards, Victoryy

Software Development sql
Member Avatar for Rohit421991
0
467
Member Avatar for k34b

hi all masters here..i want to ask some question about java. hope you all can answer it.. how to explain the concept of accessing object via reference variable?

Software Development java
Member Avatar for k34b
0
50

The End.