132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lelejau

Hi. In C++ ie we can do this: code.cpp [code] #include vars.h main() { if var1 == 1 { printf("ok"); } return true; } [/code] The point is not the code itself, but that #include. I'd like to have a *.cs file containing some numeric variables. But not a Class, …

Software Development
Member Avatar for ddanbe
0
98
Member Avatar for lee.j.baxter

Hi folks, I just want to be certain on a few things before I continue developing my software (using NASM). I know it seems a bit strange to finally understand addressing AFTER I've already developed a bootstrap loader, but that's the way it's happened!!! :$ I'm currently working in 16-bit …

Software Development assembly
Member Avatar for Goalatio
0
165
Member Avatar for RossR

Hi all, I want to ask you for little help. I make application in C#. It is made from one main form and it would be great if I can use as a part of it another "small forms" (I want to let user drag them on screen where they …

Software Development
Member Avatar for williamrojas78
0
136
Member Avatar for Skul'l

I'm trying to make a program to download a file from the internet. it compiles fine. but when i press the button to start the download comes up with this [QUOTE]An exception occurred during a WebClient request.[/QUOTE] heres the source code to it [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using …

Software Development
Member Avatar for williamrojas78
0
153
Member Avatar for ihatehippies

How do you keep a wx frame from not responding while the code is running in the background? ie a search or other demanding function.

Software Development python
Member Avatar for ihatehippies
0
913
Member Avatar for stevetaylor15

I was just a bit confused about something sorry. If you have two classes, Ribbon1 and ThisAddIN below. How can I call Example()? - All are in the same namespace.. [CODE] public partial class Ribbon1 { private void button1_Click_1(object sender, RibbonControlEventArgs e) { //Call Example() from ThisAddIn Class Example(); } …

Software Development c c# c++ oop
Member Avatar for williamrojas78
0
205
Member Avatar for Frederick2

I musn't be thinking about something right (or maybe left)! If I have the number '1', which in binary is this... 1000 0000 ...and I do a right shift on it to get this... 0100 0000 then that should give me '2', not??? Then why doesn't this work... [CODE=C++] #include …

Software Development c++
Member Avatar for Fbody
0
147
Member Avatar for c#dummie

how do i sort information in a listbox by name (that is, alphabetical order)? im doing c# programming n using microsoft visual studio .net 2003.

Software Development microsoft visual-studio
Member Avatar for jugosoft
0
700
Member Avatar for MasterGberry

I am getting the following error codes when trying to compile the following 2 files 1>c:\users\adam-7\documents\visual studio 2010\projects\chapter 13\exc_1\exc_1\cd.cpp(9): error C2533: 'Cd::{ctor}' : constructors not allowed a return type 1>c:\users\adam-7\documents\visual studio 2010\projects\chapter 13\exc_1\exc_1\cd.cpp(58): error C2264: 'Cd::Cd' : error in function definition or declaration; function not called Provided the code, any …

Software Development c++ visual-studio
Member Avatar for MasterGberry
0
330
Member Avatar for Noorul Ariff

Friends... I'm doing INVENTORY project... front-end : vb.net back-end : Access I'm having PURCHASE, SALES tables... In sales form, i need to create CONTROLS during RUN-TIME... i.e, when we gone for shopping to a DEPARTMENT store, we buy LOT things... they will give us only one BILL... when they are …

Software Development vb.net
Member Avatar for codeorder
0
569
Member Avatar for Don_k

Dear respected programmers. Please could you help me (again) on how to put the following code into functions for my program. I have read on-line and understand how functions work but when I do it myself it all goes pear shaped(I am such a noob). Please could you help with …

Software Development c c# c++
Member Avatar for nezachem
0
149
Member Avatar for crazymidget01

I am writing a program to input an infix expression, convert to postfix, and then evaluate. Converting to postfix isn't the problem, but evaluating the expression is giving me odd answers. Simple expression like 1+1 is giving me 12 as an answer. I cannot figure out what the problem is. …

Software Development c++
Member Avatar for Dingbats
0
282
Member Avatar for nutrion

All, First, thanks for reading! I'm very new to python, and I'm trying to do something that seemingly feels impossible. I'm using Python 3.x to write a script. This script, so far, only runs Windows "net use" command and gets back drive mapping info. The problem is that I need …

Software Development microsoft-windows os-x python
Member Avatar for ckoy
0
296
Member Avatar for Nik.k

Im new to C, this will probably become apparent. I've been working on this program for about two months now and im getting to the final stages of it being completed. I just need to clean a few things up. Anyways, one of the functions my program does is sends …

Software Development c
Member Avatar for Nik.k
0
93
Member Avatar for atinus cool

how to generate code to get output- input-12345 output-1+2+3+4+5=15

Software Development java
Member Avatar for masijade
0
106
Member Avatar for rational_

I want to join 2 dots of the same colour that is 2 red dots or 2 blue dots ....but after applying my code...when i run the program it does not join the 2 same colour dots...even though it does not display any error. So basically i am trying to …

Software Development java perl
Member Avatar for quuba
0
185
Member Avatar for m1n1m3

Hi, It is my very first post, im doing it because i know some C basics and now im stuck with more advanced problems, more catchy questions. Lets say iv allocated a memory block by function called calloc. i have 1 bit field [CODE]struct datatype { unsigned short int a: …

Software Development c
Member Avatar for Narue
0
161
Member Avatar for Noorul Ariff

Hi friends... My friend s doing an online project... He wants to know how many users(REGISTERED) are LOGGED-IN CURRENTLY in his site... i.e if i'm ADMINISTRATOR of this DANIWEB, i want to know the USERS CURRENTLY LOGGED-IN... I need the logic for this... Help me... Thanks in advance...

Software Development vb.net
Member Avatar for Noorul Ariff
0
385
Member Avatar for MUFC4life

Hi i was just wondering if anybody could help me with this code. #! /usr/bin/env python # -*- coding: UTF-8 -*- [CODE]import turtle def initialize ( color = "blue" , smallest = 1.0 ) : turtle.clear ( ) turtle.up ( ) turtle.goto ( -100.0 , 100.0 ) turtle.setheading ( 0 …

Software Development python
Member Avatar for TrustyTony
0
292
Member Avatar for doom2100

hello all my problem is a confusion on the second problem here i managed to solve the first problem and made the program i hope its correct as u see.. First problem Three memory locations A, B, and C contain numbers. Write down the algorithm for finding and printing the …

Software Development algorithm java
Member Avatar for doom2100
0
136
Member Avatar for krosty4782

Hi! There is anyway to make the buffer size of a socket dynamic ? Because i need to download some things and my buffer of 1024 bytes cant get all the information. How could i do this ? Thanks

Software Development
Member Avatar for krosty4782
0
3K
Member Avatar for COKEDUDE

Whats the difference between using CC and CPP as the file extension for C++ programs? I thought C++ use the CPP extension for source files. I was reading this article and saw he used CC. [url]http://community.linuxmint.com/tutorial/view/111[/url]

Software Development c++
Member Avatar for myrk
0
239
Member Avatar for james6754

Hi everyone...just going from console apps to windows forms apps....This is extremely basic and is annoying me now... [CODE] public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("{0}",hello2(2)); } public int hello2(int hello) { hello = 10 / 5; …

Software Development
Member Avatar for Farhad.idrees
0
149
Member Avatar for Mona..

Hi this is the HW question, i can't understand the avail_list part can anyone explain?? (1) Write a program to implement indexing with avail_list support for deleted records as follows: a. The program maintains a data file called students.txt of students’ records which contains studentID and studentName. These records of …

Software Development c++
Member Avatar for Narue
0
228
Member Avatar for pritaeas

I'm in the process of converting a legacy app from D5 to D2009. I'm getting errors on AnsiToNative, NativeToAnsi (both DBTables) and DbiOpenSPParamList (BDE). Apparantly the parameters for these functions have changed. Does anyone here have a ready example on how I should use these in D2009 ? I was …

Software Development delphi pascal
0
108
Member Avatar for JDevelop

Hello there, I'm new to C programming and am following a course in C. I've got an example code for piping. It's not a very hard code to understand. It goes like this: [CODE] #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #define READ_END 0 #define WRITE_END 1 const char …

Software Development c multithreading
Member Avatar for JDevelop
0
168
Member Avatar for tinstar

I am having a problem with the following piece of code: [CODE] For countInteger As Integer = 0 To 3 seatsSoldInteger = ticketDetail(indexInteger).seatsSoldInteger costDecimal = ticketDetail(indexInteger).costDecimal totalTicketSalesDecimal = seatsSoldInteger * costDecimal Next countInteger [/CODE] I can't get it to break out the totalTicketSalesDecimal for each countInteger

Software Development vb.net
Member Avatar for jlego
0
284
Member Avatar for arshi9464

when we write [javac abc.java] a bytecode is generated. AND THE BYTECODE CONTAINS INSTRUCTIONS FOR THE JVM and each instruction is 1 byte in length. NOW my question is where does the interpreter comes into action and what happens after the bytecode is generated. I was told that interpreter produces …

Software Development java
Member Avatar for ishaanarora
0
114
Member Avatar for x2fair

I am only new in vb 2008 .I Want to populate a combo box in vb 2008 with mysql, but when i run the thing that appear is "System.__ComObject"..kindly check the errors...plz.. [code] Dim conn As ADODB.Connection Dim rs As ADODB.Recordset conn = New ADODB.Connection rs = New ADODB.Recordset With …

Software Development mysql vb.net
Member Avatar for jlego
0
208
Member Avatar for Scottyyboyy

hi all, i am a newbie to visual basic .net i have a vb.net database that has 3 textboxs that go to a listbox and also store in a database. i was wondering if i can extract the data from the listbox to excel like a csv file or something …

Software Development vb.net visual-basic
Member Avatar for Kylua
0
105
Member Avatar for pawan_sharma777

i use the window 7 with Turbo C(16-bit) compiler , now i have an assignment to generate the bicycle code in c++ graphics when i run any graphics program the TC show error and terminate . plzz help me as fast as possible.

Software Development c c# c++ image
Member Avatar for Ancient Dragon
0
119
Member Avatar for networkZombie

So I'm trying to make my own version of Pokemon simulator and this is what i have so far.. [CODE] /* Pokemon.cpp */ #include <iostream> #include <vector> using namespace std; void battle( int enemyHealth, int Health, int enemyAttack, int Attack, vector <string> &att, vector <string> &enmAtt ); int main() { …

Software Development c++
Member Avatar for alexchen
0
3K
Member Avatar for Ralphael

I need to create a serverless chat manager can some one help me

Software Development java
Member Avatar for JamesCherrill
0
144
Member Avatar for FrodoBaggins

Hi, I have an array, and I want to split the contence into textboxes. I have written some code to do so, but it won't work and I can't figure out what's wrong with it. Could someone please help me with this [CODE] Dim bh As String Dim x As …

Software Development vb.net
Member Avatar for Mariandi
0
115
Member Avatar for لولا

I have program that wants the user to inter an array and revers it and alos serch for some elements in the array but I have an error C2679 binary'<<': no operater found which takes a rigth-hand operand of type 'void' ( or there is no acceptable convesion). and I …

Software Development c++
Member Avatar for Narue
0
95
Member Avatar for kiddo39

I'm having trouble getting my python scripts to insert into a mysql database. I'm able to do other commands successfully such as adding or dropping tables, selecting items from tables but inserting into tables isn't working. I can manually insert but the script won't do it. I have an entry …

Software Development mysql python
Member Avatar for richieking
0
127
Member Avatar for alexchen

I need help with rand();. This program produces random number without repeating. In my error list there are no errors. Unhandled exception at 0x00414742 c++.exe: 0xC0000094: Integer division by zero. [CODE]int *numbers,range; void randomize(unsigned numberToSelect){ for(unsigned i = 0; i < numberToSelect; i++){ const int selectedElement = rand()%(range - i); …

Software Development c++
Member Avatar for Fbody
0
165
Member Avatar for Maha Sh.

Hi, I'm comparing String with array of Strings and I got this error Object reference not set to an instance of an object. This is my code: [CODE]For Each Str As String In Word If Str.Contains(w1) = False Then MsgBox(w1 & _ Str.IndexOf(w1)) out += 1 End If Next[/CODE] The …

Software Development vb.net
Member Avatar for bklynman01
0
168
Member Avatar for LianaN

Hi! How could I change custom cursor size? I was playing with Point(a,b), however the cursor is always 32x32 and it looks horribly. Below you can see my code snippet. Thanks! [CODE] Toolkit toolkit = Toolkit.getDefaultToolkit(); Image imageCrossCursor = toolkit.getImage(BeadToolbarColor.class.getResource("/icons/cross_cursor.png")); cross_cursor = toolkit.createCustomCursor(imageCrossCursor, new Point(0,0), "Cross cursor"); panel.setCursor(cross_cursor); [/CODE]

Software Development java
Member Avatar for LianaN
0
1K
Member Avatar for hsetaknev

1.What is diffrence Between NULL and '/0' characters? 2.Does the last cell os a string has NULL or '/0'?

Software Development c
Member Avatar for hsetaknev
0
152
Member Avatar for phobos666

Hi, Could someone tell me how to open a file in C based on user input. This is what I have tried: [code=c] printf("enter the filename"); scanf("%s",filename); fp1=fopen("filename","r"); [/code]

Software Development c
Member Avatar for Narue
0
32K
Member Avatar for justaguy101

This is not necessarily a Python or wxPython related question. Let's say i have GUI made with wxPython. How does one implement changing language of the GUI(menu names, help strings etc.) in a correct way. Thanks.

Software Development gui python
Member Avatar for richieking
0
267
Member Avatar for stereomatching

I am building a simple tree by pointer this tree would only have one child and one sibling if you call addChild more than once on the same node, it would add a sibling if you call addchild more than two times(assume it is three times) on the same node …

Software Development c++ puzzle
Member Avatar for stereomatching
0
173
Member Avatar for icasta13

I'm having a problem with my program. This program will display the numbers and get the average of them, average of positive and negative numbers, and also display the largest element. I have 3 files. For header, other functions and main function. Prog.h [CODE]#ifndef Prog #define Prog class Prog { …

Software Development c++
Member Avatar for jonsca
0
220
Member Avatar for needhelpe

how can I output 123454321, if i input 5. and 1234321 if i input 4?

Software Development c
Member Avatar for Nick Evan
0
4K
Member Avatar for Translucentbill

I want to create a game with allegro using text-based RPG elements. I would like to describe the setting through text and give the option to input a command but at the same time display graphics above the text area. Example: *3 sprites, warrior, mage, archer* (text description) Hello, (name …

Software Development c++
Member Avatar for SgtMe
0
109
Member Avatar for AmerJamil

Question is : Get two strings from user. Join first string with the second string with a space. Store in another string and display it. Example: Enter first string: Hello Enter second string: World Hello World (built in function for string concatenation is not allowed) im newbie in c++ and …

Software Development c++
Member Avatar for AmerJamil
0
196
Member Avatar for fenerista

How can I add a clickable url in a JTextPane like this [url]http://www.google.com[/url] or If I ask other way, how can I make the links in JTextPane clickable ? When the user click or double click this link the default browser will open the link that is clicked. I have …

Software Development java
Member Avatar for fenerista
0
3K
Member Avatar for abelingaw

I would like my login form to display a message when the user logging in pressed the CAPSLOCK key when he is entering data in the password textbox. I tried using this code on Keypress Event [CODE] If KeyAscii >= 65 And KeyAscii <= 90 Then txtPass.Locked = True Msgbox …

Software Development api visual-basic
Member Avatar for AndreRet
0
97
Member Avatar for thegrovesy

Hi, I now have the back end of a music library application and I am now working on the GUI side. I would like to display all the albums (Album cover art, Title and Artist) in a scrollable area, and would like some advice on how to do this: Firstly …

Software Development gui
Member Avatar for amol.narkhede
0
143

The End.