199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am sort of new to PHP programming. I am very familiar with C++, but i seem to be having some stupid little problems in PHP. The code I am writing is to validate the information from a form and then email the information in the form to an … | |
I'm new to VB so my question is probably very simple. anyway here it is.. I want to make a side bar showing one form that is like a sidebar in a web page such as on the left side of the MDI form. Which holds the programs main functions … | |
I get a segfault when I run the following. Seems to fail at strcpy. [code] #include <cstring> using std::strcpy; int main() { char * word = "word"; strcpy(word, "what"); } [/code] If I change char * word to char word[], it's fine. I thought that both declarations effectively do the … | |
I am learning to set up a cookie and assign a user_Id to whoever visits my website. I want to keep a record of all user IDs in mySQL database. I tried something like this: [PHP]if(!isset($HTTP_COOKIE_VARS['user_id'])) { $cart_id = md5(uniqid(rand())); $COOKIE=setcookie("cart_id", $user_id, time() + 14400); if (!$COOKIE) { echo "To … | |
Is there ANY method to delay the loading of 3rd party javascript advertisements until the rest of the page has finished loading? When my ad server gets sluggish, it delays the output of my site, which is killer. And yes, I already know about using position:absolute to place the JS … | |
| |
i am using c# with a MySQL database, using OleDbConnection and OleDbReader. When running a query using the count(*) function and try reading the returned value using: OleDbReader.getInt32(0), it gives an exception "Index was outside the bounds of the array". thanks, | |
I'm new to VB...Really new. The main thing I am needing to accomplish is this program I am trying to make. It's just a counter. You click the button and it shows the number of clicks in the label. Well, There are 14 counters in the one program. But I … | |
i am trying to Calculate the physical memory address generated by the following segment offset pairs. please you check my solution. thanks Answer: a. 1DDDh:0436h [COLOR="Blue"] [B] 1E206 [/B][/COLOR] b. 1234h:7920h [COLOR="blue"][B]19C60[/B][/COLOR] c. 74F0h:2123h [COLOR="blue"][B]77023[/B][/COLOR] d. 0000h:6727h [COLOR="blue"][B]06727[/B][/COLOR] e. FFFFh:4336h [COLOR="blue"][B]104326=04326[/B][/COLOR] f. 1080h:0100h [COLOR="blue"][B]10900[/B][/COLOR] g. AB01h:FFFFh [COLOR="blue"][B]1AB00[/B][/COLOR] | |
Hi, I am using windows , and I wanto know if there is any api that tells me if a directory exists in windows? Thanks , [I] Ishwar[/I] | |
Hi all, I am very new to C code and was wondering if someone could please help me. i am using a program that gets run through a windows command prompt and outputs the result to the command line screen by default. i was trying to get it to output … | |
hey. I'm trying to get a grasp on XML for use with AJAX. here is my code. what i want to do is grab the stuff between the 'content' tags, and display it. then i want to take the stuff between the 'script' tags, and eval it (so it will … | |
Ive done several echo's and such to make sure info is in my variables before. When i do the first update on the page, i think the second one is running too. Either way, my record is being deleted for whatever reason... Aside from some help with the current setup, … | |
Hi ppl, I am creating a program that will update itself through the internet. I am creating a windows app. Can I use winsock to do this , without the [I][COLOR=lime]"[/COLOR][COLOR=darkgreen]Windows Firewall has blocked this program"[/COLOR][/I] dialogue? [I]Ishwar[/I] | |
I tried writing a string splitter for my little operating system based on [url]http://www.daniweb.com/code/snippet318.html[/url] but it didn't quite work. Here's my code: [CODE] // BTW, this will eventually return a string containing the token_numth token. But I'm just trying to get it to work for now. void strsplit(const char *str, … | |
[CODE]#include<stdio.h> char *str="char*str=%c%c%c;main(){printf(str,34,str,34);}"; void main() { printf(str,34,str,34); }[/CODE] gives the O/P [CODE] char *str="char*str=%c%c%c;main(){printf(str,34,str,34);}"; [/CODE] Can't say how?? No formatting string is used in printf() like %s or so. | |
[CODE]#include <stdio.h> struct FUN { char x; char *y; int z[20]; }; int main(void) { struct FUN fn1; struct FUN fn2; struct FUN fn3[10]; struct FUN fn4[50]; return 0; }[/CODE] is an assignment like fn4[23] = fn3[5] invalid? | |
elo everyone ;) I wanna learn assembler and I can't find any good sites... what ones would u recommend? Thanks in advance | |
I'm trying to create the code for a paycheck program where I am paid double time for anything over 10 hours, time and a half for 8-10 hours and straight time for 0-8 hours. For some reason the pay isn't accumulating correctly. Any help would be appreciated. [CODE]#include <iostream> using … | |
Hi all, I had read all related threads about computer science projects but i donot found what i want, I am interested in C, assembly, c# and Java any related, after all I can learn any new tools, any cs projects ideas .. thnkx | |
I have a dictionary defined say D, I also have initialized it. When I say len(D), some time it gives me correct answer, but some times it throws me error saying [I]UnboundLocalError: local variable 'len' referenced before assignment[/I] can anybody tell me why is this error. Am I wrong some … | |
Now, thing works, should i trash motherboard are can this be salvaged. The computer want even boot up. nothing goes to the monitor "no signal" I put a pentitum 4 processor on a 478 motherboard with max FSB of 533, the processor is 800 FSB. I can't get it to … | |
hello all, Now my question is - can i apply the code on the part of the board. In order to get a "Copy" of the board with category 17 and category 3 .... see here [URL="http://=http://www.nukeforums.com/forums/viewforum.php?f=17"]=http://www.nukeforums.com/forums/viewforum.php?f=17[/URL] [URL="http://=http://www.nukeforums.com/forums/viewforum.php?f=3"]=http://www.nukeforums.com/forums/viewforum.php?f=3[/URL] readers from here i look forward to hear from you [quote] Let's … | |
Hey, I need to implement a database using MS Access. I am currently using a java platform and I dont know how to access the information stored in the database. I have used MySQL database in previous programs but it gave me some problems when loading the application. Can anyone … | |
Hello everyone, I am trying to get an XTEA algorithm to work. I read the key from another process of which I'm sure it has a valid key at a specific location in memory. My encryption algorithm seemed to work, but when I tested it by making a buffer, encrypting … | |
Hi , ppl, I want to get the absolute file path of my c++ app, I tried searching through io.h, but alas , I don't know what the function is.:sad: I am using Dev C++ under Windows. [I]Thanks a lot, [/I] [I]Ishwar[/I] | |
Hey everyone, I need a little snippet of code that I can use to call a google search. I know I can just use html to link to a google search with a predefined search string in the search box, but what I'd like to do is create a little … | |
I am using c++ and need to devise a method to determine the check digit of a credit card. The user enters the card no. as a string. The card no is then divided into blocks of length, x. these blocks are then added. I have the code to convert … | |
Hi Everyone, Im new to this forum and im doing a repeat java exam in a week, i was hoping somebody could help me with a few questions? I would really appreciate any help? I can t find a definitive answer for any of these Q's. [I][COLOR=#0000ff]1."Human Central Processes are … | |
I have installed apache 2.2.3 and PHP 5.1.5 on Win XP (IIS is also set up on different port) I have try the sample code from php.net; however, it keeps giving me error on opening the file please help. [php]<?php $file = "data.xml"; $depth = array(); function startElement($parser, $name, $attrs) … | |
Anyone have any sites that are a HotScripts Equivelant? Currently I have software I would like to list at a few other top Software Distribution points such as this. Let me know and thanks in Advance. | |
Hi, Can someone please help me. I have a really large text file that contains a list of hash values, it has about ten million entries. I wanted to do a binary search on this to check if a particular hash value is present in the file and to return … | |
Hey guys. I have a prewritten script for uploading images to my server. It already checks filesize which i need. But i also need to check the image width and height to make sure it does not go over a certain size. I am not sure how to accomplish this … | |
Ok Im Back I Think these Are the Last Error's Of The Lot This is My Code [CODE] #include <windows.h> void WriteMem(DWORD MemOffset, DWORD DataPtr, DWORD dataLen) { DWORD d, ds; VirtualProtect(address, bytes, PAGE_EXECUTE_READWRITE, &d); memset(address, type, bytes); VirtualProtect(address,bytes,d,&ds); } [/CODE] And These Are My Error's [CODE] error C2065: 'address' … | |
Hi, Hope you can help. The following is essentially a small problem of an overall project, i have been trying to work out how to divide an inputted string, into say blocks of 4 characters and then output these separate blocks on the screen. e.g. 1234567891234567 ----> 1234 5678 9123 … | |
Holla I am using AJAX to load content into a section of my website. I would like the content that is loaded in to execute some javaScript. However, when i simply include it in the response, it doesn't get evaluated. Say i request a page, test.htm. That page includes ONLY … | |
I'm using "sendmail" command in perl to send email If I send email using perl script and if I check /var/mail/root I can see a recent copy of mail that I sent using script Is ther any way so that I dont want copy of mail to appear in /var/mail/root … | |
Okay, the test is on Tuesday. Unfortunately, I am a little behind in my studying. I'm a sophomore in high school with other classes that bog me down with senseless homework and projects. I was just wondering if anyone here had any tips as what I should try and study … | |
Good day, Iam traying to get result of my record as below If next record is biger than previous show "1" If next record is same previous show "1" If next record is smallest show "0" if next record is same previous show "0" Example: id Time Code Price Res … | |
how do u write this if then statment but in c++ if g=3282 then g=k; to bad there wasnt a then like there is an else in c++ | |
Good day, Iam traying to get result of my record as below If next record is biger than previous show "1" If next record is same previous show "1" If next record is smallest show "0" if next record is same previous show "0" Example id Time Code Price Res … | |
Hello ... I've been trying to convert a long string of numbers into a number that can be used in calculations ( int, long, or long long ) ... but nothing worked :-| If I have a string of 1s and 0s, and this string could be up to 128 … | |
Hi guys I need your help witb one of my tutorials here, I have a question which says: Let A and B be two sorted arrays of n elements each.We can easily find the kth smallest element in A in O(1) time by just outputting A[k].Similarly we can easily find … | |
how to bind data to list box. or how to play a song from a location using a listbox havin the itemname and button to play the selected item | |
i wan to know the code for the radix sort using a queue and a radix sort using a linked list | |
Hi All, Is the naming convention typically used for C++ vector arrays, with multi-word identifiers, to use an underscore between the words? I'm finishing up a C++ course offered by the local college - I'm taking one of the "classroom: online" sections - and I'm running into that usage in … | |
ok im getting angry because if i wana keep asking questions then i was told to get a book and read it but thats the problem the reason why i came to this website is besause i foud it verry usefull amd i cant bye a book and eaven if … | |
FILE *ptr; char i; ptr=fopen("file.c","r"); while((i=fgetc(ptr))!=Null) printf("%c",i); leads to infinite loop??? but while(fgets(str,80,ptr)!=NULL) puts(str); on the similiar terms doesn't??? | |
Is there a way in Java to assign values en masse to an array? To give an idea of what I'm trying to achieve, in Perl, you can do: [inlinecode]@listofvalues = (1..$anynumber);[/inlinecode] to add (in this case) all digits between 1 and $anynumber to the array @listofvalues. Is there a … | |
a question about javascript. I have found out how to get a random picture every time you push a button (without refreshing the page). Is it at all possible to do that with soundfiles, (and how)? I have tried i feel like everything but i can't get it to work. … |
The End.