132,726 Archived Topics
Remove Filter ![]() | |
Hello, I connected my Delphi application with MS Access database and I am stuck a bit with a problem: how to execute UPDATE Query stored in MS Access database from Delphi ? Stored query in Access works properly. All other queries (mostly SELECT) stored in Access I have connected properly … | |
I'm writing this little page that lets you sort of have a conversation with a perl script, and i'm having a problem. At the top of my php I access the perl script, with some text that the user input via a textbox. The perl responds with.. we'll say "Havin' … | |
Hey guys, I'm going to be starting a research project pertaining to [URL="http://www.jauswg.org/index.shtml"]JAUS[/URL]. Basically, this is a standardized protocol to be used in autonomous robotics... someone will essentially connect to a robots IP and be able to transmit various commands over 802.11. I not exactly sure where to start, so … Software Development c++ http-protocol robotics | |
![]() | Hello forum members, I am majoring in Signal Processing and Machine Learning. I have been using MATLAB for my academic research works for computing and data plotting. My question is if C# can be used as powerful as Matlab for mathematical calculation (matrix computing) and visualization? Also if I can … Software Development c# machine-learning |
[CODE]/* sscanf example */ #include <stdio.h> #include <iostream> using namespace std; int main () { float f; int i; char * the_string = "foo -3.6 fum dum 17"; int r = sscanf(the_string, "foo %f fum dum %d", &f, &i); cout << f << " " << i << " " … Software Development c++ | |
right, I am trying to do a task where I should convert 2A45 to a pair of ascii characters, however the presence of the "A" (10) confuses me- if I convert it to decimal I get 10821 which is 5 characters not 4. Software Development assembly | |
Hello everyone, I started learning assembly yesterday. Yes maybe I chose a wrong guide but I have a little problem here. It's about getting some integers without a newline. That is probably very easy to solve but I was searching for a solution for a few hours and no results. … Software Development assembly linux-kernel ubuntu | |
In the program, it can calculate the summation and subtraction of two integers. The integer can have 100 digits and can also be negative. How can i do this ? Software Development c | |
Hi, I am facing a problem, I am accessing a text file through my C program to fetch some values. The problem is that, i want to check whether the text file is updated before opening it, as i want to save the time of opening the file again if … Software Development api c file-system | |
Hello everyone. I am using ACE and I'm using the following method: ACE_OS::read(char* buffer, int nbbytes, int perms); I was informed that Windows is reading data from disk sectors and it puts the contents of the read sectors into the cache (who is in memory). I don't want that behavior … Software Development c++ | |
Hi, I'm currently working on an RSS File Editor. I want to implement a syntax highlighting feature, but I don't know how to program it and didn't find anything useful on the internet. I'm using a RichEdit as the editor window. Can someone tell me how to do it or … | |
Hello, I am trying to insert values from a .csv file into a MySQL database from a GUI. I cannot seem to accomplish this. I keep getting a null pointer exception where I set the connection properties in my main method. I also cannot seem to figure out how to … Software Development gui java java-swing mysql | |
Hello, I've got the following code: [code] wxString path = filepath; wxString newpath = filepath; fstream f(path.Append("/tests/tests.bin"), ios::in | ios::binary); fstream fnew(newpath.Append("/tests/temp.bin"), ios::out | ios::binary); Test* transferTest = new Test(); int thisSize = sizeof(Test); bool success = false; bool toBeDeleted = false; int testNo = 1; if (f) { f.seekg(0, … Software Development c++ file-system gui ios | |
When I executed the following code the output appears to be very strange to me. Can any one explain this unexpected result to me. The code: [code] #include <iostream> using namespace std; class Y { private: int x; public: Y() { x = 7; } int getX() { return x; … Software Development c++ | |
Error : warning: cannot pass objects of non-POD type `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >' through `...'; [Code] int main() { ListeString Parts; ListeString::iterator iter; Parts.push_back("One"); Parts.push_back("Two"); Parts.push_back("Three"); iter = (*mtcParts)->begin(); while ( iter1 != (*mtcParts)->end()) { printf("%s\n",*iter1); iter1++; } getchar(); return 0; } [/code] By using cout, i am able … Software Development c++ | |
[code=cplusplus] #include<stdio.h> #include<stdlib.h> #include<iostream.h> main() { FILE *fp,*fp1; int numbers[30]; char *buffer; int i=0,j; // To read the file fp=fopen("PR1.txt","r"); if(fp==NULL){ printf("Error: can't access file.c.\n"); exit(1); } else { printf("File opened successfully.\n"); for(i=0;i<10;i++) { // while(!feof(fp)) { /* loop through and store the numbers into the array */ printf("Number- %d", … Software Development c file-system | |
Hi, I'm new to the whole programing world, so I'm a bit lost. The problem is: Enhanace the "BankAccount" class by, 1.) Rejecting negative amounts in the deposit and withdrawl methods. and 2.) Rejects withdrawals that would result in a negative balance. (Simply return from the method without modifying the … Software Development java | |
Hi all, I have a C# (VS 2005) program using a Twain dll of Atalasoft, to connect to a scanner. When a fast scanner saves the files to disk, I show them in a PictureBox on the screen. This goes all well while nothing else happens. When I click on … Software Development | |
hi I want to write some text on windows wallpaper. does anybody know how to do that. (on wallpaper ,but under window frames.). (dynamic text: like time. so please do not suggest to write it with paint. :) ) Software Development c++ | |
For example i want that the [code]System.out.println("blablabla");[/code] wont be displayed on the screen of the console.... how can I do it? Software Development java | |
Hello, I am having some trouble reading data from a .txt file. I know that the file contains strings separated by white space. The problem is, I don't know how many strings there are, so I would like to go through the file one string at a time, and then … Software Development c++ | |
Hi. I am a little new to mixing C and ASM and I was wondering how one could pass a value from one asm function to another ASM function that then pushes the same value to a C function. What I have is this: 01. ASM 01 loads ASM 2 … Software Development assembly | |
can somebody give example python script that execute debian package when button is clicked. here is the example picture (i`ve created the glade files with Glade Interface Designer): Thanks for any attention.A little help would be usefull, since this program is to help those who tottally offline. [ATTACH]9031[/ATTACH] | |
Hello, here is my issue. I am having users load images into the application resouces to be used by the application to display them in a random matchup game. I cannot see how I would code to know how many images are in the folder, how to make 2 images … Software Development image visual-basic | |
These are my three files. The header file.... [CODE] #ifndef MONTH_H #define MONTH_H #include <string> #include <iostream> using namespace std; class Month; ostream &operator<<(ostream &, const Month &); istream &operator>>(istream &, Month &); class Month { private: string month; int monthNumber; public: Month(); Month(string); Month(string, int); void setName(string); void setMonthNumber(int); … Software Development c++ | |
Hi there, I am trying to write a C++ app using Dev-C++ 4.9.9.2. The app is supposed to read in a txt file and then use templates to read in the files and swap data that gets populated in a ptr array. The errors are: [Linker error] undefined reference to … Software Development c++ | |
Hi, I am trying to create a simple roguelike-like, a game with graphics similar to roguelikes, with a few extra twists. I am trying to create a dungeon using a list, here is the code... [code=python] background = ['#', '#', '#', '#', '#', '#', '#', '#', '#' /n/ '#', '.', … Software Development python | |
Hi. I am making a program, and I have a main section and a class that the main section tefers to in a .h file. The Ifstream part wont work, and i dont know why. Please help. MAIN: [CODE] #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <fstream> using … Software Development c++ | |
Can any one help or give some good advice on where I need to go from a point in my code. I am building an asterisks tree and I managed to get that part done, but there are three thing I need to input to complete the assignment. 1. And … Software Development c++ | |
The title basicly speaks for itself. i need some code to add a string value in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices and then to modify the value data. i have checked every where on google and this site, and anything i have found has not worked. Thanks in advance! Software Development microsoft-windows visual-basic | |
Hey girls/guys of the dev community, Ok, I have a project I wish to begin work on but am not entirely sure how I should start. I need to change hundreds of values in script file, for this I am trying to make an interface, similar to the properties dialog … Software Development visual-studio | |
I'm having trouble getting my sprite to go from the right side of my screen to the left and then swap images so it appears to be walking back to the right side and then repeat that process. Ive manage to only get the cats to walk to either direction … Software Development c++ | |
I'm writing a class planner with a structured array declared in the header [code=c++] #include <string> using std::string; struct Classes { string ClassName; string ClassNumber; string DaysMet; int StartTime; int EndTime; string Teacher; int Students; }; [/code] this is the print function of the program [code=c++] int Print() { system("cls"); … Software Development c++ | |
hi, Here is my code on the three sorts. I've place in the counter called icompare&imove for insertion sort; bcompare&bmove for bubble sort and scomare and smove for selection sort. I've also used time_t as a timer to calculate the time it takes to sort the three. can someone please … Software Development c++ | |
What I would like to do is write an application that a user can interact with through IE for submitting mathematical notations. What is the best method of doing this ? Will a plugin work or maybe a browser add-on or an active x control ? I am not familiar … Software Development c++ | |
In my MFC c++ app, when I try to include afxwin.h into my project, it gives me these errors. Whats the problem with it? Did I misunderstand something? I'm using vc++ 2005 express if it makes a difference. [TEX]1>C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc/afx.h(250) : warning C4793: … Software Development c++ windows-server | |
how would you seperate a character in a string. For example : string ="2x^2+8" how would i seperate the string into '2' 'x' '^' '2' '8'. so I could find its derivative. Software Development c++ | |
I have been working with bass.dll from [url]www.un4seen.com[/url] as audio library and I can say that it is great. But I have reached a place where I hitted the wall and it will take time for me to move. Can anyone suggest for me a dll library for playing audio … | |
Hi, I'm new, so please bear with me. I'm working on a memory card game in wxpython, using gui bitmap buttons. I need to change the bitmap from the "face down" bitmap to another bitmap when the button is pressed. (and to wait for a second button to be pressed, … | |
Dear Experts, I am willing to port my window based appliaction in to Mobile based application. I am using few asm files based on x86 instruction set. I would like to use the same asm files in to Mobile based appliaction in Visual Studio 2005 environment. As far as I … Software Development assembly visual-studio | |
PROBLEM : A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. I came up with a solution for the above problem. I … Software Development c++ linked-list | |
Hi All, I am trying to write a common function called call which will take in a void* and an int type. Based on the int type it will have access to different structures. The code doesn't compile in the first place. I am not sure this is correct or … Software Development c | |
I am trying to produce a program which produces a random array of numbers but I am running into a problem in that when the array becomes even a little large, say 10x10, I get the Bus Error or Segmentation Fault (I think I still get the error with even … Software Development c | |
Trying to create a 2 dimensional array for converting temperature and returning max. Having problems declaring max such as these 2 lines. max = max(inputFahr[0][0]); max2 = max2(inputCel[0][1]); [code]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package project3; import … Software Development java | |
I'm doing a OS class. Trying to implement this pseudo code: * Forking is fun! Simple tips First, fork the child process: pid_t ForkPID; ForkPID = fork(); Then write a quick switch statement! switch (ForkPID) { // -1, fork failure case -1: printf("Error: Failed to fork.\n"); break; // 0, … Software Development c | |
how do you manipulate text files.. [CODE=Python] import urllib2 dload = urllib2.Request('http://tvnz.co.nz/content/tv2_listings_data/portable_listings_skin') text_file = urllib2.urlopen(dload) text_file_read = text_file.read() print text_file_read f = open ('site.txt', 'w' f.write(text_file_read) f.close()[/CODE] This returns the page and saves it as text file, but how would i do the following things.. -delete lines of texts, for … Software Development python | |
I've searched all over the place and I cannot seem to find a well working, reliable solution to this that is not platform specific. Here is what I have: Main menu of a class (while loop with 0 as exit). User selects choices. Choice calls class function to carry out … Software Development c++ | |
I need a statement to exit my program after goto statement but i dont know where to place this statement. The statement is: [CODE=c]printf ("Enter \".\" to exit or \"p\" to proceed"); scanf("%c",&ch); if (ch=='.') getch(); if (ch=='p') goto repeat;[/CODE] also tell me if its rite or not? [CODE=c]#include<stdio.h> #include<conio.h> … Software Development c |
The End.