132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JosipMiller

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 …

Software Development delphi pascal
Member Avatar for JosipMiller
0
245
Member Avatar for headedtomexico

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' …

Software Development perl php regex
Member Avatar for KevinADC
0
102
Member Avatar for Duki

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
Member Avatar for Duki
0
97
Member Avatar for CsharpBeginner

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
Member Avatar for BlackSun
0
1K
Member Avatar for serkan sendur

[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++
Member Avatar for serkan sendur
0
196
Member Avatar for yuriythebest

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
Member Avatar for jt_murphree
0
89
Member Avatar for venomxxl

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
Member Avatar for jt_murphree
0
202
Member Avatar for bundersi

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
Member Avatar for Salem
0
157
Member Avatar for me_ansh

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
Member Avatar for Salem
0
158
Member Avatar for GDICommander

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++
0
45
Member Avatar for gh0sts416

I Was Wondering If There Was A Way To Use An Enumeration As A Function Argument in Delphi And if So A Quick Little Example Would Be Great. I Cannot Seem To Figure it Out :(

Software Development delphi pascal
Member Avatar for LizR
0
127
Member Avatar for the_titan

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 …

Software Development delphi pascal
Member Avatar for LizR
0
99
Member Avatar for AllenB

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
Member Avatar for Ezzaral
0
2K
Member Avatar for brixton

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
Member Avatar for brixton
0
111
Member Avatar for WaelTheNoble

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++
Member Avatar for WaelTheNoble
0
140
Member Avatar for abuthalip

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++
Member Avatar for StuXYZ
0
1K
Member Avatar for dhiliptce

[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
Member Avatar for rajenpandit
0
120
Member Avatar for mona515

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
Member Avatar for javaAddict
0
75
Member Avatar for Evert-Jan

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
Member Avatar for LizR
0
139
Member Avatar for yilmazhuseyin

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++
Member Avatar for yilmazhuseyin
0
108
Member Avatar for vedmack

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
Member Avatar for vedmack
0
5K
Member Avatar for ItecKid

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++
Member Avatar for ItecKid
0
151
Member Avatar for Jake12

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
Member Avatar for Salem
0
96
Member Avatar for strobon

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]

Software Development debian python
Member Avatar for woooee
0
110
Member Avatar for Trekker182

Never mind, I thought of another way to do the display. thanks

Software Development vb.net
0
59
Member Avatar for jeremy7780

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
Member Avatar for SCBWV
0
86
Member Avatar for rosenberg_a

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++
Member Avatar for rosenberg_a
0
115
Member Avatar for deerowbear

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++
Member Avatar for deerowbear
0
74
Member Avatar for mruane

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
Member Avatar for mruane
0
70
Member Avatar for cppnewb

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++
Member Avatar for cppnewb
0
197
Member Avatar for Himerz

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++
Member Avatar for Himerz
0
302
Member Avatar for crackerjacker

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
Member Avatar for Comatose
0
96
Member Avatar for KillerOfDN

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
Member Avatar for Ramy Mahrous
0
75
Member Avatar for RayvenHawk

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++
Member Avatar for StuXYZ
0
113
Member Avatar for lameassthemity

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++
Member Avatar for shasha821110
0
91
Member Avatar for avillachandok

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++
Member Avatar for StuXYZ
0
118
Member Avatar for Justmehere

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++
Member Avatar for Justmehere
0
120
Member Avatar for scarypajamas

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
0
122
Member Avatar for mrnutty

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++
Member Avatar for Comatose
0
105
Member Avatar for Stefano Mtangoo

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 …

Software Development audio python
Member Avatar for Ene Uran
0
534
Member Avatar for aegis042404

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, …

Software Development gui pdf python ubuntu
Member Avatar for aegis042404
0
260
Member Avatar for vikasmailsu

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
Member Avatar for Ancient Dragon
0
91
Member Avatar for arun_lisieux

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
Member Avatar for arun_lisieux
0
92
Member Avatar for ahamed101

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
Member Avatar for ahamed101
0
110
Member Avatar for slimjimmer

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
Member Avatar for Salem
0
227
Member Avatar for cicigirl04

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
Member Avatar for arseniew
0
493
Member Avatar for drjay1627

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
Member Avatar for drjay1627
0
144
Member Avatar for revenge2

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
Member Avatar for Ene Uran
0
159
Member Avatar for Ratte

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++
Member Avatar for Comatose
0
1K
Member Avatar for lonely_girl

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
Member Avatar for lonely_girl
0
136

The End.