132,722 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shaileqs90

Its about visual basic. I am making an application for loan system.. I don't know whats the code. It goes like this, the situation is: * Count how many times does the CO-Maker grant already a loan. Need help for this.

Software Development visual-basic
Member Avatar for James cuck
0
328
Member Avatar for Ryujin89

My instructor wants us to create a program that relates to some event we have recently gone through and I need help to get the rest of the code to work. Scenario I passed by the instructor is : I just got a car which my grandfather paid in advance …

Software Development c++ ios visual-studio
Member Avatar for James cuck
0
8K
Member Avatar for ss_hat

I'm running into a roadblock on my program and the deadline is Tuesday(9/14). I'm at work all day and I'm hoping the interwebs can help me while I'm away (i can check @ lunch). I'm very new to Java and I'm still trying to digest the terminology so any clear …

Software Development java java-swing
Member Avatar for James cuck
0
226
Member Avatar for kch1973

I am trying to get an array sorted but I can't figure out how to correctly write the "if" statement in the sort method. I have been given the task of sorting the arrays by product name. I am not done with the program, but what I do have so …

Software Development java printer
Member Avatar for tong1
0
76
Member Avatar for sudoku43

can anyone teach me how to set the size of console window?

Software Development c++
Member Avatar for sudoku43
0
23K
Member Avatar for brettbed

I think I'm having trouble with using parameters correctly in the JUnit assert in my Test method. My assertion fails even though I'm pretty sure my logic checks out. How do I construct the correct test with assert? Any pointers appreciated :) [CODE]public String season(int month, boolean inNorthernHemisphere) { // …

Software Development java
Member Avatar for jon.kiparsky
0
324
Member Avatar for fuser

Hey folks, recently I wrote a small application in java where it generates ip addresses in a 192.168.x.x block, and then proceeds to ping them to see if the address is available or not. The main issue with it right now is that it's extremely slow when I tested it …

Software Development java multithreading
Member Avatar for fuser
0
133
Member Avatar for Rishikeshan

Mingw shows [code] ----- CurlT ( MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 ) curl.cpp C:\MyApps\CurlT\curl.cpp: In function 'void* getfile(std::string, char*)': C:\MyApps\CurlT\curl.cpp:39: warning: cannot pass objects of non-POD type 'struct std::string' through '...'; call will abort at runtime C:\MyApps\CurlT\curl.cpp: In function 'int main()': C:\MyApps\CurlT\curl.cpp:57: warning: deprecated conversion from string constant to …

Software Development c c# c++ file-stream
Member Avatar for vijayan121
0
216
Member Avatar for JayNak

Hi, I've been developing some code that parses output reports and re-reports on information that is of interest. I utilize strtok quite heavily in this program and I have run into the situation where my final strtok call may or may not return some info. Depending on if there is …

Software Development c queue
Member Avatar for Ancient Dragon
0
206
Member Avatar for bmos31

Ok, so I'm writing a program to convert decimal into binary. It all works with the exception that my binary shows up in reverse order and I'm having trouble with reversing the array of chars in my intToBinaryString() function. Any tips on how to get this started? [CODE]#include<iostream> #include<cstring> using …

Software Development algorithm c++
Member Avatar for prvnkmr449
0
180
Member Avatar for koolman123

Hey, at my camp, I made a random 3D maze gen off of OpenGL So, I downloaded OpenGL 3.7, and I placed the glut.dll in the right place, the header file in the right place, the lib file in the right place etc. But my conflict is that I used …

Software Development c++ opengl
Member Avatar for daviddoria
0
124
Member Avatar for xLeonex

Hello. im a student working in C++ and im fairly new to both C++ and i guess this community.(i was reccomended to come here if i had problems) im just doing some simple exercises or s it seemed. here is the question. Write a C++ program with a case structure. …

Software Development c++
Member Avatar for XMasterrrr
0
485
Member Avatar for xLeonex

hi ive developed a code to sort 3 numbers and pick out the middle one. the numbers are distinct. #include<iostream> using namespace std; int main( ) { int X, Y, Z; cout<<"please 1st number "; cin>>X; cout<<"please 2nd number "; cin>>Y; cout<<"please 3rd number "; cin>>Z; if (Z>X>Y) (Y>X>Z) cout<<"this …

Software Development c++
Member Avatar for xLeonex
0
118
Member Avatar for onorinbejasus

I am porting software from a VS compiled program to my Mac. In this code, __m128's are used ALOT. An example of this error would be: Projector.cpp:1014: error: request for member ‘m128_f32’ in ‘v4Max.Vector4::fVector[2]’, which is of non-class type ‘float __vector__’ I have included both xmmintrin.h and emmintrin.h, but the …

Software Development c++ mac-software
Member Avatar for onorinbejasus
0
182
Member Avatar for sphynx_25

Hey there everyone, I'm working in windows, writing a python program which runs various programs through command line and pipes the outputs of one into the next program. All the programs accept all instructions in one line then run. I've been using the os.system command to run these. One program …

Software Development python
Member Avatar for sphynx_25
0
238
Member Avatar for JLYK

So I created this nice PushButton that has a popmenu. Unlike QToolButton, it does not allow me to hide()/show() the button which I find frustrating. I want to be able to hide/destroy this button while the application is in a certain mode and then show/create it in another. How do …

Software Development python
Member Avatar for Beat_Slayer
0
203
Member Avatar for serban

Hello I have seen the following method syntax and I am trying to understand how this works/or doesn't: public class MyClass { public MyClass(); public MyClass(string param); } There is no implementation of the methods (constructors) and class is not declared virtual either... Is this something new in C# 3.0 …

Software Development
Member Avatar for soopahman
0
589
Member Avatar for koolman123

Hey, im new to the forum. I can code simple programs easily, like I coded a random maze generator with some help. But I was wondering if someone could teach me how to make the source for the practice and explain to me why you coded it that way. Write …

Software Development c++
Member Avatar for mrnutty
0
101
Member Avatar for jwebbo

Hi everyone,i am seeking your help. I am trying to program the PIC 16f877 microcontroller to accept multiple analog inputs and give readouts on the 7-seg display. the conversion is of a 10 bit resolution. my problems are that i cannot seem to get the pic to correctly display the …

Software Development assembly
Member Avatar for 3ak
0
118
Member Avatar for rahul8590

[CODE] #include <stdio.h> #include <unistd.h> int main() { while(1) { fprintf(stdout,"hello-out"); fprintf(stderr,"hello-err"); sleep(1); } return 0; } [/CODE] why is that i am getting heelo-err instead of hello-out

Software Development c
Member Avatar for Narue
0
141
Member Avatar for DaveTran

In C++ the ternary operator below will return 1. [CODE] true ? 0 : 1 [/CODE] In C# it will return 0. If the following is written in C++ [CODE] int x = ((a < b) ? 1 : ((a > b) ? -1 : 0)); [/CODE] what the heck …

Software Development
Member Avatar for DaveTran
0
135
Member Avatar for snorflack

I cant get this program to work I can get it to read in the file and enter the winning numbers but it just ends after it. the program is supposed to take in a file (input.txt) and make it into a list of structs with peoples names and lotto …

Software Development c
Member Avatar for snorflack
0
102
Member Avatar for kandyhyatt

Help: This is my first time on this site , and I have this assignment i been working on and i'm lost someone please help Here is the problem : 1.) A government research lab has concluded that certain chemicals commonly used in foods will cause death in laboratory mice. …

Software Development java
Member Avatar for Katana24
0
195
Member Avatar for amrita111

I am planning to develop a graphical project for my final year..Which tech should i choose? Microsoft Silverlight,Macromedia flash,Macromedia Shockwave,ajax etc, which of these is simple,scalable and platform independent?which combination of frontend and backend will be the best?

Software Development flash java
Member Avatar for Phaelax
0
101
Member Avatar for jc1forall

First of all, forgive my lack of knowledge, I am fairly new to programming but I have a high level of interest in the subject. We were working on a bit of code in class yesterday and we even stumped our teacher, who then took most of the class trying …

Software Development
Member Avatar for ddanbe
0
241
Member Avatar for Krstevski

Hello friends, I have a small problem, I need to check if the database connection is still open. Here is my code... [CODE=csharp] try { // new connection // connection open // other code // close the connection } catch (Exception ex) { // handling exception } finally { // …

Software Development
Member Avatar for Krstevski
0
6K
Member Avatar for PixelExchange

Does anyone know how one would go about creating a "custom" file type? (Such as Macromedia Flash's .swf.. or quicktime's .mov) Also.. once I have created a custom file type... how would I make sure that my file is always associated with a given icon (that I will create).. and …

Software Development c++ file-system flash
Member Avatar for PixelExchange
0
167
Member Avatar for macrogeek

Im a beginner level programmer in C and want to know how can I use malloc or calloc functions for dynamic memory allocation without typecasting...?

Software Development c
Member Avatar for manojwali
0
215
Member Avatar for medopunsher

Hello Everyone , I'am new to OOP and QT and i'm trying to write a simple chat program (client , server) with winsockets. I Have an error which i don't seem to understand : this is my code so far : [CODE] #include "pmessenger.h" #include "ui_pmessenger.h" #include <QMessageBox> #include <winsock2.h> …

Software Development c++ client-server oop qt
Member Avatar for Stefano Mtangoo
0
115
Member Avatar for s0ur

HI All, My name is s0ur and I am not a programmer. Isn't that the first step to recovery? I am hoping that the experts can help a noob. I am trying to write a python script that will run on windows login. it should do the following: 1) ping …

Software Development microsoft python
Member Avatar for Beat_Slayer
0
301
Member Avatar for judithSampathwa

hey i have a datagridview and i am validating 3 columns, the user has to enter data in to those 3 columns, [CODE] else if ((!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[0].Value.ToString())) && (!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[1].Value.ToString())) && (!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[2].Value.ToString()))) [/CODE] when the user hasn't entered any value in one of this cells there …

Software Development vb.net
Member Avatar for Nyight
0
219
Member Avatar for SuzyDavis

Hi there, I am a Microsoft Word developer and I sell Microsoft Office solutions, to companies. I am beginning to be concerned that my solutions are being copied - which is fairly easy. I am hoping someone can give me some advice about the best way to do this. I …

Software Development asp.net vb.net visual-basic
Member Avatar for the_carpenter
0
157
Member Avatar for Sinaru

I have two classes and one of them is inherited from the other class. Class Person - used to store first name and last name of a person. The data members are protected. Class Candidate - used to store votes of an election, and this is inherited from Person class …

Software Development c++
Member Avatar for arkoenig
0
169
Member Avatar for shinypenguin

I'm using Visual Basic Express 2008 to create an interface with a order database in MS Access 2007 (.accdb file). Everything is fully functional except updating the "Inventory" table is very slow. Updating around 2200 items takes almost 2 minutes and the window will appear as "not responding" for the …

Software Development dataset user-interface vb.net visual-basic
Member Avatar for lolafuertes
0
131
Member Avatar for serkansendur

I wanted to share my little xml transformer tool that gets xml and xsl input visually and outputs the transformation in a third textbox again visually. i will attach the project so anyone can use it on the fly. i kind of combined the two code snippets from the following …

Software Development file-stream xml
Member Avatar for ronaldeddy
0
261
Member Avatar for Sinaru

Take a look at this program. [CODE] #include <iostream> using namespace std; struct Node { int data; Node* link; Node() { data = 0; link = NULL; } }; void destroy(Node* &p) { Node* pre; while(p !=NULL) { pre = p; p = p->link; delete pre; // When running for …

Software Development c++ ide motherboards-cpu-ram ubuntu
Member Avatar for manojwali
0
592
Member Avatar for sinfultom

Hi there, I'm new to the forum so please be kind :) I've created a class called node that has a standard constructor and an overload that uses an int as an argument. [code=c]class node { public: node(void); node(int inputs); ... };[/code] I can create an dynamic array of nodes …

Software Development c++
Member Avatar for Duki
0
189
Member Avatar for DaveTran

Here's a simple integer array. [CODE] int[] intArray = new int[5]; [/CODE] Now I make the first element equal to a variable. [CODE] a = 10; intArray[0] = a; [/CODE] How can I change the variable so the array automatically updates without using referring to the array? E.g. [CODE] a …

Software Development
Member Avatar for Momerath
0
165
Member Avatar for leverin4

Is it possible to check which version of Excel a user's computer will open while in a VB6 application? Some users will be using Excel 2003 and some will be using Excel 2007 and, in theory, a single command button will open one of two excel sheets based on which …

Software Development gui microsoft-office visual-basic
Member Avatar for AndreRet
0
519
Member Avatar for prathoven

I have a problem with understanding a deserialization code....Can anyone help with this one: public clsSerial DeserializeFriend() //[U][B]why clsSerial is done here ??[/B][/U] { clsSerial temp = new clsSerial(); try { BinaryFormatter format = new BinaryFormatter(); FileStream myStream = new FileStream(“Test.bin”, FileMode.Open); temp = (clsSerial)format.Deserialize(myStream);// [B][U]and why (clsSerial)is added here[/U][/B] …

Software Development
Member Avatar for prathoven
0
94
Member Avatar for Deeplop

Hi all.... How can I create .exe format in python??????? I mean how to change .py to .exe ???? please reply as fast as possible

Software Development python
Member Avatar for snippsat
0
193
Member Avatar for krille_x

Hi Im rather new to this but I want to ask how to re-define the array argv[] after the program main(int argc, char *argv[]) have been called? example main(int argc, char *argv[]) //assume the program is called by: program //this would give argc=1 and argv[0]= program //but know I want …

Software Development c
Member Avatar for Narue
0
170
Member Avatar for illuminatus89

Through my knowledge, I know that by declaring a variable as 'const', its stored in read only memory and at the same time I found that a const variable's value can be changed using pointers. How is it possible?

Software Development c
Member Avatar for manojwali
0
104
Member Avatar for Jamesbch

Hello everyone, I've found out that the [I]friend[/I] keyword can be used with a class or a function/method but I'm wondering if it's possible to do something like this : [CODE=C++]class A; class B; class A { private: friend class B void AddEl(void *el); friend class B void RemEl(void *el); …

Software Development c++ oop
Member Avatar for Fbody
0
122
Member Avatar for PixelExchange

I realize that there are plenty of tutorials on how to create a "Custom Win32 Title Bar." The problem is.. none of the tutorials I have found so far.. discusses how a person would be able to "drag" the replaced title bar.. as one would drag the "normal" title bar. …

Software Development c++
Member Avatar for PixelExchange
0
2K
Member Avatar for kevcpu

I am currently reading data from a webpage form, using the data to generate xml, using xslt to translate the data into an html format and emailing the html. Is there a way to transform the data into a pdf format and send this as a file instead? I have …

Software Development pdf xml
Member Avatar for iceandrews
0
117
Member Avatar for Lord_Migit

hey folks, i have a problem which seems to be reasonably simple but i havnt managed to figure it out yet. Iv read alot of the other threads on this but i still havnt found one that iv both understood and solved my problem. So here goes... Its concerning returning …

Software Development c++
Member Avatar for Lord_Migit
0
136
Member Avatar for lytnus

I have a design question which I have not been able to find a satisfactory answer for by searching. Essentially, I have a class - Base - that contains a vector of pointers to another class - Node. However, I would like to be able extend both the Base and …

Software Development c++ oop web-design
Member Avatar for lytnus
0
292
Member Avatar for TheComputerGuy

The code will work if compiled in terminal. It does not work if I use Eclipse, it simply gives me an Array Out of bounds. It mentions the ARGS[0] as the out of bounds part. Any suggestions? [CODE]/* * * Test Case 1: 1. James 2. David 3. Melanie 4. …

Software Development java
Member Avatar for NormR1
0
108
Member Avatar for udtohan_noriel

Guys, could someone help me to make a program that will display this not using if-else statement. I want to learn how to make it using for loop statement and any statement that will make this program short. I need 1 Program using for loop and another program but not …

Software Development c++
Member Avatar for Duki
0
318

The End.