43,549 Solved Topics
Remove Filter ![]() | |
![]() | 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 |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 = … | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
hey frnds, Can somebody tell me how to extract icons ,Cz I have no idea from where to start. Software Development vb.net | |
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 | |
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++ | |
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++ | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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++ | |
if you use movefile and ofstream the ofstream file won't be made.. :s any way to solve this? Software Development c++ | |
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 | |
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 |
The End.