64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for fussballer

Hi, I am developing some code to run on hardware and I am using the sin() and cos() functions inside the standard math.h many times, which slows the program down dramatically. I was wondering if there is a way to "approximate" the sine and cosine of a value (angle is …

Member Avatar for Adak
0
238
Member Avatar for jemz

hello can you help me please where can i get the crystal report and how can i use this...thank you in advance hoping for your positive responds.

Member Avatar for AndreRet
0
95
Member Avatar for abelingaw

Regarding my previous post: [URL="http://www.daniweb.com/forums/thread326976.html"]http://www.daniweb.com/forums/thread326976.html[/URL] I manage to correct that error. Now my problem is the misplacement of records on my fields. Records that suppose to be in the Region field now displays at the Name field. Records that should be on the Zipcode field now at the Age field. …

Member Avatar for abelingaw
0
107
Member Avatar for abelingaw

Ok, im having a long time creating reports for my program. I would like to ask if it is possible to connect my program to an existing msword file. E.g: If i click a button on my form, lets say cmdLeaveReport, an msword file named leavereport.doc will open (of course …

Member Avatar for AndreRet
0
248
Member Avatar for dimasalang

hey, i'm new here..need help is it possible to save your work from other applications (e.g. word, excel, photoshop etc.) using vb6?? thanks.. this is for our thesis.. ASAP

Member Avatar for AndreRet
0
524
Member Avatar for jonnypixel

Hi, I am trying to check MYSQL table field for existing Tags. If they exist i dont want it to insert the tag. If they dont exist i want it to run the INSERT query. My code below wont work though.. it just keeps returning already exists even when the …

Member Avatar for jonnypixel
0
2K
Member Avatar for luke noob

the problem is that its an undifined varible ($last) intill i type the second word, i [code=php] if($_POST) { $q=$_POST['searchword']; $q = explode(' ', $q); $first = $q[0]; $last = $q[1]; $sql_res=mysqli_query($mysqli, "select * from dogs where firstname like '%$first%' and lastname like '%$last%' order by id LIMIT 5"); while($row=mysqli_fetch_array($sql_res)) …

Member Avatar for luke noob
0
163
Member Avatar for baby_c

please anyone help me to catch this.i tried to return an array from function and access it within main function.i just got a warning [CODE]"function returns address of local variable "[/CODE] and when i execute the program it gives garbage values as array elements..cam you help me pls... [CODE]#include<stdio.h> int …

Member Avatar for baby_c
0
148
Member Avatar for atticusMom

I'm not including code yet as to the fact I've restarted several times. I think if I can determine how to start I can make some headway. Here are my beginning instructions. High-level specifications Your project manager has assigned you the task of developing a subsystem that tracks the populations …

Member Avatar for quuba
0
340
Member Avatar for Katana24

Hi - I'm making a program to calculate PI to n number of decimal places, the calculations are all going fine and now I want to combine values from two arrays into one 2D array for quick reference. I'm a-little confused on how to do this. It should go like …

Member Avatar for Katana24
0
2K
Member Avatar for Alex86fire

Hey guys, I have a problem, I have to take a text and depending if a boolean - split_words is true or false I have to parse the text on some lines splitting the words or leaving them whole. for example, text is: This is the text I have to …

Member Avatar for Alex86fire
0
165
Member Avatar for novice2

I have two tables table 1 idn ......1..........2 name....john......mary table2 id......1...........2.........3...........4 colors..white......red.......blue.......green idn......1..........2.........1...........1 I have my query SELECT * FROM table1,table2 WHERE table1.idn=table2.idn and I want to get results like this: name...........colors --------|------------- john....|...white ........|...blue ........|...green mary....|...red So if anyone can help me with php code to achive this result?

Member Avatar for novice2
0
118
Member Avatar for Luckychap

Hi all, I want help from all you wonderful guys. I want to know how can we free memory occupied by an Array. That means all the elements associated with this array should be deleted. let say: [code='javascript'] var bigArray = ["313123", "123123", "sadasd",.........................]; [/code] So which will be the …

Member Avatar for Airshow
-1
368
Member Avatar for vbx_wx

I`m getting the following error in my code(line 65): [code] error: expected constructor, destructor, or type conversion before ‘*’ token [/code] [code] namespace SocketSpace { class Error { public: Error(const std::string& msg = 0) throw(); const char* what() throw(); ~Error() throw(); private: std::string message_m; }; class Socket { public: void …

Member Avatar for vbx_wx
0
144
Member Avatar for duttydea

I have just written this code o update my MYSQL Server with data from an Arduino Micro controller using Ethernet. Basically I want to pass the variables collected by the Arduino to the Server. Whenever I try to use this script the Values [I]$_POST['Name'][/I] [I]& $_POST['Value'][/I] do not get passed …

Member Avatar for somedude3488
0
149
Member Avatar for gpjacks

So, I am in the mid part of my C++ class and am having trouble with a vector project at the end of the chapter. I don't expect the answer, but if someone would point me in the right direction I would greatly appreciate it :) #1). Write a loop …

Member Avatar for gpjacks
0
266
Member Avatar for jlivvers

Hi, I have a windows form that adds new entries to a dataset via a datagrid using the updateAll method. Im passing in an id from another form and id like to specify this in the sata thats being written to the dataset. So by default the id would already …

Member Avatar for Mitja Bonca
0
173
Member Avatar for vanalex

Hello everybody! I want to ask something that crossed my mind today about strcpy..I wrote the following piece of code and although i didn't expect it to work..it worked! [CODE] #include <iostream> using namespace std; int main() { char name[20], *dname; cout << "what's your name?: "; cin.getline(name, 20); strcpy(dname, …

Member Avatar for WaltP
0
67
Member Avatar for Wattsits

so. i downloaded a dll of the net and im trying parse data through it. this bit of code i pretty much ported from VB so i expect a reason its not working for me is the syntax is incorrect. iv tried to make it as c# as i know …

Member Avatar for Wattsits
0
122
Member Avatar for darkbreaker

I wrote a function in C that receives a pointer to a character array as argument and switch all accented letters with their corresponding character, the code is as follows: [CODE]void removeacc(char *texto){ char a[]="\x83\x84\x85\x86\xa0\xc6",A[]="\x8e\x8f\xb5\xb6\xb7\xc7"; char e[]="\x88\x89\x8a\x82",E[]="\x90\xd2\xd3\xd4"; char i[]="\x8b\x8c\x8d\xa1",I[]="\xd6\xd7\xd8\xde"; char o[]="\x93\x94\x95\xa2\xe4",O[]="\x99\xe0\xe2\xe3\xe5"; char u[]="\x81\x96\x97\xa3",U[]="\x9a\xe9\xea\xeb"; char n[]="\xa4",N[]="\xa5"; char c[]="\x87",C[]="\x80"; char y[]="\x98\xec",Y[]="\xed"; int …

Member Avatar for darkbreaker
0
138
Member Avatar for serkan sendur

for(var i = document.getElementById("tableId").rows.length; i > 0;i--) { document.getElementById("tableId").deleteRow(i -1); } I had to write this because it took me an hour to find out the error about deleting rows from an html table by javascript. If you do this it generates an error : for(var i = 0; i …

Member Avatar for bertyhell
0
52K
Member Avatar for hiddepolen

Hi Daniweb! I couldnt find my problem anywhere else on this forum, so I decided to make my own thread... My problem: I'm trying to make a function to decide how many decimals a 'double' has. My code (slightly edited, here's the base of it): [CODE] // int m = …

Member Avatar for MattyRobot
0
185
Member Avatar for mehargags

Hi all, Im learning PHP recently so a bit of a noob here... I'm making a purely php form(without using JS for the moment) which has 2 date selection SELECT boxes displaying month/day Pls note that I need to be able to return the previously selected Value of these Select …

Member Avatar for mehargags
0
95
Member Avatar for blacknred

Hi I just started with python, and trying to implement some system admin tasks and running into some rough. Basically I need to do some task on whichever share exists on their corresponding server. eg Server A has shares 1,2 and 3 Server B has share 1 and so on. …

Member Avatar for blacknred
0
90
Member Avatar for claudiordgz

Hi guys, I am trying to load a Haptik.hpp to control a Novint Falcon. I receive error C2144 syntax error and C4430 in the next line [CODE] //---FUNCTION // Desc: C-based entrypoint to retrieve IHaptikLibrary interfaces //-------------------------------------------------------------------------------------------------------------> extern "C" HAPTIK_DLL_IMPORT_EXPORT PVOID GetHaptikLibraryInterface(IN UINT32 interfaceId = HAPTIK_IHAPTIKLIBRARY); [/CODE] So I pasted …

Member Avatar for Ancient Dragon
0
553
Member Avatar for Thropian

ok well I'm working on making a dungeon explorer and I can't get images to work...so far I have this[CODE] from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() canvas = Canvas(frame, width = 225, height = 225) canvas.pack() gif1 = PhotoImage(file = 'Fhall.gif') canvas.create_image(0, 0, …

Member Avatar for Thropian
0
145
Member Avatar for tcon

can anyone find out what d hell is wrong with the last line of this code (c#.net): [CODE] cws = new CustomerCardService.CustomerCardWebReference_Service(); cws.UseDefaultCredentials = true; cwr = new CustomerCardService.CustomerCardWebReference(); List<CustomerCardService.CustomerCardWebReference_Filter> filterArray = new List<CustomerCardService.CustomerCardWebReference_Filter>(); CustomerCardService.CustomerCardWebReference_Filter nameFilter = new CustomerCardService.CustomerCardWebReference_Filter(); filterArray.Add(nameFilter); Customer[] custList = cws.ReadMultiple(filterArray.ToArray(), null, 100); [/CODE] here is the …

Member Avatar for tcon
0
653
Member Avatar for kezkez

Currently trying to understand why this intersection method doesn't work properly, I think the problem is the if statement line but not sure if the problem solely lies there. I've included the necessary files to make my question clearer. The setIntersection method is part of the ArraySet class. The main …

Member Avatar for kezkez
0
182
Member Avatar for Violet_82

Hi there, if I call a double function like [CODE]double MyPrice( ) { return cost; }[/CODE] (value "cost" assumed to be set to 7.00 why this function returns 7 and not 7.00? thank you

Member Avatar for Violet_82
0
185
Member Avatar for nonshatter

Hi all, How can I execute an external program (wget) on a linux box? I assume I should be using exec() or something similar. The command I'm trying to execute is: [CODE]wget -p 'x.x.x.x/inventory.ssi?mag_0=1&mag_1=1'[/CODE] Which returns the html page of inventory. I am then parsing the file using DOMDocument to …

Member Avatar for nonshatter
0
134
Member Avatar for silkyheart

what's wrong with this? >.< [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <style type="text/css"> body { margin-left: 25%; margin-right: 25%; } h1 { font-family: jokerman; text-align: center; } td { border-style: outset; border-width: 5px; border-color: gray; font-family: courier new; } </style> </head> <body> <h1>Multiplication Table</h1> <br …

Member Avatar for @developer
0
180
Member Avatar for plasticfood

[CODE]else if(choice == 3){ System.out.println("what is your name? "); String name = kb.nextLine(); boolean x = Member.checkMember(name); System.out.println(x); } [/CODE] when i run this, it prints "what is your name?" and instead of waiting for me type in something, it just skips that part and go ahead and prints x. …

Member Avatar for javaAddict
0
115
Member Avatar for n_kip

Hi, I need some help with this MySQL Update I've got three tables as below. tbl1 id eid quantity 1 3 2 2 4 3 tbl2 tid eid qnty status type 1 3 1 1 1 2 3 0 1 0 3 4 1 1 1 4 4 0 1 …

Member Avatar for smantscheff
0
243
Member Avatar for neosonic

Hi All, I am using a msflexgrid to display my access database (not editing it in run time). But, I have one column which is a boolean. When I display it, that boolean column doesn't show as "True/ False" or "Yes/ No". It is shown as " -1 / 0 …

Member Avatar for AndreRet
0
100
Member Avatar for BasicGamer

Hello. I'm relatively new to Visual Basic 6, but I've been getting around pretty good. But there's one thing I need help with. You know how when your texting someone on your phone and you have to press the same button multiple times to get the letter(s) you want? Well …

Member Avatar for AndreRet
0
256
Member Avatar for jemz

hello can you help me please, how can i remove lots of spaces in a string for example: The space space space space quick space space space brown fox. the output should like this. Thequickbrownfox can you help on this...thank you in advance and I'm hoping for your positive response...

Member Avatar for AndreRet
0
130
Member Avatar for steve_Student

Hi I am creating an program for my degree, it’s a program that logs call times, days, gives total cost and discounts depending on days of the week, at the end of the program it out puts all results then give an option to start over again or exit. So …

Member Avatar for steve_Student
0
169
Member Avatar for sha11e

The error i get is: 'user:input' undeclared[first use this function] [CODE]#include <iostream> #include <cmath> using namespace std; int main() { // declaring variables \\ string user_input; // end of declaring variables \\ cout <<"Hello and welcome to Mr. Nightwish's lab of crazy!" <<endl <<endl <<"Please choose one of the following …

Member Avatar for mitrmkar
0
89
Member Avatar for Cranial Fool

Hi, I am working on a script that populates a table with a user's news entries. First I get the username from the URL, then go to the database and get the user_id. From the user_id, I query the news table for the user's news entries. [CODE] $idgrabber = "select …

Member Avatar for Dragonbaki
0
140
Member Avatar for emilio

i am trying to draw a line between two points like this: [CODE=syntax]private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics MyGraphics = e.Graphics; Pen NewPen = new Pen(Color.Red,5); MyGraphics.DrawLine(NewPen,StartDraw,EndDraw); }[/CODE] it gives me an error: Object reference not set to an instance of an object. what have i done wrong …

Member Avatar for mahmudh
0
274
Member Avatar for rolyestemonio

Hi Guys, I have php mysql code which display data by date. if date is similar to the another it will display as one. When i implement an accordion it does not work. But if i will get the accordion it really works. And I am kinda stack of it. …

Member Avatar for diafol
0
110
Member Avatar for BladeCoder

i need some help see i have to write code for an array of 20 strings and i have to modify the binary search function im using to accomodate for strings instead of ints i know i still have to sort it so that binary search will work but my …

Member Avatar for ritasea
0
1K
Member Avatar for eikal

Hi i found this site and this guy tries to teach you how to make a chat program. Well i just copied his code in and... th program worked. I can send a message to the server and it sends it back just fine. But i can only send a …

Member Avatar for GeekByChoiCe
-1
60
Member Avatar for Annettest

I am trying to compile a program using make on Mac OS X with gcc4.2. But I'm getting this error: fpu_control.h: No such file or directory I have never had a problem with an include file before and I'm rather confused! I have googled fpu_control.h, but I can't find anywhere …

Member Avatar for SgtMe
0
1K
Member Avatar for TheFrisco

(defun pCount (number) (let (ans 0) (do ((iterator 1 (+ iterator 2))) ((equal iterator number)) (if (equal (0) (rem iterator 3))) (+ ans iterator) (if (equal (0) (rem iterator 5))) (+ ans iterator) (+ ans 0)))) The object is to find the sum of all numbers divisible by 3 or …

Member Avatar for jon.kiparsky
0
722
Member Avatar for TheDocterd

Could anyone please show me how to display data in a datagrid when I log in as a user into my application?? The after a successful login a form opens. That form displays data and then there's an option where the user can open a form called "Time Management". In …

Member Avatar for TheDocterd
0
113
Member Avatar for TheDocterd

Hi All I have just one question.. I have an application, at the login screen I have a check box where the user can select if he/she is the default user on the computer he/she is using. What I would like to do is create a text file with the …

Member Avatar for TheDocterd
0
88
Member Avatar for cheapterp

Hello: I have a table where a column called [I]ActiveStatus[/I] (of datatype 'bit') I am trying to run a query on may contain values Boolean values or NULL. Which means, if there are 10 rows in the table, a likely scenario would have 5 NULLs, 2 FALSEs, and 3 TRUEs. …

Member Avatar for Momerath
0
181
Member Avatar for Siboneloz

Hi All, im having a problem with searching a database in dreamweaver and was wondering if anyone here has tried it? its a mysql database. here is the situation. i have DB called real_db with a table in i call listings. i want to be able to search the db …

Member Avatar for Siboneloz
0
629
Member Avatar for JuanKawada

I've been driving myself crazy with something I originally thought would be incredibly simple. Here's a really simple example of what I'm trying to accomplish: I have a picture sized 800x530, all I need to do is center this picture in a new image that is 800x800 with a black …

Member Avatar for JuanKawada
0
137

The End.