64,152 Solved Topics
Remove Filter ![]() | |
Hello, I am trying to make a web site. i have started to play about with the style sheet that is auto generated the make it how i like, My question is how can i put a background image in the .LoginDisplay class? I have tried editing it as follows … | |
Can some one provide me an example to call dll from java? I learning some thing about JNI , also linkage with c++ but doesnt found any cool stuff on c# and java... I want a free solution. Thanx in advance. | |
Hi, The below is my situation, **Input String :** abc 123$ abc 123$ abc123$abcabcabc 123$ From the above string i want to store the starting index of "123$" code and the "123$" string. When i debugged and found, for first iteration(codecount=0) i'm able to store both index and string but … | |
How can I cast a class to another type? Example: class Point { Point(int X, int Y); }; Point A(10, 10); POINT P = (POINT)A; A = (Point)P; //I've tried: Point::Point(POINT P) : X(P.x), Y(P.y), Color(0) {} //Constructor. Point& Point::operator ()(POINT P) { if (X != P.x && Y != … | |
Hello, I would like to retrieve the data from one of my database table. I have read many stuff about it and found out that I need to create a table model which is quite confusing to me. Basically my table consists of customer information. What is the best way … | |
So I am trying to do a neat little script in a wordpress plugin that replaces matching keywords with links to other articles on the site. I think I'm done all except one little thing down here below. I need to fix the preg replace function. It should match anything … | |
I am a newbie, in crafty as well as js, so pardon me if I might have made very silly errors in the following program. What is wrong with the following code? The following code is supposed to create 5*5 matrix where each block would be a 60 pixel high … | |
Hi , I edited my webpage and this occured **Parse error: syntax error, unexpected $end in /home/techgeek/public_html/FrF/test.php on line 59** I have checked all the tags and they are closed and here is the code. <?php include("include/session.php"); global $database; $config = $database->getConfigs(); ?> <html> <head> <title><?php echo $config['SITE_NAME']; ?> - … ![]() | |
Hello, I have two tables one for the customer_records and one for the jobs. Both tables are linked together(both contains customerID and foreign key is set) I am trying to insert data into the job table by obtaining the customer ID that is given in the textbox. I have: INSERT … | |
Well I like to learn as much code as I can in a day and I just came across the copy constructor. I do not understand when I need to use it. Do I need to use it for every class I make? I came across it after getting the … | |
Hi everyone I am writing a program to sort an array, but I have a problem removing the duplicates ... so can someone please point me to the right direction or show me a sample program based on my code. for example, the user gives in a row the following … | |
I have an issue when I add "" around text in the statement below. With out it works fine but when I add it the whole page is blank. Can someone please help me out on this one. I need to have the quotes in the verbiage. **This works:** $lang["t_tech_v26_content"]="We … | |
hi i am working on a mobile verification code wher user can enter his email and his mobile number.then code has to be send to his mobile number,by that code user can login to site. how to achive this target. thanx in advance....... | |
I am writting a driver for a GPS unit in linux. I can set on the GPS unit what data it should send out it's ethernet port. The data is arranged in structs of different sizes depending on what it is. For example one packet could be for the GPS … | |
Hey, Iv been working a lot with binary files recently and i am currently stuck trying to save a string to a file. The problem is i do not want the literal string value of "010100000000000100010011000000000001000100110" to be saved to the file I want the above binary string to be … | |
Hi, I have a file called reports.php which has several php and database functions. Upon viewing it in a browser it displays a nicely formatted report. Is there a way I can save the HTML(only) output from this reports.php into a **new file** (probably html) in a web server ? … | |
main() is a static method and is part of class. Then how is it that main can access instance members? | |
Hi, I don't know much about php, since I didn't need it. Now though I need to make one small change in .php file - change some text that gets displayed. This text is in UTF-8 Format with letters like ā š ķ , etc I've changed text inside of … | |
Please help me: Following is my program: [CODE]main() { char str[] = "This is //20"; char c[10], *k; int num=0; sscanf(str, "%s%[^//]*//%d",c, &num); printf("%s \n %d \n", c, num); }[/CODE] My intention is to get the first string and last number. I want to ignore the remaining text. There is … | |
Hi, I've written my own pagination but one last bit left and need help. I have the array wbelow: Array ( [First] => First [<] => < [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 [7] => 7 [8] => … | |
i have the folowing code that gives me the first letter of each word. $string = $rowec['doopnamen']; $punt ="."; $words = explode(" ", $string); $doopnamen = " "; foreach ($words as $value) { $doopnamen .= substr($value, 0, 1); } But how can i get a dot after each letter ? … | |
#include<stdio.h> #include<conio.h> struct adj_node { char nam; struct adj_node *adj_next; }; struct node { char name; struct adj_node *down; struct node *next; }; struct node * gins(struct node *); struct node * lins(struct node *); main() { int n,i,j; char c,r; struct node *g,*t; g=malloc(sizeof(struct node)); g->next=NULL; g=gins(g); g=lins(g); getch(); … | |
so i have a page where where is a link <a href=\"editimage.php?img=".$image_id."\">asdf</a> an another page i have to get the image_id that i am passing $image_id_g = isset($_GET['img']) ? $_GET['img'] : 0; echo"$image_id_g"; but the problem is that it prints 0 here. but i wan tto print image_id | |
I want to re-use a vector<short> over and over in a performance critical loop. I only need the vector **size** to be reset to zero at the end of the loop. I'm worried that the myVector.clear() takes time to actually clear all the memory. Also, does the myVector.reserve() survive the … | |
I want to create an email class with many functions and use this methods I want some advice how to make this flexible and reliable as much as I can but another important feature is security to verify all the external input I am going to past all my code … | |
Hey Guys, I m new here. I need a help I am working with a s/w where I need to fetch data from database onchange event. actually scene is the user will select one option (ie. name of company) from the dropdown box. According to that value the s/w should … | |
During the process of creating my latest game, I've come across the problem of collisions. In the last few games I've made, I've used a system of collision detection that relyed on two rectangle's methods. This seems to work, but doesn't provide a method for dissallowing an entity entry into … | |
Hi, I need help in designing a function that would model the arrival of the messages in the queue following poisson distribution. I shall be grateful for this kind help. | |
I have tried to figure this out on my own forever now. I have been getting hint from the net but can't figure it out. So I figured I would admit defeat and see what you guys could show me. I need the three numbers entered into this program to … | |
Hello: I'm trying to get a record from mysql based on the query of another the queries separately: set @row_num = 0; SELECT @row_num := @row_num + 1 as row_number,queue_num,clientID,customerid, todays_date, request, details,status FROM queue_sys ORDER BY todays_date; outputs row_number queue_num clientID customerid todays_date request details status 1 14 44DWS … | |
Yesterday I took a dive into smart pointers and wasn't sure when I should use them vs. Raw pointers. I found out they are quite useful but they do not work all the time for me. Example of working: char* Buffer = new char[1024]; fread(buffer, 1, sizeof(buffer), infile); //took out … | |
i have a link on zoom.php here i have a link where iam send image_id <a href=\"editimage.php?img=$image_id\">Edit</a> now i have a editimage.php where i reciving the image_id. $image_id_g = isset($_GET['img']) ? $_GET['img'] : 0; but i printing always 0's but i want to print the image id here i also … | |
Background, I want to install allegro on the iMac 10.6.8 after my macbook crapped out. It didn't compilers installed whatsoever, so I had to find Xcode at a seedy 3rd party site because apple no longer supports Xcode for 10.6. It came as a binary, simple install didn't give me … | |
Can some one help my butt out that why I only get one check box out of the 4 to show up in my email to myself when a user hits submit? When ever I check box any email I only get the bottom check box to show up in … | |
Okay so I am having a problem with my program, because everytime I run my program and login a registered username and password, these username and password are accepted by the program but once you try to save your schedule, and logout, the next time you login that username and … | |
Hi, How do I programatically find the GUID for the Sharepoint List **View** given that the name of the view is known. A user has to input the view name and the program should be able to spit out its GUID. Thanks. | |
How can i add some space between these four components and the JFrame window?  | |
Hi! I have a Moniker from ROT and I have an "empty" _ApplicationPtr variable. How Can I have in _ApplicationPtr var a process by Moniker. | |
Hello! I have a problem with my C# Client/Server network program. This problem only occurs when connecting via an IP over the internet, whereas everything works fine using a local address (127.0.0.1). What happens is while transferring a file (10kb or more maybe) using the below code, my receiving program … | |
hi, i have problems with static member function the compiler's problems = "undefined reference" **Design a class Numbers that can be used to translate whole dollar amounts in the range 0 through 9999 into an English description of the number. For example, the number 713 would be translated into the … | |
Hi all, this is what I've built: A dynamically built form which selects the questions depending on the section of the form it's in. The problem: Each form input is called `answer[]` passing the selected value to an update query $updateSQL = sprintf("UPDATE tblsite SET sitetypeid=%s, pctid=%s, contactname=%s, address=%s, postcode=%s, … | |
Good Afternoon, I'm having trouble with loops that deal with enumeration. So far I have this code #include <iostream> #include <fstream> #include <string> #include <cstring> #include <cmath> #include <cstdlib> #include <iomanip> using namespace std; int main( ) { //enumerate type definition enum weekDays {Monday, Tuesday, Wednesday, Thursday, Friday, Saturday,Sunday}; //variable … | |
Hi all I have recently watched a tutorial series from PHPACADEMY called the advert rotation script series. I have found a small problem, the problem is that if any of the adverts have expired then the rest will not show. does anyone have any solutions for this issue, that if … | |
Why does this say shaddowing? If I change my member X and Y to `_X, _Y` then when I access my class via the dot operator, it shows FOUR values.. Current Class: class Point { public: int X, Y; Point(int X, int Y); ~Point(); }; Point::Point(int X, int Y) : … | |
hello friends, i want to learn cryptography,steganography ane algorithms , i have tried some books but failed. is there any way to learn from beginning and easily? thanks. | |
I would like to invoke a click on a link from a link that is generated by an HTML query. I am attempting to program an application that queries a website and am getting hung up where I download the .csv that is loaded by the website. Here is the … | |
![]() | So the program makes an inventory from a cvs file. The cvs file consists of dvds and books. here is the code: #include "StdAfx.h" #define _CRTDBG_MAP_ALLOC //for memory checking #include <iostream> #include <stdlib.h> #include <crtdbg.h> #include <iomanip> #include <fstream> #include <string.h> #pragma warning(disable: 4996 4018) using namespace std; #define COPYSTR(TARGET, … ![]() |
i get erros here: Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\a_upload\zoom.php on line 48 <?php $visitors = 0; $handle = opendir(session_save_path()); while(($file = readdir($handle)) != FALSE) { if($file != "."&&$file !="..") { if(ereg("^sess",$file)) $visitors++; } } echo "there are $visitors online"; ?> here is my full code if you need … | |
Hello frnds. I want to knw tht how can we send an array by value in c. | |
A couple of months ago I had wanted to keep a form active as long as it was visible, I couldn't find any help with this, a couple of forums led me into the dirt, as everything they suggested failed. I decided against the feature, but not before I found … |
The End.