132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for iamcreasy

I am trying to grab some data after opening a text file with append flag. I am using the following code...but nothing is being printed and program execution is progressing forward. Can anyone point me my mistake... [CODE] fstream outStream("test.txt", ios::app);string testID; cout << "Enter Teacher ID - "; cin …

Software Development c++ ios
Member Avatar for iamcreasy
0
341
Member Avatar for bbman

Hey, I have the code: [CODE] Form1(void) { array<Label ^>^ labels = gcnew array<Label ^>(itemCount); InitializeComponent(); for (int i = 0; i < itemCount; i++) { labels[i] = (gcnew Label()); labels[i]->Tag = (int)i; labels[i]->Location = Point(1, (i + 1) * 50); labels[i]->Size = System::Drawing::Size(250, 50); this->Controls->Add(labels[i]); } } [/CODE] This …

Software Development c++
Member Avatar for bbman
0
325
Member Avatar for YasaminKh

Hi Everyone, I'm working in with a file and somewhere in it I'm reading a number that i know it's starting and endig position n the file and then i store it in an string*. But at the end I need to convert this string to the int value. I …

Software Development c++
Member Avatar for nbaztec
0
185
Member Avatar for NathanOliver

He all I am currently working a on a problem to convert the entire contents of an STL container into a string. For example if I had this: [code=c++] int foo[] = {1, 2, 3, 4, 5}; vector<int> bar(foo, foo + 5); [/code] I would like to convert [icode]bar[/icode] into …

Software Development c++
Member Avatar for Bench
0
127
Member Avatar for sfuo

So far I have written a program that draws text to the screen and I am able to change the font type but I am unable to change the font size. Here are the 3 main parts of my code that I think you need to see. Font structure: [CODE]typedef …

Software Development c++ opengl windows-xp
Member Avatar for sfuo
0
336
Member Avatar for romyboy2k9

Hi, I'm having trouble with my program,here is one of the error code: Error 1 error LNK2019: unresolved external symbol "public: __thiscall linkedListType<int>::linkedListType<int>(void)" (??0?$linkedListType@H@@QAE@XZ) referenced in function "public: __thiscall linkedQueueType<int>::linkedQueueType<int>(void)" (??0?$linkedQueueType@H@@QAE@XZ) main.obj Mesina_Wk5Assignment The following are the codes to my program [CODE] // linkedList.h file #ifndef H_LinkedList #define H_LinkedList #include …

Software Development c++ file-stream queue
Member Avatar for jonsca
0
293
Member Avatar for djenoe

thanx that's definitely the right direction

Software Development java
Member Avatar for djenoe
0
99
Member Avatar for avarionist

I am trying create a button that when clicked prints hello world in the text box above it. however im a complete noob on winforms. I normally just make console programs any tutorials on winforms ? with C++?

Software Development c++
Member Avatar for avarionist
0
174
Member Avatar for vddmanikanta

Sairam all, Linux Man pages say > "LinuxThreads currently does not support process-shared > semaphores, thus!sem_init! always returns with error !ENOSYS! if > |pshared| is not zero." > > I have a shared memory area I need to lock(using semaphore). Is there a Linux preferred > method to share semaphores …

Software Development c
Member Avatar for ihedz
0
127
Member Avatar for Hawking

Hi imagine that I have serie (progression) like Ai=2Ai-2 - 3Ai-1 for i>=2 (i-2 and i-1 are lower indexes) A0= 2.5 A1= 1.2 I need a program which counts and write into the field values from 0-19 and after the program frint sum of these values to screen. Thank you …

Software Development c
Member Avatar for kings_mitra
0
105
Member Avatar for heavens_cloud

I've been working on getting a SQL DB to return records through an ADODB.Connection object and have had zero luck getting it to work in VB6. Whereas I created an ASP form using VBS to produce the exact same functionality with no issues. In VB6, I've included the following references: …

Member Avatar for vb5prgrmr
0
545
Member Avatar for Victor C.

I was creating this code and I hit a brick wall. Maybe because I have been doing this code for 5 hours and I am burnt out. I just need help to get it working please. Here is the code [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Random; public class …

Software Development java java-swing
Member Avatar for NormR1
0
195
Member Avatar for wiluo

Hello, I am trying to write a program in python to test the reading speed to a file, apparently,after the file is created, it's automatically in the cache and read() method will grab the data from the cache thus result in a much faster reading speed, how should i directly …

Software Development python
Member Avatar for jcao219
0
4K
Member Avatar for andyg55

Hi, I'm trying to create a 2d array that will fill itself up with numbers i have in a text file. My text file looks like this: 1 5 4 2 6 3 3 9 4 4 1 8 5 2 2 So, I want to create an array with …

Software Development c++
Member Avatar for tagazin
0
2K
Member Avatar for CanYouHandstand

Hello All I’m trying to hook the mouse scroll wheel using SetWindowsHookEx with WH_MOUSE_LL. The callback function I am using operates correctly, and identifies when the mouse wheel is scrolled. However I am unsure of how to identify which direction the mouse has been scrolled. My code so far: [CODE] …

Software Development c++
Member Avatar for CanYouHandstand
0
2K
Member Avatar for speedy gonzalos

I am trying to create an Inventory/Stock Control system as a windows application using vb.net with an Access database. This is my first time trying to use vb.net and im having difficulty making the application interactive. I am unable to update records to the database from the front end. I …

Software Development dataset vb.net visual-studio
Member Avatar for tariq182
0
186
Member Avatar for abbyo

I'm a newbie at java and I need help in coming up with the correct answer for this JOption java program. I enter in 2k, 30fps, 4min, 0seconds, and I should get 10.6842041GB (16.02630615GB total space needed). Please let me know if you have any advice on how I could …

Software Development ide java java-swing storage
Member Avatar for abbyo
0
146
Member Avatar for zixizx

Hello im a new member to this forum so if this is in the wrong place im very sorry. any way i have been developing a piece of software that reads from a .txt file soo far i have got it working but only on my pc eg "c:\documents and …

Software Development
Member Avatar for zixizx
0
141
Member Avatar for God Coder123

if i were to create a program which required the user to enter multiple values, but i do not no how many. How would i go about anticipating the input. For instance if the user were permitted to input any amount of numbers and i wanted to add all the …

Software Development c++
Member Avatar for jonsca
0
106
Member Avatar for KAY111

Hi I started a thread earlier back and I thought my problem had been solved but now new errors have popped up Here are the errors I'm getting: bfs.cc: In function 'void greedyMatch()': bfs.cc:9: error: expected primary-expression before 'for' bfs.cc:9: error: expected `)' before 'for' bfs.cc:9: error: 'bfs_ee' was not …

Software Development c++
Member Avatar for Taywin
0
2K
Member Avatar for karan khokhar

ive been able to succesfully link a mdf databse to a vb.net program.My program runs flawlessly but if i change the location of the database from e:\new\xyz.mdf to c:\new\xyz.mdf then it throws an exception : System.Data.SqlClient.SqlException' occurred in System.Data.dll [CODE] SQLConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename= e:\new\xyz.mdf;Initial Catalog=xyz;Integrated Security=True;User Instance=True" [/CODE] And …

Software Development sql vb.net
Member Avatar for karan khokhar
0
168
Member Avatar for WargRider

Hey everyone, I have a pretty big problem. I need to develop a program that when opened(CONSOLE), targets a certain process and send the Shift+\ key to it, basically, I need it to type (|) the pipeline character I have tried everything, SendMessage, Postmessage, VM_KEYDOWN, VM_KEYUP and all that stuff. …

Software Development
Member Avatar for WargRider
0
320
Member Avatar for KAY111

Hi guys, I am stuck with this piece of code for a long time. The errors that come are: bfs.cc: In function 'void greedyMatch()': bfs.cc:9: error: expected initializer before '*' token The relevant code is [code=c] #define forallXNodes(u,G) \ for(arc *bfs_ee=(G.getSource())->firstOutArc(),arc *bfs_stopA=(G.getSource())->lastOutArc(),u=bfs_ee->head(); bfs_ee <= bfs_stopA;u = (++bfs_ee)->head()) #define forallYNodes(u,G) \ …

Software Development c++
Member Avatar for KAY111
0
1K
Member Avatar for dylgod

Hi I am trying to ride a program that answers a mathematic equation but I keep getting the the error Exception in thread "main" java.lang.ArithmeticException: / by zero at EquationCalc.main(EquationCalc.java:48) I cannot get around it, does anyone have any ideas? [code]import javax.swing.JOptionPane; /** This program will calculate an equation following …

Software Development java java-swing
Member Avatar for Taywin
0
168
Member Avatar for mehdi0016

hi i need some help about zope. i worked with django before but now i want to start a medium project(dynamic website/webapplication) with some developing in future. now i'm not sure to switch to zope. i know zope support mvc like django, but django has some really magics. does zope …

Software Development python
Member Avatar for Tech B
0
75
Member Avatar for Stefano Mtangoo

Hi again, After a defeat in Linux in other post (which I'm still finding a way), I have decided to give a shot in windows. However it produces DLL fine and I can use LoadLibrary(). I need it to produce .a file for static linking. How do i do it? …

Software Development c++ ide
Member Avatar for Stefano Mtangoo
0
258
Member Avatar for bbman

Hey, I have just switched from C#, and in C# there was a way you could create an item (Example), and set parameters. [CODE] Example text = new Example(); Example.parameter = value; //etc [/CODE] I have searched the internet, and could not make any sense of it. Any help would …

Software Development c++
Member Avatar for Fbody
0
123
Member Avatar for hazeeel

I am a student, doing a project on superposition(bioinformatics). I am doing the part on rotation using matrices and I'm stuck. I need to open a visualizer (jmol) and adjust the angles of my protein structure at the same time via java codes. So I need to have 2 protein …

Software Development java
Member Avatar for remilt
0
83
Member Avatar for sadhawan

Hi Guys, can anyone help me to write a regex function for the following string .So my string is contents=false book_title='The Old Man and His Sons' sections=[ 'The Old Man and His Sons' ] now i want to extract just The Old Man and His Sons so far my code …

Software Development regex
Member Avatar for Radical Edward
0
117
Member Avatar for dansnyderECE

I'm trying to convert a disassembled Hex Dump to a SPIM friendly assembly file. This requires that I take lines like: [CODE] 004000f8 <_init>: 4000f8: 27bdffe8 addiu sp,sp,-24 4000fc: afbf0010 sw ra,16(sp) 400100: 0c100064 jal 400190 <call_gmon_start> 400104: 00000000 nop 400108: 0c100094 jal 400250 <frame_dummy> ... [/CODE] and make them: …

Software Development assembly c++
Member Avatar for nbaztec
0
149
Member Avatar for gsmdreams

Hello everyone, I have been disturbed for a week now. I have a project in vb.net. And on forms I have two masked text boxes. One is for the user to enter their date of birth and in the second one Iam trying to get the date the record is …

Software Development mysql vb.net
Member Avatar for gsmdreams
0
108
Member Avatar for dansnyderECE

Is there a good way to determine the end of a a line in a text file? I need to find of end of a line in text because all text lines are of different length. I also have to store each word (separated by spaces) into a vector. [CODE] …

Software Development c++
Member Avatar for nbaztec
0
247
Member Avatar for anu07

A question has been knocking my mind today,is it possible to convert a executable file back to its source code in c++??

Software Development c c++
Member Avatar for anu07
0
118
Member Avatar for Sawamura

hi, sorry for this question, but i really didn't know. i want to load flash animation and put in my project? please help me.. thx, i really appreciate that.

Software Development flash visual-basic
Member Avatar for peter_budo
0
118
Member Avatar for sravan953

Hey all, I'm working on a program where I calculate powers of two upto 60. I've made my own formula for calculating it which is: 10^([value of log 2 here]*y), where 'y' is any power as big as, say, 31. So here it is: [code=python] two=0.301029995664 final=math.pow(10,(two*n))-1 [/code] Now... as …

Software Development python
Member Avatar for TrustyTony
0
198
Member Avatar for YasaminKh

Hi everyone, Somewhere in my need i need to create strings like ( x,y,z ) with 0<x,y,z<N. I was trying to use 3 for loops but it didn't work. That's what i wrote: for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ for(int k=0;k<N;k++){ string t="( "; t+=i; t+=","; t+=j; t+=","; t+=k; t+=" )"; } …

Software Development c++
Member Avatar for YasaminKh
0
190
Member Avatar for mod666

hi! i have a class from which other classes are inhertited. I then create a function GetInput() & I want it to funtion for evry object inherited by MAIN. I don't want to create separate functions for each. Is there any way for it? Thank you.

Software Development c++
Member Avatar for Fbody
0
112
Member Avatar for jinx

Has anyone tried this software? I'm going to download the Trial version but I wanted to see if anyone use's it and if it is any good. Thanks.

Software Development vb.net
Member Avatar for semsigungor
0
175
Member Avatar for altXerror

i have a Header file that i will be using for multiple programs. this file specifies integers (its for my calculator programs). is it possible to have an integer value represented as AB if the two other integers are represented as A & B without getting a compiling error? EX. …

Software Development c++
Member Avatar for mrnutty
0
159
Member Avatar for akand

Hiii.... I am stuck here.. I want a function which can return a string and also it should be able to take DEFAULT string arguments.... can anyone help me wid d syntax??

Software Development c
Member Avatar for nbaztec
0
241
Member Avatar for Tommymac501

I cannot seem to get Reportlab's 4 state bar code to work. I keep getting "NameError: name 'USPS_4State' is not defined", yet if I 'dir' the module it's clearly loaded; dir(usps4s) arcode', 'USPS_4State', '__all__', '__builtins__', '__doc__', '__file__', '__ e__', '__package__', '__version__', '_crc11', '_initNof13Table', '_ru13', '_t The usage is correct as …

Software Development python
Member Avatar for Tommymac501
0
111
Member Avatar for merse
Member Avatar for mod666
0
106
Member Avatar for lesna

ineed idea about my proposal on my thesis.. using PL .V.b6

Software Development visual-basic
Member Avatar for asaukani
0
102
Member Avatar for baki100

Can this be done in python and which module would i have to look at. I haven't experimented with this and if I have to guess would it be the os.renames() function.

Software Development python
Member Avatar for baki100
0
92
Member Avatar for judithSampathwa

hi there, i have a form with text boxes and lables and datagrid view, the user enters data in one text box in the form. wen the user press ctrl+c from the key board how can i make i to copy the value entered in the textbox. and when the …

Software Development
Member Avatar for Radical Edward
0
3K
Member Avatar for vipin.sachan

In a 'C' program,when I am trying to allocate memory with the help of malloc () function, it is allocating the memory up to a certain limit for e.g. in my case, it is 670 MB (approx). malloc() returns NULL if I allocate more than this amount of memory.When I …

Software Development c
Member Avatar for mitrmkar
0
188
Member Avatar for AkashL

This problem originates from a job interview which could be solved in C++ or C#. As far as I can remember it was to implement a queue that can be added to by multiple threads and accessed by multiple threads. I haven't tried it in C# yet although I think …

Software Development c++ queue
Member Avatar for Radical Edward
0
248
Member Avatar for mayanknsit

Can any one suggest me the java code to find the i/o usage of a process? I am able to calculate memory usage and cpu usage of a process through jav code but unable to do so for io usage.

Software Development java
Member Avatar for NormR1
0
214
Member Avatar for jeeter19

Hi all, My question pertains to the reading of a text document. Currently I am reading a text file searching for certain syntax and once it finds it then it uses that line. The thing is, I am currently doing this: [CODE] while (reader.readLine() != null) { DOSTUFF(); } [/CODE] …

Software Development
Member Avatar for kvprajapati
0
1K
Member Avatar for moshe12007

i have in the Visual C# 3 options of database : 1. SQL SERVER (.sdf) 2. ACCESS (.mdf) 3. ADO.NET (.edmx) which database advisable to use??? *if you give me answer please give me tutorial\book\name of book. thanks.

Software Development c c# c++
Member Avatar for kvprajapati
0
174

The End.