Hi...Everybody.., I am josechukkiri from India, new member at DaniWeb, joined today. I hope that I may get all the necessary support from the members as well as the Admin Team of this great forum.

Member Avatar
Member Avatar
+0 forum 1

Hi again everybody. I know there are some references to this kind of thing around the web but none of them are simple enough for me to understand. In my code below, I am trying to initialize a function pointer with a class member function but I'm not sure I understand how. For simplicity my function pointer "myfunction" is to be initialized with myclass::class_function. How do I do this? Thank you. #include <iostream> #include <cstdlib> using namespace std; class myclass { public: void class_function() { cout << "Class Function Called" << endl; } }; int main() { void(*myfunction)(); myclass cls; …

Member Avatar
Member Avatar
+0 forum 2

Hi, I have admin panel where I have one admin ( super admin ) which has full permission to all section of the website, database queries .. etc. Now I want to create another admin (member) whit less permissions and to have access to few pages. I don't know how to start this. Can someone point me. This is what I currently use for login $query = mysqli_query($con, "SELECT * FROM users WHERE username='".addSlashes($username)."' AND password='".addSlashes($password)."'"); $res = mysqli_num_rows($query); if ($res == 1) { $_SESSION['username'] = $username; $_SESSION['password'] = $password; $_SESSION['userobj'] = mysqli_fetch_assoc($query); header('Location: main.php'); exit; } else { echo …

Member Avatar
Member Avatar
+0 forum 8

i don't know why i have this error in my code: ' ' Created by SharpDevelop. ' User: s11088659 ' Date: 5/26/2014 ' Time: 9:44 AM ' Lab 8 ' ' To change this template use Tools | Options | Coding | Edit Standard Headers. ' Public Partial Class resultex Public Sub New() ' The Me.InitializeComponent call is required for Windows Forms designer support. Me.InitializeComponent() ' ' TODO : Add constructor code after InitializeComponents ' End Sub Private Function area(ByVal textlenght1 As Double,ByVal textwidtd1 As Double)As Double Dim resultext as double textlenght1 = convert.ToDouble(textlenght.text) textwidtd1 = convert.ToDouble(textwidtd.text) resultext = textlenght1 …

Member Avatar
Member Avatar
+0 forum 6

Hello all! My name is Johnny A. Talavera, call me johnny though. :) I came from HackForums.net and am somewhat experienced in programming. :) So far, the only language I master in is C. I do know the basics and some of the advanced of other languages though like C++, Perl, Python, Asm, Java, and lua. I am experienced with many web designing languages as well. :) I think of myself as a nice, epic, cool and chill guy to talk to. I love music, it is my life. I mainly listen to electronic music. Stuff like Electro House/EDM/Trance/Dubstep/DnB and …

Member Avatar
Member Avatar
+0 forum 2

According to Herbert schildt C++ complete reference "A non-static member variable cannot have an initializer." however when i run following code,it runs.. class ABC { public: int a=3; ABC(); }; ABC::ABC() {cout<<a; } int main() { ABC obj; } regards,

Member Avatar
Member Avatar
+0 forum 1

Hey guys, That newsletter *reminder* that's said (it's been awhile i didn't visit) was a good thing. So here i am. I see, it change alot from my last visit. Great work Dani and the gang. So yeah, i didn't code since 2012. My carreer path is been a rollercoaster from business to geek and vice versa. It look like 2014 is going to pull me on the geek side again. Beeing hire by an engineer firm to supervise the technicians on the road. So i'll try to visit more on my free time and help out if i can. …

Member Avatar
Member Avatar
+0 forum 3

Hello All, I am new here and hope to help people with technical issues with there sites. I have immense experience in SEO SEM and also have good hands on experience configuring hosting and WordPress websites. Feel free to approach me with any questions related to digital marketing, seo, sem, WordPress configuration and hosting selection. I will also be needing help on other issues :) I hope to be valuable contributor here. Regards Ahsan

Member Avatar
Member Avatar
+0 forum 4

I keep getting loads of linker errors that probably have something to do with virtual-functions/definitions and/or static class members... I've seen several relevant posts but none of the solutions suggested work, can you see wht the problem is here? My projects consists of 3 files: BALLS.H #include <iostream> using namespace std; class Ball{ //Abstract Class!! protected: //no Balls will be constructed int durability; bool hidden; public: Ball(int dur=0) :durability(dur), hidden(false){} virtual void hit(){} virtual void rest()=0; virtual int get_state() {} }; class Basket : public Ball { public: Basket(int L1) :Ball(L1) { cout<<"New basketball!"<<endl; count++; } void rest(){} int get_state(); …

Member Avatar
Member Avatar
+0 forum 3

hi, can somebody help me? i am using visual basic 6.0 with microsoft access 2003 database i have a form that view the data from the database through the listview my problem is it says Compile Error: Method or data member not found heres my code Private Sub Form_Load() Dim list As ListItem ListView1.ListItem.Clear Set rcdset = New ADODB.Recordset rcdset.Open "select * from Movies ", link, 3, 3 Do While Not rs.EOF = True Set list = ListView1.ListItems.Add(, , rcdset!ID) list.SubItems(1) = rcdset!Title list.SubItems(2) = rcdset!Genre list.SubItems(3) = rcdset!Producer list.SubItems(4) = rcdset!Director list.SubItems(5) = rcdset!Year list.SubItems(6) = rcdset!Rating rcdset.MoveNext Loop …

Member Avatar
Member Avatar
+0 forum 4

I have a warning that I can;t get rid of: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. I am pretty sure it is becasue I have not dimentioned the variable but how do you dimention an IO.memorystream. Here is the code: Photograph1.Image = Photograph1.Image.FromStream(New IO.MemoryStream(arr)) Any help would be greatfull. The programms runs and works, its just got those annoying warnings.

Member Avatar
Member Avatar
+0 forum 5

Got a message that as a new member I should introduce myself so here goes: I found this forum while loking for a solution of an error in an app I support. I work as Oracle applications sys admin. Looks like I may be able to find quite few solutions here, maybe even provide some myself, we shall see. Hi everybody, Alena :)

Member Avatar
Member Avatar
+0 forum 6

Hi, I got help from a member about a problem I had with mySQL.I wanted to thank him so I tried to reply but I get a form requesting username, password email etc and then if I submit it I get a message saying that that name is already taken, of course is my own.I have looked everywhere but I don't seem to find a way to reply to that member, can you help me? Thank you.

Member Avatar
Member Avatar
+0 forum 7

#include <iostream> class Hello { public: void Test() { std::cout << "Testing" << std::endl; } }; class Hi { public: Hi() :hello(new Hello()) {} ~Hi() { delete hello; } void Testing() const { hello->Test(); } private: Hello * hello; }; int main(int argc, char ** argv) { Hi hi; ; hi.Testing(); return 0; } As i know a non-constant member function cant be called inside a constant member function but how the above code has been compiled successfully and giving the expected result .

Member Avatar
Member Avatar
+0 forum 7

Programe #1 inside file.h class File { public: static const int var = 9; }; inside main.cpp #include <iostream> #include "file.h" using namespace std; int main() { File f; cout << f.var; return 0; } Programe #2 inside file.h int Globalvar ; class File { public: static const int var = 9; }; inside main.cpp extern int GlobalVar; #include <iostream> #include "file.h" using namespace std; int main() { cout << GlobalVar; return 0 ; } Program#1 is running fine, but program#2 gives linker error: error LNK2005: "int GlobalVar" (?x@@3HA) already defined in file.obj I know the header files are never …

Member Avatar
Member Avatar
+0 forum 4

matrix multiplication program

Member Avatar
Member Avatar
-1 forum 2

I've been trying to write a class called Point, with a file Point.cpp including a header file Point.h . I tried to set a global variable of type Point called ORIGIN, however I get an error message saying "error: ‘ORIGIN’ does not name a type" Point.h is as follows: [ICODE] // Point.h //#include <iostream> #include <string> #include <cmath> #include <cstdlib> #ifndef POINT_H #define POINT_H using namespace std; class Point{ public: //Point(double a, double b); Point(); void setPoint(Point &p, double a, double b); friend istream& operator>>(istream& cin, Point& p); friend ostream& operator<<(ostream& cout, const Point& p); friend double operator - (const …

Member Avatar
Member Avatar
+0 forum 2

Hi everyone, I'm currently working on a school assignment and came up with this error saying 'list_t has no member named head' but when I actually look at list.h and list.c (my code accessing list is in a separate file), head is in list.c. What did I do wrong? list.c typedef struct node node_t; struct list { node_t *head; }; struct node { void *data; node_t *next; }; list.h typedef struct list list_t; flange.c vector_t start; vector_t end; list_t *params = datacons_params(shape); list_t *tempList = tuple_val((value_t *)list_nth(params, 0)); start.x = tempList->head->data; start.x = tempList->head->next->data; and tuple_val returns `(list_t *val)`

Member Avatar
Member Avatar
+0 forum 3

hello all, please help me, how to make email broadcast in our website? ar u can help me to share it`s php source code? i need reference for my homework... please thanks before

Member Avatar
Member Avatar
+0 forum 2

Finding answers to technical problems has never been an easy task, until now. Thanks to all the members here at the Daniweb community and its shared collective of knowledge either through experience or technical savy, I am continually enlightened and have resolved some minor computer related gliches.

Member Avatar
Member Avatar
+0 forum 3

Lets say I have a class A and I also have classes B and C that inherit from class A class A { virtual void foo()=0; //stuff } class B : class A { void foo(); //more specific stuff } class C : class A { void foo(); //more specific stuff } Now lets say I have a similar set up for classes X, Y, and Z, except I want them contain some form of class A as such. class X { A m_myA; // I know this doesn't work due to the abstract definition, but this is my goal …

Member Avatar
Member Avatar
+0 forum 2

Hello All, I am very glad that I finally have the time to become more active in hosting related forums and web sites. This is a part of running my business I have been looking forward to. I run a medium size hosting services company which (finally) includes our own mini datacenter. We offer everything from shared hosting - Reseller Plans - VPS - Dedicated Server leasing - SSL + all hosting related items. I glad to finally have the time to become a contributor to this forum ( and others) so I can help members with their hosting related …

Member Avatar
Member Avatar
+0 forum 2

Hello, I am having trouble with a program I am writing. The problem is that I need to take information from a text file, read it, and then output the information into another text file. I keep getting this output: > <ProductSummary>0015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A00015D7A0 </ProductSummary> I need it to output something like this: > Planner = " "; CommGrp = " "; SalesGrp = " "; PartNum = " "; AvgPrice = 0.00; NumSold = 0; PartTotal = 0.00; I also need to sort the information, but I think once I get the information written to a text file correctly, I can …

Member Avatar
Member Avatar
+0 forum 15

Will there still be HTML code snippets of our Daniweb member badges where we can copy and include it in our websites?

Member Avatar
Member Avatar
+0 forum 9

Hi all, I've got a class which I would like to hold a stream used for logging. The stream should be able to be set (and possibly reset) after the construction of the object. It should be possible to set the stream as std::cout, or as a file stream to log to a file, or as a stringstream which does nothing more than ignore the data (a /dev/null of sorts). In any case, it should be an ostream type object, which the creator of the object can reset at any time. The class itself is oblivious to the concrete stream …

Member Avatar
Member Avatar
+0 forum 4

[B]Hello everyone, I'm new to PHP and creating an advertising website for massage therapists. On the profile page I'm creating a button so anyone can click on to send the advertiser an email. I created a page called profile_sendemail.php which contains the form to send the email and here is the code:[/B] [CODE]<?php // Start_session, check if user is logged in or not, and connect to the database all in one included file include_once("scripts/checkuserlog.php"); // Include the class files for auto making links out of full URLs and for Time Ago date formatting include_once("wi_class_files/autoMakeLinks.php"); include_once ("wi_class_files/agoTimeFormat.php"); // Create the two …

Member Avatar
Member Avatar
+0 forum 1

Hi! I don't understand why I can't use my functions declared like this: [CODE]#include "groundArray.h" int groundArray::getlistX(int i) { return x; } int groundArray::getlistY(int i) { int groundlistY[] = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100}; return groundlistY[i]; } int groundArray::getlistWidth(int i) { int groundlistWidht[] = {40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40}; return groundlistWidht[i]; } int groundArray::getlistHeight(int i) { int groundlistHeight[] = {40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40}; return groundlistHeight[i]; }[/CODE] With the header file [CODE]#ifndef GROUNDARRAY_H #define GROUNDARRAY_H class groundArray { public: groundArray(); virtual ~groundArray(); …

Member Avatar
Member Avatar
+0 forum 2

I've been on here for a few weeks now and I [B]JUST[/B] found this CI forum, so let me apologize for the late start, "been too busy on Python". I'm a college student, but not in an IT field. Actually I've switched majors so many times it's ridiculous, Elementary Education, Criminal Justice, Social Work, Christian Ministry. I guess I just honestly don't know what I want to sit down and listen to crap about for four years. But I do love programming, I started a long time ago and then got annoyed by while loops and just put off picking …

Member Avatar
Member Avatar
+1 forum 1

Hi everyone! I am trying for the first time to write "proper" object oriented c++ (ANSI) code. Up until now everything was made easy to me using visual studio and working with mfc or .net which both handle a lot of the "dirty" stuff... To the point : I want to build a class that all it's member variables are initialized by parsing an xml file (seperate file for each object). To parse xml files i use libxml2 library [URL="http://xmlsoft.org/"]http://xmlsoft.org/[/URL]. I have already made a function to parse the xml files and store the data to my variables and this …

Member Avatar
Member Avatar
+0 forum 5

Name: Iis Nickname: Daisy Height: 5'11 Weight: 160 Hair: Brown Eyes: green Location: Dixon, IL Age: 19 Gadget:

Member Avatar
Member Avatar
+0 forum 6

The End.