132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for baldowz

How can i perform a drag and drop in the data grid? I am trying to make a program that can swap row to row or column to row (vice versa) contents. please help thanks in advance ^^,

Software Development vb.net
Member Avatar for baldowz
0
83
Member Avatar for mbouster

Dear all I have a function and withing I want to call a member funtion. More specifically I have a menu inplemented the code below. please note the commented line [CODE] case '1': //flightcode(); break; case '2': cout<<"Enter the Customers National Number ID"<<endl; cin>>ni; // CustArray.showCustomers(ni);//given the customers ID break; …

Software Development c++
Member Avatar for mbouster
0
2K
Member Avatar for icasta13

The results of this program giving me values that should not be the way it is, it must display the list of numbers... [ICODE]#include <iostream> #include <fstream> using namespace std; void ReadList(int Array[], int N) { ifstream data_file; data_file.open("numbers.dat"); N=10; for(int i=0; i<N; i++) { data_file >> Array[i]; cout << …

Software Development c++
Member Avatar for icasta13
0
219
Member Avatar for bhagawatshinde

Hi i am working on windows application . I am opening an math type using button want to select all and copy send keys are not working here is my code ... [code] Dim proc As New Process() With proc.StartInfo .Arguments = "file_path.bmp" .UseShellExecute = True .WindowStyle = ProcessWindowStyle.Normal .WorkingDirectory …

Software Development vb.net
Member Avatar for bhagawatshinde
0
1K
Member Avatar for swathys

hi, i have 2 text box 1) account no 2) amount I have a problem whereby i want a text box to accept 9 or 10 digit (after check digit)and then show the 2nd text box but after it accept the 1st 9 digit on the 1st text box it …

Software Development vb.net
Member Avatar for swathys
0
147
Member Avatar for PM312

I have form name FRMABC with msflexgrid Msflexgrid get populatd by data from table msaccess database on form load event of FRMABC There is one command button on FRMABC which opens another form say FRMPOR where new data is added on to database table There is subprocedure (Public) SubRefresh on …

Software Development visual-basic
Member Avatar for AndreRet
0
555
Member Avatar for SeanC

Hi all, I'm writing a simple encryption algorithm and have stumbled upon a problem relating to the file handling itself. What my program does is reads text from a file, encrypts it, and writes it to another file. That's all well and good, and it works fine - until a …

Software Development algorithm encryption file-system java
Member Avatar for SeanC
0
462
Member Avatar for novice20

Hi... I have a set of strings as below: [CODE]4:14.4-17M,5:14.4-2e13M,6:14.4-4e9M,7:14.4-8e,22:28.4-35M,23:28.4-2e30M,24:28.4-4e26M,25:28.4-8e18M,26:28.4-16e2M,27:28.4-18e,28:14.16-36M,29:14.16-2e32M,30:14.16-4e28M,31:14.16-8e20M[/CODE] I want everything after the ':' to be discarded. i.e., i just want a list of what preceeds ':' (4,5,6,7,22,.................) How can this be done?

Software Development python
Member Avatar for novice20
0
109
Member Avatar for TheDocterd

Hi Experts ;) I'm having trouble exporting data to my database in sql server 2005. Can anyone help me perhaps? The data I want is located in text files (holds personnel time management data), so what I would like to do is import that data to sql server but the …

Software Development
Member Avatar for TheDocterd
0
304
Member Avatar for a1a4a

Hello all I am working on a project that convert images to text , and load them from text , so i can save them online then load them as image . But if u could just give me a code of a project with a textbox where i write …

Software Development image vb.net visual-basic
Member Avatar for codeorder
0
394
Member Avatar for wert21

Good day! we have an exercise on how to create a list but i do not know how to do it without an algorithm. Can you help on what is the algorithm to create a linked list?

Software Development algorithm c linked-list
Member Avatar for vinayakgarg
0
86
Member Avatar for roxin_phoenix

Hi all. I'm new in .NET programming. I want to make an application using C# and Microsoft Access. I cannot found any good tutorial about C# and Access. I just want to know how to connect, insert, delete, edit, and update database. Any suggestion for a good site to learn …

Software Development c# microsoft-access
Member Avatar for roxin_phoenix
0
459
Member Avatar for jeffpro

1)What's the safest way to receive data from a php script and return to an exe? 2)If I have lets say char Hi[4] = "3E2C"; and I wanted to put this into a BYTE Bye[2]; how would I do this so that Bye[0] = 0x3E and Bye[1] = 0x2C? Thanks …

Software Development c++
Member Avatar for gerard4143
0
97
Member Avatar for kccomputers2000

I'm currently working on a small bank account register program for myself (just to help me get aclamated to vissual studios) and I was doing ok until I put in the add new database and add new account pages. I wrote code that takes the blank database copies it and …

Software Development open-source visual-basic
Member Avatar for kccomputers2000
0
245
Member Avatar for AnonymousX

[CODE="CPP"] int BattleSituation::getHPData(int player, int slot) { PokeBattle &p = this->poke(player,slot); return p.lifePoints(); } int callGetDataHP(const BattleSituation&situation, int id, int pokeslot) { return situation.getHPData(id, pokeslot); } QScriptValue ScriptEngine::getBattleData(int id, int pokeslot) { if(!loggedIn(id) || pokeslot < 1 || pokeslot > 6) { return myengine.undefinedValue(); }else{ return callGetDataHP(getHPData, id, pokeslot); } …

Software Development c++
Member Avatar for arkoenig
0
246
Member Avatar for gth759k

About a year ago, I built a simple ray tracer in Java, and now I'm trying to port it to c++, but I can't figure out how to get a couple of my classes to work together. It should be fairly strait forward, but its not working. Here is a …

Software Development c c# c++ oop
Member Avatar for gerard4143
0
3K
Member Avatar for techalerts

hi frnds, i completed mca 5th semister. now i want to do a project on java. could any one help me what are the current best projects on java?

Software Development java
Member Avatar for JKP()
0
67
Member Avatar for tomtetlaw

1. What is the purpose of using a DLL over a .lib or just a single .exe? 2. What exactly (in VC++) does __declspec(dllimport) and __declspec(dllexport) do and where would you use them? 3. What is the correct way of using and linking DLLs? 4. How do you export things …

Software Development c++
Member Avatar for tomtetlaw
0
94
Member Avatar for Janes

Hi, I have a problem, I doing a project in Java, the program I have already written. But I need to do the GUI,but I do not know how to do it. The program plots the curve. Would not it help someone with it please? I have despaired of it.Thanks

Software Development gui java
Member Avatar for mrnutty
0
133
Member Avatar for cjwenigma

8086 Assembler ...I need the code for the following problems to do a few things.....try and include inline comments so i could understand them better... that could help me out.. PLEASE!..Thanks 1. Count the number of bits, in the double word that starts at memory location DS:1234h, that are 1. …

Software Development assembly
Member Avatar for sohaibkassab
0
228
Member Avatar for ericware

Hi there, I need some solutions or hints to my problem. Currently, I am taking over an application that was developed by previous programmer. The application is a desktop based and installed in a network drive. On my pc, which is in domain A, I could run the application flawlessly. …

Software Development assembly hard-drive
Member Avatar for ericware
0
158
Member Avatar for Akill10

Ok, The only reason I'm asking this is because I want to be absolutely clear on it. In C++, if I write [CODE]int* ipSomePointer;[/CODE] [B]Is this the same thing as:[/B] [CODE]int *ipSomePointer;[/CODE] [B]or[/B] [CODE]int& iSomeRef = ...;[/CODE] [CODE]int &iSomeRef = ...;[/CODE] It does give the same result as each other …

Software Development c++
Member Avatar for Akill10
0
128
Member Avatar for thusarix

the title it's self explanatory i am using freepascal with the Lazarus IDE and this is quite a challenge for a noob like me so please the code with some explanation

Software Development ide pascal
Member Avatar for dhee.outsider
0
1K
Member Avatar for pie555

I have some code I found that takes screenshots and saves them as a bitmap image. I'm trying to get it to save the screenshots as .jpg and I don't know how to. I don't want to use a large third party library if I don't have to, I would …

Software Development c++
Member Avatar for pie555
0
2K
Member Avatar for Dragon840215

Hi Guys / Gals I am new to programming and am having some trouble with my code to update my data from a datagridview wich is bound to a datatable. all works fine until the update proccess is started. The programs updates all my rows (x amount) on the datagridview …

Software Development vb.net
Member Avatar for Dragon840215
0
865
Member Avatar for vik.singh

Hi, i need to create a simple interactive bot in python that response as yes or no for whatever is the user input.Please help.

Software Development python
Member Avatar for richieking
0
83
Member Avatar for FreezeBlink

A classic of early text-based interfaces... Any way to do it in Python? I tried getch(), but it doesn't really work (for instance, if you hit Enter to confirm a menu selection, and then it goes to a "press any key" thing with getch(), getch() will pick up the Enter …

Software Development python
Member Avatar for richieking
0
14K
Member Avatar for exekiel101

hey...i have a code here[CODE]#include<iostream> #include<fstream> using namespace std; void Avgs(int Array[],int N,int& Ave,int& AveP,int& AveN){ AveP = 0; AveN =0; for(N=0,N<10,N++;;) Ave=Ave+ Array[N]; Ave=Ave/10; for(N=0,N<10,N++;;){ if (Array[N]>= 0) AveP= AveP+Array[N]; else AveN= AveN+Array[N]; } {AveP= AveP/6; AveN= AveN/4; } void Large(int Array[],int N, int& Big);{ int Big = 0; …

Software Development c++
Member Avatar for WaltP
0
119
Member Avatar for RonaldvanMeer

Heey Guy's, I'm having trouble understanding the Threading within an application. I will try to explain the program: 2 forms 1 parent (Server) 1 child (Client) both screens run on local computer (no network is needed) The server generates a random number once I've pressed a button. The number must …

Software Development client-server multithreading
Member Avatar for Momerath
0
219
Member Avatar for toadzky

I am reading bytes from a FileStream. When I try to read 0x8000 bytes from the file (which are there) it says: "Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection." …

Software Development file-system storage
Member Avatar for Momerath
0
154
Member Avatar for kyros

hello everyone my aim is to count different words from text file and write them to output file with the number of occurences.but my code didn't work,I don't know the mistake but I think my read and write functions cause the problem.any help or suggestions? [CODE] #include<iostream> #include<string> #include<fstream> #define …

Software Development c++
Member Avatar for WaltP
0
228
Member Avatar for Krstevski

Hello friends, I have a small problem with parsing XML documents... My program works great, but if some element is not exist in the XML then I got an exception error, and now I want to ask "How to check if the element is in the XML" ? Here is …

Software Development python xml
Member Avatar for Krstevski
0
7K
Member Avatar for Coyboss

Hi all I am trying ot use Netbeans 6.9.1 to write a basic "hello world" java script, but it keeps giving me the following error; ********************************************************************** debug: Have no file for C:\Program Files\Java\jdk1.6.0_23\jre\lib\modules\jdk.boot.jar java.lang.NoClassDefFoundError: helloworld/Main Caused by: java.lang.ClassNotFoundException: helloworld.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) …

Software Development java java-netbeans
Member Avatar for ~s.o.s~
0
164
Member Avatar for kvass

Hey Everyone! I need some help with a JTable I'm working on. [CODE] TableColumn column = table.getColumnModel().getColumn(2); ... JComboBox comboBox = new JComboBox(); comboBox.addItem("A"); comboBox.addItem("B"); comboBox.addItem("C"); comboBox.addItem("D"); comboBox.addItem("E"); comboBox.addItem("F"); column.setCellEditor(new DefaultCellEditor(comboBox)); [/CODE] I know that the code above will take the column of the table at index 2 and give …

Software Development java
Member Avatar for kvass
0
129
Member Avatar for Sukhbir

Hi, Can i use realloc to deallocate the memory allocated using new operator. For example: int * i = new int (10); realloc (i, 0); Thanks in advance.

Software Development c++
Member Avatar for abhityagi85
0
2K
Member Avatar for RenanLazarotto

Hey guys! I'm planning on a private software, that I wish that have multiple pages, like a installer. It will not be a installer or anything, and I don't want to use tabs on it (it doesn't fit to what I'm thinking.) How can I do it? I've tought on …

Software Development vb.net
Member Avatar for RenanLazarotto
0
213
Member Avatar for Mr_PoP

[CODE] #include <algorithm> #include <iostream> #include <Windows.h> #include <string> #include <cctype> using namespace std; int main(void) { //declare variables char npcname; char actid; //askin the user to input npc name cout << "Please Enter Your NPC Name!"<<endl; cin >> npcname; //askin the user to input action id cout << "Please …

Software Development algorithm c++
Member Avatar for Saith
0
80
Member Avatar for Don_k

Dear guyz, I am creating a file archiver/extractor(like tar), using POSIX API system calls in C. I have done part of the archiving bit. I would like to know if any one could help me with some C source code(using above) to create [B]a file header for a file in …

Member Avatar for Don_k
0
291
Member Avatar for jlianne18

how can i merge the values of the arrays? if i get the values of each array in a file.txt and file2.txt [CODE] void ReadList() { ifstream fin; fin.open ("1.txt"); for(A=0; A<10; A++) fin >> Array[A]; fin.close(); ifstream fin2; fin2.open("2.txt"); for(B=0; B<20; B++) fin2 >> Array[B]; fin2.close(); N=A+B; cout << …

Software Development c++
Member Avatar for Saith
0
203
Member Avatar for Mr_PoP

[CODE]#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { int actid; cin >> actid; if(actid != 1,2,3,4,5,6,7,8,9,0) { cout << "you must enter an integer"; return 0; } }[/CODE] but it's fail :(

Software Development algorithm c++
Member Avatar for Mr_PoP
0
146
Member Avatar for exekiel101

can you please explain to me why htese errors happen and what is the solutions for this...pleeeaaassee..:)) Problem: Write a C++ program which will read in a list of numbers, find the average of all numbers, the average of thepositive and negative numbers, and the largest element. Your program should …

Software Development c++
Member Avatar for Fbody
0
219
Member Avatar for indr

[CODE] #include<iostream> using namespace std; int main() { int* p=new int[2]; p[0]=1; p[1]=2; cout<<p[0]<<" "<<&p[0]<<endl; cout<<p[1]<<" "<<&p[1]<<endl; cout<<endl; cout<<*p<<" "<<p<<endl; p++; cout<<*p<<" "<<p<<endl; delete [] p; } [/CODE] the output of the above program is : 1 0xe502f0 2 0xe502f4 1 0xe502f0 2 0xe502f4 aborted(core dumped) can anyone pls tell …

Software Development c++
Member Avatar for indr
0
164
Member Avatar for fab2

Hi, I have started to study the C language, and as anyone, problems are on. I am having problems with the for comand for; I do apologise if I am not using the CODE and the ICODE correctly. here an example: [code] #include<stdio.h> int main() { int i; int b; …

Software Development c
Member Avatar for fab2
0
115
Member Avatar for sobi07

hello. i have been studying C++ and i programmed the following. can any one convert this in C language please it is urgent. [code] # include <iostream> # include <iomanip> # include <windows.h> #include <conio.h> using namespace std; void pw (int,int); void swap( double&,double&); void main() { double arr1[10][10],arr2[10][10],arr3[10][10],d,d1,d2,d3,X,Y,Z,x1,x2,x3; int …

Software Development c matrix-multiplication
Member Avatar for sobi07
0
111
Member Avatar for Mr_PoP

[CODE] #include <iostream> #include <string> using namespace std; int main(void) { string test; test="this is a test" test.replace(' ','~')// replace the space with ~ cout << test; return 0; } [/CODE] but it's not working can anyone help me?

Software Development c++
Member Avatar for Mr_PoP
0
165
Member Avatar for Akill10

Ok, I am sort of new to C++, and I just came across something that I don't fully understand. [CODE]int main(){ int iX=5; { int iY=30; std::cout<<iY<<std::endl; } std::cout<<iX<<std::endl; return 0; }[/CODE] What does it mean when I make a code block with no if,else etc..? Does it just make …

Software Development c++
Member Avatar for Akill10
0
136
Member Avatar for StickyTape

I've been using Visual Studio 2010 Ultimate to learn C++ and have created a project file. Within that project file are 2 .cpp files. I use one to refresh my memory of what I've learned and the other to enhance my knowledge of C++. The problem is that whenever I …

Software Development c++ visual-studio
Member Avatar for myk45
0
203
Member Avatar for christos312

Hello to everyone and happy new year... I have 3 JRadioButtons in my JFrame [CODE]private JRadioButton one = new JRadioButton("one "); private JRadioButton two = new JRadioButton("two "); private JRadioButton three = new JRadioButton("three ");[/CODE] And I Have add them to a group [CODE]private ButtonGroup Group = new ButtonGroup();[/CODE] [CODE]Group …

Software Development java
Member Avatar for christos312
0
603
Member Avatar for lse123

A jar or exe file [Java App], may contain images etc files inside one file the file.jar or file.exe? In NetBeans and Eclipse, how do this one file [jar] or an file.exe containing All files of the IDE's wanted Project?

Software Development file-system ide java java-netbeans
Member Avatar for ~s.o.s~
0
296
Member Avatar for JakeStanely

Hey everyone and happy new year. I'm a java beginner and I am doing my first program, a dvd rental system. I've got 4 classes with the following variables: the main class the dvd class - dvdID, title, rating, producer the cleint class - cleintID, name, surname, address the rentals …

Software Development java seo
Member Avatar for JakeStanely
0
308

The End.