199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JefferyWeb

What does it means when a variable or label has brackets around it? How is it different than using the statement without brackets? For example: mov eax, [data]

Member Avatar for thines01
0
171
Member Avatar for jaymayne

Need help making a module that sorts 4 arrays this how it started out void dataSort (float sLengthArray[],float rSlopeArray[],float speedArray[], float size) { void swap (int *x,int *y); int pass,j; for (pass=0;pass < size-1; pass++) { for (a = 0;j< size-1; j++) { if (slengthArray[j] > slengthArray[j + 1]) { …

Member Avatar for zeroliken
0
257
Member Avatar for stereomatching

When I was a student, I believe that most of the software programmers of every software companies must be very talented, brilliant, skillful and much more experience than me, at least before I got my first job, I really believe that every software companies could let me learn a lot.But …

Member Avatar for stereomatching
0
191
Member Avatar for shaunchu

So, I'm doing a test of strtok and my csv reader to fill an array of structs. Each line in the csv has a bunch of country information, and I'm only pulling the 2nd, 3rd, 8th, and 9th fields in each line to make the structs. My biggest problem at …

Member Avatar for shaunchu
0
176
Member Avatar for weeraa

I know how to attach image file to an exe. we can do it using picture box or image tool and picture property of it. now i want to know is there any method to attach mp3 file to an exe? we can use application path method. but in that …

Member Avatar for weeraa
0
239
Member Avatar for Thermalnuke

Hey I am having a problem with this java program im trying to accomplish.... I know how to count the characters or letters in a word, but how do you count every other word and display that letter in a row. Im trying to do an encryption program for example …

Member Avatar for Thermalnuke
0
138
Member Avatar for pwolf

Stuck again, still, im learning from my large list of mistakes, haha so this time im trying to convert a decimal to hexadecimal, i tried using hex(number) but its not suitable for the situation as this returns a string. and i dont know how or if i can convert a …

Member Avatar for pwolf
0
2K
Member Avatar for a-lago

Hi im starting to learn programming and I'm stuck in this [CODE] puts "enter as much words as you like and i will sort them" words = [] while true words.push gets.chomp if words.last == "" words.delete(words.last) break end end sorted = [] def sort unsorted, sorted, num, var while …

Member Avatar for a-lago
0
751
Member Avatar for ebanbury

Many apologies if this is the wrong forum. I looked through all the different forums and wasn't sure. Please let me know and I'll transfer this to whichever the appropriate forum is. I use PHP/MySQL for my website and have been using DW CS5 for Site Management/Connections. I've been trying …

Member Avatar for ebanbury
0
264
Member Avatar for sudheer2250

Hi all, I am trying to get the all the process modules from the Current process using "ProcessModuleCollection" Class. Please see the code i have used to do the above job. Before that I added a .net 2.0 my own dll to the project as reference. I am able to …

Member Avatar for sudheer2250
0
365
Member Avatar for LdaXy

back again with another question. i created a simple window in WIN32 mode, but it's giving me a linker error that i cannot isolate. [CODE]#include <windows.h> #include <tchar.h> #include <stdio.h> //defined this for all processes HINSTANCE hInstance; LRESULT CALLBACK WinProc(HWND hWnd, UINT msg, LPARAM lParam, WPARAM wParam); //WndProc Prototype. always …

Member Avatar for zazacofi
0
237
Member Avatar for PixelatedKarma

Hey I am trying to have a combo box read the first child node in my xml file and formulate a list on that. Everything I keep seeing relates to C# and thus doesn't work very well. I was originally thinking of doing this by doing an event on the …

Member Avatar for thines01
0
223
Member Avatar for Tssouthpark

Hello, when some submits this form its get send to my email. If the picture or attachment has a space in it ( ex: tom file.docx) the hyperlink gets messed up. I attach a picture of it below. Thank you so much! [CODE=php]<?php if(isset($_POST['email'])) { $email_to = "talent@itarep.com"; function died($error) …

Member Avatar for cereal
0
144
Member Avatar for jt_murphree

So I am trying to create a console app to parse text files. I am using a streamreader to read the text in until I reach end of file. The text file I am reading as 22945 lines. Right now I am just trying to read the entire file and …

Member Avatar for jt_murphree
0
155
Member Avatar for sota

Hi, If i have to use managed code with unmanaged code. What are the possible risks? Thanks in advance. [CODE] cliext::vector<int> ^vec = gcnew vector<int>(3); [/CODE]

Member Avatar for thines01
0
74
Member Avatar for Xenix-Hero

I have looked at several of similar topics and compared them with my code, but I don't see any of the same problems. Can someone else tell me if they see something wrong? Dev-C++ says "expected primary-expression before 'int'" and "expected ';' before 'int'" and that they are on line …

Member Avatar for Xenix-Hero
0
2K
Member Avatar for stinkypete

Does anyone have an algorithm that generates all 10-digit integers that have at least one digit repeated? Trawling through all 9000000000 of them and checking them individually is too slow. Thanks.

Member Avatar for VernonDozier
0
928
Member Avatar for kutchbhi

The situations: I have text in a var, that I am assigning to the innerhtml of a 'p' tag . The text has whitespace at the end. The problem: The last whitespace isn't rendered, by p tags. IT is ignored. Is there a tag other than the pre tag, that …

Member Avatar for Troy III
0
176
Member Avatar for danielbala

Hi.. This is my validation code [CODE]<?php error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); //Process form if(isset($_POST['Emp_Save'])){ ////////////// //Name// //////////// if(isset($_POST['_EmpName'])){ if(!empty($_POST['_EmpName'])){ if (preg_match('/([a-zA-Z ]{5,30})/', $_POST['_EmpName'])){ $createaccnt1="t"; }else{ $createaccnt1="f"; $error1="<span class=\"error\">Five letters or more required</span><br />"; } }else{ $createaccnt1="f"; $error1="<span class=\"error\">Please add your name</span><br />"; } }//if(isset($_POST['_EmpName'])) ////////////// //Father Name// /////////// if(isset($_POST['_EmpFatherName'])){ …

Member Avatar for cereal
0
133
Member Avatar for sha11e

My client-server program seemed to work fine, I could send and receive messages. But if I don't send any messages for a while (sometimes 2 minutes is enough, other times it takes an hour..) and then try to send one, I get the error "Software caused connection abort: recv failed" …

Member Avatar for sha11e
0
304
Member Avatar for Martin C++

Hello, I have a function which is registering a navigation menu [CODE=PHP] function register_menu($name, $displayname){ if(!is_menu()){ $menu['name'] = $name; $menu['displayname'] = $displayname; $registered = TRUE; //This should be global, so that is_menu() function can use it. } } [/CODE] And another function which checks if the menu is registered [CODE=PHP] …

Member Avatar for Martin C++
0
126
Member Avatar for dunktap

I have been looking into event handling with C# and Silverlight and I can't seem to grasp it. I'm simply trying to get this adding event handlers in managed code example to compile from [url]http://msdn.microsoft.com/en-us/library/cc189018(v=vs.95).aspx[/url] I keep getting the errors "The name 'TextBlock_MouseEnter' does not exist in the current context. …

Member Avatar for Momerath
0
415
Member Avatar for sota

Hi mates, I am using visual c++ . I need to remove those lines which are full of zeros. Here is the matrice[5,7] : [CODE] 2 2 9 8 7 3 4 [COLOR="Red"]0 0 0 0 0 0 0[/COLOR] 3 4 5 7 8 9 6 [COLOR="Red"] 0 0 0 …

Member Avatar for sota
0
467
Member Avatar for wasiqjaved

Hi, Need some help with MIPS I need to write a MIPS code that reads 10 characters string and then only print out value of 3rd, 5th and 7th character (remembering that first character is character 0) OUTPUT (should be somewhat like this): Enter 10 character string : i love …

Member Avatar for DeanMSands3
0
555
Member Avatar for ram619

The output of this code is "hhe!". Upto "hhe" I can figure out what is happening but, where does this "!" came from? ASCII value of "!" is 33 and here I don't think we are anyhow getting this value. Thanks in advance[CODE=c]#include<stdio.h> #include<conio.h> void main() { static char s[25]="The …

Member Avatar for ram619
0
213
Member Avatar for auwi987

hello guys i have a database with tblblabla and column agent_id, name, regis_date, expire_date [COLOR="Green"]agent_id , name , regis_date , expire_date[/COLOR]-->COLUMN HEADER [COLOR="Red"]BLA-1 , SAMPLE , 1/1/2012 , 1/1/2013[/COLOR]-->COLUMN DATA and i have a notification-form that check either the agent is expire or not if the agent is expire it …

Member Avatar for debasisdas
0
118
Member Avatar for baruchM

I just tried to install IIg on my laptop. It seems to have worked, but there were issues. The program couldn't find several files during the install process, but still seems to have worked. What did not was the config part where it looked for a template file. I had …

Member Avatar for debasisdas
0
173
Member Avatar for Martin C++

Hello, I need a php code that can detect the root foldername that my website is installed to. I need to use this constant in my bootstrap.php so it can't be relative to where the file is called from. Atm I have my root folder and admin folder. I need …

Member Avatar for Martin C++
0
125
Member Avatar for pizzipie

Hi, I am generating a table for use as a revision form. The following line: [CODE] printf("<td><input type='text' name='%s' onfocus='showDisplayName($v[1], $v[2]);' id='%s' value='%s'></input></td></tr>\n", strtolower($key), strtolower($key), $value);[/CODE] has the php function showDisplayName() embedded in it. This function will not work. If I write the identical line in a pure HTML page …

Member Avatar for pizzipie
0
368
Member Avatar for EatingGennaro

I am trying to make a software that signs up for hotmail etc. I am running into a couple of problems with the choosing of the birth date and clicking the submit button. I am newer to coding. So here is my code I have tried so it will enter …

Member Avatar for codeorder
0
143
Member Avatar for vivekanandaan

I am selecting the max value of a column from a table. If the table does not have any rows i need the result as zero. how can i achieve this Regards Vivek

Member Avatar for Reverend Jim
0
724
Member Avatar for Fixxxer

Hi There. I'm trying to fit a function Acos(wt + theta) to my data that I have binned and need to find the best values for the variable parameters A, w and theta so that the cos function fits to my data. However I've tried making a loop for this …

Member Avatar for VernonDozier
0
125
Member Avatar for mrprassad

[CODE] struct abc{ char a; char b; char c; }; [/CODE] what is sizeof (struct abc) in gcc ? it is giving 3, why not 4 bytes.

Member Avatar for gusano79
0
91
Member Avatar for naeemnur

Hi, All i want to show is the 'fr_players' to have two categories of 'fr_nations' and 'fr_clubs' and fetch the names from the foreign id... Here what i have done so far but it doesnt shows any error or return any tables either: [CODE]SELECT a.id as club_id, a.fr_name as club_name, …

Member Avatar for naeemnur
0
993
Member Avatar for zekstein

Hello, i have a little big problem. I have an application that needs to 'download' two exe files but i don't want to make internet connections and ... So my application verifies the system time and should 'extract' the .exe for x64 or x86. But i don't know how to …

Member Avatar for zekstein
0
154
Member Avatar for wael meto

Now i am tring to make a data set by creating it in separte DLL file(using VB net) the code i used in this dll fle aready workong in my form but i tried to use it by this diffrent way ,,,but no way this is the code of the …

Member Avatar for Oxiegen
0
312
Member Avatar for srikanth2321

Hi all, I'm currently using SAX to parse an xml file. Recenlty I have encountered a problem where, one of the element consist of more than 50,000 characters (a DNA sequence ) and the SAX results nothing as an output. The code which I'm using is [CODE] public void getCommand() …

Member Avatar for srikanth2321
0
380
Member Avatar for bloodbender

Hello Daniweb, What would you guys say is the most effective way to manage memory for powers? I'm thinking for smaller powers, like squares or something, it's probably just better to do x * x and Math.pow(x, 2) should only be used for bigger powers. I have a lot of …

Member Avatar for bloodbender
0
107
Member Avatar for geniusvishal

Guys I am stuck with a problem and want your genuine suggestion.. Actually the problem is that i am trying to send a mail using c#.net.. There is no issues while sending mail but when i try to include an attachment with it is not taking the path of the …

Member Avatar for kamilacbe
0
450
Member Avatar for kspecks

I was going through old programming tests from school and cam across this one that I got wrong and was wondering if anybody could help me out. We maintain our user list as an encrypted text file with the extension .LBE. We have a customer that is reporting that their …

Member Avatar for kspecks
0
208
Member Avatar for Begginnerdev

Hello my fellow Daniwebbers, I have a modest question for you. I have a panel, which contains child panels. I have code the alows the user to delete the selected panel, but can't figure out how to refresh the parent panel with the deleted panel gone. When I use the …

Member Avatar for Begginnerdev
0
200
Member Avatar for Twistar

I am making a simple blackjack game. I have now made the deck which i can draw cards from. But I don't know how to get the values from each card so that i can add them together. I have a card class named Kort with the enum: [CODE]public enum …

Member Avatar for Twistar
0
282
Member Avatar for gandrap

Hi to everyone, I have a problem to create search engine, actually i dont have problem to create simple search engine, i have problem to create search, but with multiple criteria. I need search for recipes database. So, when u put something to search, below u have 6 options to …

Member Avatar for gandrap
0
272
Member Avatar for messr135

/*any suggestions on how to convert a hexadecimal no. into others and vice versa?d code might be long, i'm just 16, dnt be harsh :)*/ #include<iostream.h> #include<conio.h> #include<string.h> #include<math.h> #include<process.h> main() { char a[30],ch; int len,i,j,pos,whole=0,k=0,n=0,r[30],lenr=0,lenq=0,q[30],h=0,base,base1; float frac=0; cout<<"Enter number"; gets(a); cout<<"Enter choice-b,o,h,d"; cin>>ch; len=strlen(a); switch(a[0])//for converting the no. inputted …

Member Avatar for DeanMSands3
0
108
Member Avatar for ghada ali

I have a code for speech recognition but it not work good it has a problem in line 31 what is the solution ??? [code] import edu.cmu.sphinx.frontend.util.Microphone; import edu.cmu.sphinx.recognizer.Recognizer; import edu.cmu.sphinx.result.Result; import edu.cmu.sphinx.util.props.ConfigurationManager; import edu.cmu.sphinx.util.props.PropertyException; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; public class HelloWorld …

Member Avatar for ghada ali
0
361
Member Avatar for bigjoke

I am trying to get a database created as per html5 web sql specs. [CODE]h**p://www.w3.org/TR/webdatabase/#sql[/CODE] I am using jquery/javascript to accomplish this. Here is a bit of simplified problem that i am facing. 1. User enters two fields on a html form 2. In background, i create a websql database …

Member Avatar for pritaeas
0
154
Member Avatar for huntaz556

I know i have already asked this question but i didn't want to reply to an old thread :) But i have made a second table in my database named members_info the other table is named members and it holds the usernames and passwords. My question is how can i …

Member Avatar for huntaz556
0
199
Member Avatar for ayub05

Anyone can tell me what's going to my website? my website page content shows blank. But today morning i watched my webpage- [URL="http://doctorscare24.info/ph.php"]Vaccinations[/URL] This type of events happened regularly nowadays to my website. Please can anybody help me?

Member Avatar for cereal
0
193
Member Avatar for phpnewby

I am working on a forgot password page. The page allows a user to submit email and then a temp password is assigned for the user to login and then update his/her password. The problem that I am having is that the forgot password page does not update the database …

Member Avatar for Graphix
0
211
Member Avatar for tiffster

Hello forum, I am not skilled in php. A novice. I have a Joomla site and the front page is blank. After inserting a code given to me to reveal the error for the white screen. This error message is now showing. I have no idea how to correct this …

Member Avatar for tiffster
0
190

The End.