132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for amari ♥

#include<stdio.h> #include<conio.h> #define MAX 5 void initialize(int a[], int n); void display (int a[], int n); void input (int a[], int n); int sum (int a[], int n); int largest (int a[], int n); int smallest (int a[], int n); void main (void) { int array [MAX]; int total; initialize(array, …

Software Development c
Member Avatar for algoritmish
0
152
Member Avatar for dotancohen

I have a Form that throws this when I close it: "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." This seems to be the offending code, running in a child thread: [code=c#] this.Invoke(new someDelegate(someMethod)); [/code] I figured that if I could capture …

Software Development
Member Avatar for dotancohen
0
98
Member Avatar for Hoff123

Hi, this is my first post. I am making my first real text based adventure game in python and I've got an error: unbound method Main() must be called with Game instance as first argument (got nothing instead) But I am no where nere finsihed on the game as of …

Software Development python
Member Avatar for Hoff123
0
110
Member Avatar for vivek4020

Hello Everybody, I have run into a bit of a trouble here I wish to set the background image of a button I have written this XAML [CODE]<Button.Background> <ImageBrush ImageSource="/UIDesign;component/Images/Settings.png" /> </Button.Background>[/CODE] but when i run the application and hover the mouse over the button, the background goes away and …

Software Development gui html-css image
Member Avatar for gandora
0
2K
Member Avatar for bangor_boy

[CODE] private JButton[] buttons; private static final Character firstChar = 'A'; private static final Character lastChar = 'D'; /** Creates a new instance of ButtonPanel */ public ButtonPanel() { buttons = new JButton[4]; setLayout(new GridLayout(2,2)); Character label = firstChar; for (JButton b: buttons) { b = new JButton("" + label); …

Software Development java
Member Avatar for jon.kiparsky
0
173
Member Avatar for nolife

hi , i have some problem when i want to build my solution , i use different dll and one of them when a build it , he tel me that fatal error C1083: Cannot open type library file: active.dll someone have come idea ?

Software Development c++
Member Avatar for Cosmin871
0
332
Member Avatar for cavpollo

HI there, I'm trying to create Drop Down Lists dynamically. Two thing before we start: 1. Im working on a ContentPanel that is inside a master page 2. I cant add anything to the .aspx directly, so all the code must be inside the .aspx.cs This is my code: [CODE] …

Software Development client-server
Member Avatar for cavpollo
0
340
Member Avatar for Crutoy

Hello, Another exercise. In this particular problem we are given a five digit integer and program have to determine if its a Palindrome. Author states that we have to separate each digit into its own variables using % and /. I came up with solution but i don't know if …

Software Development c++
Member Avatar for frogboy77
0
117
Member Avatar for Lord_Migit

So i have a weird problem that isnt exactly an error, its just something im not understanding. i have the following peice of code and the functions it calls. What happens is when the indicated line is run, i get an output telling me the 2nd constructor has been called, …

Software Development c++ storage
Member Avatar for Lord_Migit
0
185
Member Avatar for Mr.BunyRabit

Plain and simple, yet i have no idea how to do it.. Make a datagridview like you never used it.

Software Development
Member Avatar for Mr.BunyRabit
0
135
Member Avatar for divineelite

How do I return the data in the last node from the RemoveTail function? Currently I have something like below.This is a basic doubly linked list. [CODE]class List; class Node { Node* next; Node* prev; void* data; public: Link( void* pData ) : next( 0 ), prev( 0 ), data( …

Software Development c++ linked-list
Member Avatar for divineelite
0
185
Member Avatar for weloki

I'm working on scraping HTML pages and transforming the selected content from them into XML and I've been seeing a few errors here and there thrown by the Saxon XSLT parser: WARN [2011-01-07 14:44:35 EST] (SaxonTranslator#429473) improper java log: XPTY0004: A sequence of more than one item is not allowed …

Software Development regex xml
Member Avatar for iceandrews
0
842
Member Avatar for bleedi

Hi, I have a little bit of a problem with my client / server apps. I'm trying to build a simple program that resembles a small instant messaging app. So far I've been working on the "user login" and "status change" parts, along with a query to get the status …

Software Development c client-server
Member Avatar for nezachem
0
209
Member Avatar for Neversleepin

Hi, i'm trying to copy all txt files from a directory into one file to another directory. But i have the following error: "FileStreamsTest: java.io.FileNotFoundException: . (Accès refused)"" My txt files are located in the project folder of NetBeans. here is my code: [CODE]package FileStreamTest; import java.io.*; class FileStreamsTest { …

Software Development file-system java java-netbeans
Member Avatar for bibiki
0
1K
Member Avatar for moroccanplaya

[CODE] while (choice != QUIT) { choice = get_menu_choice(); if (choice == 1) { while(1)//while loop that i want to break out of { puts("please give your archive a name and a path:\n"); scanf("%s", &archive_name); if( create_pointer = fopen(archive_name, "r") != NULL) { printf("file already exists\n"); continue; } else { …

Software Development c
Member Avatar for sbesch
0
86
Member Avatar for mangopearapples

I tried to #include <GL/glut.h> but when I compile, I get a [link error] at WinMain@16 or Win@16 (I forgot). I don't exactly know why and I don't know what to do either. Can somebody help please? Do you need that header file? (To fix it?) Thanks in advanced.

Software Development c++ opengl
Member Avatar for mangopearapples
0
138
Member Avatar for Emonk

Hi all, I use the code below, and it's my idea it will give me on my LCDisplay the letters "Camil" (and yes, that is my name) All the first subroutines i just copied form [url]http://home.iae.nl/users/pouweha/lcd/lcd2.shtml[/url] - it has to work. From label start i did make anything myself. I'm …

Software Development assembly display
Member Avatar for alphahr
0
176
Member Avatar for shack99

Hey again, I'm having another problem unfortunately. We were asked to create a tree that has binary tree properties as well as max heap property. (take A(7),C(8) and B(3) ; the tree should be so that the it should alphabetically represent a binary tree and numerically represent a heap) I …

Software Development java queue
Member Avatar for jon.kiparsky
0
13K
Member Avatar for MasterGberry

This is the weirdest bug I have gotten yet. Its late, and I can't figure out why this is not working....I thought I had the constructor set up right. I am sorry that I am asking for so much help, but I have learned a LOT in these past few …

Software Development c++
Member Avatar for MasterGberry
0
573
Member Avatar for Knad

Hello, I am having a few problems with my image class using OpenCV. I am getting the errors: [CODE]src/image.cpp: In constructor ‘Image<T>::Image(const char*, bool)’: src/image.cpp:21: error: there are no arguments to ‘cvLoadImage’ that depend on a template parameter, so a declaration of ‘cvLoadImage’ must be available src/image.cpp:21: error: (if you …

Software Development c++
Member Avatar for pc0019
0
433
Member Avatar for fawi

Hi, First I am beginner in C#. 1-But I need to know how to use wor automation and save the new file in other location then print it when need, that was first. 2-I also need to know how to play a specific video from a path using Microsoft.Directx.AudioVideoPlayBack library. …

Software Development c# visual-studio
Member Avatar for fawi
0
306
Member Avatar for mbouster

I have the following problem and I dont undesratnd how to use arralists to implement. I have a customer class which I want to hold some primitive data types as name , id , address etc. To implement this using arraylists I must declare it as below? [CODE]Arraylist Customer =new …

Software Development java
Member Avatar for jon.kiparsky
0
230
Member Avatar for DrRodge

If programA starts Delphi programB, is there any way that programB can determine whether it was started by programA or by some other program?

Software Development delphi pascal
Member Avatar for Wolfgan
0
109
Member Avatar for Sahil12354

Can anybody temme how to run a pop up window TSR program written in C ..... m unable to create .obj file of .c file.... TC showing ERROR like " TASM.exe not found" and "Linker error".......

Software Development c
Member Avatar for Sahil12354
0
133
Member Avatar for ajst

Hi guys, I've been looking into reflection and was wondering if anyone had any good tutorials or a good use for it. I understand how it works but can't think of an example of when it would actually be used. A website with a task that needs reflection to solve …

Software Development java
Member Avatar for ajst
0
155
Member Avatar for dip7

Hi, I want to write a program to calculate the no. of bytes between the first binary pattern (110) to the next 110 binary pattern. i know i probably have to make use of: cout<<sizeof(char); Do i need to use a pointer or something to tell the program where to …

Software Development c++
Member Avatar for Narue
0
105
Member Avatar for DoctorGiraffe

Hello, so i'm having problem with Regex. I'm trying to use to put names in a checkboxlist. But the page where i want the names from have to be accesed by login in on the website. But the regex doesnt read from the VB WebBrowser it reads from... the internet(?) …

Software Development html-css vb.net web-browser
Member Avatar for DoctorGiraffe
0
632
Member Avatar for pucivogel

#include <iostream> #include <iomanip> using namespace std; class Derivate { public: showDerivate(); void showFunc(); }; int main() { int nr; Derivate drv; drv.showFunc(); drv.showDerivate(); std::cin.get(); return 0; } void Derivate::showFunc() { cout<<"Nr"<<setw(20)<<"Function"<<endl; cout<<"1"<<setw(20)<<"x"<<endl; cout<<"2"<<setw(20)<<"cx"<<endl; cout<<"3"<<setw(20)<<"xpowc"<<endl; cout<<"4"<<setw(20)<<"1/x"<<endl; cout<<"5"<<setw(21)<<"1/xpowc"<<endl; cout<<"6"<<setw(20)<<"sqrt x"<<endl; cout<<"7"<<setw(21)<<"epowx"<<endl; cout<<"8"<<setw(20)<<"lnx"<<endl; cout<<"9"<<setw(20)<<"sinx"<<endl; cout<<"10"<<setw(20)<<"cosx"<<endl; } int Derivate::showDerivate() {cout<<"give the respective number …

Software Development c++
Member Avatar for ravenous
0
211
Member Avatar for Arbus

i want an .exe file to be automatically executed if a folder having that particular file is opened,that's if you open the folder the file should get executed automatically.I want this to do in c++.can somebody help???

Software Development c++
Member Avatar for ravenous
0
97
Member Avatar for asterix15

i know that the prototype of putchar() is: int putchar(int ch); eventhough its return type is int why does it print ch in character format instead of printing it as its ascii equivalent?

Software Development c
Member Avatar for anirudh33
0
135
Member Avatar for sirlink99

I have a problem with this code and I do not know what is causing it. [CODE]// The "ArrowKeys" class. import java.applet.*; import java.awt.*; import java.awt.event.*; public class ArrowKeys2 extends Applet implements KeyListener, Runnable { int x = 50, dx, y = 50, dy, a = 0, score, total, locx, …

Software Development java
Member Avatar for sirlink99
0
119
Member Avatar for noel9

pl help i m getting insert into error [CODE] Private Sub Addbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Addbtn.Click Dim mycmd1 As OleDbCommand Dim sqlq1 As String Try If Addbtn.Text = "Add" Then Idtxt.Text = Me.max + 1 clear() Addbtn.Text = "Save" Else sqlq1 = "Insert into Member …

Software Development vb.net
Member Avatar for noel9
0
121
Member Avatar for Skyline8k

Hi I need guidance for this program and it seems i don't understand basic fundamentals of creating histogram with c++. I'm not asking for spoonfeeding or anything i just need to know what i'm doing wrong and is there anything i can include or to improve it. This programe needs …

Software Development c++
Member Avatar for Skyline8k
0
348
Member Avatar for waldchr

Hi I am writing a 2D game that only uses the arrow keys for input. I have done a search on this site fro ways to get input from the arrow keys and have come up with many solutions. However all of them use the getch() function. Normally this would …

Software Development c++
Member Avatar for Cosmin871
0
638
Member Avatar for james6754

Hi..... [CODE] private void button1_Click(object sender, EventArgs e) { Decimal[] mydecimal = new Decimal[10]; for (int i = 0; i < mydecimal.Length; i++) { mydecimal[i] += i; } foreach (Decimal mydec in mydecimal) { int count = 0; MessageBox.Show("I am button "+ Convert.ToInt32(count)+" in mydecimal"); count += count + 1; …

Software Development
Member Avatar for james6754
0
128
Member Avatar for Martje

Hi all, I add picture to my pictureBox by writing the following code : [ICODE]pictureBox->BackgroundImage = System::Drawing::Image::FromFile()[/ICODE] But how would i remove that image ones i am done using it? Thank you in advanced.

Software Development c++
Member Avatar for Martje
0
95
Member Avatar for sandeepamazing

Hey hi i am new to this field , i am working on project which is desktop application in C#,in the project there are three forms ,i want to show only working form and all other form should get close 'showdialogue' method also does not work ...............please give me some …

Software Development
Member Avatar for sandeepamazing
0
97
Member Avatar for iwanttolearnc

im trying to create a program that reads a text file and plots the data using matplotlib. however, what i want to do is subdivide the each major y-axis display into 10 smaller segments. ive tried matplotlib.pyplot.yscale but i cant seem to quite get the hang of it. any help …

Software Development python
Member Avatar for shibby
0
945
Member Avatar for satish.sahoo

Hello I want to develop a program in which I query a string to any search websites like Yahoo,Bing etc.. and get search results(only the websites) to display in a list box.So is there any way to get the search results ? Thanks From Satish

Software Development google java
Member Avatar for masijade
0
90
Member Avatar for davydick

Hi I used VB6 to create an EXE file that uses MSComm1. The program runs OK in my XP computer and also in my Win7 computer (that has VBE installed). It would not run on my Vista laptop. I installed the VB runtime files (even though Microsoft says they are …

Software Development vb.net visual-basic
Member Avatar for G_Waddell
0
229
Member Avatar for moroccanplaya

i want to know how to check if the file already exists before creating the file? [CODE] puts("please enter a file name to create:\n"); scanf("%s", &file_name); create_pointer = fopen( file_name, "ab"); if( create_pointer == NULL) //create file// else { //file already exist// how would you check if the file already …

Software Development c file-system
Member Avatar for WaltP
0
269
Member Avatar for rahini

How to simulate protocols in Computer Networks

Software Development java
Member Avatar for mni
0
156
Member Avatar for ashwin149

Hi.I am working on a project(patient management system).I want a code for this. Once I enter the name of the patient whose details want to know, I want the next form to be loaded and those specific details of that particular patient(already stored in a database) to be displayed in …

Software Development visual-basic
Member Avatar for AndreRet
0
83
Member Avatar for juniper2009

Dear All First of all I wish you a very happy new year. I have been trying to understand the depreciation matters. As you can see in the codes below, There are 3 handleEvent methods used as pressbutton action , radio button selection action and dropdown list selection action. Now …

Software Development java java-swing
Member Avatar for masijade
0
160
Member Avatar for ranjani jai

I am working for online examination project. my work is to generate random number without repetition. i tried and i am getting numbers to be repeated sometime.... I need to know how to check the repetition in the generated number. random r=new random(); for(i=0;i<10;i++) { int j=r.nextint(10); System.out.println(j); }

Software Development java
Member Avatar for ranjani jai
0
653
Member Avatar for deconstruction

Anyone know how to make the return key used in a text box trigger an event?

Software Development vb.net
Member Avatar for deconstruction
0
154
Member Avatar for cirno

Hi, I have this question about how to retrieve a column with DateTime from MySQL as String and put the data in a textbox. :| So I've been using something like this... [CODE]Private Function check_ResitDate_ResitNumber() Dim SQLquery As String Dim rrnRD As OdbcDataReader Dim DiTi As DateTime SQLquery = "SELECT …

Software Development mysql vb.net
Member Avatar for cirno
0
3K
Member Avatar for NoviceChrilill

HI, I have now for more than 24 hours tried to figure out how I return the index number of the second smallest integer in an unsorted array. Some how, I do not get the index number returned, can any one see what I´m missing? As the program runs now, …

Software Development java
Member Avatar for unique72
0
591
Member Avatar for JJHT7439

I was just playing around in python trying to get a basic sort of linked list working. I was able to make a simple linked list using an article I read online that looks like this: [CODE] class node: def __init__(self, value = None, next = None): self.value = value …

Software Development linked-list python
Member Avatar for JJHT7439
0
149
Member Avatar for MasterGberry

I have heard there is a C++ split function, but I have not yet found anything to help me work with what I have. I have the following: [CODE]001E3897 1024 HV regread set [rootPos: 0001CBE7, offset 1862832 ][/CODE] I need to be able to take this and split it into …

Software Development c c# c++
Member Avatar for MasterGberry
0
2K

The End.