132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sinkingships7

Does anyone know a good way to do it? I've heard of itoa(), but it's non-standard and isn't included by default with the GCC compiler. If you believe that's the best way, how to I get my hands on the function? Ideas? HUGE EDIT: I made a stupid mistake and …

Software Development c
Member Avatar for sinkingships7
0
119
Member Avatar for Evan M

I've been getting an "Access Violation" error while running this program: [code=c++]#include "SDL/SDL_ttf.h" class Font { private: TTF_Font *font; public: Font() { font = TTF_OpenFont( "c:\\windows\\fonts\\cour.ttf", 20 ); } ~Font() { TTF_CloseFont( font ); //Access violation } }; int main( int argc, char *args[] ) { if( TTF_Init() < 0 …

Software Development c++
Member Avatar for Evan M
0
237
Member Avatar for devstudio.2007

Dear All, I recently upgraded Python 2.3 to python 2.4 but still now my application searching python2.3 dll in System 32 how to solve this issue........... regards Mani.

Software Development python
Member Avatar for Ene Uran
0
122
Member Avatar for Fault

Hey i have a few random questions that i can't seem to get my head around at the moment. Any help would be appreciated 1) What criteria would you apply in deciding which of the three forms of loop to use in a program? 2) What does this function prototype …

Software Development c c# c++
Member Avatar for tecktalk
0
124
Member Avatar for Code Shark

Hello, I made this program that has random values and you have to choose to say if the next number will be higher - or lower. I completed the code and successfully had no errors but when the user is mistaken nothing comes up. Am I missing something? [CODE=C++]// Code …

Software Development c++
Member Avatar for VernonDozier
0
146
Member Avatar for kuratkull

Hello, I am having a problem with a Glut function which is messed up, either by GCC or by OpenMP. I have GCC 4.3.1 20080626. The problem is, that I do not know which of the three is causing the "Segmentation fault" at the glVertex2f() function. The proggie works perfectly …

Software Development c
Member Avatar for kuratkull
0
327
Member Avatar for Q8iEnG

Hello :) Umm I have a small question :) Which do you recommend for fast searching BST or AVL tree? My answer: It might be the BST because it'll be noticed that in the right subtree all the numbers greater than the root will be there also for the smaller …

Software Development c++
Member Avatar for Q8iEnG
0
130
Member Avatar for jainendra.shah

hi frds, I want to fetch data from a table who contain approx 10 million data or above. I am able to fetch approx 1 million within 3 min. but this is so slow. and also problem to fetch more then 1 million. I used to data adapter and dataset …

Software Development dataset
Member Avatar for camilojvarona
0
102
Member Avatar for ibanez335

Hi Everyone, this is my first post so I hope I don't break any rules/codes of practice. I have developed an application and produced the appropriate setup files by adding a 'setup project'. I have no problems installing it on a standalone machine. However, I want to install it on …

Software Development client-server vb.net
Member Avatar for ibanez335
0
88
Member Avatar for 11silversurfer1

Hi, I was wondering with the menu bar how to open, save and make a new file on the menu bar [code] case MENU_FILE_ID_OPEN: { //something to open the file } break; [/code] i have no idea at all how to do this, i have searched the net but it …

Software Development c c# c++ visual-studio
Member Avatar for 11silversurfer1
0
157
Member Avatar for lingol

I'm writing a function that reads an IP address from input and generates its 32-byte values. If the input is correct, the whole thing can be done by this: [CODE=C++] int a, b, c, d; char buf; cin>>a>>buf>>b>>buf>>c>>buf>>d; ... [/CODE] If it's not, such as 256.0.0.0, or 1..2.3.4, I want …

Software Development c++
Member Avatar for lingol
0
197
Member Avatar for GFXtm

[B]Array.h CLASS[/B] [code=c++] #ifndef __ARRAY_H #define __ARRAY_H template <typename DataType, int size, DataType zero> class Array { public: // set function, sets an index void Set(DataType p_item, int p_index) { m_array[p_index] = p_item; } // get function, gets the index DataType Get(int p_index) { return m_array[p_index]; } // clear function …

Software Development c++
Member Avatar for vijayan121
0
447
Member Avatar for tactfulsaint

servlet package does not exist any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws ServletException,IOException{ i++; out=response.getwriter(); out.println("<b>your are …

Software Development java
Member Avatar for peter_budo
0
159
Member Avatar for jtomacelli

I need to copy the data from the top row of a worksheet to all those empty rows underneath it UNTILL you get to a row that has data…then start over and copy that new data into the empty rows….and so on… I have the code that we've written so …

Software Development visual-basic
Member Avatar for vbCNEW
0
106
Member Avatar for dhanashreegd

I am currently using a database within my program and I have no problem backing it up or restoring it when i am simply debugging. However if it is published and downloaded it cannot find the path that it needs to get to the database to copy it. My code …

Software Development vb.net
Member Avatar for KillerOfDN
0
151
Member Avatar for qeinar

if you use movefile and ofstream the ofstream file won't be made.. :s any way to solve this?

Software Development c++
Member Avatar for qeinar
0
139
Member Avatar for ymidexterous

Hi Everyone! Need help in my new Project with Visual Basic 6.. I need to send a 5 volts signal from my pc using a VB6 program to the serial port where I could place a relay... Thanks :) Dexter A.

Software Development visual-basic
Member Avatar for ymidexterous
0
673
Member Avatar for nayrb

Hello, I tried posting this earlier but i do not think it went through because my internet connection was cut off. In case it did i am sorry for the repeating it, but have not seen it on the site. Any ways. I am writing a class program and i …

Software Development c++
Member Avatar for AceofSpades19
0
138
Member Avatar for gouki2005

[CODE] int count; for(count=10;count<=1;count--) { Console.write("Hello"); } [/CODE] Why Doesnt appear nothing when I run this code?? have logic for me...

Software Development
Member Avatar for gouki2005
0
95
Member Avatar for SUBHABRATAIISC

Dear Group, I am trying the following code line: [code] def try2(n): a1=raw_input("PRINT A STRING:") a2=a1.split() a3="God Godess Heaven Sky" for x in a2: a4=a3.find(x) if a4>-1: a5=a3[a4] print a5 elif a4<0: a6=x print "It is not found" print a6 else: print "Error" s=a5+" "+a6 print s [/code] Here, if …

Software Development python
Member Avatar for woooee
0
83
Member Avatar for MikeyFTW

[ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print print "\t\t\t\tHello", name print "\t\t\tWelcome to my Mathematics Game" # Selecting the operation of Addition and Substraction followed by the difficulty print operation = str(raw_input("\t\t\tAddition (A) or Substraction (S)")) if operation == "A" or operation == "a": my_op = 'Add' difficulty = …

Software Development mathematics python
Member Avatar for woooee
0
120
Member Avatar for sftwr21

Hello everyone, I'm learning programming for the first time and my first book i bought from the book store is the new Deitel C++ 6th edition. After reading the first several chapters I got so overwhelm with the authors verbose; I went out and bought C++Primer. One thing I noticed …

Software Development c++ oop
Member Avatar for Alex Edwards
0
398
Member Avatar for k2k

hi, can anyone give me a brief example using mailx and heredoc to send an email? [CODE]#!/bin/sh mail -s "subject" target@address >>body hello all, this is supposed to be the body of the mail body[/CODE] -----------------------------------------> i think i need somethink like above code, with mailx instead of mail -s......... …

Software Development shell-scripting
Member Avatar for eggi
0
1K
Member Avatar for klactose

Hi, I am trying to write a class that uses vectors that contain another class. When I compile my code using g++ I get the following error that I don't understand: [B]In file included from cars.cpp:5: car.h:24: error: syntax error before `;' token car.h:25: error: syntax error before `;' token[/B] …

Software Development c++
Member Avatar for Ancient Dragon
0
87
Member Avatar for twgood

I have gotten my program to compile but it will not run: here is the error: init: deps-jar: Compiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication27\build\classes compile-single: run-single: java.lang.NoClassDefFoundError: javaapplication27/FGInventory2 Caused by: java.lang.ClassNotFoundException: javaapplication27.FGInventory2 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread …

Software Development java
Member Avatar for sciwizeh
0
96
Member Avatar for justinclev

well in a program i m making i need a loading screen it wont be doing anything its just a prank thing im doing but i need like it to sit and look as if its loading for half a minute can anyone help im in the dos box still …

Software Development c++
Member Avatar for 11silversurfer1
0
135
Member Avatar for vadan

Hi, Iam very much new to programming and C++ please help me I have an application that uses socket++ classes on Unix (AIX) environment I have included #include<sockinet.h> in two of my .cpp files and I have socket++ source in my temp directory when iam trying to compile my application …

Software Development c++ socket-programming unix
Member Avatar for Ancient Dragon
0
79
Member Avatar for docaholic

does anybody know how to make bubble sort work in progressively smaller sizes and determine if a list is sorted on it's first try? i've got the basic bubble sort algorithm down. i just can't figure out the rest of it (my basic bubble sort code below) [code] def bubbleSort(list1): …

Software Development algorithm python
Member Avatar for docaholic
0
141
Member Avatar for Wiki_Tiki

Hi everyone, I've written a test program, and I need help limiting the amount of characters a user enters in a char. I want it so that that maximum amount of characters is 1, and if they enter more than 1, it will display a message. Here's my code: [CODE]#include …

Software Development c++
Member Avatar for Ancient Dragon
0
129
Member Avatar for DS_sniper

Hay everyone, first time poster. I am designing a program in Visual C++ 2008 Express Edition and i need the following code It is a console app. I need code to beable to create a directory on drive C. I also need some info about how to copy the programs …

Software Development c++
Member Avatar for DS_sniper
0
93
Member Avatar for SolTec

I have a very large MS Access database with over 80 tables and 15 queries. My problem is I can get the data that's in the tables to show and load, but I can't add any new records and get them to save in the database, using the DataBase Wizard …

Software Development vb.net
Member Avatar for hepatit_h
0
76
Member Avatar for bleh1318

Hi, Being someone who is now working with C++ but initially started with Java, I am experiencing some problems seperating my classes from the main file. So I want to seperate the following simple class into it's own standalone C++ file so I can use it with multiple programs: #include …

Software Development c++ file-system
Member Avatar for ArkM
0
110
Member Avatar for deftones

Ok, I have this code as an ex.: [code] Private Sub Command1_Click() Dim L As Long, L1 L = Label1.UBound L1 = L + 1 Load Label1(L1) Label1(L1).Move Label1(L).Left + Label1(L).Width Label1(L1).Visible = True End Sub [/code] If I press the button two times, it will make two copies of …

Software Development visual-basic
Member Avatar for deftones
0
84
Member Avatar for farooqaaa

Hello all, I want to make an application just like Notepad. Write text, save them, open them and thats it. Is there any tutorial for it? Thanks

Software Development
Member Avatar for farooqaaa
0
151
Member Avatar for himsymcpp

hi friends, I want to calculate the amount of heap memory at runtime at any point in the program. how do I do this?? do we have a function for it. Thanks, himanshu k. symbian application developer

Software Development c++
Member Avatar for ArkM
0
2K
Member Avatar for deftones

Hi everyone, I have a tiny problem here but just cant handle it, since I'm new to VB6.. I want to put a code into a module which contains a lot of lines with same objects. I have an idea of relating those objects with variables, so instead of, for …

Software Development visual-basic
Member Avatar for selvaganapathy
0
105
Member Avatar for wrappingduke

Hello, Attempting to create a progress bar for awt-based application. I'm trying use a thread to do some simple animation to give the appearance that a frame (the progress bar) is incrementing. However, frame will not paint immediately. Here's the code: [CODE] import java.awt.*; /** * * @author user */ …

Software Development java
Member Avatar for wrappingduke
0
128
Member Avatar for tactfulsaint

import javax.servlet.*; import javax.servlet.http.*; these servlet package does not exist, any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws …

Software Development java
Member Avatar for ChaseVoid
0
149
Member Avatar for MikeyFTW

just wanting to know how to implement any background like a picture or something into python programs, i think i can only use .bmp but yeah thanks

Software Development python
Member Avatar for ZZucker
0
119
Member Avatar for ambarisha.kn

The following is giving output as follows String:Astro.cfg Fail If buff is Astro.cfg, it has to give success output, but it is giving fail. I want to print Success.. Please guide me regarding this pointer usage.. [code] #include<iostream> using namespace std; int main() { char arr[]="Asto.cfg"; char *buff=&arr[0]; printf("String:%s",buff); if(buff=="Asto.cfg") …

Software Development c++
Member Avatar for CoolGamer48
0
86
Member Avatar for kavithabhaskar

Hi I have 12 comboboxes for data entry. Everytime I type in some input in the form, it gets stored in the Access Database. Every time my form loads, it picks up all distinct values from the database and fills the combo box. But there are several repeated values because …

Software Development vb.net
Member Avatar for kavithabhaskar
0
88
Member Avatar for ocw

hihi.. how can i upload a folder to the FTP Server instead of uploading file by file. ??? ocw

Software Development visual-basic
Member Avatar for inf4mi5
0
126
Member Avatar for amjad277

[B]- I try here to close the XAConnection and XASession session.close() connection .close() - but the server shows me this Exception:[/B] 2008-07-18 09:30:14,093 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:162) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2196) at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2376) at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2443) at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2515) at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2664) at …

Software Development client-server java session
Member Avatar for amjad277
0
168
Member Avatar for Shihabudheen
Member Avatar for Jx_Man
0
65
Member Avatar for sangham

Friends can i return a list or a map from a function???

Software Development c++
Member Avatar for Ancient Dragon
0
75
Member Avatar for veledrom

Hi, How can add 4 rows and 6 columns into MsFlexGrid1 with Command_click event in VB6? Thanks

Software Development visual-basic
Member Avatar for veledrom
0
475
Member Avatar for simeon.andreev

The problem I need to solve is: create a multitude of Stacks with different types of data. And what makes it difficult for me is the following: In the multitude there should be all sorts of data stacks. Would it be stacks with integers, chars, objects from user defined classes …

Software Development c++
Member Avatar for simeon.andreev
0
121
Member Avatar for tactfulsaint

i need help with login mechanism, i have this application that i am trying to add a login form but i dont know how to authenticate the username and password.. i need to learn how to send the username and password to the database and when the user logs in …

Software Development java
Member Avatar for tactfulsaint
0
92
Member Avatar for sam1

Hi, i need to display a query result in textbox. can you please show me how to do this, here is the query: Dim CouponDes As String = Convert.ToString(Me.cboDescription.SelectedValue) Dim sql As String = "select Code from QueAns where Description = '" + CouponDes thanks

Software Development display vb.net
Member Avatar for sam1
0
98
Member Avatar for OmniX

I am trying to get quite a large number 0.00012354684 to X required decimal places. Using <iomanip> and setprecision() but I cant seem to get it to work. Could someone please give me a small example. Thankyou, Regards X

Software Development c++
Member Avatar for Nick Evan
0
116

The End.