64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Sorb3t3ro

I'm using Borland C++ 5.5, I code my programs using Edit, I compile and run my programs using console. Before, I was using Windows XP and I had no problem using Edit to code, compiling and running my programs using console. Also my programs were in [B]D:\My Documents\Borland\Programs [/B]and it …

Member Avatar for Sorb3t3ro
0
243
Member Avatar for katieJane

Hi I only have a simple query I am relatively new to c++ and I am trying to create 10 randomly placed items in a grid. I've used the following for loop: [code] for(int x=0; x<10; x++) { array[n1][n2] = aliveG; } [/code] and it only displays the item once, …

Member Avatar for Jiwe
0
88
Member Avatar for sudiptamondal

[CODE]#include<stdio.h> #include"graphics.h" #include<stdlib.h> #include<conio.h> void main() { int graphdriver=DETECT,graphmode; int color,n,m; initgraph(&graphdriver,&graphmode); for(n=0;n<10;n++) { putpixel(250+n,350,BLUE); } for(m=0;m<10;m++) { int x=getpixel(250+m,350); printf("%d",x); } getch(); } [/CODE] I have to compile programs using graphics.h but i use Microsoft visual studio 6.0 . There is no graphics.h file in it... so i copied …

Member Avatar for hkdani
0
459
Member Avatar for ndeniche

Hello guys... I'm trying to develop an application with a GUI that sends and receives data via http, by sending a url via POST and eading the content generated by the url. or instance, if i send a nick and order number, the server generates a SessionID via html. My …

Member Avatar for ndeniche
0
210
Member Avatar for drewpark88

Not sure what I am doing wrong. I have an HTML email I want to automatically be sent out on approval of a payment. It is not working so can someone please look over my code and if you have any input that would be great! Thank you! [CODE] if($response->IsApproved()) …

Member Avatar for drewpark88
0
171
Member Avatar for Bufbupa

Hello and thanks in advance for any help. I am currently trying to write a bit of code that simulates a keystroke via stuffing a scan code directly into the keyboard controller chip and have it return that scan code as though someone actually pressed that key. To be honest, …

Member Avatar for Bufbupa
0
157
Member Avatar for VilePlecenta

I have made a simple test application that I use to paint objects while I study and try to give them physics such as gravity, velocity, wind, momentum, etc. I have the app setup like this: [CODE]WM_PAINT PaintFunction(); break; DWORD CalculationsThread() { while( 1 ) { //-_-_Calculations here SendMessage( WindowsHandle, …

Member Avatar for VilePlecenta
1
115
Member Avatar for laehc

I recently unrolled an insertion sort and on 60 items it was twice as slow as the looped version. I'm guessing that's because it was too big for the instruction cache, being 1032 KB. First, does that seem a likely explanation? If so, to avoid that problem, do I just …

Member Avatar for laehc
0
149
Member Avatar for ryukifaiz

I am writing an x86 assembly language program that between base numbers.My problem is how to make it happen like this: [QUOTE]Welcome 1. Binary <-> Octal 2. Binary <-> Decimal 3. Binary <-> Hexadecimal 4. Octal <-> Decimal 5. Octal <-> Hexadecimal 6. Decimal <-> Hexadecimal Please enter the type …

0
101
Member Avatar for urbangeek

hello guys...i'm rookie in C...just starting out...:$ Well...the program i was trying to write was make a series like: 0 10 010 1010 . . . Now i wrote a program. But it's kinda behaving weird. Let me show your the output: [ICODE]enter the no of rows you want: 4 …

Member Avatar for urbangeek
1
557
Member Avatar for scorpio222

I have developed a website, where i have 2 access levels, users and admin. on the server, i have admin folder with all admin stuff and user folder with all user stuff. based on the username,password combination from login page, i am redirecting the user to appropriate location. Everything is …

Member Avatar for scorpio222
0
72
Member Avatar for Stefano Mtangoo

What books or tutorial (online/downloadable) shall i learn to be able to make secure page? I need to know different technique and algorithms

Member Avatar for phyrtech
0
121
Member Avatar for jenjenjenjen

Yes I am new to learning java. I am just learning loops. For my online college class I have to write a program using the for loops. This program needs to give all even numbers between 0-100. I have a program written that gives me all numbers 1-100. Can anyone …

Member Avatar for mytime19
0
128
Member Avatar for pyroclastic

Hi everyone, This is my first post on daniweb! I'm fairly new to C++ and am trying to add sound to my application using FMOD. Now, I have managed to get sound playing correctly using FMOD, but I'm now trying to get all the sounds I want loaded, into a …

Member Avatar for pyroclastic
0
101
Member Avatar for niranjancs

Hi, I have an HTML table with number of rows based on number of rows in a database table. So this table's rows are dynamically rendered. I am trying to make on of these column values a link and make that link submit the form. At that point I want …

Member Avatar for javaAddict
0
75
Member Avatar for beforetheyknew

Hi im still quite a terrible programmer, so some of this is just confirmation of stuff i think is right (and please correct me if i have the wrong idea!) How would you program an anogram maker ? I was thinking of breaking up a String with substring, and then …

Member Avatar for BestJewSinceJC
0
358
Member Avatar for Lolalola

Hi, Starts the program displays two processes, and emits This one error: "Access is denied". Compiling errors do not [CODE="C#"] foreach (Process proc in allProcs) { Console.WriteLine("process: {0}, id: {1} Time: {2}", proc.ProcessName, proc.Id, proc.StartTime ); } [/CODE]

Member Avatar for Lolalola
0
91
Member Avatar for lrolsto1

So, I am working on a project that uses inheritance. I have a class Creature, which extends Thing. Also, I have classes Tiger and Ant that extend creature. I also have a TestCreature class. All of these are in the same directory, and they all compile. However, when I run …

Member Avatar for Ezzaral
0
93
Member Avatar for kayjenx

I have a database I am creating with about 50 users over a network. There are about 6 groups of users and these users are spread across 10 branches. I want to block/allow users from particular forms and views. For example I want branch users forms to be filtered by …

Member Avatar for kayjenx
0
208
Member Avatar for smeghead007

Ok I got the code to work but with some errors. First when i print out the aorted array to the file it is sorted escept for one number in the beginning second it gives me a negative number whihc i believe is a pointer how can i fix this? …

Member Avatar for VernonDozier
0
135
Member Avatar for checho

hi i have the next task to solve. [B] * We are given 5 integer numbers. Write a program that checks if the sum of some subset of them is 0. * Example: 3, -2, 1, 1, 8  1+1-2=0.[/B] do u have any other ideas then writing all the …

Member Avatar for checho
1
741
Member Avatar for genieuk

Hi, I wonder if someone can advise. My website has been working great ever since i first launched it. I made a script months ago to notify me of errors like 404, 500 etc and so on and it works perfectly. Two days ago someone accessed my website and they …

Member Avatar for genieuk
0
127
Member Avatar for ttboy04

Hello, I am trying output number of repetion from user request. So basically there will be repetition print out of the times table when the user enter in the "Enter repetition" dialogbox. For example in the "Enter repetition" dialogbox, i will enter 2, then in "Which timestable do you want" …

Member Avatar for phoenix911
0
103
Member Avatar for Prota

Hi! I am making a project about doublepointers and inheritance. Have some small issues that should not be difficult to resolve, but I just cant get a grip of it. The task is to add two types of vehicles that have some of the same characteristics but not all. I'm …

Member Avatar for Prota
0
258
Member Avatar for Access07-Jon

Hi there (Can DoCmd.openform allow formname from stored string value?) I am needing to vary the FormName part of the .openform based on a result looked up in another table. as I have 10 Different forms that will be specific to a certain kind of record. My code something like …

Member Avatar for Access07-Jon
0
135
Member Avatar for PDB1982

I'm trying to understand how static ints work within classes, and I've fallen on some code that I don't quite understand how the answers come out to be what they are showing. [code] // static members in classes #include <iostream> using namespace std; class CDummy { public: static int n; …

Member Avatar for pecet
0
137
Member Avatar for nathan2oo3

Hi folks, having a bit of bother trying to post my values to another page using radio buttons. I have an exisiting form that I wanted to add the below code to. The form currently posts comments however I want it to post ratings of DVD's on the site. The …

Member Avatar for as.bhanuprakash
0
102
Member Avatar for forhacksf

I want to create a link to a web page into an about box and i want it to open it with the default browser.I googled it and found nothing that helps...pls a little help

Member Avatar for forhacksf
0
114
Member Avatar for Exploded Fiber

I have a string- 3,3,2,2,3,3,3,2,3 - Is it possible to explode it by length, such as: 1-> [3,3,2] 2-> [2,3,3] 3-> [3,2,3]

Member Avatar for Exploded Fiber
0
87
Member Avatar for sniigg

I have a piece of code which is used by several aspx.cs pages and I want to put that code in a separate page so that all these pages access that separate page. I dont think i can use classes for this....

Member Avatar for amitshrivas
0
101
Member Avatar for Bodul

Hi! I have following problem. I need to select multiple random rows in DatagridView with keypress. Ex: Row1 -selected Row2 -not selected Row3 - selected I do have part of code that will update certain field in database on keypress, but i have no idea how to create multiple selection …

Member Avatar for Renukavani
0
1K
Member Avatar for bluebird

Hi! I am tryig to write a simple j2me MIDlet program. Using that program, a user has to fill the required information to make an air reservation. And he also can see the resersation list. I used the Recordstore to write and read again that reservation list. But my program …

Member Avatar for bluebird
0
231
Member Avatar for Simon_Templar

Hi... I am fairly new to VBA programming in EXCEL. So my apologies in advance. I have a USERFORM with several CHECKBOXs and one TEXTBOX. When the user clicks a checkbox the textbox appears next to it for the user to enter dollar amounts. I am trying to use the …

Member Avatar for Simon_Templar
0
118
Member Avatar for restrictment

Heh, well my daily project is near finished, and I was looking around for a way to get rid of punctuation from a character array. I looked through the web a bit, and only found immensely complicated formulas which I did not feel like dealing with. So my question is: …

Member Avatar for restrictment
0
214
Member Avatar for Cman2020

Hello guys help pls i'm trying to populate data from MS Database to list-view [code] string Collect_FULL = "SELECT FirstName, MiddleName, LastName, " + " Gender, DoB, Dependents, Address + ', ' + City + ', ' + State + ', ' + ZipCode AS Address, PhoneNumber, MobileNumber " Status …

0
79
Member Avatar for pateldeep454

I have this code: [CODE] public static int pow (int x, int n) { if (n==0) return 1; int t = pow (x, n/2); if (n%2 == 0) { return t*t; } else { return t*t*x; } } public static void main(String[] args) { System.out.println (pow (5, 2)); } [/CODE] …

Member Avatar for pateldeep454
0
121
Member Avatar for Mici21

I was searching around but I could not find it: I'd like a tool(free or paid) that is able to manage multiple MySql servers from the same GUI. I know about a few thick-client apps that do this, but I need one that you can use it from internet(forget about …

Member Avatar for Mici21
0
116
Member Avatar for Nick6425fl

I'll post the question below but I can't get the smallest and largest to print. I'm not even sure I have the math correct to calculate them because I can't get results to print. A local zoo wants to keep track of how many pounds of food each of its …

Member Avatar for DawnDenise
0
322
Member Avatar for PDB1982

I can get my code to compile and produce correctly (as I want it right now), except for one problem: Output: [code]What Degree Polynomial: 2 Enter Coefficient #: 8 Enter Coefficient #: 5 Polynomial selected is: 8x^(0)5x^(1) What Degree Polynomial: 3 Enter Coefficient #: 4 Enter Coefficient #: 5 Enter …

Member Avatar for jonsca
0
99
Member Avatar for DaveTran

Here's my string [CODE] string str = "a"; [/CODE] Now I use string.Remove() [CODE] str.Remove(0); Console.WriteLine(str); [/CODE] The character 'a' is still there, why is this?

Member Avatar for DaveTran
0
102
Member Avatar for ShortYute

[I]I i've looked for a shell scripted forum but it's based on .nix so it doesn't apply to me [/I]. I'm making a program that will attempt to lessen the effects of a flash drive when placed in an infected pc. Basically it will make a folder named autorun.inf then …

Member Avatar for Adak
0
113
Member Avatar for SMHouston

Ok, so here is my problem. I'm making a telephone registry that lets a user add information such as first/last name, address, zipcode, state, and telephone number. Then they save the contact. Which seems to be where my problem is. The contact is saved and their information is posted. A …

Member Avatar for SMHouston
0
164
Member Avatar for deepak@d

Hi I am a newbie in PHP.I need to dynamically create check box based on the value in the combobox.Is AJAX the only solution?How do i get the value of check box?Thanks in advance.Pls help me out.

Member Avatar for diafol
0
292
Member Avatar for Jooks

hi there do you know if it is possible to select data from a comma separated file? i need only name and message from this and show it in plain html or css number$sex$state$name$surname$zip$street$city$e-mail$ip$message$ there are many lines in the csv

Member Avatar for Jooks
0
108
Member Avatar for tquiva

I'm currently trying to edit this program so that it would read 4 inputs on the first line of data, instead of one. All other lines contains just 1 input. I created a program to assign a letter grade to an integer score. This was my first data file: [CODE]95 …

Member Avatar for Aia
0
154
Member Avatar for sharpcon

In the code snippet: [CODE=C] int Z; boolean ParsedOk; ParsedOk = sscanf( CommandLine, "%i", &Z ) == 1; [/CODE] I find that a successful parse occurs for both valid numbers, but also for numbers that have trailing rubbish, such as '3Q', etc. How can I detect (and reject) such malformed …

Member Avatar for Aia
0
111
Member Avatar for Katana24

I've created a simple GUI that's purpose is to square or cube a given number that the user enters into the textfield. This all works fine but what I now want to do is to fine-tune it by testing the input. For example if the user enters a non-numerical value …

Member Avatar for Katana24
0
84
Member Avatar for pyprog

I am trying to write a program that prints every line of the file until a certain string is found. The file is a plain text file. I put the sample context at the top of the code. But the function gets stuck in an infinite loop. I don't want …

Member Avatar for IsharaComix
0
7K
Member Avatar for timbomo

im trying to practice on: Basic User Defined Functions/ Pass by Value Functions for class and im confused. this code has a problem with it, its not printing everyting i want it to say. can someone help me understand this and what i am doing what wrong and what i …

Member Avatar for Lerner
0
144
Member Avatar for Frederick2

This is one mean function! I've tried everything I can think of. I registered a type library with LoadTypeLibEx() which is a really easy function to use. I mistakingly thought UnregisterTypeLib() would be routine. Its most decidedly not! The error I keep getting with FormatMessage() is... Error accessing the OLE …

Member Avatar for Frederick2
0
514

The End.