199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for subbudaita

Hi! "OBJECT is an instance of a class" then where is the object in the following code please........ [CODE]class A { int a; int b; public: void display() { cout<<"where is the object?"; };[/CODE]

Member Avatar for tomtetlaw
0
129
Member Avatar for ankit.baphna

Error while browsing www.grahasti.com Parse error: syntax error, unexpected T_STRING in /customers/e/8/f/grahasti.com/httpd.www/apps/home/Lib/Model/UserModel.class.php on line 1 Class content: <?php class UserModel extends Model { protected $tableName='user'; var $uid; public function getUserByMap($map = array(), $field = '*', $limit = '', $order = '', $is_find_page = true) { if ($is_find_page) { return $this->where($map)->field($field)->order($order)->findPage($limit); …

Member Avatar for pritaeas
0
396
Member Avatar for eoop.org

Hey! I develop a search engine, most of the engine is finished. The only thing missing now is PageRank. Is there any type of opportunities to write a PageRank in PHP? I have saved the information / data in a MySQL database. The table looks like this: ID Title Keywords …

Member Avatar for instinctis
0
262
Member Avatar for Jigs28

Hello, how to set label location in top middle at run time according to the text length. For example i have one panel control of size 316,162 and one label at top it displays the security que from the database like what is your pet's name? Or who is your …

Member Avatar for Jigs28
0
256
Member Avatar for new_2_java

Hello folks, I am trying to add a JFrame object into JTabbedPane, but I am getting a java.lang.IllegalArgumentException. Here's my code snipt. [code] // other codes... JTabbedPane tabs = new JTabbedPane(); tabs.addTab("Flight Information",flightInfoPane); <-------------- line 28 // other codes... private FlightInfoPane flightInfoPane = new FlightInfoPane(); [/code] Here I have flightInfoPane …

Member Avatar for test.tracker
0
852
Member Avatar for iraj.jelo

Hi my friends , i have written a program that in client section in error occures frequntly , i think the error comes from socket function in client . what i have to do? [code] # This is my server code , this code has not problem import asyncore import …

Member Avatar for Gribouillis
0
3K
Member Avatar for RASHIDDDDD

Hi everyone, hope u all be fine ..i just have a question that how to print Prime no frm 1 to 100on screen in vb 6 without use of msgbox or title box etc ... if any 1 having an answer then PLEASE share the code :)

Member Avatar for WaltP
0
139
Member Avatar for dinhunzvi

is there a way to resize an image after you have uploaded it using php? suppose i want to restrict the width and height of my images to 1000 and 800 respectively what code to i add to the following code snippet? [CODE] $tmp_file = $_FILES['file_upload']['tmp_name']; $target_file = basename( $_FILES['file_upload']['name'] …

Member Avatar for kamili
0
156
Member Avatar for mmnewbee

Hi, I hope someone can help me with the problem I have. I want to design a simple auction site with PHP and would be grateful if someone could explain the logic of how such a site functions and if possible sample code for the bidding process to track all …

Member Avatar for mmnewbee
0
129
Member Avatar for sinatra87

I've search the forums here and found a few other people with the same problem I have, but I'm not sure I understand the solutions that have been presented. I have a simple geometry calculator I'm working on as C++ practice. My program displays a menu and asks for the …

Member Avatar for sinatra87
0
224
Member Avatar for hondros

Essentially, I'm learning how emulators work. I've got the core down, but I wanted to know if I'm actually doing this the right way, or if I should be doing it differently. [CODE]#include <stdio.h> // Opcode + Argument Retriever #define GetOpCodeControl1(x) (x>>14) #define GetOpCodeControl2(x) ((x>>12)&0x3) #define GetOpCode0Arg(x) (x&0x0FFF) #define GetOpCode1Arg(x) …

Member Avatar for hondros
0
151
Member Avatar for ret801

So when you download a file via the internet . like lets say (a new firefox browser) from the internet what actually happens in that process of transfering bytes and information? could anyone post any useful preferrably long detailed explanations?

Member Avatar for ret801
0
111
Member Avatar for sirlink99

I was watching a video on how they made Watson (the robot that was on jeopardy), and another one where a person made a simulation where triangles (animals) learned when to get food, and such, and then taught their offsprings, and then they learned more, and then the intelligence developed. …

Member Avatar for harinath_2007
0
177
Member Avatar for shubham.joy

What is the error in this simple code: [CODE]#include <stdio.h> int main() { char a[100]; int c; int i = 0; int x = 0; while( ( c = getchar() ) != '\n' ) { a[x++] =c; } a[x] = '\0'; while( ( a[i] != '\0' ) || ( a[i] …

Member Avatar for zeroliken
0
115
Member Avatar for vlaskiz

Basically I dont even know if I named the thread properly but lets get on the story. I've got a list of wares (in text file) with its name, date it was brought to store, date it was sold, amount and price. [CODE]Pigema //name date it was brought sold amount …

Member Avatar for Ancient Dragon
0
179
Member Avatar for stereomatching

compiler : visual c++ 2005 os : win7 64bits The more I study about our source codes, the more dense fogs surround my head. According to what I know, memset can't be used to initialize POD This is the snippet of our codes(The problem of encapsulation? there are too many …

Member Avatar for mike_2000_17
0
2K
Member Avatar for geneh23

Hey everyone, Sorry if it seems as if I have posted something similar to this but I don't believe I have had this error before..well not really an error but anyway..so I have a change password form and I process it using php. Well, it goes through the process of …

Member Avatar for geneh23
0
121
Member Avatar for goodi

Hello, Im wanting to write a basic VB application that will allow the user to select a bunch of PDF files then print them in bulk. I have achieved something similar with Microsoft Excel, using the shell command to do this. (ie, VB app allowing users to select a bunch …

Member Avatar for hkdani
0
169
Member Avatar for itsasif

Hi all , I have a console WCF client application . When it compiled creates an EXE file which sends information to the Web service . my question is that how can i use this console application in my web application ? Thanks,

Member Avatar for darkagn
0
98
Member Avatar for cangan

Hi gang, I've created an object array from a managed class. [CODE] array<MyDataType_Class^> ^Object = gcnew array <MyDataType_Class^> (3); Object[1] = gcnew MyDataType_Class; Object[1]->id = 1; Object[1]->surnmame = "Formen"; TextBox1->AppendText(ConvertToString(Object[1]->surname)); // Outputs "Formen" + [/CODE] The object works well and outputs expected results. However what i need is : [U]Calling …

Member Avatar for cangan
0
280
Member Avatar for pilipino93

HI, I've been looking for a long time now, for some simple ways to get the full path of a file in the same directory of my console and the console itself. The main purpose of my small project is to just locate a file and move it into another …

Member Avatar for pilipino93
0
1K
Member Avatar for asif49

Suppose you have a supermarket, and every item which belongs in that supermarket is stored in one place. Then you have sections of the supermarket like "Food & Cuisine", "Entertainment" and so on. The user of your program needs to be able to list every item within the supermarket, then …

Member Avatar for asif49
0
217
Member Avatar for Hawk123

Hi, I have a form where i can enter new product. In that same form i have listbox where i show the current product from the database. I want to know how to update that listbox as i enter new product into the database so that user can see the …

Member Avatar for Hawk123
0
129
Member Avatar for clflyer

I have a program that I wrote that creates a database in SQL Server called States_02 as a sysadmin user. Later on I want to grant SELECT permissions to that database to another user, web I always get an error that it cannot find States_02 or I don't have permissions …

Member Avatar for bluehangook629
0
174
Member Avatar for roverphoenix

A simple program to calculate permutations of a string using recursion, I have used a malloc string of size 100 , you can change it to whatever value you want. The author is currently working at Microsoft,any questions can be directed to [email snipped]

Member Avatar for roverphoenix
0
422
Member Avatar for blackfireburn

hi this is a course work question and i have tried multiple methods to get it to work so if you can show me where i'm going wrong i would greatly appreciate it. i have to read a 4 character input and create each of the numbers into a sort …

Member Avatar for DeanMSands3
0
322
Member Avatar for PF2G

Hi, i'm doing a registration form and i have problems checking if the username exists in the database. [CODE] Imports MySql.Data.MySqlClient Public Class Admin_Reg Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Private Sub Admin_Reg_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con.ConnectionString = server …

Member Avatar for adam_k
0
124
Member Avatar for prathapsv3

Hi all, Someone please tell how to print invoice. I dont have printer, is it possible to print a sample bill in notepad?

Member Avatar for Reverend Jim
0
359
Member Avatar for elpaisa

Hi, this is my first post, so any help or advicing is welcome. I have a form in which i want to show records from a database and create buttons for each record, the problem is that i need to point the buttons in diferent locations inside the form based …

Member Avatar for elpaisa
0
2K
Member Avatar for hamby

Hi i'm making a function that will return make a series of strings and perform a function returning a value for each. I've stored the strings in one vector v, and the integer values in another v2. Then it is supposed to return the string that corresponds to the smallest …

Member Avatar for hamby
0
7K
Member Avatar for rhone0809

i am new to VB.net. just want to check an id number in my textbox if its aldready existed in my database. this is my condition: if textbox1.text = ds.tables("employees").row(0).item("id") then msgbox("ID already exist") end if

Member Avatar for Begginnerdev
0
213
Member Avatar for Zssffssz

When trying to cut down possible memory leaks in my program, I noticed a reoccoring pattern: Move Delete closer to new, repeat, remOve the function that uses it and move code to main, move a few things to global, replace some stuff with arguments and return values, and in the …

Member Avatar for MastAvalons
0
139
Member Avatar for sat21091

hi guys please help me i want to know how i can pass an i ,j argumaents to the function abc so that i can do oprations on i, j in function abc [code]Button[,] b = new Button[8, 8]; void drawchessboard() { int x=60, y=10,z=0; for (int i = 0; …

Member Avatar for skatamatic
0
200
Member Avatar for bluehangook629

I have a connection string for my SQL database connection called my.settings.GCRConnectionString which was created when I created my dataset for the application. I want to change the value of the connection string but it give me an error saying it is ready only. Is there a way to update …

Member Avatar for bluehangook629
0
2K
Member Avatar for lxXTaCoXxl

I don't even know where to begin with this one, but I'm wanting to create a couple graphic controls that at least appear to be in 3D (not stereoscopic but as in not a 2D flat image) and can rotate and move back and forth on an illusional Z axis. …

Member Avatar for ddanbe
0
515
Member Avatar for Karlwakim

hi everybody, i am using code blocks with the mingw compiler to develop my c++ console applications, in the end of each program, i get the message "Process returned 0 (0x0). execution time : ....... press any key to continue" How can i get rid of that. Thanks

Member Avatar for Narue
0
112
Member Avatar for illum11

I want my links to work under My works when JavaScript is disabled. If someone could lead me in the right direction it would greatly be appreciated. Thank You Here is the testing site: [URL="http://illcomputers.comyr.com/portfolio/"]http://illcomputers.comyr.com/portfolio/[/URL] JavaScript and Ajax: [CODE] <script type="text/javascript"> <!-- function show_div1() { document.getElementById('free').style.display = 'none'; document.getElementById('ill').style.display = …

Member Avatar for illum11
0
149
Member Avatar for Labdabeta

I have a difficult function to write and I have no idea where to begin. Here is the definition of what I need to write: "A function f(x,y) which returns true if the binary number formed by concatenating the bits of x, 8*y-1 zeroes and a one is prime, false …

0
111
Member Avatar for JayJ

Hi, I'm open to suggestions on the following project I'm trying to complete. I will post what I have currently done but I think that I'm limited in what I can do with the code as a form can only have 1 action. [B]Problem[/B] - I have a short questionnaire …

Member Avatar for JayJ
0
249
Member Avatar for OmegaCoCo

So a friend and myself are in a computer science course and for our final project we decided to really apply ourselves and add stuff into our assignment that we weren't taught throughout the year. Well we came to a wall when we decided to add an option to delete …

Member Avatar for BitBlt
0
103
Member Avatar for krishnisilva

hi, [CODE] public Record get(VideoObj v) { // TODO if((v ==null) || (v=="")) return null; else return ??; } [/CODE] Recor and VideoObj are classes. if the methos return type is Record, can someone tell me what should I return? thanks

Member Avatar for stultuske
0
232
Member Avatar for sirlink99

I am making a java game, and I have heard that when I use the Math.random() method it has greater chances of generating some numbers. is this true, and if so how can I fix it. If not which method generates numbers unequally? Thanks for your help.

Member Avatar for sirlink99
0
3K
Member Avatar for toferdagofer

I am trying to compare two arrays of objects to verify that they have the same values. It is returning false when it should be returning true. Im not sure what I am doing wrong when comparing the two arrays. Class : arrayObject [CODE]import java.util.*; public class arrayObject { private …

Member Avatar for mcriscolo
0
2K
Member Avatar for krizhan4u

i already have sql database ,server,login,password,,,i have to check from visual studio windows form,,,,to check test connection

Member Avatar for thines01
0
32
Member Avatar for jryans10

Hi, If you create a CLR windows form project in Visual Studio C++, when you distribute your programs does the user need the .NET Framework or just the Visual C++ 2010 Runtime Redist? Thanks.

Member Avatar for stbuchok
0
166
Member Avatar for ginG3R

Hello everyone, I need some help. Does anyone know any plugin I can install on my website to allow people to log into their facebook, twitter accounts and chat publicly? I have a client who needs this to be done and am pressed with time. Am not using wordpress Thanks

Member Avatar for ginG3R
0
183
Member Avatar for Whilliam

I know I've posted this already but I posted it in the wrong forum.. anyway.. I'm making a calculator program but I'm stuck somewhere. I'm still new to J2ME. So guys, please take it easy on me. . I've been trying to find the error for 4 hours now. I …

Member Avatar for stevelg
0
198
Member Avatar for sha11e

I have seen some people talking about it and my question is... I have a program that opens a input and output stream, when the program gets the message '#end' it should terminate the program. Does it really matter if I close the in-and output streams and then close the …

Member Avatar for JamesCherrill
0
134
Member Avatar for CodeJava1

could some one explain the code below [CODE]import java.util.Map; import java.util.HashMap; import java.util.Collection; import java.util.ArrayList; final class InventorySet { /** @invariant <code>_data != null</code> */ private final Map<VideoObj,Record> _data = new HashMap<VideoObj,Record>(); InventorySet() { } /** * Return the number of Records. */ public int size() { // fill in …

Member Avatar for CodeJava1
0
255
Member Avatar for alan_ot

Hello all. got such problem. tested email function with my shared hosting and found out that i can send emails from form only to my domain emails accounts. nor @gmail.com no @yahoo.com do not receive emails from my site (domain). what kind of problem can it be? thank for any …

Member Avatar for alan_ot
0
129

The End.