199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for petzoldt01

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 …

Member Avatar for Puckdropper
0
99
Member Avatar for StatiX

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 …

Member Avatar for agrothe
0
202
Member Avatar for saishn

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 …

Member Avatar for saishn
0
2K
Member Avatar for kibanga

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 …

Member Avatar for Puckdropper
0
242
Member Avatar for Dani

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 …

Member Avatar for Sailor_Jerry
0
150
Member Avatar for accioportkey
Member Avatar for Puckdropper
0
127
Member Avatar for colpace

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,

Member Avatar for michael!
0
128
Member Avatar for jdm102984

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 …

Member Avatar for sosco
0
201
Member Avatar for shahid

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]

Member Avatar for mostafadotnet
0
169
Member Avatar for ishwar

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]

Member Avatar for WolfPack
0
138
Member Avatar for scoobie

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 …

Member Avatar for Salem
0
125
Member Avatar for AndrewSmith

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 …

Member Avatar for Sailor_Jerry
0
103
Member Avatar for Woobag

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

Member Avatar for Woobag
0
100
Member Avatar for ishwar

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]

Member Avatar for WolfPack
0
259
Member Avatar for mmiikkee12

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

Member Avatar for mmiikkee12
0
200
Member Avatar for himanjim

[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.

Member Avatar for Ancient Dragon
0
246
Member Avatar for degamer106

[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?

Member Avatar for himanjim
0
141
Member Avatar for c0d0

elo everyone ;) I wanna learn assembler and I can't find any good sites... what ones would u recommend? Thanks in advance

Member Avatar for SamY
0
221
Member Avatar for SHWOO

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 …

Member Avatar for WaltP
0
242
Member Avatar for mcmemam

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

Member Avatar for robertkatz
0
131
Member Avatar for katharnakh

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 …

Member Avatar for vegaseat
0
2K
Member Avatar for Silkyneville

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 …

Member Avatar for mostafadotnet
0
66
Member Avatar for metabo_man

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 …

Member Avatar for KevinADC
0
240
Member Avatar for nixlie

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 …

Member Avatar for jwenting
0
108
Member Avatar for Eddy Dean

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 …

Member Avatar for Eddy Dean
0
1K
Member Avatar for ishwar

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]

Member Avatar for ishwar
0
144
Member Avatar for nathanpacker

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 …

Member Avatar for nathanpacker
0
146
Member Avatar for hay_man

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 …

Member Avatar for Grunt
0
157
Member Avatar for Deco_20

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 …

Member Avatar for Deco_20
0
186
Member Avatar for pillow

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

Member Avatar for pillow
0
163
Member Avatar for techniner

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.

Member Avatar for singlespreview
0
238
Member Avatar for scoobie

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 …

Member Avatar for Phaelax
0
975
Member Avatar for clarkkent

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 …

Member Avatar for trickykid
0
197
Member Avatar for Gunner54

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

Member Avatar for Gunner54
0
815
Member Avatar for hay_man

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 …

Member Avatar for Ancient Dragon
0
235
Member Avatar for AndrewSmith

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 …

Member Avatar for Sailor_Jerry
0
352
Member Avatar for msvinaykumar

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 …

Member Avatar for trickykid
0
186
Member Avatar for Wrathbone

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 …

Member Avatar for jwenting
0
131
Member Avatar for rosy99

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 …

Member Avatar for rosy99
0
117
Member Avatar for grunge man

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++

Member Avatar for grunge man
0
754
Member Avatar for rosy99

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 …

Member Avatar for rosy99
0
148
Member Avatar for l-o-s-t

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 …

Member Avatar for Grunt
0
125
Member Avatar for gumedesv

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 …

Member Avatar for gumedesv
0
150
Member Avatar for lavin

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

Member Avatar for waynespangler
0
160
Member Avatar for happy8899
Member Avatar for happy8899
0
2K
Member Avatar for aeinstein

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 …

Member Avatar for aeinstein
0
2K
Member Avatar for grunge man

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 …

Member Avatar for Bench
0
290
Member Avatar for himanjim

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???

Member Avatar for Salem
0
166
Member Avatar for indienick

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 …

Member Avatar for indienick
0
179
Member Avatar for krakselikrox

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

Member Avatar for grunge man
0
225

The End.