43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Epic Tissue

Ok, so this might seem stupid.. but I am just trying to get my head around it. I have 32bit registers (longword size). Unsigned values are values from 0 to 255. Adding two unsigned 128 bit values... So do I need to use 4 registers per value and add the …

Software Development assembly
Member Avatar for Salem
0
106
Member Avatar for dinilkarun

Hi, I have made a GUI using wxPython. I want to disable the Maximize button, but I am not able to do it. Please suggest a way to implement this. Regards, Dinil

Software Development gui python
Member Avatar for dinilkarun
0
2K
Member Avatar for mrboolf

Hi all. I am trying to write a "light" version of srm just as an exercise of shell scripting (started today with this ^^" I have to keep it [B]really[/B] simple) Basically it should just search for a file and, if found, ask for a confirmation before deleting it. Now, …

Software Development shell-scripting
Member Avatar for eggi
0
152
Member Avatar for QuantNeeds

Hello, I was wondering how I could correct this. It is referring to the following line: [code] set.quickSort(prt1, 0, arraySize-1); [/code] I tried to create an object and call the function this way but I am not sure how to correct this error. My code is the following: [code] bool …

Software Development c++
Member Avatar for QuantNeeds
0
179
Member Avatar for AUGXIS

hi guys, i was trying to sum up all the balances of clients to know which of them has reach their credit limit but my codes are not working. It shows an error and highlights on this code [code] rsArmaster.Open "select sum(balance) as credit from ArMaster where shippercode= '" & …

Software Development visual-basic
Member Avatar for AUGXIS
0
92
Member Avatar for sardarji

Hi, Is there a way in python to get multiple values from a dict? In perl we have this syntax: @values = @hash{@fields} is there something similar in python? thanks, Sam

Software Development perl python
Member Avatar for vegaseat
0
77
Member Avatar for Nemoticchigga

I have a vs2005 forms app, I have added a header file with a bunch of functions, but now i get a bunch of LNK2005 errors, one for every function. How do I resolve this? Do I need to put them in a class? Thanks.

Software Development c++
Member Avatar for Salem
0
84
Member Avatar for n.aggel

Hi guys, i have one question regarding alignment. Assume that you have the following struct: [code=c] struct align1 { double a; char b; int c; short d; }; [/code] Also assume: sizeof(double): 8 sizeof(int): 4 sizeof(char): 1 sizeof(short): 2 i would expect: sizeof(align1): 8 + (char padded to->) 4 + …

Software Development c++
Member Avatar for n.aggel
0
174
Member Avatar for kmacker

Ok. Need some help with a project at my work. Wanting to create a useful map of the windfarm where I work. (Once completed, will be the largest windfarm in Europe :-)) Anyway have created a map of the site showing the locations of each turbine. Using this map as …

Software Development flash visual-basic
Member Avatar for kmacker
0
173
Member Avatar for crafted

I downloaded a graph control... However I dont know how to code it I tried copping and pasting sxamples codes but the code refuses to work. HOW DO I CODE THE GRAPH CONTROL, I KNOW I CAN USE ARRAYS BUT MY UNDERSTANDIG OF ARRAYS IS MINIMAL...?? i need help

Software Development vb.net
0
69
Member Avatar for david_09

Hi all, How can I allocate memory in Python and convert that into Physical memory? I am trying to use CTYPES, but somehow not able to load the required system libraries to use malloc type of system call. Thanks, David

Software Development python
Member Avatar for vegaseat
0
127
Member Avatar for DonkeyKong92

Does the infomation make a differance to the programs speed? [CODE]// Operating with hello world #include <iostream> using namespace std; int main () { // Print out the result: cout << "Hello World! "; cout << "This is my program"; // Keep program running: cin.get(); //Terminate the program: return 0; …

Software Development c++ operating-system
Member Avatar for DonkeyKong92
0
194
Member Avatar for KenTheFurry

Well I am writing a little message encryption program (simple) and Well it works but it will not change anything after a space. just hoping someone here could help. [CODE] cout << "Enter in the message you want to encrypt..." << endl << " "; cin >> in; count=strlen(in); for(i …

Software Development c++ encryption
Member Avatar for KenTheFurry
0
160
Member Avatar for Gaurav arora

Hi all, i have added the form required in my project. it is showing there in solution explorer window. But i cant access that form through coding. can anyone tell me wt is the problem

Software Development
Member Avatar for ChaseVoid
0
94
Member Avatar for Gaurav arora

Hi all I have to make a form in my project which includes text NOW LOADING following 4 to 5 dots like ......, Now my motive is that on loading that form the dots should look like moving as is mormally seen in all softwares and games. i have used …

Software Development
Member Avatar for AmirBedair
0
103
Member Avatar for gispe

hi ppl, i' ve done a program that calculates the result of raising a random base to a random exponent. the problem is that this stays in a loop that never comes out, n i have to abort it. and, its ok to put `exp*=exp??` cuz, i dont know how …

Software Development c++
Member Avatar for gispe
0
73
Member Avatar for PoovenM

Hi guys, I'm trying to make sense of some Perl code. I haven't actually programmed in Perl before but I do image the functions/methods are similar to other languages. Here's the code: [code=perl] function [dir, wspd] = conv_wind(uwind, vwind) usize = length(uwind); vsize = length(vwind); if(usize ~= vsize) dir = …

Software Development perl python
Member Avatar for PoovenM
0
232
Member Avatar for MikeyFTW

OK i have this code below here...it works fine. play with it and you will learn its a simple maths game but i want to add substraction to it as well. i want it to be able to load the program up and then be able to choose from addition …

Software Development mathematics python tkinter
Member Avatar for jlm699
0
389
Member Avatar for Jaulm

This is my first post and I am new to this so bear with me...I am trying to write a program that will output messages to 1 or more text files. For example if I want to write to 3 log files, depending on what is happening in the code. …

Software Development java
Member Avatar for Jaulm
0
210
Member Avatar for karang

Hi I have made a program that will change the settings of printer orientation. But I am getting linker error. " [Linker error] undefined reference to `OpenPrinterA@12' " I am not able to find out the reason. Kindly advice Regards Karan Gupta

Software Development c++ printer
Member Avatar for Ancient Dragon
0
540
Member Avatar for buddy1

I have a recursive function squares that receives a positive integer n and prints out the first n perfect squares in descending order. Can anyone tell me if this is correct and if not please help. [ICODE]squares(int n) { if( n== 1 ) return 1; else return squares ) n …

Software Development c c# c++
Member Avatar for buddy1
0
100
Member Avatar for buddy1

BinarySearch is called on the array below, searching for Value 20. Is the final value of Index 20 in [6]. I think this is right. 2 5 10 15 20 20 20 20 [1] [2] [3] [4] [5] [6] [7] [8]

Software Development c++
Member Avatar for buddy1
0
78
Member Avatar for ypdev

Hi, Does anyone know how to change the date format on the calendar components? The default is [B]MM/DD/YYYY[/B] and I would like to change it to [B]DD/MM/YYYY[/B] Thanks...

Software Development vb.net
Member Avatar for ypdev
0
94
Member Avatar for Hannahlv

Hi, everyone! I thought I posted the code first, it's better. This is the code of the program I've worked with : [CODE] #include "liveMedia.hh" #include "BasicUsageEnvironment.hh" #include <stdio.h> UsageEnvironment* env; Boolean reuseFirstSource = False; Boolean iFramesOnly = False; static void announceStream(RTSPServer* rtspServer, ServerMediaSession* sms, char const* streamName, char* inputFileName); …

Software Development audio c++ client-server file-stream session
Member Avatar for Hannahlv
0
232
Member Avatar for ishaanarora

i m writing a practice code to implement select with fifo. i m posting two codes along with : [CODE] CODE 1: Help with Code Tags (Toggle Plain Text) #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include<fcntl.h> int main() { int fd,rc,i; /* Making A FIFO names as fifo2*/ char data[100]; …

Software Development c
Member Avatar for ishaanarora
0
171
Member Avatar for Gaurav arora

HI all again here with some problem. I m making a project in which i made a form MDI container and on running the application login screen opens within the Main form(MDi). I want that until user logins he should not b able to access main form or its options. …

Software Development
Member Avatar for Jx_Man
0
91
Member Avatar for ruchika beddy

hey frnds, Can somebody tell me how to extract icons ,Cz I have no idea from where to start.

Software Development vb.net
Member Avatar for dmf1978
0
154
Member Avatar for Moth126

I'm having a problem with my assginment. This is the Java Number Guessing Game. It compiles and runs with no errors but when executed it stops with only one user input. You must hit the "Play Again" button to continue. Here is my code: [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; …

Software Development java java-swing
Member Avatar for sciwizeh
0
79
Member Avatar for Jennifer84

I have started out with tasks that need to communicate between different forms. I need to understand the logic how this works and have problems to find any examples of this. For the 2 codeexamples below, I use these to close the current Form or activate another button on the …

Software Development c++
Member Avatar for Jennifer84
0
224
Member Avatar for Gromnie

my 2nd prog, i intend on adding to it next so that it manipulates the data, see what cool things i can make it do....anyways, just looking for some feedback again on my prog, does it suck :) ? Thx in advance [CODE]#include <iostream> #include <fstream> #include <vector> using namespace …

Software Development c++
Member Avatar for Duoas
0
100
Member Avatar for henpecked1

My professor has assigned a lab that we will later be using to learn how to abuse the various types of data structures. In this first lab he asks for the default constructor, a copy constructor, and an overloaded constructor to accept the appropriate data, which you'll see in a …

Software Development abuse c++
Member Avatar for Duoas
0
134
Member Avatar for sddproject

Hi I was wondering if anyone knew how to make a highscore list in VB 2005. This is for my project which is basically a quiz, and I would like the user to be able to click on the highscore button so that they can see their name, ranking and …

Software Development vb.net
Member Avatar for Bill Purkins
0
237
Member Avatar for ruchika beddy

I have a TextFile that contains Records. On Form Load I m saving those records into the listview. I set the MultiSelect property of the listview to true. I have one button, I want that suppose user Selects multiple items in the listview by using ctrl. & Click on Button,Firts …

Software Development listview vb.net
Member Avatar for ruchika beddy
0
148
Member Avatar for Bill Purkins

Using VB 2008. I have a form with a text box and a button on it. The button displays another form with a datagridview from which I want the user to select from to populate the text box. On RowHeaderMouseClick, I populate the text box field from the first form …

Software Development vb.net
Member Avatar for Bill Purkins
0
178
Member Avatar for Shadoninja

I know that to make a simple yes or no question I can do this: [code] int Answer; cin >> Answer; if (Answer == 1) { Response } else { Response } [/code] But in the accounting program (In a recent thread), it registered the key before you hit enter. …

Software Development c++
Member Avatar for Shadoninja
0
88
Member Avatar for TheBeast32

Hi, I have been making a program that encrypts files. It works, but it compresses them. It only does it a little bit, but it does. It's weird. Why is it doing this? I have attached a zipped folder with the code, binary, an encrypted file, and the original file. …

Software Development c++
Member Avatar for aminit
0
80
Member Avatar for adarshcu

hi.. i was following the program in d tutorias given in daniweb thread. i typed print " Hello Cu Python!" in the IDLE .. but i get an error as invalid syntax ? can anyone tell me the change to be done??

Software Development python
Member Avatar for adarshcu
0
131
Member Avatar for gReaen

Hello, I know this is a basic question but i didnt get the answer myself. So posting it here. I have a program that spans many files, all are .java. If i have to compile them should all of them be in the bin folder of the JDK? Can i …

Software Development java
Member Avatar for gReaen
0
110
Member Avatar for hell_tej

Hi, I m inserting Record in Access using VB6 SQL statement as follows [code]Dim str As String On Error GoTo solve str = "INSERT INTO [compinfo]([cID],[cname],[address],[add2],[city],[Postno],[mob],[phno],[faxno],[email],[workday],[offtime],[saldate],[duedate],[amount],[paytyp],[web],[type],[expdat],[charge]) values (" & "'" & txtcomid.Text & "'" & _ "," & "'" & txtcomnam.Text & "'" & "," & "'" & txtcomadd.Text & …

Software Development sql visual-basic
Member Avatar for debasisdas
0
249
Member Avatar for ypdev

Hi Guys, I've got a code that basically storing data from several controls, one of the control is GridView. when I "Submit" I get all rows from GridView and I need only the selected rows.. I've tried to use: str = GridView1.SelectedRow.Cells(1).Text but it gives me an error when I …

Software Development session vb.net
Member Avatar for ypdev
0
901
Member Avatar for MikeyFTW

Can someone tell me how to create a simple but attractive splash screen to load at the start of my program which will highlight: 1) the program title 2) who the program is for 3) who designed the program and 4) what version of the program it is thanks

Software Development python
Member Avatar for MikeyFTW
0
10K
Member Avatar for SHWOO

Why isn't the mReadkey macro outputting the string "Please enter...." ? [CODE] TITLE MASM Template (main.asm) ; Program: Chapter 10 Problem 1-5 ; Author: Jon Wayman ; Created Date: July 17th,2008 ; Revision date: INCLUDE Irvine32.inc INCLUDE Macros.inc ;------------------------------- mReadkey MACRO ; ; This macro asks user to press any …

Software Development assembly
0
71
Member Avatar for Alex Edwards

How in the hell do you divide by 7 using nothing but-- ~, ^, >>, <<, &, | -- In a set algorithm. I'm stumped. I've tried mapping out different numbers dividing by each other... it didn't work. I would map out a number subtracting from the other to see …

Software Development algorithm c++
Member Avatar for invisal
0
174
Member Avatar for Evan M

I've been getting an "Access Violation" error while running this program: [code=c++]#include "SDL/SDL_ttf.h" class Font { private: TTF_Font *font; public: Font() { font = TTF_OpenFont( "c:\\windows\\fonts\\cour.ttf", 20 ); } ~Font() { TTF_CloseFont( font ); //Access violation } }; int main( int argc, char *args[] ) { if( TTF_Init() < 0 …

Software Development c++
Member Avatar for Evan M
0
237
Member Avatar for Q8iEnG

Hello :) Umm I have a small question :) Which do you recommend for fast searching BST or AVL tree? My answer: It might be the BST because it'll be noticed that in the right subtree all the numbers greater than the root will be there also for the smaller …

Software Development c++
Member Avatar for Q8iEnG
0
130
Member Avatar for 11silversurfer1

Hi, I was wondering with the menu bar how to open, save and make a new file on the menu bar [code] case MENU_FILE_ID_OPEN: { //something to open the file } break; [/code] i have no idea at all how to do this, i have searched the net but it …

Software Development c c# c++ visual-studio
Member Avatar for 11silversurfer1
0
157
Member Avatar for lingol

I'm writing a function that reads an IP address from input and generates its 32-byte values. If the input is correct, the whole thing can be done by this: [CODE=C++] int a, b, c, d; char buf; cin>>a>>buf>>b>>buf>>c>>buf>>d; ... [/CODE] If it's not, such as 256.0.0.0, or 1..2.3.4, I want …

Software Development c++
Member Avatar for lingol
0
197
Member Avatar for qeinar

if you use movefile and ofstream the ofstream file won't be made.. :s any way to solve this?

Software Development c++
Member Avatar for qeinar
0
139
Member Avatar for ymidexterous

Hi Everyone! Need help in my new Project with Visual Basic 6.. I need to send a 5 volts signal from my pc using a VB6 program to the serial port where I could place a relay... Thanks :) Dexter A.

Software Development visual-basic
Member Avatar for ymidexterous
0
673
Member Avatar for k2k

hi, can anyone give me a brief example using mailx and heredoc to send an email? [CODE]#!/bin/sh mail -s "subject" target@address >>body hello all, this is supposed to be the body of the mail body[/CODE] -----------------------------------------> i think i need somethink like above code, with mailx instead of mail -s......... …

Software Development shell-scripting
Member Avatar for eggi
0
1K

The End.