199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for AntonyLini

Hello All, Inheritance in WPF application -- Create a window with all possible controls and functions which can be act as base form. then save it as template. Next time when u create a new form the saved template will appear on items. Create Window -> save it as template(File->export …

0
312
Member Avatar for RaigaX9

Hello, I need help on the NFLTeam program that uses an array on the number of players and their names. I've been doing an NFLTeam program where it prints the wins and losses of both falcons and steelers as well as printing out the number of players in those teams …

Member Avatar for RaigaX9
0
195
Member Avatar for andrewliu

Hello, I have a button that counts the number of clicks. when it is clicked, number goes up, and the image disappears. but I want it to show the image again when it is clicked, but can't be clicked after the first time is clicked. I already have this script …

Member Avatar for andrewliu
0
129
Member Avatar for dennishall

Hi: I embedded my Zen Cart store into my website. I have managed to get it working in IE by using the <OBJECT> tag. Why should I do this you ask? My website uses AJAX to load the pages into a div AND my storefront is not in the same …

Member Avatar for dennishall
0
112
Member Avatar for basilix

Hi... I'm new here! does someone know how can i get a javascript variable from jsp? I've tried some ways but no one works! :icon_sad: please help!

Member Avatar for basilix
0
274
Member Avatar for DrueY

Error C2057: expected constant expression Error C2466: cannot allocate an array of constant size 0 Error C2133: 'inc': unknown size Why? Here's the code: [CODE] #include <stdio.h> #include <stdlib.h> #include <fftw3.h> static double *rdata = NULL, *idata = NULL; static fftw_plan rplan, iplan; static int last_fft_size = 0; double A[8192]; …

Member Avatar for DrueY
0
317
Member Avatar for tet3828

I'm trying to compile some code in Visual C# Express. Would someone please have a gander and help me out by giving me a brife explanation of why I'm getting an error "oleDbDataAdapter is not in the current context"? From my understanding (which must be wrong) oleDbDataAdapter is part of …

Member Avatar for Momerath
0
334
Member Avatar for Arturo32

Hi everyone, Actually i'm learning C#, and i have an assignment, to program a 3x3 puzzle, that where you have 8 pieces and 1 free slot, so you can move the pieces and solve it. Our teacher told us it must be done with picture boxes. I've been doing some …

Member Avatar for Arturo32
0
207
Member Avatar for Greywolf333

Hey all, I need to initialize an array to hold an image to all zeroes. The dimensions are that of an image [numcols][numrows][3], where 3 is for rgb values. I know this isn't necessary when I'm reading an image into the array, of course, but I'm going to be using …

Member Avatar for Greywolf333
0
132
Member Avatar for sciprog1

Hello Members, Is it possible to have a Scrollbar for a JOptionPane as described below? [CODE]public class Hello { public static void main (String args []) { JOptionPane.showMessageDialog (".............."); } }[/CODE] If you can show me some pseudocode or a sample program, I would be very grateful. Thank you!! sciprog1

Member Avatar for sciprog1
0
1K
Member Avatar for ChaosKnight11

Hi, I want to start preparing for an IT Olympiad for next year for a chance to get a full bursary for college. We can choose between Java, Python, C and C++. Of the lot I'm most comfortable with Python seeing that I at least have a bit of experience …

Member Avatar for woooee
0
186
Member Avatar for rohan_tahil

I am hosting a servlet on my Tomcat server.. Have port forwarded and everything but it wont accept connections from a wan address.. i have used port-check sites to verify port and they show it as open.. but my jsp page on the server just cannot be displayed.. is there …

Member Avatar for martin5211
0
121
Member Avatar for hmphf

How do I identify the nth position of an inputted keywords (including numbers) through a n html search form? Eg: keyword1 keyword2 keyword3 position of keyword1 = 1 position of keyword2 = 2 position of keyword3 = 3 And then use that nth keyword to query a particular field in …

Member Avatar for hmphf
0
90
Member Avatar for VIeditorlover

Ok, the problem is this - plenty of code, many times called, probability of raising exception is about 1e-5. From many reasons is not possible to serialize params into string just for the case that exception would be raised. Is there possible to save *values* of params *generically* just from …

Member Avatar for divin757
0
96
Member Avatar for new SE

Hi all.. i'm working with asp.net c#.. i want to make a chart that can retrieve the data from the database.. i found one website that tell the way to make it but i dont understand the query used.. this the the link [URL="http://www.dotnetcurry.com/ShowArticle.aspx?ID=238"]http://www.dotnetcurry.com/ShowArticle.aspx?ID=238[/URL] and the query is [CODE]SELECT CategoryName, …

Member Avatar for router.exe
0
113
Member Avatar for Learning_Curve

[B]Intent:[/B] I'm trying to create a simple GUI application (VB Desktop) that will allow me to modify an XML file's nodes which contains the program settings and table definitions for an application. The GUI application's datagridview contains three columns: colA, colB, colC. ColA should be the direct value from an …

Member Avatar for Learning_Curve
0
180
Member Avatar for ndabbz

Hi, I have been trying so hard to make this code work but currently,it displays 10 records, but the previous, next and the page number links are not there at all,could someone please help me with it??the table displays 10 records in the table just fine but the links are …

Member Avatar for hielo
0
111
Member Avatar for 0dark

Hello guys, this is my first post, so don't be harsh if I do something stupid. Well, the reason why I'm posting here is because I need to find a method to alter the stream itself, not just the buffer I send to a variable with "file.Read(". For example, lets …

Member Avatar for Ancient Dragon
0
231
Member Avatar for C++Challenged

I need to write a program to decipher a code and process a set of characters in a text file. this is the text file: >EBC;Iit_is a CaPital Mistake tO_theorize Before_one has DatA123. There are 6 encrypted characters at the beginning of the file. The encryption is based on the …

Member Avatar for hardatwork
0
143
Member Avatar for karpe

Hi all Happy to join this forum, hope you can help me from time to time :) I'm and electrical engineer, and I use C program as part of my work, at a very basic level, just to control a piece of hardware. I now have a problem which I'm …

Member Avatar for karpe
0
186
Member Avatar for ItecKid

I have this code. pthread_create does not through an error message, however it does not execute it's argument function. See comments in code for better description [code=c] void * moveFiles (void * arg); int main (int argc, char **argv) { pthread_t * tid; int rc = 0; /*variables count and …

Member Avatar for ItecKid
0
2K
Member Avatar for djcrab

I'm in need of some more help for something quite simple. All I'm trying to get to work is the (onmouseover) portion of the below. I'm sure there is a typo somewhere that I'm not seeing. I've got to quit doing homework when I'm exhausted. Just a little hard after …

Member Avatar for Troy III
0
117
Member Avatar for giftalp

I have created class menu and class number. I would like that my functions in class do sum, subtract, multiply, and divide. I've done sum, but I have problems with other functions. When I do difference, it is actually sum my numbers, and result of multiplication and division is 0 …

Member Avatar for giftalp
0
195
Member Avatar for hatux

I have a couple of classes in my app. So in one of them i use same int to make my life easier on the other one [CODE] import java.util.*; public class ObtainKey { public static void KeyAnalyzer() { int idx = 0; int tokenCount; String input; String inputArr[] = …

Member Avatar for hatux
0
216
Member Avatar for zarifin99ska

hello, i'm have a payment form and a listview in this form. i'm adding about 3 item in the listview, so it has 3 row. but how can i insert the items in one of the column into database. for example for listview [U]id[/U] [U]item[/U] [U]netmount[/U] 123 Stock1 113.00 231 …

Member Avatar for roottybrian
0
1K
Member Avatar for hq1

Hey so I wrote this blackjack program to read from file but i'm getting these errors on the specified lines: Error 1 error C2059: syntax error : 'while' line: 46 Error 2 error C2228: left of '.ins' must have class/struct/union line: 48 Error 3 error C2050: switch expression not integral …

Member Avatar for Ryaether
0
137
Member Avatar for bevssi

I'm rather new to this and really need some help. I know I'm close but I just can't get this to work. My omonth table has only 2 fields, id and month. I want a drop down to lists the months and I want the selected value to become a …

Member Avatar for bevssi
0
143
Member Avatar for mrbungle

So here's the problem- My app has an image in it in a picture box. I need the end user to be able to change it. So the code I added below should do that. However, I get the "A generic error occurred in GDI+. while saving" I understand it …

Member Avatar for mrbungle
0
215
Member Avatar for suntom

Hello, new coder here :-) I've been working on one of my first scripts, an SMTP script for sending mail with Gmail. It works and all, but I wan't to have an "if" the login to the server failed, it would print and message saying so and return to the …

Member Avatar for richieking
0
1K
Member Avatar for bunnyboy

Consider those two function. When I load file, everything is fine, but then, when I want to save changes, the file is still being locked. Where is the catch? [CODE=C#] public static string Load(string loadPath = null) { string output; string file = loadPath == null ? _defaultFile : (_defaultFile …

Member Avatar for bunnyboy
0
212
Member Avatar for ItecKid

Hello, I am trying to read through a UNIX directory in C and write all the filenames to an array. However, the array is not being populated with any value. Here is a snippet of relevant code: [code=c] char **files = {NULL}; struct stat fileinfo; int count = 0; int …

Member Avatar for nezachem
0
109
Member Avatar for Streamx1

Please, help to organyze time out. I have a program which connects to another device by COM port. If device is disconnected and I try to connect this device, the time out exeption must be. Can anyone give me example of making time out here? [CODE] private void OnButton_Reading_Click(object sender, …

Member Avatar for nick.crane
0
397
Member Avatar for NewOrder

i want to make a java game . where can i start. i am intermediate at my java (i know threads, swing, generics).. do you know any websites or sources of information that provide project ideas and info on how to create games?

Member Avatar for NewOrder
0
136
Member Avatar for mi.mac.rules

I'm making a program to add/sub/mult numbers from bin/oct/dec/hex format and output in whatever base the user asks, run syntax: [CODE]./instruction <num1> <num2> <base1> <base2> <output base>[/CODE] and, besides the stupid implicit declaration warnings I get for some unknown reason (I'd love to know why), when I run this (I'm …

Member Avatar for mi.mac.rules
0
241
Member Avatar for globberbob

Hi there, im new to the site and am hoping someone out there can help me with my question, im pretty newbie in the world of c++ and programming in general. Im making a program with a menu, you can choose between entering a number yourself to be tested as …

Member Avatar for globberbob
0
327
Member Avatar for mrar85

Hello, i'm a newbie with c++.. all help and explanation are welcome..my problem is, i try to make a factorial program in c++ . Here is my code: [CODE]#include <iostream> using namespace std; int main() { int a,b,fact=1; char key; do { cout<<"\nPlease enter a positive integer : "; cin>>b; …

Member Avatar for mrar85
0
2K
Member Avatar for creeps

Yes, it's yet another thread about implementing three basic operations (addition, subtraction and multiplication) on abnormally large numbers (> 100 digits). I've stored each digit inside an array of [icode]int[/icode]s, as the following piece of code illustrates [code=C] while((ch = getchar()) != EOL) a[len_a++] = ch - CHR; [/code] Now, …

Member Avatar for Shift-Stop
0
257
Member Avatar for dicas3d

I have this program [url]http://ostermiller.org/qqwing/qqwing.cpp.html[/url] I need run the program by code with parameters to do somehtin on interface. So how i load the data that i need to my program without change it. Note: I want make a program based on it [url]http://ostermiller.org/qqwing/qqwing.cpp.html[/url].

Member Avatar for dicas3d
0
152
Member Avatar for mitrious

Here's what the book asked [B]The implementation of nrand in §7.4.4/135 will not work for arguments greater than RAND_MAX. Usually, this restriction is no problem, because RAND_MAX is often the largest possible integer anyway. Nevertheless, there are implementations under which RAND_MAX is much smaller than the largest possible integer. For …

Member Avatar for mitrious
0
106
Member Avatar for MisterPeters

Hi! I am a teacher who has been appointed "tech guy" for our school science fair. I'm trying to build a database to handle the information and number crunching for the event. I've been working with Access, but we have Filemaker too. I'm pretty tech savvy, for a teacher (or …

Member Avatar for Ezzaral
0
119
Member Avatar for tech9x

i got a .txt file that contain data, and i would like to read from the file and then write the data to another file, is it about ifstream and ofstream?.. what i have done is just open the input file and open the output file :(( how to relate …

Member Avatar for vijayan121
0
4K
Member Avatar for Orangeweapons

Hi, this is my first C++ forum post. I'm having issues with including the library libcurl [U](found [URL="http://curl.haxx.se"]here[/URL])[/U]. I want to include it in my project so I can start working with it, because a friend of mine showed me just how powerful the library is. These are my specs: …

Member Avatar for vijayan121
0
264
Member Avatar for Anthony Cameron

How do you create a Perl Program that asks a user to enter two numbers and assign those numbers to selections in a text and then reverse the text? I think I am supposed to use splice array and the reverse function but it is not coming out properly. print …

Member Avatar for Anthony Cameron
0
255
Member Avatar for Tedius

Design a class for perform the following (without using any library function for string manipulation) Read a string (containing words and spacing characters) Find out the longest word in the string Compare two strings Find out the longest common sub string(word) of the two string Display a string

Member Avatar for tkud
0
103
Member Avatar for vanan4u

question.. You are required to write a complete C program for a simple grading system. At the beginning of the system, you need to input number of students and number of subjects that have been marked. Then, you need to enter the student's identification number and marks for each subject. …

Member Avatar for vanan4u
0
154
Member Avatar for wvuengr33

The program I am writing is supposed to read in a txt file and then align the txt depending on the number of characters per line that the user has specified. Since there aren't any limitations to the length of the text it has to be represented using a dynamic …

Member Avatar for wvuengr33
0
504
Member Avatar for vijaykrishnabor
Member Avatar for mike_2000_17
0
134
Member Avatar for hotdang

Hello, I have written a C# console application that currently takes a data file as input, processes the data and writes out 2 new data files. I would like for it to be able to process ALL the files in a given directory. How might I do this? Thanks!

Member Avatar for hotdang
0
140
Member Avatar for akshayabc

Plz answer my these C doubts- Q. 1- If i have 3 source files and i declare a static variable in the source file s2.c then which statement is true:- That static variable is created when the program starts executing and is destroyed when the whole program finishes executing. OR …

Member Avatar for gayathri balu
0
182
Member Avatar for vijaykrishnabor

Hi is it possible to have recursive function as inline function ? this was question asked interview please help me

Member Avatar for mike_2000_17
0
2K

The End.