199,114 Archived Topics
Remove Filter ![]() | |
I'm trying to declare a std::map that is keyed by a char and has a function pointer as a second parameter, these functions would be a member function of my class. But for some odd reason I cannot call the functions when extracted... So, I have a class A as … | |
hello every1. i want the text box of form1 to be accessible in form 2 without declaring it as public. ive declared it as protected. but how do i inherit it in form 2. | |
I figured this topic doesn't really fit here, but daniweb is one of the biggest IT community I know and I found help here several times, too, so maybe someone will help me out :) After years of coding all of a sudden I got a paper on "Authorization in … | |
Hi All, it's me again :) How can I attach MySQL to my ASP.Net application? I want to create user table in MySQL and then use the login controls in my application to give the user access and different roles? Thanks in advance! Donish | |
Hi there! My name is James and this is my first post here. Currently I'm using xampp to test and play around, but now I stuck. I have an payment processor wich needs to access my script but it's not working for localhost (of course not!). Is there a way … | |
i need ur help to write c++ porgram... this is the topic of it """"" Write a C++ program that calculates the perimeter and area of simple geometrical shapes based on the user’s selection. Let the program handle the perimeter and area calculations for circles, and Parallelograms. The program should … ![]() | |
Hi All: I have a large number of elements to be stored into vector or basic string(delimited by \n). I need to search for an element and I would like to know what is faster: A:[CODE]std::string str = "\nElement1\nElement2...element1000\n" str.find("\nElement3\n");[/CODE] B: [CODE]std::vector<string> v; v.push_back("Element1"); v.push_back("Element2"); .... std::find(v.begin(), v.end(), "Element3") != … ![]() | |
HEY guys, I can't figure out why my code doesn't compile, I'm trying to read a text from a file, count the words. any help would be approciate it thanks [code] #include<iostream> #include<fstream> using namespace std; // global constants const int MAX_ROW = 150 ; const int MAX_COL = 80 … ![]() | |
hi! I'm trying to get the following C++ class (contained in a DLL): [code] __declspec(dllexport) class ThreadManager { public: __declspec(dllexport) static UINT32 setThreadPriority(UINT32 tPriority); __declspec(dllexport) static UINT32 setPriorityClass(UINT32 pClass); __declspec(dllexport) static UINT32 setProcessorMask(UINT32 pAffinity); __declspec(dllexport) static UINT32 changeMATLABSeed(UINT32 inputSeed); static BOOL setHandles(HANDLE* thread, HANDLE* process); __declspec(dllexport) static BOOL testFun(UINT32 testInt); … | |
Hey i m reading tutrial about rucursion and got code whish isnt complicated or anything but i dunno why it prints the way it does [code] /* recur.c -- recursion illustration */ #include <stdio.h> void up_and_down(int); int main(void) { up_and_down(1); return 0; } void up_and_down(int n) { printf("Level %d: n … | |
Hello, I need the jsp scripts to retrieve data of my radio button from database to my form which i have developed using jsp and connected to oracle database. Find below sample of my radio button code. Thank you [code=html]<td width="147" valign="middle"><input type="radio" name="biztype" id="biztype3" value="corporate" onclick="checko();"/> Corporate/Limited</td> <td width="182" … | |
i an writing a room class java code that returns the temperature status of the room and return if a lightbulb is on or off. how do i write the method for the temperature? public class SittingRoom { String SRlightBulb; int SRTemperature; public SittingRoom() {String InitialStatus = null;int InitialTemp; SRlightBulb … | |
Hi, This is a code of Dynamic Drop Down Option. If I select Item Code It Shows Item Name and vice versa. I need to fill option from MySQL Database. Can anybody help me out. please . [CODE=html]<html> <head> <title>Gender Drop Down Test</title> <script type="text/javascript"> function selectItem(value, id){document.getElementById(id).value=value;} </script> </head> … | |
this program divides the array into 6 segments of two elements each.but with each iteration the new array is not overwritten and it keeps displaying the first two values of the array 'array' [CODE] class tryy { public static void main(String args[]) { double array[]={12.43,34.34,4.432,9.433,4.787,4.2987,57.93,4.279,8.379,83.472,8.9867,879.56}; for(int i=0;i<array.length;i++) { for(int j=0;j<(int)(array.length/6);j=j+2) … | |
Dear Sir, Please find the attached document for your reference. Could you tell me what is wrong of my answer? [code] program Project1; {$APPTYPE CONSOLE} uses SysUtils; var balance, posNeg, positive, negative: integer; begin randomize; writeln('Get average balance'); balance:=random(10000); posNeg:=random(2); if posNeg=0 then begin balance:=balance*-1-30; end else begin writeln('Positive balance.'); … | |
I was working on an assignment, and I had finished everything and was cleaning up the code by just adding some comments to it and everything, and when I tried to run it again afterwards, it came up with an error that said "Debug Assertion Failed!" It says "Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)" … | |
Hi guys if i use the asp.net to write the code but i didnt involve to connect to the sql database what should i write in the web.config under the connection string?? | |
I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help? | |
[code]<script> ..........//some code// //here s will be incresed in runtime var oC2TD = oTR.insertCell(1); oC2TD.innerHTML = "<input type=text class=text_box2 autocomplete=off name=txtCatgName"+s+" id=select"+s+"/>"; alert(document.getElementById('select'+s+'')) [B]//for above alert iam getting null //but when i replace "select" with text box name like txtCatgName //iam getting object and i replace in below line too, … | |
Hi guys do anyone know how to change the code line from sql express to ms sql 2000. Below is my code help me to check it? web.config [CODE]<?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings … | |
what will be the initial value of the fields created in a new table(dao)? how to change it? | |
Ok - I have never used ASP before. I'm pretty hardcore with (x)HTML, JavaScript, CSS, and I also know C++. Here's the thing - I need to create some sort of code that receives information from the back end of a site and dynamically adds a link on an overview … | |
I have been working on this program for my class and I have everything working fine it seems up until I get my New Balance output. What I get for the output is below. Date Account Type Amount New Balance 06/19 9858-5420-3025-7452 P 5500.00 -2694.35 06/19 1111-1111-1111-1111 C 430.00 -2264.35 … | |
hi all - can anyone help with the following - I am unable to upload any data to my database - I can connect successfully as i have changed the password, database name and got the error's i was expecting. but for some reason, the data just doesn't seem to … | |
Hello, I am currently just getting started in learning my first programming language. I searched the web and decided to start with the book "The C Programming Language". The problem is I am already lost. I have no idea how to set up the Hello World program. I have a … | |
Hello.. How can I read a link list from a file without reading a garbage node? I don't know much about how file works.. This is my code fragment: [code=c] for(p = A; flag != 1;) { *p = (LIST) malloc(sizeof(celltype)); if((fread(*p, sizeof(celltype), 1, fp)) == 0) flag = 1; … | |
i have question why i cannot query or fetch array my database content from variabel id in my database table? everytime i have sql command in my php script : [code=php]$query = mysql_query("SELECT * FROM pengunjung WHERE id='$id'",$koneksi); while($baris=mysql_fetch_array($query))[/code] [B]variable id='$id' always cannot be take out from database.. because variable … | |
Im new on this forum, i don`t really know if this should go hear or somewhere else. If i messed up well sry. Here is the problem im working for the first time in Turbo C, i have this proyect its a simple one but i still need help. The … | |
First off, let me state that I have read the FAQ about this error, and have tried all the fixes, with no success. If anyone can give me a hand with this I'd be grateful. I've got some PHP web pages that connect to a MySQL database. I've got a … | |
heyy guyz!!! is it possible to make a game with d help of .NET means action game if not plz suggest d lang. which u prefer to me to adopt for build a gud action game....Thanks in ADVANCE | |
Dear All, Hope all is doing well, I am developing a portal in ASP.NET 2.0, I am developing a page where I will have multiple search option for to display selected field in gridview. I have setup a dropdown list which is connected with gridview and showing the customized result … | |
Hi, I am trying to compile a detail page. Here is the code below: [CODE]<?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Village Of Hope Worship</title> <style type="text/css"> <!-- .style13 { font-size: 12px; color: #70283C; font-weight: bold; } .style14 … | |
Hello, Great forum! I have implemented a USER LOG-IN scheme in my site. Below is the code to build my session variable data: [CODE] //Create query $qry="SELECT * FROM volunteers WHERE Username='$login' AND Password='$password'"; $result=mysql_query($qry); //Check whether the query was successful or not if($result) { if(mysql_num_rows($result) == 1) { //Login … | |
Ok so I was working on file handling, nothing special just making new (.txt) files and putting some text in it. That works fine the problem is that when I try to read the file from within python nothing comes up and when I try to open the file once … | |
Alright let me lay out what im trying to do im just starting php and i really dont got a great handle on DB's either so any help would be wonderful. Curently i was useing an html form to have people inpout data (name,age, type of stuff) via radio buttons … | |
in my switch program keeps reading wrong input also i know i used way too much fflush(stdin); because stupid printf keeps inputting to the screen so scanf gets bad but i m sure i desinged program nice i dunno why when i like enter num 5 it keeps reading artichokes … | |
Hello developers, I have been playing around with C++ and wxWidgets for a little time now and I think it is time to make a little useful program I am planning to make a CD ripper and Encoder (re-inverting the wheel purposely for learning) and I plan to use CDRip.dll … | |
Alright, my homework assignment is by using separate function definitions convert a temperature from Fahrenheit to Celcius. I've looked over the whole chapter, looked at the examples, and am having trouble somewhere. My program will only convert one temperature correctly to Celcius, which is 32, because it always returns a … | |
I was making a function to save info and it doesn't work. It's actually made up of 2 functions. I've eliminated my problems down to the second function and can't figure out what to do. Here is the function: [code=cplusplus] void DoFileSave(HWND hwnd) { OPENFILENAME ofn; char szFileName[MAX_PATH] = ""; … | |
[code] not clear with the basics of nullpont error; trying to create student database import java.io.*; class student1 { String name; int id; public void getdata(String name1,int id1) { name=name1; id=id1; } public void putdata() { System.out.println("\t"+id+" "+name); } } class student { public static void main(String args[])throws IOException { … | |
Hi guy it is possible two table information with same information expect the badge ID display it on one vb datagrid??? | |
Please find the details of the code in attachment. I am new c++ student. Please let me know the fault. Regards, Shivi | |
Hi, I have an xml document with the following line: [CODE]<title><![CDATA[HOME & DÉCOR]]></title>[/CODE] this xml document fails in IE7 and IE8 reporting invalid charcter at the E acute. However, FF3 is able to display it correctly. Some online sources suggest that IE is correct in identifying the invalid character. Can … | |
Hey All I am trying to create a [B]DLL[/B] to handle some directx for me. But it seems to be acting up. If you take a look at the picture below you will see that the [B]LPDIRECT3DDEVICE9 d3ddev;[/B] pointer is not being created? While at the same time, the [B]D3DPRESENT_PARAMETERS … | |
Hello friends, I am new to C# and try to learn the basics. I am getting error [B][I]"error CS0052: Inconsistent accessibility: field the 'Model.Notifier' is less accessible than field 'Model.notifyViews'"[/I][/B] Could you please let me know the error I am getting... [code] using System; using System.Data; class Model { delegate … | |
hello every 1 is it possible to call a user define php function on the clik event of a button | |
![]() | Hi. How do I differentiate Internet and Intranet Page viewers? I am providing some extra privileges to the Intranet users to publish pages, while the Internet Users can only view them and not publish new pages. What's the class/functions that I should be googling for? |
Hey people, I have a problem with connect to MS Access database... I use C#.NET and MS Access 2002-2003 Here is my code: [CODE] ... using System.Data.OleDb; namespace Потсетник { public partial class Form1 : Form { public OleDbConnection database; public Form1() { InitializeComponent(); string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zapis.mdb"; try … | |
Hi all, I'm C# newbie, and I having problem with double buffering on transparent control - flicking when draw drag rectangle (see attached file). Can anyone help me? Thanks & rgds, | |
Hey y'all. I've just started studying C# over a month ago and I was looking for a bunch of exercises that I could use for practice. See, I bought the book "Pro C# 2008 and the .NET 3.5 Platform" and like most comprehensive books, it didn't have any. Can anyone … |
The End.