43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Graphix

Hi, I am currently learning C#, but when I made a program that allows the user to guess a word (in Dutch that's called "Galgje") it repeats the while-statement twice, ignoring the scanf(). I searched with Google and found out that the program is too fast for the user input. …

Software Development c
Member Avatar for Graphix
0
233
Member Avatar for dalymiddleboro

Hey there I am getting an unusual error message I don't quite understand. I was wondering if I could have some help. The error is " error C3861: 'Tests_weight': identifier not found" I hope you guys can follow the code and any helpful input would be greatly appreciated! Thanks in …

Software Development c++
Member Avatar for jonsca
0
74
Member Avatar for hondros

Okay, so I have a tuple for a game, and this is it: [icode]['Hondros', {'Equiped': [['none', [], 0], ['Rags', [0, 1, 0, 0], 1, 1], ['Mocassins', [0, 0, 1, 0], 1, 1], ['Gauntlets', [0, 0, 0, 1], 6, 5]], 'Equipment': [0, 1, 1, 1], 'Stats': {'AC': 14, 'Strength': 15, 'Constitution': …

Software Development python
Member Avatar for hondros
0
174
Member Avatar for Diamonddrake

if you have ever used adobe lightroom you would have noticed that there is an awesome sidebar with 15 or so sliders on it. they can all be adjusted from the same screen and you watch as they edit the image in real time. This is what I am trying …

Software Development adobe image
Member Avatar for Diamonddrake
0
146
Member Avatar for TotoTitus

Hi, i've looked in several places for a how-to on C# DLL's. I made a windows forms application, which beside regular files, has a pure .cs Class File. I would like to extract a DLL from that file alone, how do i do that?

Software Development
Member Avatar for TotoTitus
0
79
Member Avatar for LucarioWill

[CODE]public class TVRemote { //initialize variables private int channel, vol; public TVRemote(){this(0,0);} public int getChannel(){return channel;} public void setChannel(int a){channel = a;} public TVRemote(int a, int b){setChannel(a); setVolume(b);} public int getVolume(){return vol;} public void setVolume(int b){vol = b;} public void channelUp(){ channel++; } public void channelDown(){ channel--; } public void …

Software Development java
Member Avatar for LucarioWill
0
214
Member Avatar for jlego

is there a way to start your program from the sub main() like you could with vb.net

Software Development vb.net
Member Avatar for jlego
0
118
Member Avatar for H.Roger

Hello, I am developing a simple graph drawing application where each graph could be painted in internal frame. I want to call a specified function whenever an internal frame got focus. I’ve tried to add “addFocusListener” to the internal frame but it didn’t work. Multiple workspace (internal frame) can be …

Software Development java java-swing
Member Avatar for H.Roger
0
242
Member Avatar for Alibeg

Hi guys. I have a question - searched for it for at least an hour (i think more, but nevermind). I have this piece of code: [code=C++] cout << word.getLastWord() << "<---" << '\n'; [/code] It is supposed to call getLastWord method of class called Extract. Method returns a pointer …

Software Development c++
Member Avatar for Alibeg
0
234
Member Avatar for tqmd1

Dear Experts I use following codes to diplay data in combobox str = "SELECT sno,name,city FROM employees" cmd = New SqlClient.SqlCommand(str, con) da = New SqlClient.SqlDataAdapter(cmd) dt = New DataTable da.Fill(dt) With ComboBox1 .DataSource = dt .DisplayMember = "name" .ValueMember = "sno" .SelectedIndex = 0 End With Table has three …

Software Development vb.net
Member Avatar for thecoat
0
134
Member Avatar for pyguy420

Im trying to write a code for a colour picker, so a user can pick 4 different colours and then it would return them so i can use them in a different par tof the program, but its not working properly and i can work out why. any ideas? [CODE]def …

Software Development python
Member Avatar for woooee
0
114
Member Avatar for spxChrome

I been at this for to long so I will give somebody else a shot at this. I have a text box that has a string in it that I will use for a SQL statement. Under the text box I have two trackbar controls. I want to be able …

Software Development vb.net
Member Avatar for spxChrome
0
105
Member Avatar for ryno365

Hello daniweb. Recently, I did a c# project that my boss wants an installer for. Having looked at a tutorial, I threw together an installer that gets the job done. However, since the project I am working on is going to be a windows service (root is windows\system32), I'm trying …

Software Development visual-studio
0
60
Member Avatar for BobFX

I have a very basic problem, which answer is not covered in the 1200 pages of the C++ book I'm using to teach myself. Consider this simple code: [code]#include "stdafx.h" using namespace System; class EventListener { long mRef; public: EventListener() { mRef = 0; } }; int main(array<System::String ^> ^args) …

Software Development c++ visual-basic visual-studio
Member Avatar for BobFX
0
131
Member Avatar for Mitja Bonca

I would like to know if is possible to click on every single cell in a listView seperately, like in a datagridview? If I set a full row selection to false I am only able to select the cell in the 1st column. The point or this thread is, that …

Software Development listview
Member Avatar for MrSpigot
0
143
Member Avatar for pangdo

1. I have few data in "MyData.txt" : 9 7 4 4 6 5 9 1 3 4 7 6 5 4 1 4 8 6 4 8 5 I only can copy the data into the code like this : [CODE] #include <iostream> #include <fstream> using namespace std; int …

Software Development c++
Member Avatar for jonsca
0
114
Member Avatar for zeeven

Hi there guys... Been working all week for the database connection of VC# with SQLite. I got an error everytime i try to open the database... No matter how i tried the [B]SQLiteConnection.Open()[/B] command still returns an error... I installed the required ADO.NET and the required SQLite Database... [I] here's …

Software Development c# open-source sqlite visual-studio
Member Avatar for zeeven
0
1K
Member Avatar for alvinwong

Hi, I am using Dev-C++ 4.9.9.2 with g++ compiler. I recently made a DLL in c++ that shows a window using Windows API. I discovered that the text shown inside are large and bold, which aren't looking very good. I want to change this, so I used the following code …

Software Development api c++ windows-api
Member Avatar for alvinwong
0
1K
Member Avatar for Teethous

Hey there guys, I am having a problem with with my ReadFile constructor. First of all the class that I am placing the constructor in is in a different package. I have imported the package to the class that I am placing the constructor But I still get an error …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
118
Member Avatar for tqmd1

Dear Experts I have two textboxes I want textbox1 to accept any character except 0 (zero) When user enter 0 then it must not go to next control I want textbox2 only accpet character "Y" or "N" Please help

Software Development vb.net
Member Avatar for Stevoni
0
117
Member Avatar for kobalt

Hello All, I am desperate for help. I have spent the last 2 days staring at this code and not getting anywhere (please see attached project files). The project requires a number sequence to be output as a text file. Starting number is input by user (number is in sequence …

Software Development perl
Member Avatar for kobalt
0
104
Member Avatar for grib

Had a moment to sit down and plow through a chapter, and as usual, wound up stuck. My compiler is giving me a string of [inlinecode]undefined reference to SALES::[all my function names][/inlinecode] in my main function. It's entirely possible that there are problems within the function definitions, but right now …

Software Development c++
Member Avatar for grib
0
270
Member Avatar for MrJNV

Hi. I have this assignment and have absolutely hit a wall here. I will give the assignment details, then say what the issue is: Consider a collection of songs in an MP3 library where each song is characterized by artistName, songTitle, album, playTime (in seconds), musicCategory, and albumProducer – hence, …

Software Development c++
Member Avatar for jonsca
0
157
Member Avatar for Gixxer98226

well kind of... I want to check to for updates on a webpage/website but only refresh if it finds a change from the page currently loaded in the webbrowser control on the form. More or less refresh in the background and only actually display the refresh if it finds a …

Software Development
Member Avatar for Gixxer98226
0
114
Member Avatar for Omermintz

hi :D! i had this idea were i wanted to create a program that starts an action by a user command on a different pc or any web device like a mobile phone or an i phone. i thought of the idea of hosting a web site that had just …

Software Development web-browser
Member Avatar for Omermintz
0
95
Member Avatar for TotoTitus

Hello everyone, i'm fresh new here, and i already have a question regarding...well, C#. I've made a Forms Application in which the user submits an image (bmp,png,jpg or gif), and the image suffers some byte-level modifications (obviously, i'm using the LockBits() method). Now, after the modifications are done, the user …

Software Development c c# c++ image
Member Avatar for TotoTitus
0
10K
Member Avatar for matthewl

hello I am trying to create an robot and I have been having a problem parsing the full string from the conf. As example the IRCServer, botnick, botname parameter does not contain the all the data. as the output shows: [code=output] ##################### # Ablaze Bot # ##################### Loading conf file: …

Software Development c
Member Avatar for matthewl
0
139
Member Avatar for dennis.d.elston

HI everyone, I am new the world of C and am having some problems with a class assignment. Can anyone help? [CODE] #include <stdio.h> #include <math.h> #include <string.h> #define Max_sites 10 /* maximum number of sites allowed */ typedef struct { int site_id_num[4]; /* id number of the site */ …

Software Development c data-structure
Member Avatar for dennis.d.elston
0
111
Member Avatar for Dmennite

using Windows 7 and calling: [CODE]OpenFileDialog LogoLoad = new OpenFileDialog(); LogoLoad.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); LogoLoad.Filter = "Image Files|*.jpg;*.gif;*.bmp;*.png;*.jpeg|All Files|*.*"; LogoLoad.Title = "Load Dealer Logo"; LogoLoad.FilterIndex = 1; LogoLoad.RestoreDirectory = true; if (LogoLoad.ShowDialog() == DialogResult.OK) { filenname = Path.GetFileName(LogoLoad.FileName); path = Path.GetDirectoryName(LogoLoad.FileName); extension = Path.GetExtension(LogoLoad.FileName);[/CODE] Problem is picturebox1.ImageLocation comes up as Null …

Software Development
Member Avatar for sknake
0
96
Member Avatar for Geekitygeek

Hey guys, I'm trying to design a custom control to extend a datagridview. The customer control is basically made up of two datagridviews, one will host the extra features, the second will offer all the usual methods/events of a regular datagridview. What i want to know is, can i automatically …

Software Development
Member Avatar for sknake
0
195
Member Avatar for Moonrise_state

Hi, I have a program that finds out if people are "compatible". The problem I have is that Java seems to be blatantly telling me that 130-130 is greater than 25 [CODE]public boolean checkMatch(Female other){ if (this.getA()<26&&other.getA()-this.getA()>1){ return false; }else if(this.getH()-other.getH()>25||this.getH()-other.getH()<-25){ return false; }else if(this.getP().equals(other.getP())&&this.getS().equals(other.getS())&&this.getD().equals(other.getD())){ return true; }else{ return false; …

Software Development java
Member Avatar for Moonrise_state
0
144
Member Avatar for fatalblade

hi , I have my python code but I couldn't solve it. here my sample loop: [CODE= python]import os import sys whileloop = True while(whileloop): initial_drive = "C:\\" inputline = input(initial_drive) <<< PROBLEM... if inputline == "exit": whileloop = False elif inputline == "about": print("no input") elif inputline == "": …

Software Development python
Member Avatar for fatalblade
0
170
Member Avatar for rfrei

I am trying to send a command to the external command line (cmd.exe) from the Windows form application that I'm writing in VB.NET (using VS2008). I can only access the external program thru the command line (its not my program) and I must do so from a form app. I …

Software Development vb.net
Member Avatar for thecoat
0
2K
Member Avatar for StaticX

Hi i am wondering if its possible to do the following,say i have 2 integer pointers containing numbers,and i want to add them together to a third integer pointer,is this possible?

Software Development c++
Member Avatar for necrolin
0
105
Member Avatar for bunkus

I have written code to use the automatic CD-Burn routine inside WinXP and above. But I cannot start the CD Writing Wizard by python code. Has anybody any idea how to do it? This is my code so far: [CODE]#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys import …

Software Development microsoft-windows python
Member Avatar for bunkus
0
279
Member Avatar for hondros

Okay, I am in the middle of creating a rather large console RPG. It'll include ability to equip armor, weapons, interacting with NPC's, battles, saving/loading characters, etc. I don't want to save all of my classes and functions in the same file, for easier readability. I have a few questions: …

Software Development python
Member Avatar for vegaseat
0
91
Member Avatar for Mitja Bonca

How can I put a progress bar inside this code: (I was trying to use PerformStep method for counting rows in data table, and put this code, but no luck: [URL="How can I put a progress bar inside this code: (I was trying to use PerformStep method for counting rows …

Software Development dataset xml
Member Avatar for DdoubleD
0
205
Member Avatar for Afupi

This is one of the two action listeners I have for two text fields. The exceptions to ensure the proper datatypes used is working. And the exception to make sure that int pos is within the array's range is working. The problem I am having is getting the out of …

Software Development java
Member Avatar for javaAddict
0
139
Member Avatar for G_Waddell

Hi I've written a printing application which is working perfectly when I debugg and step through but does not print anything when running a debugg with no breaks / step through. I suspect I need to use something like Do Events to get the application to print out. However when …

Software Development vb.net visual-studio
Member Avatar for G_Waddell
0
109
Member Avatar for himit

I am trying to transform 1 XML document to another using XSLT. I want to call the value from my source XML to the element in my result XML as the value of an attribute. Source code- <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> …

Software Development xml
Member Avatar for himit
0
168
Member Avatar for P00dle

I've made a gui that has a couple of panes on a frame. Initially only one frame is visible, but as you fill in options and press buttons, the others become visible. The problem I have is that the first pane should be in the top left corner when the …

Software Development gui java
Member Avatar for P00dle
0
105
Member Avatar for MAV_DevWantaB

Salutations All,,, Just looking for some input on this C program..:?: I believe it is working correctly but I think I have my Understanding of bits backWards....... :hair: AnyWho - The program should input a value from user and call the reversebit function to print the bits in both original …

Software Development c
Member Avatar for MAV_DevWantaB
0
219
Member Avatar for Stefano Mtangoo

Please help me to setup my development enviroment on Mandriva 2010. I used to MINGW and Codeblocks then Codelite. So I would be happy to have some IDE full bundled with GCC. I have googled but nope, nothing comes. Iam posting at codeblocks forum too :)

Software Development c++ ide
Member Avatar for ItecKid
0
102
Member Avatar for rubiksnut

During the course of my education in programming, there has been one question that's been bugging me. How can you create a program with a function that will open a program from Windows explorer. I can open a file from within my program, but what I don't know how to …

Software Development
Member Avatar for rubiksnut
0
111
Member Avatar for Aprentchacker

I am working with the above files and have precompiled MyClass header to an object file (MyClass.o). Now if I add this precompiled header to my project and try compiling the project I get errors i.e. [Linker error] undefined reference to MyClass::<all member functions>. I'm using Dev-c++ ver. 4.9.9.2 IDE …

Software Development c++ ide
Member Avatar for Aprentchacker
-1
105
Member Avatar for MxDev

Hi guys, How to increase the number of panels inside [ICODE]splitContainer [/ICODE]object for example make it contain 3 or 4 panels instead of 2 as a standard number??? Thanks [EL-Prince]

Software Development
Member Avatar for MxDev
0
114
Member Avatar for Diamonddrake

I am working on a little image program aimed at having a simple interface but a strong backend. Its mostly just for basic bulk settings and looping through files. but will allow for all the images to be loaded in a thumbnail strip and be able to be edited before …

Software Development image
Member Avatar for Diamonddrake
0
111
Member Avatar for Bulmung

hi, I need a method for C# to retrieve one [B][U]default key[/U][/B] from an application in the following directory [QUOTE]HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\xxx_program[/QUOTE] Can anyone suggest any code which I can use

Software Development
Member Avatar for Bulmung
0
86
Member Avatar for DarthPJB

If anyone saw my last wonderfully perplexing post I've almost finished my binary-conversion lib. However while writing it I've come across a couple of simple questions that google doesn't seem to want to answer for me. Thus I once again find myself pulling my hair out over something trivial. So …

Software Development c++ opengl
Member Avatar for DarthPJB
0
109
Member Avatar for Stefano Mtangoo

Hi all, I Just connected to internet booting from my USB external HDD which have Mandriva 2010 installed. I need to set it up for may Regular programming. So help me to Install JDK and Eclipse. I'm right now checking Sun.com but I know there are Java people using Linux …

Software Development java
Member Avatar for Stefano Mtangoo
0
144

The End.