132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for murtazamzk

Here is an amazing program to create a tic-tac-toe game in vb.net.First of all in design view place 9 buttons.Then apply the code below. Public Class Form1 Dim test As Boolean Dim c1 As Boolean Private Sub b1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b1.Click, b2.Click, b3.Click, b4.Click, …

Software Development vb.net
0
98
Member Avatar for lochnessmonster

[CODE] void DllInjection::injectCode() // should i turn all this into throws as well :/? { if ((processHandle = OpenProcess( PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ,0,processID)) == NULL) { _InjectionStatus = CREATEHANDLE_ERROR; return; } if ((memoryAddress = VirtualAllocEx(processHandle,NULL,wcslen(dllName.c_str()),MEM_COMMIT,PAGE_READWRITE)) == NULL) // check third argument, it wouldn't let me …

Software Development c++
Member Avatar for thelamb
0
106
Member Avatar for callyvan

I am hurting here, been tasked with trying to add a bunch of new content to this script, but since it was written 10 years ago and continuously patched up badly since then, I have no clue what does what anymore..can someone comment in text that will at least explain …

Software Development developer-tools finance perl unix
Member Avatar for d5e5
0
345
Member Avatar for gunbuster363

python.org tell people to forget about python 2 and head into python 3, but many 3rd party module do not support python 3 at all. For example, python 3 only ship with a tkinter gui module which does not have great reputation. If I am to use python 3, I …

Software Development gui python tkinter
Member Avatar for richieking
0
223
Member Avatar for micke

Hello, I have been reading tutorials on c++ for a while, and made a few simple applications. Now I've started looking at win32, and while all the tutorials I've looked at are quite good, they miss out on some simple points. I know how to make a window, a menu, …

Software Development c++ windows-api
Member Avatar for hiddepolen
0
215
Member Avatar for Mollier

Hi, this is my first post here at Daniweb. Seems like an active and friendly environment. I have very limited experience with programming in general, and even more so with GUI programming. As the title suggests, I want to stop a while loop by the use of buttons. When I …

Software Development gui python
Member Avatar for richieking
0
3K
Member Avatar for hazeeel

Hey guys! Much help needed here! I am a student doing a protein structure alignment algorithm which is my final year project, using various forms of translation, rotation & computing the RMSD. From line 164: This is my loop calculation, basically it computes the Root Mean Square Deviation (RMSD) of …

Software Development algorithm java
Member Avatar for hazeeel
0
178
Member Avatar for Pokenerd

I know this is strange, but i have a simple syntax question. Right now I'm working with a thread in the following format. The use of "setDaemon" in the run function does not work, as you apparently must set Daemon before you start the thread. [ICODE]new Thread() { @Override public …

Software Development java
Member Avatar for Pokenerd
0
143
Member Avatar for Misklahr

Hi I'm new to java, and I'm trying to make a very basic game. The problem is that i have 3 classes that cooperates and I can't get one of the values from class "Board.java" to "gp1.java". In Board i have a button that "rolls the dice" x2 and adds …

Software Development java
Member Avatar for Misklahr
0
359
Member Avatar for Anthony Cameron

Hello, I need help to fix a perl script that obtains a DNA file with a FASTA sequence and randomly shuffle the sequence while maintaining the overall distribution of bases. I must also randomly shuffle the sequence 10-20 times. Then measure the similarity between the shuffled sequence versus the original …

Software Development perl
Member Avatar for d5e5
0
1K
Member Avatar for ceyesuma

Hello I am not sure what is getting serialized. I would like to serialize a JInternalFrame. So what do I send my SaveFrame.java. because it puts a file "null.dat" in the folder. I sent the frame got null.dat sent something I thought was the class of the frame (as shown …

Software Development java java-swing
Member Avatar for ceyesuma
0
146
Member Avatar for dhanh90

I have the problem like that ". Write a short Java program that outputs all possible strings formed by using the character ‘c’, ‘a’,’r’, ‘b’, ‘o’ , and ‘n’ exactly one."..and the code here: [CODE]public class StringPermutation { //---------------------------------------------------------------------------- private static char source[] = {'c', 'a', 'r', 'b', 'o', 'n'}; …

Software Development java
Member Avatar for apines
0
430
Member Avatar for hoong

The runtime error -2147217396 (8004100c) keep occurs once i attempt to run this code to get the received signal strength of my WLAN card from WMI by using VB6 in Windows Vista. So is there any solution to solve this automation error ? Is VB6 cant access to certain WMI …

Software Development visual-basic windows-vista
Member Avatar for hoong
0
1K
Member Avatar for alviss_88

Hi! i trying to take the same value from 2 arrays and then count how many time of it. However, when i compile, it run ok. but it did not print out the value of coutting. I did not know why, i had tried several times to fixing. please help …

Software Development c
Member Avatar for Perry31
0
308
Member Avatar for jengels

I have an assignment to write a java class. What I need to do is write a class and a driver. I need to write a class that stores instance data as members names. Golfmember(name : String) then in the driver I would have something like: golfer1 = new Golfmember(); …

Software Development display java
Member Avatar for apines
0
167
Member Avatar for amandureja

Hey guys! This is my very first post on this website. Anyways, I just started learning Python, and am reading an ebook, called "A Byte Of Python". So at the end, it says to create an address book application. In my application, it basically just creates a text file with …

Software Development oop python
Member Avatar for richieking
0
2K
Member Avatar for jasleen12345

pls someone give me a c++ program to insert and delete an element from a linked list...i tried a lot but i am stuck..

Software Development c++ linked-list
Member Avatar for alaa sam
0
101
Member Avatar for elsiekins

theoretically - when using unint16_t (unsigned integer of size 16) I have two arrays of these unsigned int and i am going to use [CODE]memcmp[/CODE] for example: [CODE] uint16_t a[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10}; uint16_t b[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10}; if (memcmp(a,b , sizeof(uint16_t) * 16) == 0) { return true; }else { return …

Software Development c++
Member Avatar for Ancient Dragon
0
125
Member Avatar for burcin erek

there are two scripts, first, square.h second square.cpp this test program is trying to calculate square and cube of the given number but i have a problem with cube function definition. [CODE] #include <iostream> #include <conio.h> using namespace std; class square { int x; public: void set_values (int); int erek …

Software Development c++
Member Avatar for alaa sam
0
138
Member Avatar for medamineb

hi everyone, i'm trying to do a program in c, GCC UNIX and i have this error: warning: passing argument 2 of `write` makes pointer from integer without a cast i try to use TUBE, communication between process and i use `write(fd[1],2,1);` but it gives this error please i nead …

Software Development c unix
Member Avatar for medamineb
0
1K
Member Avatar for sariberri

This might be a stupid question but I can't figure out how to set my array equal to my method which returns an array. This is what I did and there's an error. :/ [CODE]array=array.resize();[/CODE] Thanks guys

Software Development java
Member Avatar for apines
0
116
Member Avatar for neosonic

I put one smaller picture box inside the bigger picturebox. The annoying thing is, I cannot have a good picture, because the my smaller picture is in rectangle shape, while the smaller picture box is in square. So there is a residual space in the smaller picture box that I …

Software Development visual-basic
Member Avatar for AndreRet
0
285
Member Avatar for dhanh90

I have the code here but still can not figure out why it can not work why I enter X=2, and N>= 31.... [CODE].data str: .asciiz " Inter X:" str1: .asciiz " Inter N:" str2: .asciiz " X to the power of N is : " .text main: la $a0,str …

Software Development assembly
Member Avatar for dhanh90
0
7K
Member Avatar for jlininger

Hi I am new to the programming world . I took a certification course for my MCTS .net I passed one of two certs for MS. But even though i undersatnd syntax i don't get coding in its entirity. I don't want to see that my time and money went …

Software Development c# visual-studio
Member Avatar for Diamonddrake
0
101
Member Avatar for tunde011

Hello all, I am hoping you point me in the right path here. How do I open a workbook when a value in the listbox is clicked? Thankyou

Software Development visual-basic
Member Avatar for AndreRet
0
209
Member Avatar for appooti

[code]import java.io.*; import java.io.File; import java.net.*; import java.net.UnknownHostException; import java.net.InetAddress; public class Rfc{ protected String ip; protected int host; public BufferedReader reader; protected PrintWriter writer; public static void main(String[] args){ try{InetAddress address = InetAddress.getLocalHost(); String ip = address.getHostAddress(); System.out.println(ip); }catch(Exception e){ System.out.println("error2"+e); } Rfc rfc =new Rfc(ip,80); rfc.setUpConnection(); String s …

Software Development java
Member Avatar for apines
0
136
Member Avatar for LianaN

Hi! I want to create a stopwatch that will counter seconds starting from 0. This code worked in case of a real time counter (using Calendar). However, now the counter is fixed on 0. Does anybody know what could cause an error? Thanks! [CODE] timer = new javax.swing.Timer(1000, new ActionListener() …

Software Development java java-swing
Member Avatar for apines
0
104
Member Avatar for gee_azizi

Hi, in my VB6 app, there are ADMIN and USER type that can log in. Is it possible that ADMIN can monitor USER activities like when they delete the data, who had log in into the app and else? Thank you

Software Development visual-basic
Member Avatar for AndreRet
0
256
Member Avatar for nagatron

I would like to know to remove spaces from start and end of a string without removing the middle space. Ex. _ _String _ Sample _ _ = String sample I have a code: [CODE]Text1.text = Replace(Text1, " ", "")[/CODE] The code removes all the space in a text. Ex. …

Software Development visual-basic
Member Avatar for AndreRet
0
169
Member Avatar for Naveed_786

I am using this method to take print of data peresent in textboxes but it prints on top left corner i want to take print in a sequence and distance as it apears on form also want to increase font size waht should i do please help me. [CODE]Printer.Print txtstudentid.Text …

Software Development printer visual-basic
Member Avatar for AndreRet
0
283
Member Avatar for SkyVValker

I am using the code below to update the fields in a table.bt it update only first recorde ..where m i doin wrong plzz. help me..! [CODE] StChk.Open "SELECT * From SPINF WHERE STATUS='Active'", Con, adOpenDynamic, adLockOptimistic FeeTrans.Open "select * from TBLFEE ORDER BY VOUCHERNO", Con, adOpenDynamic, adLockOptimistic Do While …

Software Development visual-basic
Member Avatar for AndreRet
0
90
Member Avatar for Dean_Grobler

Hi there, In my little code snipet below I am trying to convert an arraylist to an array of type contact. Obviously it's expecting an arraylist of type contact to convert it to an array of type contact. But it's picking up the arraylist as type object for some reason. …

Software Development java
Member Avatar for Dean_Grobler
0
140
Member Avatar for Tiny_trixer

I was wondering. Is there a way to write something from one method in to a result file instead of outputting to screen? To describe a little better, in pseudocode: [CODE] #include <iostream> #include <fstream> using namespace std; class Inputoutput { private: ifstream fileOne; ofstream fileTwo; int i; //More variables …

Software Development c++ file-system ios
Member Avatar for drkybelk
0
139
Member Avatar for keeda

Hi, I have to read a file up to a fixed size, how can I do that? Any help is appreciated. example: I have a huge text file and I want to read 1000 bits at a time. How can I achieve this? Thanks,

Software Development c++
Member Avatar for chiwawa10
0
80
Member Avatar for qvyhnl

Prblem: Implement a base class Account and derived classes Savings and Checking. In the base class,supply member functions deposit(), withdraw(), and print() which prints out the ownerand balance. Create constructors that take a string (for the owner's name) and a double for the initialbalance. All methods should return void. I …

Software Development c++
Member Avatar for chiwawa10
0
220
Member Avatar for Jaily

I've written a program that outputs text from a file as hex. And this works like a charm. But in the example in the assignment the output starts with: 000000 ...... 000010 ...... 000020 ...... And that part I haven't figured out how to do! Any pointers? Any links/tutorials I …

Software Development c++
Member Avatar for Jaily
0
100
Member Avatar for malayasthana

in the program i am creating a file with specific path.. file name is to be entered by user and then we have to create a file but the code is giving the error written after the code. void f_Createfile() { string dirpath; // stores final name for file with …

Software Development c++ ios visual-studio
Member Avatar for jonsca
0
132
Member Avatar for krip_101

I am getting an array out of index error 26 pls I really need help. [code]import java.util.*; import java.util.Random; import java.lang.*; public class testing1 { public static void main(String[] args) { String pass = new String("ENTER THE HAMLET HAM TO BE OR NOT TO BE THAT IS THE QUESTION WHETHER …

Software Development java
Member Avatar for JamesCherrill
0
103
Member Avatar for Bonesawed

Hi All. Im in the process of writing a basic payroll program in Java. It is for some school work and I am really struggling with it. I have been working with it over the last 3 weeks and have not accomplished much. Below is what I have done so …

Software Development java java-swing
Member Avatar for apines
0
231
Member Avatar for MarleyM

Hey DW. I'm trying to figure out a way so my TCP Server and client can seamlessly send messages back and forth without having to take turns sending the message. Python isn't my language of choice but it's the one i have to use for this assessment. I'm also using …

Software Development client-server python
Member Avatar for convoluted
0
178
Member Avatar for gunbuster363

I've learn python and I won't say that I know it all, but I won't see anywhere except google will use python. New programming language like python and ruby, do they have space to grow?

Software Development python ruby
Member Avatar for convoluted
0
309
Member Avatar for wvuengr33

The program I am writing is supposed to read in a txt file and then align the txt depending on the number of characters per line that the user has specified. Since there aren't any limitations to the length of the text it has to be represented using a dynamic …

Software Development c data-structure linked-list
Member Avatar for griswolf
0
336
Member Avatar for Gribouillis

This snippet defines a function to merge sorted iterables containing similar items into a single iterable. Items are supposed to be sorted in ascending order. Only one item per iterable is stored at a time.

Software Development python
Member Avatar for Gribouillis
0
599
Member Avatar for Eric Cute

Hi guyz. I know this is a simple one but Im a bit confused in doing this. Basically, I want to get the Screen Resoultion of the client machine using my JSP. I have this code in my Bean. [CODE] Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); return screenSize.getWidth(); [/CODE] Problem is it …

Software Development display java java-jsp
Member Avatar for Eric Cute
0
307
Member Avatar for john410

question states for me to have the prog read #'s inputed from the user in the range of 0 to 50 inclusive, count how many times each # was inputed, then print all #'s imputed and how may times they were. this is what I have so far.... [code]import java.util.Scanner; …

Software Development apple java
Member Avatar for jon.kiparsky
0
116
Member Avatar for J.Killa

I'm doing a BankAccount class and in the constructor I need to validate if the string in which the account number is written, is all numeric. Any ideas on how I can accomplish this? Also, it must be of 4 digits...is there some method of the String class that can …

Software Development java
Member Avatar for J.Killa
0
251
Member Avatar for kezkez

Hello, I am trying to return the union of two ArraySet Strings as a third; however, the compiler is complaining: found : jss2.SetADT<java.lang.String> required: jss2.ArraySet<java.lang.String> union = one.union(two); I was thinking I could pass an ArraySet<String> as the parameter but unfortunetly I am stuck here. Any suggestions on how to …

Software Development java
Member Avatar for kezkez
0
104
Member Avatar for Yutxz

Hello! I'm working off of a problem in my "How To Think Like A Computer Scientist" textbook. The exercise in the book is having me work with a deck of cards. I receive two errors in my current code. The first is that every method after Class Card {...} says …

Software Development api java
Member Avatar for kramerd
0
122
Member Avatar for doggie123

I need some help on what I'm working on right now I'm not asking for an answer maybe some help or a push in the right direction. Here is what I'm asked to do "Convert your program to run from an input file instead of console input." I'm suppose to …

Software Development c++
Member Avatar for doggie123
0
96
Member Avatar for Rally VW

The code I'm writing reads in something like this from a file: 95 34 89 100 25 100 84 62 78 98 Mary Elizabeth Smith And outputs this to the same filename with a different extension: 88.25 Mary Elizabeth Smith I wrote a test program to test the calculation methods …

Software Development file-system java user-interface
Member Avatar for Eric Cute
0
201

The End.