199,114 Archived Topics
Remove Filter ![]() | |
Dear All, I have just started learning c#. Though i am working in electronic publising (ebook and page composition for several years) i am looking programming to be a very helpful for my professional carrier. I my first assignment i have to develop a c# program to access records from … | |
Hi Guys I need a hand from a kind SQL*Plus guru to create Oracle abstract data types and collections using SQL*Plus I. Using Oracle’s SQLPlus create Abstract Data Type definitions for the Client and Child member entities called Client_Type and Child_Type respectively. Attributes for Client_Type include client number, name, address, … | |
I have this idea that I want to write an operating system. I've started to learn C++, but I have a few questions...One is, obviously, am I using the right programming language? I have looked at a few forums on this site, and it seems to be half of the … | |
Hi Guys, Have a question regarding the exception filter. I have a MiniDump class which looks like this: class MiniDumpHelper { public: MiniDumpHelper() { ... } LONG WINAPI exitWithDump(struct _EXCEPTION_POINTERS* exceptionInfo) { ... return EXCEPTION_CONTINUE_SEARCH; } } then i have a host.cpp class where i have a `main()` I try … | |
Hi, I'm making a matrix class and I'm currently trying to overload some operators. [B] +=[/B] [code=C++]#ifndef MATRIX_H #define MATRIX_H #include <iostream> #include <ostream> #include <string> #include <sstream> class Matrix { Matrix& operator = (const Matrix &m); Matrix& operator += (const Matrix &m); public: Matrix(int x, int y); Matrix(Matrix &m); … | |
Hi, I was working on my assignment and on compiling everything works perfect except at one place the compiler seems to skip the cin command. Here is my code: the skipped command is highlited in red. This particular part is suppose to delete the every occurence of an integer entered … | |
Hi All, I am facing a problem. I need to do a script which to generate the temp.txt file first when select from database, until the data finish store into temp file then -> MV temp.txt to finish.txt. Any idea? or any sample script for me to refer? I am … | |
I'm currently writing a program that requires me to check several char values using a while statement and I keep getting the error "operator || cannot be applied to char, char". My code works fine with a single value but as soon as I add || or && I get … | |
Hi, I have been trying to wrap my head around this problem for a while now and I just can't figure it out. I've included the code that is involved with the runtime error. Basically, I have a pointer that points to another pointer. Action points to an array of … | |
Can somebody explain whats wrong in the following code ? I am trying to pass a matrix and the called function is a double pointer. [code] #include <iostream> void func(int **); int main(int argc,char *argv[]) { int A[2][2]={1,2,3,4}; func(A); } void func(int **A) { } [/code] Best, Pradeep | |
[CODE]#include <iostream> #include <cstdlib> #include <fstream> #include <string> using namespace std; const int MAX_MONTH = 13; const int MAX_STRING_MONTH = 20; const int MAX_ARRAY_TEMP = 13; const int MAX_STRING_TEMP = 4; void instructions (); // Explains program to user bool man_or_file(bool& manual, char& m_or_f); // Determines if user wants to … | |
I just started learning SDL so I can make games in C++, but for some reason my code fails to compile. The code: [CODE=c++] #include "SDL/SDL.h" #include <string> using std::string; int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; SDL_Surface *message = NULL; SDL_Surface *background … | |
This is more of a general question to see if I got the concept. I defined a class with private member data: one is an int variable and the other is a pointer. 1. Where is the int variable stored?... on the heap or on the stack? 2. Where is … | |
When I enter a decimal into a field by the time it gets written to a recordset it has been changed to zero if the value is less than one and it is rounded up if the value is greater than one. Any suggestions? | |
Hello All, I am facing one basic problem please help me out here is my script while [ 1 ] sleep 2 data=16:37 one=15:00 two=17:00 I need to check that is data lies between one and two ( data has to satisfy both one and two ) done how? please … | |
![]() | Hey guys, I'm working on my homework assignment and I did all the code, but I can't figure out how to display the "hours of labor required" and The number of gallons of paint required. Here is the assignment: A painting company has determined that for every 115 square feet … ![]() |
Btw below is the key parts of my code - not all as there are loads of lines: [CODE] //main.cpp #include <iostream> #include "Customer.h" using namespace std; void displayMainMenu(); int enterMainChoice(); void displayAccountMenu(); int enterAccountChoice(); int enterCustomerID(); Customer createCustomer(); void main(void) { unsigned short numberOfCustomers = 0; Customer *Customers[10]; *Customers[numberOfCustomers] … | |
Hi everyone, I have been fiddling around with a speech recognition program for a while now and i always had something that bothered me. Here is my code i have been using. It is the example code from code.activestate.com [code=python] from win32com.client import constants import win32com.client import pythoncom """Sample code … | |
Hi does anyone knows how to sort in link list, i already done some parts of it and its already working except for the sorting part. please help me about this sorting problem... [CODE]#include <stdio.h> #include <stdlib.h> struct nodeTag { int nData; struct nodeTag *pLink; }; typedef struct nodeTag structNodeType; … | |
The ball (asterisk) wont move =/ [CODE]{*** Made by Code4fun ***} Program DamnBall; Uses crt; const ANP = 79; ALP = 24; MIN=1; ALT=3; ANC=4; Time=100; Var PosX,PosY,Dx,Dy:integer; Procedure DP(pX,pY:integer); {this draws the ball (asterisk)} BEGIN Gotoxy (pX,pY); write('*'); Delay (kk); Gotoxy (pX,pY); write(' '); END; Procedure VP(pX,pY,dirx,diry:integer); {this makes … | |
[url]http://blogs.msdn.com/charlie/archive/2008/11/04/new-features-in-c-4-0-paper-plus-feedback-and-samples.aspx[/url] and [url]http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&displaylang=en[/url] (Vmware should import the vpc..) | |
how can i draw a circle divided to many sectors ,each secteor area deppends on specific angle for each sector in the circle , thanx for help , regards | |
I'm killing two birds with one stone and revising my Physics by writing a Pascal program: [CODE=Pascal]program ProjMotion(Input, Output); var speed, angle, InitVel, Grav, Time: real; begin; writeln('Hello. This is a program to calculate the time a ball takes to hit the ground. Air resistance is negligble.'); writeln('Please input the … | |
Hi, I'm new to Perl but I'd like to know more. For this purpose I downloaded the ActivePerl-5.10.0.104-MsWin32 .msi package and installed it on my computer OS XP Home. Xitami, PHP, MySQL were already installed, and PHP can connect to MySQL. Now I run the following code from the command … | |
I am trying to have the user of this script define what html tag they want printed from a document and then print all lines between those tags. e.g. [ICODE] <html> <p>;lasdjf;lsdakjf</p>[/ICODE] if users raw input is <p> I want to print ';lasdjf;lsdakjf' Right now it doesn't print anything but … | |
I have a TicTacToe board and I need to draw a line through the X's or O's when someone wins. I know how to use the paint method, repaint, etc (as far as how they're called & the basics). I'm just not sure how to go about actually drawing the … | |
So I went to my prof. for help with a particular problem and this is the answer I got. I understand the majority of the answer but I have a few more pointed questions. 4. (6 points) A computer has 32-bit instructions and 12-bit addresses. Suppose there are 250 two-address … | |
I have a database here that I'm re-building to make it more up to date for my customer. They need a Quote table, form, report, etc. Their quote numbers are generated as "2008-000" 2008 being for the year, and 000 goes as the automated number, for each individual quote. This … | |
I am writing to a text file. Everything is working fine, except I can not figure out how to start a newline. I have tried fprintf(txtFile, "%s", "\n"); fprintf(txtFile, "%s", '\n'); fprintf(txtFile, "%s\n", " "); where txtFile is my FILE handle. How do I create a newline? Thanks. | |
Hi All I was wondering if somebody could help me as this is driving me crazy. I am trying to send an array from a mysql_fetch_array result to a seporate table. I have the following code: [code=php] include("config.php"); $result7 = mysql_query("SELECT * from order_total"); while($row = mysql_fetch_array($result7)) { $test = … | |
Hi guys .. 1) is there something like that we have a limit upto which we can create a pointer to pointer to pointer.. i.e int ***********P... like this to which extent we can do this 2) is this allowed if in file one i declare a global variable int … | |
Hello there, I have a page. In its left side selection controls and right side one iframe. The user has to select from controls from left side and submit the form. In button click function calling the iframe and loading another .aspx page to display crystal reports The report page … | |
Hi guys! I wrote a class "Complex" which is representing complex numbers. Nevermind, I was trying to make it a library so i could use it easily in other projects but when i compiled i always got this an error. This is the log from the compilation. [QUOTE]Compiler: Default compiler … | |
I program using Win32 API's. I compile with Borland or Microsoft "CL". I am on an XP machine. I use .cpp extensions to compile so C++ rules apply. I'm trying to get the bytes from my screen and send them to a disk file. I get a handle I call … | |
Hello all, I'll start by saying please bear with me, I am very new to python and I need some help takeing a string with mixed letters and numbers and converting it to a INT. For example [code=python] stringname = '105 mV' [/code] I would like '105 'striped from the … | |
I have this program and I have made the changes. Now I am trying to implement the stack within my code and im confused. I need to push the environment_types onto the stack but I dont know how. Here is what I have [code=syntax]int X=0, Y=0, Z=0 ; /* Evironment … | |
Hi Folks, I am making an RMI call to a remost host (Weblogic) and am getting the following nested exceptions [code] weblogic.rjvm.PeerGoneException: ; nested exception is: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is: java.io.InvalidClassException: com.ic.framework.exceptions.ExceptionLevel; local class incompatible: stream classdesc serialVersionUID = 2325229144791754421, local class … | |
I have some codes like these: [code] process(void*p1,long lNum1,long Type1,void p2,long lNum2,long lType2,Param * toher...) { switch(lType1) case TIA_8U: switch(lType2) case TIA_16U: CMatrix<BYTE>* pIn = (CMatrix<BYTE>*) p1; CMatrix<USHORT>* pOut = (CMatrix<USHORT>*)p2; Run<CMatrix<BYTE>, CMatrix<USHORT>,BYTE,USHORT>(pIn,lNum1,pOut,lNum2,otherparams....) break; ... } [/code] Now I have a problem: the number of data types is at least … | |
hi...... Im doing my main project... im creating an IDE for c,c++,java using java lang... i need to link the program written, to the c compiler... any ideas... then whr can i download the source code for net beans IDE | |
Hi friends This is Radhika Here is the Query: $str=strlen("Welcome to Program of PHP"); this is o/p:25 But my query is it should read how many words we like for example:uptill "welcome": output is :7....... remaining part should be printed like dots etc. But use single function only. advance thanks … | |
hi all, how to display last 10 record form a table.please help me. | |
Hi.. is there any way thwat i can convert my csharp tool to java, since now iam using linux and it doesnot support chsarp, i have to submit my final project in december so need urgent help... <snip> | |
Hi there I was wondering if anybody knew how to change the below code (which currently defaults to a MS Access database) to a mysql database. The below code is apart of a Caller ID software [code=vb6] Private Sub OpenDataBase() Set fo = New FileSystemObject Set wrk = CreateWorkspace("", "admin", … | |
is it possible to convert system made from php with a database of mysql to ms sql database..? how? thaks | |
![]() | I have 1 line in this code that I can't get to compile. I'm new to C++ and begging for some help...any advise would be appreciated. [code] #include <iostream> #include <iomanip> using namespace std; double population(double pop, double birthRate, double deathRate); void printPopulations( double startPop, double birthRate, double deathRate, int … ![]() |
Hey, I am wondering how I can grab all the selected strings from a ListBox with multiple selection on... I tried looking for it on google and everything, and I know about SelCount but I haven't been able to find out how to grab the strings or the indexes of … | |
Currently running python 2.6, wxpython 2.8 unicode win32 on the vista platform... When I try to run a sample app in the wx tutorial section the program stops responding as soon as I mouse over it. Heres the code. [CODE=python]import wx """Example with a 2D grid of sizers of sorts … | |
hi i am using db layer foor all my quries.i want to know how to use mysql_num_rows in dblayer thanks in advance | |
Hai i am sathiya please help me to display my database tables in the grid manner through php code. give some example to me.......... i display the databse tables in the normal table manner via PHP code ........ but i am trying to display that tables in the grid manner … | |
Hello all, greetings! I have been playing with DB, seom time ago and want to resume soon where i got stuck. I want to make MySQLdb to get working with wxpython GUI. I got stuck on how to attach the tuple I got from select command to series to the … |
The End.