64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for exit

hey guyz... im trying to convert this formula into java code, im just having difficulty understanding it... ok it goes like this: Given loan amount (denoted by a), monthly interest rate as a decimal number (denoted by r). and monthly payment (denoted by p), the loan duration (in months) can …

Member Avatar for exit
0
226
Member Avatar for ReeciePoo

Just now i burnt my .vbp on to disc from my computer so i could put it on this one Everything works fine and is correct size but when i put it on this computer.. everything is different sized. like its stretched? i even made the .exe on my computer. …

Member Avatar for jamello
0
121
Member Avatar for m.s

Hi there, I'm a first time poster and first year C programming student. I am a little stuck on the following question: ----------------------------------------------------------------------------- "Conway's life is a special kind of game. It isn't really a game - just a spectator sport. It is played on a chess board, where each …

Member Avatar for m.s
0
199
Member Avatar for Covinus

[code=c++] void CMod7aView::OnPaint() { CClientDC dc(this); if(hBmp!=NULL) { CBitmap bmp; bmp.Attach(hBmp); CDC bmDC; bmDC.CreateCompatibleDC(&dc); CBitmap *pOldbmp = bmDC.SelectObject(&bmp); BITMAP bi; bmp.GetBitmap(&bi); dc.BitBlt(0,0,bi.bmWidth,bi.bmHeight,&bmDC,0,0,SRCCOPY); bmDC.SelectObject(pOldbmp); } [/code] how do you make your image persistant? everytime iload a bitmap after I move the main window the image disappears. pls help me.

Member Avatar for Covinus
0
111
Member Avatar for BioTeq

First of all, hello! I've been reading the forums for quite a while now, but this time I need real help. To summarize things: I'm building a parser which has to consolidate data based on variables contained in an array. The source file contains a set of tab-separated-values, and those …

Member Avatar for KevinADC
0
104
Member Avatar for bcramer

Hi! I hope you could help me with this one. I simplified the code of my program to its basic problem, and the problem is that I do not seem to understand why this program does not release its memory. I check it at the moments of the [inlinecode]getline[/inlinecode]'s, using …

Member Avatar for Salem
0
113
Member Avatar for enggars

Hello. I have a problem when adding the javascript delete confirmation. I use a page for both delete and update function. The delete querystring is just like this : `adm_data.asp?act=del&id=6` And the update goes this way : `adm_data.asp?act=upd&id=6` I use this following code to processing delete: If Request("act")="del" Then Call …

Member Avatar for katarey
0
179
Member Avatar for mike.mclennan

[code] var ie4 = (document.all) ? true : false; var ns4 = (document.layers) ? true : false; var ns6 = (document.getElementById && !document.all) ? true : false; function openDesc(text) { if (ie4) { document.all["Description"].style.visibility = "visible"; document.all["TitleClose"].style.visibility = "visible"; } if (ns4) { document.layers["Description"].visibility = "show"; document.layers["TitleClose"].visibility = "show"; } …

Member Avatar for mike.mclennan
0
111
Member Avatar for Savage221

One of the questions for my study guide asks to write a function that prompts the user to enter 3 integers, then "return" the integers via it's parameters through call by reference. Does this just imply using pointers as arguments, then when the values are changed in the function they …

Member Avatar for Savage221
0
84
Member Avatar for mike.mclennan

I am working with ASP.NET, C# and SQL Server. What I am trying to do seems simple enough, but is causing me alot of problems. I am trying to set up my DataGrid so that is updates only when i press the Update button. It is pulling information from 5 …

Member Avatar for mike.mclennan
0
111
Member Avatar for Covinus

[code=c++] // MainFrm.cpp : implementation of the CMainFrame class // #include "stdafx.h" #include "mod7a.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif char file[MAX_PATH]=""; ///////////////////////////////////////////////////////////////////////////// // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) ON_WM_CREATE() ON_COMMAND(ID_FILE_OPEN, OnFileOpen) ON_WM_PAINT() //}}AFX_MSG_MAP END_MESSAGE_MAP() static UINT indicators[] = { …

Member Avatar for Covinus
0
144
Member Avatar for Brent.tc

This may come off as a rather broad question, but I need to learn how to multitask in c++. I am developing a game, and to do so I need to learn how to program applications to run in realtime. (I want multiple characters to do things at the same …

Member Avatar for iMalc
0
201
Member Avatar for venuaccha
Member Avatar for venuaccha
0
202
Member Avatar for tformed

The program I am writing displays the velocity and acceleration when the user inputs time. The code I have thusfar is: [CODE][COLOR=#008000] [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdio.h> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<math.h> [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] main ([/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000])[/COLOR] { [COLOR=#0000ff]int[/COLOR][COLOR=#000000] time,velocity, acceleration;[/COLOR] printf ([COLOR=#800000]"Please input time in seconds: \n"[/COLOR]); scanf_s([COLOR=#800000]"%d"[/COLOR] , &time); velocity = 0.00001* pow(time,3)-.00488* pow (time,2)+.75795*time+181.3566; acceleration …

Member Avatar for Gel
0
114
Member Avatar for johngalt

There is a problem in this code. I don't know what to do. If you try to compile it, says: transformaclave[const *char] cannot be distinguished from tranformaclave[ const char* const] can anybody help me??? thanks anyway. [code=c]////////////////////////////////////////////////////////////////////////////////////////////////// // // // UNIVERSIDAD DE PALERMO // // // // TRABAJO PRACTICO DE …

Member Avatar for Ancient Dragon
0
96
Member Avatar for lotsofsloths

OK, I am trying to make a Lottery game in Microsoft Visual C++ 2005 Express Edition with windows application format that randomizes 6 numbers, 1-40. I've made the # randomizer, but i cannot get the number to show up on a textBox. Here is the code that is "bad". [code] …

Member Avatar for lotsofsloths
0
154
Member Avatar for kylcrow

Hey guys, I need to write a struct that measures the distance from a point (x,y,z) to the origin. I am good on how to write it as a struct, I just don't know the formula for the distance. Can someone help me out? Also, the formula for a dot …

Member Avatar for kylcrow
0
89
Member Avatar for sInFuL69er

Hello everyone, i've gone blank atm and i cant think i have a class [code] class Client { public: int aa; int bb; }; [/code] different file [code] class agent { private: vector<Client> clientRequest; public: void getClient(); }; [/code] and i get information from a file [code] infile >> C.aa; …

Member Avatar for vijayan121
0
107
Member Avatar for DeOiD

hi i'm using a dropdown to enable the users to choose the product family in (or on, i don´t know... :-( ) a form. when the user clicks in the save button, it saves all info into the database, including the family_product_id, with the [INLINECODE]selectedvalue[/INLINECODE] property... the problem is that …

Member Avatar for kokkee
0
132
Member Avatar for aktivo

Hi friends I need help whit a problem solver thst you can i want a code or program that realize a conversion of dates (kilometer _ meter, meter -libs etc. like15) its also whitout arrays or thats.

0
64
Member Avatar for scru

Hey. I'm having a problem. In a form's constructor, I have: [code=C#]this.KeyDown+=new KeyEventHandler(frmGScreen_KeyDown)[/code] but the event handler does not invoke at all when I press a key on the keyboard. I know this because i have the code "txtOutput.Text="Event handler entered" as the first line of the handler, and nothing …

Member Avatar for dahwan
0
99
Member Avatar for fatnickc

I'm in the middle of writing a C++ program which will eventually sort data, using a tree. I would like to swap a child with its parent if the child's value (could be anything, using a template) is less than the parent's. however, I have become stuck when trying to …

Member Avatar for fatnickc
0
241
Member Avatar for crienoloog

I'm not a programmer but I desperatly need help with the following please... it was written by someone but never tested, and contains some small mistakes that I can't solve. The person is not available anymore, so here my plea for help. I have a mailmessage looking like this: [URL]http://www.criens.nl/lambada/sailmailmessage.txt[/URL] …

Member Avatar for crienoloog
0
119
Member Avatar for StrikerX

hi guyz, i'm a Python user (not so long) , anyway i've read some stuff about lua . i've written function like this [code]def pair(dic = {} ): return dic.keys(), dic.values()[/code] a dictionary is a parameter to the pair function . to use it like this : [code]dic = {1 …

Member Avatar for StrikerX
0
152
Member Avatar for 7even

I have a problem with tree control and i don't know how to solve it, maybe someone can help me. What i'm trying to do is display widgets in a staticbox plus a help text when i select different items in a tree. For example when i select item1 in …

Member Avatar for vegaseat
0
223
Member Avatar for assgar

Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The problem I am having is, if I select one item on page #1 and another on page …

0
67
Member Avatar for Fungus1487

right MS Access is balls compared to other DB's i know but im working on a project which already uses an Access DB. Now after writing the following eclipse gives me a lovely error which im yet to figure out. Googling has thrown up people with similiar problems but no …

Member Avatar for Fungus1487
0
134
Member Avatar for usguy

Hi, I am having difficult time to make this run. Can anyone help me please?. I have test form with 3 command buttons & one Richedit.Im using access database to test. It have just one table with two fields ID (Integer), sMemo (memo). I am trying to save richedit text …

Member Avatar for usguy
0
325
Member Avatar for usavguy

I have a database (myDB1.mdb) that contains related data in seven tables. Using vb6 existing in a separate application, I would like to find a way to archive this data into a new database (myArchive1.mdb) located in the same location as the main database. I understand how to use the …

Member Avatar for usavguy
0
122
Member Avatar for jetru

How would I go about making JTextField allow the user to input only numbers 0 - 9? I looked into JFormattedTextField but it doesnt seem to be what I need. Would I have to code it to check the users' input everytime? Is there a simpler way?

Member Avatar for jetru
0
91
Member Avatar for IwalkAlone

I want to know when it is necessary to include a return statemnt in one's code and also what is the difference between recursion and iteration?

Member Avatar for IwalkAlone
0
143
Member Avatar for Colin Mac
Member Avatar for John A
0
133
Member Avatar for Colin Mac

I'm having a bit of trouble understanding what [B]glLoadIdentity[/B](); does in OpenGL . This is a quote from the Redbook. "Recall that the viewing transformation is analogous to positioning and aiming a camera. In this code example, before the viewing transformation can be specified, the current matrix is set to …

Member Avatar for Grigor
0
134
Member Avatar for push
Member Avatar for push
0
112
Member Avatar for ptaylor965

I am using an MSAccess 2007 database file to retrive some info The tables look like this tblIncome Date | Takings 12/05/2007 | 10 12/05/2007 | 20 13/05/2007 | 10 16/05/2007 | 40 tblExpence Date | Takings 12/05/2007 | 10 13/05/2007 | 20 14/05/2007 | 50 When running the code …

0
67
Member Avatar for Dageki

I have been tasked with cleaning up some daily backups and I want to automate this. I have decided that Perl might just do the trick except up until about a week ago I did not know much about it. I have been doing some homework but I am stuck …

Member Avatar for Dageki
0
98
Member Avatar for ajaxjinx

Hi , I need to Assign 4 bits to unsigned char: I am using, unsigned short Ver : 4 ; My ques is ... howw do I initialize Ver , coz Ver=5 is not working.. If i need a type cast.. what will it be???

Member Avatar for ajaxjinx
0
194
Member Avatar for quintoncoert

I am new to c++ and I am using visual c++ express edition. I am spending quite a lot of my time doing excercises and am using the command line to compile them. I have now reach the stage where I am seperating the header files and the .cpp files …

Member Avatar for Ancient Dragon
0
157
Member Avatar for iam_rob

Hi all, I'm currently building a login page for a JSP application, I've realised that im going to need to use sessions to recall the username on the login screen for other functionality. Unfortunately i'm very new to the whole web development approach and i've tried searching for guides on …

Member Avatar for iam_rob
0
229
Member Avatar for assoora

[COLOR=#000000]Hi all,[/COLOR] [COLOR=#000000] <br>[/COLOR] [COLOR=#000000]I've a JSP page that has 2 buttons one to bring data from database via a servlet & a java Bean, and the other is a next button.[/COLOR] [COLOR=#000000][COLOR=#000000] <br>[/COLOR] [/COLOR] [COLOR=#000000]i want to show the data from the database 4 rows per a page, i.e. …

Member Avatar for jwenting
0
142
Member Avatar for ghadahelal

is there is any fun in the c++ library that takes a dec and return hex

Member Avatar for WaltP
0
219
Member Avatar for squinx22

Hi gud day! Anybody who knows how to save a file to [U]/usr/include[/U] in the terminal? Suppose I will save a file named hello.h to the said directory, what would I do in the terminal? thank you very much....

Member Avatar for ndeniche
0
94
Member Avatar for Covinus

[code] a=(char*) malloc(sizeof(15)); b= bmfh.bfType; sprintf(a, "bfType: %d", b); TextOut (hdc, 0, 0,a , strlen(a)) ; delete[] a; a=(char*) malloc(sizeof(15)); b=bmih.biBitCount; sprintf(a, "bitCount: %d", b); TextOut (hdc, 0, 20,a , strlen(a)) ; [/code] is it necessary to leave the a undeleted when i gave it another value or i should …

Member Avatar for Covinus
0
122
Member Avatar for therwi

[COLOR=#000000]Your assignment is to write an assembly program that takes a series of characters from the keyboard until a '$' character is entered. These characters must be saved in a stack. Then the program is to print all these characters backwards.[/COLOR]

Member Avatar for qrius
0
122
Member Avatar for LyddieFrog

I'm currently writing a program that acts as an application for a store manager, sorting, searching, reading in, etc. products. This program has two classes: one to handle the GUI and another to handle the actual calculations. I am completely done coding this, save for one requirement: I need to …

Member Avatar for LyddieFrog
0
154
Member Avatar for MarzenaM

I have to write programm to sort numbers from in ascending order, using vector (C++ language) I did this using array, and it works perfect. Please could you help me replace array to vector. It's very urgent. :'( My code is: [code=c] #include <iostream> void fill_array(int a[], int size, int& …

Member Avatar for Lerner
0
112
Member Avatar for kissiwat

I've gotten myself a bit confused here. :'( I've created two linked lists called 'competitors' and 'races'. I'm able to add, append and display info in both files but unable to delete or update the information contained in either. I've started the coding for both functions but have got totally …

Member Avatar for Ancient Dragon
0
183
Member Avatar for Upon1

I am currently using the PHPNuke portal (7.9) and I've been having some problems lately with my phpBB forums. I installed the system in January and have been tinkering around with it since. Everything has been running smoothly until a few weeks ago; my forums quit working. For no apparent, …

Member Avatar for Upon1
0
229
Member Avatar for isitintheback

No they're not mental. Well, maybe partially. It's 1:47am I'm tired as hell, but won't rest until I complete this. I know this is right in my face, and it's something stupid but I'm just not picking it up for some reason. Here's the code: [code] if(g1 == true){ total …

Member Avatar for isitintheback
0
172
Member Avatar for Tauren

Greetings! I just have a question is the book C++ Programming Primer By D.S. Malik a book worth getting? What stage is it: Beginner, Professional What does it teach me up to: What the last topics in book Will I need more books after this regarding the topic? And is …

Member Avatar for Narue
0
267

The End.