132,726 Archived Topics
Remove Filter ![]() | |
I have trouble updating my database. When I run my program and click on update database, I can then choose a record in my listbox, but when I click on save it button it goes to "Geen leidraad is Bygevoeg nie" Here is my code (button update) [code] Private Sub … Software Development vb.net | |
I am a novice trying to use MS Visual C++ to record data through COM1. The data source is a sensor streaming ASCII characters, and the sensor and the COM1 settings were both checked with hyperterminal. In the code, I set the CreateFile to open COM1 with normal attributes, and … Software Development c++ file-stream open-source | |
The following method should swap the high nibble in a byte with the low nibble in a byte. The following code dosn't work if the lower nibble is above 0111 if it is it returns a negative number... Does anyone know what im doing wrong ? [CODE] public static void … Software Development java | |
Hello, It's been ages since i've coded in c and i'm assuming im having a problem with the syntax. I am sure this is stupid and very in my face but i cant seem to work out my errors at compile time. disk.c: In function `update_rw_requests': disk.c:531: error: `rw' undeclared … | |
I need a little help with the below if statement. What i would like to have happen is for the loop caused by the first if statment to also be conditional to a second if statement that will pause the loop output and require user interaction to either continue displaying … Software Development c++ | |
i have a problem i can write a c++ program with no syntax errors but it always have many logical errors how can i know the right logical solutions for the problem after reading it ?? thnxxx Software Development c++ | |
Hi I am using mozilla to test my application. I tested two subscription of my application in two different mozilla browsers simultaneously. Here I Found details are swapped. Because mozilla using the same Session ID for the two browser. This is a flaw in mozilla or whether this issue is … | |
I have a shared drive that I'm trying to access from another computer on the network with a script. I keep getting IO errors(does not exist), is there a module that deals with network locations? -thanks Software Development python | |
Hi All, I've been learning python for some time, and I really like it. I used this forum many times, and found answers for many of my questions. Unfortunatelly I can't find answer for my current problem: I have two lists (both the same size) and I need to sort … Software Development python | |
Hi guys, I need a help on my assignment. [B]Background[/B] A data transmission system typically breaks a large message into smaller packets. In some systems, the packets can arrive at the destination computer out of order, so that before the application requesting the data can process it, the communications program … Software Development c++ data-structure linked-list | |
I have 2 functions: one has to calculate the total number of days spent on a trip and the other has to calcualte the time of departure on the first day of the trip and the arrival back home on the last day of the trip. In the first function, … Software Development c++ | |
Hi guys, I need a solution. I have a uint32_t variable say var1. I need to store current time value in this variable, and somewhere in my code i need that time in proper timing formet i.e hour minute and seconds . is this possible? Any other solution for storing … Software Development c++ | |
Hello to every body I hope every one keep in best state. I want to help me in solve this problem in my Sheet . I use recurrence functions in like list.( with ADT file ) by modify the search function and adding Printing function in a Reverse Manner. the … Software Development c++ | |
I am having problems figuring out this problem. I am looking at my book and trying to follow along. i have used the get the way the book is showing and I have a couple of errors and I am not sure how to proceed with tying the the two … Software Development vb.net | |
hi all, i am doing payment form using datagridview in vb.net2008 when item add to item list it will automatic display on my datagrid. the problem now is, the datagrid will display out my data when i press ADD Button twice . here is my code.. am i make a … Software Development vb.net | |
I've got some of my project finished. This is supposed to 1) check to see if each word in the input file is a palindrome using stacks 2) If the word is a palindrome, write the word to a separate output filr. 3) Count the number of words read and … Software Development c | |
What's the code to show the second form in delphi? | |
Hey guys. I'm a college student who just took a introduction to programming course for general credit. We are learning how to program with python. I am having real trouble with creating a graphical tic tac toe game. I am just a beginner and any help would be appreciated. This … Software Development python | |
Hello there, I need help on finding out how to count the number of extensions found using the Boost filesystem. How i get the extensions is with this: [code=C++]extension(iter->path())[/code] I now need to know how to store the type of extension and then the next time it comes around increase … Software Development c++ | |
i cant figure where i go wrong. the output is wrong. anyone out there can find out where my mistake at? really need yr help. thanks. My txt file the sentence are : How are you? We think in generalities, but we live in details. what about you? Who are … Software Development c++ | |
Hi, I would like to install SQL Server 2000 Enterprise Edition in my PC having Vista OS. Pl explain me the step by step process to install SQL as both Server & Client. (K. S) Software Development client-server sql visual-basic | |
a i have a existing project here, it's a Cafe management for computer shops.. my problem is with the connection.. when is try to send a packet to the client.. the client wont react... i dont know if the client side just cant receive the packets the server send.. or … Software Development client-server visual-basic | |
Hi all, i have a problem which is i want to call function in different .cpp file.i create .h file. in main function, i include xxx.h as header file.in xxx.h i list down all the functios inside the file with extern.than in xxx.cpp i declare variable like dis e.g extern … Software Development c file-system | |
If you run this code, you will see that the first two lists values do not show up. I'm pretty sure this is because I am trying to print chars as numbers. I'm just wondering how to do this. Thank you. [CODE=C++] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> … | |
So I've got a program that takes an encrypted file and essentially decrypts it. I am now trying to modify this file. During the encrypting process, the words were scrambled by position. The location of each word is marked with a position value. I decrypted the original text, so now … Software Development c file-system | |
So here is my program: [code=python]#!/usr/local/bin/python #Scott Landau #CS 380 #Assignment 1 Programming Portion in Python #Created - 4/6/09 #Last Edited - 4/22/09 import pdb #n is going to be equal to 4 for this queens problem. n = 4 #Assigning the empty list to initialState. initialState = [] #Making … | |
I want to use a PIC16F877A (I have a boot loader on it) to control the speed of an electric motor. I also want to use the PIC for a few other things not related to this problem so I want to program it in assembly for better programming control … Software Development assembly | |
Hey! I am a newbie in windows form application in c++, so please guide me! As a practice I have created a new project in windows form using visual C++. I have added a button and listbox! Now say I click on button 1 and it opens a dialog box … Software Development c++ | |
Hello DaniWeb! I've created a function that parses a long string of text (JSON format, but that's not really important) for the specified JSON key/variable name, and it returns the JSON value as pointer to a char array. For example, [CODE=C++] //the function looks like: char* extract_key( char* buf, char* … | |
Ok I have my structure defined in my main function. And the I need to send an array of structures to a function as follows: [code] int fillStruct (ifstream& fin, ROPES ropes[MAXROPES], int n) int main() { struct ROPES { members }; return0; } int fillStructs (ifstream& fin, ROPES ropes[MAXROPES], … Software Development c++ | |
I have an assignment in which I have to create a 16-byte float, allocating bits to mantissa, exponent, sign of mantissa and sign of exponent at my own discretion. I have planned it to be as follows - Bits Purpose 1 Sign of mantissa 2 – 32 Mantissa 33 Sign … Software Development c++ | |
I want to create a file in (drive letter):\Program Files\myprog\file.ext where (drive letter) is the drive letter where windows is installed (or the default drive). Is there an easy Windows API method to retrieve it? Thanks PS, here is what I'm currently using: [code] string mainDrive = ""; foreach (string … Software Development api windows-api | |
I am getting error that I am doing an invalid conversion from int to char. I am using sprintf to change a user entered hour called ETHour to char, then strcat more chars onto it to create a time then trying to post it to a window.. [code] char cETime[8], … Software Development c | |
Hi everyone, I need your help on deciding what type of mobile game should I create for my project, I will also need help on how to create a mobile game from scratch if anyone has good source such as website or books please let me know I will really … Software Development java | |
I have been programming a compressor based on lz for my school project.When i used fixed block sizes there were no problems but now when i started using variable block sizes it crashes.The compression takes place without much problem but decompression crashes and debuggers does not report any error. Uncompression … | |
Hi, how would I get the temperature and percentage of load for my CPU, GPU, and other things like the hard drive? I'm on Windows XP. Is there something in the Win32 API or what? Software Development api c hard-drive windows-api | |
which can pick up executable if it is available in PATH like [code] int execv(const char *path, char *const argv[]); [/code] I do not want to specify full path , I want it to search in my PATH and execute . | |
Hey, I'm working my first program that includes structures. For some reason though I have having errors with my getline. [code=cplusplus] inFile.getline( studentar, 20 ); [/code] My getline is being used in a function, so I don't know if that effects anything. The studentar array is declared as type student … Software Development c++ | |
I need to add elements in the middle of a user created array. The closest I found was splice, but from what I read it can only replace. example of what I want to do it take list monkey marble oreo sandle monkey marble smile phone oreo sandle Software Development perl | |
Do i still need to append? and do i get the string break. i try cannot only the first line break. how are you? I am fine. What about you? I fine too! the txt file is : How are you? I am fine. What about you? I fine too! … Software Development c++ | |
I need to write the while loop to terminate with a '|' character program does not terminate correctly when using two cin numbers in the same line or even on separate lines (i.e. cin>>num1>>num2;) when the program does terminate with ^Z it just scrolls a long list of the last … Software Development c++ | |
Hey, Does anyone know how I can draw lines between the textfields? If I ask for x and y then this is relative to the component itself.. Also now I have made a separate class but this means that when I draw the lines the textfields disappear they cannot exist … Software Development java java-swing | |
New python autodidact: please help with sorting the list "weather" in python using bubble sort, insertion sort, merge sort, quick sort, and selection sort. Software Development python | |
I'm having a problem with cin.get(). I'm prohibiting the user, that he can only enter 5 keys. and each key does something, like a MENU. Press 1, if you want this, etc. [ICODE]char choice[5]; cout<<"ENTER YOUR CHOICE"<<endl; cin.get( choice, 5); switch (choice)[/ICODE] Okay, when I run this, the compiler gives … Software Development c++ | |
Hi, Consider there are 3 tables as following: Table1 ============================================================================================= | SerialNum | Date | B | C | D | Table2Number | Table2_Amount | Table3Number | Table3_Amount| ============================================================================================= | | | | | | | | | | | | | | | | | | | | | … Software Development visual-basic | |
Hey guys, With this defintion: sss.hpp [code=cpp] #include <fstream> #include <string> #include <map> namespace sss { using namespace std; class node { public: multimap<string, string> values; multimap<string, node> children; string &value(const string name, int index = 0); node &child(const string name, int index = 0); //... }; typedef pair<string, string> … Software Development c++ | |
Hi please can anyone run this code for me in Linux .. i want to know what's the output [CODE=c++] #include <stdio.h> #include <unistd.h> #include <sys/types.h> int main(){ for (i = 0; i < 3; i++) { if (fork() != 0) { printf("ONE"); if (fork() == 0) { printf("TWO"); } … Software Development c++ | |
I return result like this. [code] $xmlDoc=simplexml_load_file("myXML.xml"); $search = $xmlDoc->xpath("/customer[@id='$ID']"); foreach ($search as $key => $customer) { echo $id = $customer["id"]; } [/code] Is there any chance to DELETE or UPDATE above particular record without creating whole XML file again like we do in database? Thanks Software Development xml | |
Hey, i'm writing a client-server, so far i've got this: my structure [CODE]typedef struct mesg{ long type; pid_t pid; char data[64]; } MSG;[/CODE] the client [CODE]int main(int argc, char *argv[]){ int MSGid, msglen, mpid; MSG m; MSGid = msgget(KEY, 0600); while(1){ memset(&m, 0, MSGLEN + sizeof(long)); m.type = 1; mpid … Software Development c client-server data-structure | |
hey everyone need some help with a little homework assignment i need to make a program where a user is trying to book a seat on an airline in either first class or coach and if the seat that the passenger has choose is taken it either gives him another … Software Development c++ |
The End.