64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Gewalop

Hi, I'm trying to write a code for Caesar Cipher, I don't seem to be able to get it right, I'm having no compiling errors, but there're some real logical errors, the encryption function is working fine, but I'm having troubles with the decryption. I'd love it if someone helps …

Member Avatar for siddhant3s
0
155
Member Avatar for neutralfox

Hello, I need a little help for word multiplication, according to my notes, to multiply a word, we should put the multiplicand in AX, the multiplier in a register or memory variable and the result should appears in AX(low) and DX(high). The problem is how to get the product ? …

Member Avatar for neutralfox
0
87
Member Avatar for Alex_

Hello! I'm trying to swap some characters in this form, in Linux+NASM: abc -> cab -> bca -> abc I tried the following method [code] section .data string: db 'abc',10 strlen: equ $-string section .text global _start _start: mov ebx,1 add ebx,string mov string, [ebx] [/code] But it gives me …

Member Avatar for Alex_
0
2K
Member Avatar for denniskhor

[URL="http://rapidshare.com/files/222099783/PAS.zip.html"]http://rapidshare.com/files/222099783/PAS.zip.html[/URL] Can somebody help me check y the system stated overflow when i process...

Member Avatar for denniskhor
0
133
Member Avatar for hunterm

So I am trying to create a mirror image that is horizontal. I am having trouble getting the actual image to mirror because I am not sure how to go about doing this. I am using PIL 1.1.6 and Python 2.5.4, if that matters. So far I have: [code=python] def …

Member Avatar for hunterm
0
640
Member Avatar for Tess James

Hi am using sql server 2005.. I hav a query like this. [CODE]create PROCEDURE [dbo].[csp_UpdateAutoPart] ( @Code NVARCHAR(6) ,@Quantity INT ,@UnitPrice DECIMAL ) AS BEGIN -- Update the autopart details UPDATE dbo.AutoPart SET dbo.AutoPart.Quantity = @Quantity ,dbo.AutoPart.UnitPrice = @UnitPrice WHERE dbo.AutoPart.Code = @Code end[/CODE] While executing it, almost 32 rows …

Member Avatar for Ramy Mahrous
0
100
Member Avatar for Clockowl

Hey guys, I have a class with a friend function and a member function with the same name. Calling the friend function from the member function gives me an error: it looks for <classname>::<function> while the friend function is of course simply <function>. In this case, MinGW GCC says: [code] …

Member Avatar for Clockowl
0
178
Member Avatar for javaAddict

Just a quick question. No rush to answer, it is not important, I might discover it later myself, but just in case someone knows it: I have been trying to create a [URL="http://java.sun.com/javase/6/docs/api/java/lang/reflect/Method.html"]Method[/URL] object using this method: [URL="http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getMethod(java.lang.String,%20java.lang.Class...)"]Class.getMethod(String name, Class<?>... parameterTypes)[/URL] like this: [CODE] obj.getClass().getMethod(methodName, Class.forName(methodType)) [/CODE] My problem is …

Member Avatar for javaAddict
0
148
Member Avatar for Cardboard Box

Hi I spent several hours yesterday trying to fix an error with one of my classes. I have a clas which handles all the resources of a game, and they are all declared as public. When a function of the same rseource class is called by another class, its meant …

Member Avatar for nexocentric
0
92
Member Avatar for shefeekj

I am trying to make an online meta tag analyzer using php..The system should take a url as input ,analyze the url and print out all the meta tags used in the website....can i have the support some where on the net?

Member Avatar for shefeekj
0
213
Member Avatar for booker

Hello is this normal that the application I am running crashes when I try to instantiate e initialize a int matrix[512][512] where for smaller values doesn't? I just can't understand why. I could create I vector of vector but I want to use a pointer pointing to Aoo. Thank you

Member Avatar for tux4life
0
225
Member Avatar for xyster

Hello again, got myself stuck again with my lack of time between coding c. Gotten myself lost with pointers this time i'm pretty sure. Declaration in header file [code=c] extern DiskRequest proc_new_disk_request(int procnum, int sectornum, ReadOrWrite rw); [/code] Where i'm calling it from and some code around it to make …

Member Avatar for xyster
0
147
Member Avatar for DaveD3

I am working on an application in Visual C++. I needed to generate a message box so I went to the help files and found the C++ example to do this task. I copied and pasted it into my code. When I built the application this code from the help …

Member Avatar for DaveD3
0
106
Member Avatar for oNice

I'm trying to create a cipher that eventually will read an entire .dat file then re-write it encrypted and as of now I am using code blocks. Right now I’m just working on being able to do it one word at a time, but I get a really big error …

Member Avatar for oNice
0
97
Member Avatar for BestJewSinceJC

How can I check if an event is user generated? When the user clicks on a combo box and changes the displayed/selected content, I want the code in the itemStateChanged method to be executed. But I only want this code to be executed if the method call was due to …

Member Avatar for BestJewSinceJC
0
96
Member Avatar for valtikz

for example you have a: string test; [CODE] void ExampleWindow::on_clicked(){ ofstream myfile; string test; myfile.open ("/home/ws14/Desktop/trunk/minisip/minisip/share/test.txt"); mydialfile << test; mydialfile.close(); } [/CODE] how can I just add or insert a value on the file(test.txt). not just overwrite the file(test.txt) when the function(on_clicked) is being called. All I need is if …

Member Avatar for valtikz
0
127
Member Avatar for cubixguy77

I'm attempting a reduction from the vertex cover problem to the guard cover problem guard cover: [B]instance[/B]: a graph G and a bound k [B]question[/B]: is there a subset S of at most k vertices such that every vertex of G is separated from a vertex of S by a …

0
75
Member Avatar for tag234

Hello, ive got a quick question about changing characters within a .asciiz. Here is a snippet from the code im working with: [code] ## This is 300004D2 ## la $a0,value # Initialize the value lw $a0,0($a0) ## This is equal to 8## la $a1,count # Initialize the loop counter lw …

0
55
Member Avatar for skisky

ok....so i have code that will return whether or not the string im searching for is found. Which is fine and dandy, but i also need the array index, for where the match was found. (names are read from a txt into an array, then the array is searched with …

Member Avatar for skisky
0
93
Member Avatar for cakamaya

could anyone help me how to use a date function for reservation on ASP.NET.... thanx

Member Avatar for cakamaya
0
159
Member Avatar for BruenorBH

I am using GetWindowText to take user entered data, then seperate it out into variables, then finally use the one variable I need. .The only problem is that when debugging, I am seeing 2:00 pm listed as "2:00 pm", '\0' <repeats 17 times> it should just be 2:00 pm or …

Member Avatar for nucleon
0
145
Member Avatar for DaveD3

I am new to .Net and I am having some problems. I have read the Kate Gregory book for visual C++ .net and successfully implemented her application to look up employees in a database table. I followed the same format to write an application I am working on. The adapter …

0
72
Member Avatar for BestJewSinceJC

[CODE=Java]java.util.Vector<EmergencyContacts.ContactInfo> contacts = Application.getPatient().readEmergencyContacts().readContactInfos(); for (int i = 0; i < contacts.size(); i++){ EmergencyContacts.ContactInfo info = contacts.get(i); } public Vector<ContactInfo> readContactInfos(){ return contacts; } private Vector<ContactInfo> contacts = new Vector<ContactInfo>(); [/CODE] As you can see, it returns a Vector of ContactInfo. Why would I be getting an error saying, "Exception …

Member Avatar for quuba
0
132
Member Avatar for asilbek

public class QRYExecuter: SqlDataReader { } class is defined as above while building this, i get exception below: The type 'System.Data.SqlClient.SqlDataReader' has no constructors defined pls, can u solve it?

Member Avatar for asilbek
0
117
Member Avatar for littleson

hi, my front end is flex and back end is C# in .NET. How can i get the value from flex(eg: name) to a variable in .NET ?

Member Avatar for lucasmatos
0
90
Member Avatar for rpetras

I am having trouble running some test code using SOAP::Lite for perl. The code (listed below) simply hits a prime number generator that is freely available that I found through xmethods.net. It should be relatively simple test code, the only complication being the internal proxy server, but that seems to …

Member Avatar for rpetras
0
161
Member Avatar for redhotspike

I'm supposed to switch the themes of the "headline" and the "text", but I can't seem to get it. Here's what I have so far...anyone have any ideas why it doesn't work? Thanks :) [code=javascript] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> …

Member Avatar for redhotspike
0
104
Member Avatar for mem81

Hi guys, I am trying to create an windows application. What I need to do at this stage is I am trying to read a tab delimited file and the that same tab delimited file to go to another text file on my C drive. I have written some code …

Member Avatar for mem81
0
117
Member Avatar for nexocentric

This i the background to my problem, which is stated in bold text. I am currently working with a SAFEARRAY. I've declared a two dimensional array in VB6 and I'm trying to store data from a C++ dll in it. I have used the resources listed below to learn how …

Member Avatar for nexocentric
0
418
Member Avatar for dinamit875

Hi there ever1. I have written a bracket checker program using stack, seems to me its working ok, but still I have one problem with it.Well, it compiles ok,but when you are entering value, it just doesn't show you any results, but it supposed to give you the results.Any help …

Member Avatar for vmanes
0
113
Member Avatar for bad_roo

Wondering if anybody could help with what seems a very simple problem but is taxing for this noob. I set myself the task of creating a button which, when pressed, switches the background color randomly. It seems to work well enough but the random number it works from only generates …

Member Avatar for bad_roo
0
96
Member Avatar for booker

Hello I think this is easy for experienced C++ users. I want to define and initialize a [512][512] matrix. The problem is that when I do int matrix[512][512] I get an error and the program it shuts down. I think this has to do with max reserve memory. What can …

Member Avatar for booker
0
190
Member Avatar for sanstepsan

I have aseries of textboxes namely txtAlpha1, txtAlpha2, txtAlpha3 etc and txtBravo1, txtBravo2, txtBravo3 etc. I am trying to loop thro these by doing the following but of course it does not work. [code] For i = 1 To 25 If txtAlpha & i & .Text = txtBravo & i …

Member Avatar for sanstepsan
0
164
Member Avatar for mielcita

I'm reading in a file and I need to skip any lines of length zero or starting with '#'. But I keep getting null pointer exceptions later in the code because it can never tokenize. What am I doing wrong? Thanks in advance. Below is the relevant method: [code] static …

Member Avatar for javaAddict
0
136
Member Avatar for totalnoob

I have a file with a table with movie titles. When I wish to edit I click on a link which is represented in this following code: [code=PHP]<a href="edit.php?autoid='.$row['autoid'].'"> edit</a> [/code] This redirects me to an edit file where I can change the name, year and category. After updating it …

Member Avatar for totalnoob
0
108
Member Avatar for bryanhjkim

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 …

Member Avatar for bryanhjkim
0
221
Member Avatar for xyster

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 …

Member Avatar for xyster
0
162
Member Avatar for ihatehippies

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

Member Avatar for vidaj
0
94
Member Avatar for johnray31

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 …

Member Avatar for johnray31
0
181
Member Avatar for evertron

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 …

Member Avatar for Teme64
0
126
Member Avatar for smbusa
Member Avatar for sassenach

Hi, I have a email piping code show below. It works fine, except that when i print the $message, it also shows me some headers. [B]How do i strip the headers from the message itself?[/B] [B]email_piping.php file[/B] [code] #!/usr/bin/php -q <?php //header('Content-Type: text/html; charset=utf-8'); header("Expires: Mon, 26 Jul 1997 05:00:00 …

Member Avatar for digital-ether
0
1K
Member Avatar for bigtalk

I mostly work with PHP. I am not really a JavaScript guy at all, but in this day and age we all end up working with it a bit. I'm trying to do something that seems like it should be fairly simple. Unfortunately, I am not having any success getting …

Member Avatar for Airshow
0
217
Member Avatar for rEhSi_123

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 …

Member Avatar for rEhSi_123
0
279
Member Avatar for crh0872

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

Member Avatar for crh0872
0
3K
Member Avatar for BruenorBH

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

Member Avatar for BruenorBH
0
335
Member Avatar for loligator

I have mySQL 5.1 installed on a Windows Vista machine. I'm really curious as to where the file lives that holds the databases I created. I'm assuming it's in the mySQL install directory but I just don't know where (C:\Program Files\MySQL Server 5.1\?). Does anyone know?

Member Avatar for nav33n
0
95
Member Avatar for ithelp

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 .

Member Avatar for jephthah
0
88
Member Avatar for deedub

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 …

Member Avatar for tux4life
0
2K
Member Avatar for nonang

New python autodidact: please help with sorting the list "weather" in python using bubble sort, insertion sort, merge sort, quick sort, and selection sort.

Member Avatar for jlm699
0
117

The End.