132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for randomFIRE

I need to load an image in my program, but I keep getting this error: [code=java] C:\Documents and Settings\Remy B\Desktop\programming\Java\Java Projects\NurseGUI\GraphPanel.java:30: cannot resolve symbol symbol : variable danger location: class GraphPanel danger = getImage(getDocumentBase(), "danger.jpg"); [/code] I'm assuming this is because you can only use getDocumentBase with applets? I googled, …

Software Development java
Member Avatar for masijade
0
143
Member Avatar for squinx22

hi, Is it possible to run a gedit command in the terminal that will create a text file automatically and save it in my desired file extension? For example, if I run: gedit file.txt by default, it will open a null document named file.txt. But all I want is to …

Software Development shell-scripting unix
Member Avatar for thekashyap
0
80
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. …

Software Development visual-basic
Member Avatar for jamello
0
121
Member Avatar for MarzenaM

I need to write program with five different functins. Teacher wants to input the names and exam marks for her students. She wants to determine symbol (A-F) she should assign to each. She wants to display the symbol as well as an appropriate message. Finally she would like to display …

Software Development c++
Member Avatar for Gel
0
121
Member Avatar for sez90

im making a game in delhi n its a hangman game n it all works but my letters dont appear in place of my question marks. can anyone look at my code for n see wat is wrong wit. ps i have the code behind each letter for the alphabet. …

Software Development pascal
Member Avatar for LLC
0
124
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 …

Software Development c c# c++
Member Avatar for m.s
0
199
Member Avatar for minigweek

Hi Everyone, Good day to you all. I am solving a problem : to Generate a Random Network. I hv divided the problem into two parts. First generate a Graph, then from the graph from a network. Here the code generates a random graph. User Gives n ->no. of nodes …

Software Development c++ ide
Member Avatar for minigweek
0
158
Member Avatar for rapperhuj

how can i RUn.. vmware if when i;m installing it,.. it says that: please run this program as super-user.. Execution aborted... :( plese help me...:(

Software Development c++
Member Avatar for Salem
0
136
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.

Software Development c++
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 …

Software Development data-structure open-source perl
Member Avatar for KevinADC
0
104
Member Avatar for samirs79

[COLOR=#000000]Hi Code gurus!!...my first post in this forums and I m new to shell scripting too!...I need a shell script to accomplish the below, any input will be greatly appreciated..[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]Below is a sample content of a text file, [B]file1.txt[/B][/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]AMPS,2324,Subscriber,Unknown,SingleDay,20070413,20070413,[/COLOR] …

Software Development shell-scripting unix
Member Avatar for samirs79
0
127
Member Avatar for radskate360

Our assignment is to write a program that calculates the volume of three geometric shapes, the program should ask for a shape and the three shapes we are to use is a dumbell, axle, spear. And he gives us the formulas for volume and how to find it. I know …

Software Development c++
Member Avatar for iamthwee
0
283
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 …

Software Development c++ operating-system ubuntu
Member Avatar for Salem
0
113
Member Avatar for srinath.sec

hi, what is the difference between a library function and a system call

Software Development c
Member Avatar for Ancient Dragon
0
102
Member Avatar for NewVBguy

Hi there, I am very new to .net and I am starting to learn things. Can somebody share me a working code that will put the schema/structure of a table into a combobox. Pls. consider the ff: 1. file is mdbdata.mdb table is mdbtable combo is combobox 2. file is …

Software Development vb.net
Member Avatar for NewVBguy
0
91
Member Avatar for jerryseinfeld

I am using that but I only get some strange words :( I get my coordinates from x and y array..... what is the problem??? [code] for(a=1;a<i;a++){ yyy=(y[a-1]- y[a]); xxx=(x[a-1]- x[a]); slope[a-1]=yyy/xxx;} yyy=(y[i-1]- y[0]); xxx=(x[i-1]- x[0]); slope[i-1]=yyy/xxx; for(b=1;b<i;b++){ yyy=(slope[b-1]+slope[b]); xxx=(1-slope[b-1]*slope[b]); angle=yyy/xxx; res=acos(angle) * (180/3.14); printf("%d. Angle %f\n",b,res);} yyy=(slope[i-1]+slope[0]); xxx=(1-slope[i-1]*slope[0]); lastangle=yyy/xxx; …

Software Development c++
Member Avatar for Salem
0
81
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 …

Software Development c
Member Avatar for Savage221
0
84
Member Avatar for miracles

Hi, I need help on the following desperately I need to write a macro to send out 2 types of email via excel 2000 for those (DEPENDING ON their Action_Item_Status 1)action items with Action_Item_Status='Overdue', (over due email) 1)action items with Action_Item_Status='Due Soon', (reminder email) Action_Status_As_Of_Today can have these values:-Done,Overdue,Due Soon,Not …

Software Development email session visual-basic
Member Avatar for DenisOxon
0
112
Member Avatar for hasareli

i realy need help on programming "Deal or no Deal" in pascal :icon_neutral: thankx

Software Development pascal
Member Avatar for jbennet
0
98
Member Avatar for horsovski

Hi I have to do this exercise for school, but i just dont know how to create this, so if anyone from you can please do this for me, i will be very thankful. It is a short one and quite simple(not for me): "Write a program, which reads from …

Software Development pascal
Member Avatar for radu84
0
81
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[] = { …

Software Development c++
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 …

Software Development c++
Member Avatar for iMalc
0
201
Member Avatar for Rikardsen02754

this is what I have now. I only know how to manually put them into the program. How do you read in the names? [code=language] import cs1.Keyboard; public class TestName { public static void main (String[] args) { //construct two new objects Name Name1 = new Name("Mike", "Matt", "Jones"); Name …

Software Development java
Member Avatar for stultuske
0
141
Member Avatar for sofianos

Hi! i am creating a struct and i want to save it in a FILE (example FILE *fptr). it creates a file anw and it will fill some elements in the struct. Below is what i hv done so far. Btw sorry for my bad english. The reason for my …

Software Development c file-system
Member Avatar for Aia
0
135
Member Avatar for jerryseinfeld

hi again me .... I have a project about some stupid math calculations :)... NOw my question is how can user assign structure name??.. I mean in my program I ask from user some vertices and coordinates for polygons.. then I calculate lenght ,area.... kind of things... But I realize …

Software Development c++
Member Avatar for linux
0
89
Member Avatar for sofianos

how do i create archive and save a struct in archive. Thanks in advance.

Software Development c
Member Avatar for sofianos
0
112
Member Avatar for Masood Ali

I am developing a C++ application which deals with socket programming. When I build my program, I get an error as follows, [code] ------ Build started: Project: AFEClientPublic, Configuration: Debug Win32 ------ Linking... LINK : fatal error LNK1104: cannot open file 'wsock32.lib' Build log was saved at "file://d:\AfeClientPublic43\AFEClientPublic43\Debug\BuildLog.htm" AFEClientPublic - …

Software Development c++ socket-programming
Member Avatar for vijayan121
0
301
Member Avatar for venuaccha

Can anyone tell me whether it is allowed to use a Semaphore in a Reentrant function.

Software Development c
Member Avatar for venuaccha
0
202
Member Avatar for Wreef

In my VB.NET program i have greated, i am getting the above error with the following description [QUOTE]An error occurred creating the form. See Exception.InnerException for details. The error is: Object variable or With block variable not set.[/QUOTE] The debugger doesnt point me towards any actual code to fix, so …

Software Development vb.net
Member Avatar for arjunsasidharan
0
348
Member Avatar for gcc777

What event can I use that will: Retain value when leaving field: Lostfocus, leave, enter, etc, Value works with the exception of Tab, also fires with every keystroke, lostfocus & leave will not work with all ways of leaving field. Help

Software Development vb.net
Member Avatar for arjunsasidharan
0
182
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 …

Software Development c++
Member Avatar for Gel
0
114
Member Avatar for Decky

[COLOR=#0033cc][IMG]http://i8.photobucket.com/albums/a37/deckym88/problem.jpg[/IMG][/COLOR] [COLOR=#0033cc][/COLOR] [COLOR=#0033cc]Thats a screen shot of the problem, any help would be great[/COLOR]

Software Development vb.net
Member Avatar for arjunsasidharan
0
73
Member Avatar for vicky_dev

Hi everyone... I need to build a file browser for a wireless multimedia device for a Windows PC. The objective is to be able to browse contents of the device. The device defines its own protocols for communication. I have divided the whole project into two modules: the browser and …

Software Development java multimedia objective-c
Member Avatar for vicky_dev
0
114
Member Avatar for gurusamy

Anybody can explain Delegate and Event concept in C#?

Software Development
Member Avatar for vp_aries14
0
145
Member Avatar for Marinow

Hello, I'm sort of new to Pascal and I am not very good at it haha, but records just make me even more oblivious. The program we use in class is TMT Pascal 4 Multi-Target. My teacher is out for the week and I really need help on this program …

Software Development pascal
Member Avatar for radu84
0
112
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 …

Software Development c
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] …

Software Development c++ microsoft
Member Avatar for lotsofsloths
0
154
Member Avatar for omegajam

I need some help to build the simple code (LAB exercise): The “main” of the C++ program attached to this assignment expects a class called “item.” This class must have methods for “enter” and for “print.” Below is a description of what each method should do: item.enter() should allow the …

Software Development c++
Member Avatar for squinx22
0
84
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 …

Software Development c++
Member Avatar for kylcrow
0
89
Member Avatar for satyanarayanam

Hi, I am trying to implement the sizeof() programe main() { int a,res; a = sizeOf(a); printf("size=5d\n",res); } int sizeOf( void var) { void *ptr; ptr = &var; return((char*)&ptr[1] - (char*)&ptr[0]); } But this is giving error , so plz check and correct it

Software Development c
Member Avatar for Narue
0
161
Member Avatar for quintoncoert

I am using VC++ express 2005 and I have a dll and two header files. The one header file inherrits from the other and the dll contains the source code. Can someone please tell me where do I write the include commands for these header files? I can create and …

Software Development c++
Member Avatar for Ancient Dragon
0
307
Member Avatar for nkhosinathie

hello everyone. i'm developing a program containing a for loop where the answer of each each respondent to each questrion is read in. the program is saying:100 people conmpleted the following questionaire: what is your highest qualification? 1.if grade 10 1.if grade 12 3. if any tertiary qualification how old …

Software Development c++
Member Avatar for Ancient Dragon
0
2K
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; …

Software Development c++
Member Avatar for vijayan121
0
107
Member Avatar for jenymaru08

how to make a program which the out put is: enter n=5 [code] 1 2 3 4 5 4 3 2 1 2 3 4 5 4 3 2 3 4 5 4 3 4 5 4 5 [/code] this is the code i use but an error occur [code=c] …

Software Development c++
Member Avatar for meiyantao
0
181
Member Avatar for afflictedd2

Hi, I'm wondering how to give a map a fixed size like you can give an array a fixed size by just "byte data[SIZE*DATASIZE]".. or if it's possible anybody know.. struct Table { map<int, int> table; // }; struct Table *flightChart; The reason I have to give this a fixed …

Software Development c c# c++ data-structure
Member Avatar for vijayan121
0
119
Member Avatar for jaepi

hello, there... how would you send a signal to end this loop [code] string s; int counter; while(cin >> s){ counter++; } [/code] thanks...

Software Development c++
Member Avatar for jaepi
0
51
Member Avatar for mg1969

Hi all, first post. I am working with excel files which get their data from htm files on the same folder location. Every time I open the xls file I get a prompt "Some of the files in this web page arent in the expected location. Do you want to …

Software Development open-source visual-basic
Member Avatar for mg1969
0
102
Member Avatar for pavani2006

i can write a palindrome pro but i dont to write using recursive function can any body help and to check whether a palindrome can fotmed from a given string? j=0,k=0; while((j<strlen(str)-1)/2) { if(str[j]!=str[strlen(str)-1-j]) { k=1; break; } j++; } if(k==0) printf("palindrome") else printf(not a palindrome");

Software Development c
Member Avatar for ~s.o.s~
0
542
Member Avatar for intel1234

Hi, I am a beginner at programing and I only have a little knowledge of turbo pascal. I read the tutorial lessons on [URL]http://www.learn-programming.za.net[/URL] but I have a problem when try to make a working application. I am working on some program that would found variables value in the equation …

Software Development pascal
Member Avatar for radu84
0
1K
Member Avatar for akintobi

this is a program written in pascal language to l got stocked along the way. please a need a way out. Thank you.

Software Development pascal
Member Avatar for radu84
0
104

The End.