43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LindseyV

I need to find the values for two columns in my table. The first one is a number and I able to find that one alone. I added the second column and it does not seem to work. It is a check box and all I need the function to …

Software Development visual-basic
Member Avatar for sudeep123
0
93
Member Avatar for bored4

I really don't have a clue on how to even start this, making a login form. So i've been searching around trying to find others doing the same thing but i haven't found much and what i have found they are using different databases. But here's what i have so …

Software Development open-source vb.net
0
80
Member Avatar for mikey123

In VS9, when i call the GetTickCount() function, it automatically converts it into the GetTickCount64() function upon compilation. This second function only works on Vista+, and thus my program errors when run on XP. I have tried adding the follow in 'targetver.h', but it did not make a difference: [code=c++]#define …

Software Development api c c# c++ windows-api
Member Avatar for mikey123
0
111
Member Avatar for Samran

Hi, I ve been given an assigenment in which I have to create a process, open a file and read it by that process, then that process the data to the another process (2nd process) through function pipe (), which capitalizes all the letters. The 2nd process then sends the …

Software Development c
Member Avatar for Samran
0
287
Member Avatar for Prabakar

Hi everyone, I am a little new to Java programming and am doing a simple project. The Problem is that I am able to connect but am not able to send any data. It is a little weird. The server gets the client's IP and the client to is connecting …

Member Avatar for Prabakar
0
99
Member Avatar for artemis_f

I know how to throw an error in Haskell however I don't know how to do it for the read function. When I do something like this: -- find the number on the second line of file/second list of strings getNo :: String->Int getNo inputBigString = read((listOfLines inputBigString) !! 1) …

Software Development
Member Avatar for artemis_f
0
132
Member Avatar for Hockeyfreak889

I recently started learning java and am trying to make a simple GUI program that takes in a location of an image and then displays the it. What would be the best way to do this??

Software Development gui image java
Member Avatar for Hockeyfreak889
0
100
Member Avatar for edek

Is it possible to use custom type converter to convert types like that: [CODE=CSharp] class MyTypeConverter: TypeConverter { //... all the 'converting' methods here } [TypeConverter(typeof(MyTypeConverter))] class Type1 {} class Type2 {} Type2 object2; //and here, is this possible? (and how to make it happen) Type1 object1 = object2; //or …

Software Development
Member Avatar for edek
0
187
Member Avatar for JainishP

Here is the code I have to compare two arrays, one that is already set and one that a user inputs data into, the problem I get is that when I try to run it I get the following error: Error 2 error C2664: 'arrayComp' : cannot convert parameter 2 …

Software Development c++ visual-studio
Member Avatar for JainishP
0
133
Member Avatar for PinoyDev

Hi Guys!Good day! Ive notice just this day that the user of the program Ive made can double execute the program. I want the program to behave that when the process(task manager) of the program is already running, and when the user run the program again, the msgbox will show …

Software Development visual-basic
Member Avatar for PinoyDev
0
116
Member Avatar for markfisher

void x_bzero(s, n) void *s; unsigned int n; { long long *ptr = (long long *) s; unsigned int d; n /= sizeof(long long); d %= sizeof(long long); while (n--) *ptr++ = 0; } Dear programmers, hi I have a question about the function above. I'm calling that function from …

Software Development c
Member Avatar for markfisher
0
119
Member Avatar for turbomen

Play it for three times and we can get the final result. My answer: var number, guess: integer; begin randomize; number:= random(3)+1; writeln('Wellcome to the game of snap.'); readlnln (guess); if guess>number then begin writeln('It''s too big! Please try again.'); end else if guess<number then begin writeln('It''s too small! Please …

Software Development pascal
Member Avatar for FlamingClaw
0
291
Member Avatar for turbomen

My question is: to create an array of 6 lotto numbers. The numbers should be between 1 and 40 and you are not allowed to put into the array any number that is already in it. Hint: You are using an array of 6 numbers so that’s a loop generate …

Software Development pascal
Member Avatar for IVR_Developer
0
277
Member Avatar for mahafuz_eee

Hello Gyes! I am very new in Using emu8086 and i need a code about this Program Problem: I have to convert a Hexa input to a Binary Output using emu8086. 1. Hexa number will be placed in AL 2.And output Binary will come in AX+ DX, Memory address will …

Software Development assembly
Member Avatar for mahafuz_eee
0
96
Member Avatar for BestJewSinceJC

I was doing a bit of reading, and according to what I read, GUIs can be set up and realized in any thread, but doing more GUI work in a normal thread (non-EDT) after a call to setVisible can be dangerous. The explanation given is as follows: [QUOTE]The example constructs …

Software Development gui java
Member Avatar for BestJewSinceJC
0
103
Member Avatar for Drifter666

Hey All, I'm having this weird issue and I'm not sure what to do. In the main function when I put one letter it'll work, once I put a string of letters it doesn't work. I've tried an assortment of stuff and I dunno what to do anymore. This is …

Software Development c++ linked-list
Member Avatar for Drifter666
0
3K
Member Avatar for jimbob90

I haven't programmed in some time and need some help here plz. First of all how are individual characters of a string are accessed? second do they start at 0 or 1? I'm probably confusing this with arrays please help me out :). This program will read in a line …

Software Development c++
Member Avatar for jimbob90
0
124
Member Avatar for MoOou

hi!! I need a help with part of my assignment. My professor asks to write a program that uses switch, and while loop statements.. this is the Exercise [COLOR="Green"] Write a program that uses switch, and while loop statements to present the following menu and perform the operations. Our program …

Software Development c++
Member Avatar for MoOou
0
243
Member Avatar for turbomen

I need to write a skeletn program for the assignment. It should have a menu system with at least 5 options. The menu keeps repeating after each procedure is called. When one of the procedures is called just return a message to the screen saying what this procedure will do: …

Software Development pascal
Member Avatar for FlamingClaw
0
160
Member Avatar for majesticmanish

I have a doubt regarding forwarding declaration. in .h file:[code] class B; class A{ void func(B* tap); } [/code] in .cpp file[code] void A::func(B* tap){ tmpo=tap->par1; } [/code] does the above code snipet correct if not whats the problem. Please be descriptive.

Software Development c++
Member Avatar for majesticmanish
0
115
Member Avatar for neutralfox

Hello guys, I am having a small problem, I want to play a small songs (preferably .wav)when a user clicks on a button. Can someone just guide me please, is there a built in function. I've tried the [code]music.play();[/code] but its not working. Thanks in advance for you answers.

Software Development java
Member Avatar for neutralfox
0
141
Member Avatar for headacheinC

Hi, there !... I just found some reference here ([url]http://www.daniweb.com/forums/thread160974.html[/url]) how to used malloc on multidimentional array. I tried it to apply on my case using Microsoft Visual C++. Basically my code is to read an array of numbers in txt file. The rows and cols of array dimension are …

Software Development c
Member Avatar for headacheinC
0
98
Member Avatar for pscha3

Hello, I just started C++ and I have this assignment to write. I started writing it but I can't seem to get this one thing and that is [U]how to create a new contact and store it in a file. [/U] I need to know if I used the structure …

Software Development c++ data-structure display email ios
Member Avatar for adam1122
0
393
Member Avatar for waldchr

I am working on a fairly large project for my chemistry teacher (NOT homework!). I thought that it would be nice if the program could search a file for a user entered string and display all lines that had that string. I have gotten it as far as I can …

Software Development c++ ios
Member Avatar for waldchr
0
79
Member Avatar for sfrider0

I have an assignment to use templates for a linked sorted list. The SortedType.h file is in our book and that is what we have to change. I understand how to do all of that and it compiles and everything. When I create a driver to test it, I just …

Software Development c++ linked-list
Member Avatar for sfrider0
0
482
Member Avatar for jmeson79

i'm writing a program that takes a string and list of files and prints all the lines that contain the string. i'm having problems with my findString method. i did some debugging and it turns out when i call strcmp on strings that are the same it returns -1 or …

Software Development c
Member Avatar for IVR_Developer
0
100
Member Avatar for Pacman21

In VB 2005, I want to be able to make a window and then have a program i already created RUN in the window INSIDE VB 2005.. So for example: I want to be able to make a Window inside VB 2005 and be able to run MS Word.. Is …

Software Development vb.net
Member Avatar for Pacman21
0
109
Member Avatar for Duki

Hey guys, Can anyone tell me why this doesn't work in VS2008? I've commented out the #includes and whatnot so you can paste it into a single .cpp file and run it. Here are my errors: [quote]1>test.obj : error LNK2028: unresolved token (0A000320) "int __cdecl eval(class Tree<struct InfoNode> &)" (?eval@@$$FYAHAAV?$Tree@UInfoNode@@@@@Z) …

Software Development c++ linked-list queue
Member Avatar for Duki
0
411
Member Avatar for srk619

hi, does anyone have or know were i can get some coding for a fractual curve any curve that is or may be a Dragon Curve. thanks

Software Development python
Member Avatar for srk619
0
98
Member Avatar for drew7py

Hi pythonians I am trying to sort a Numpy array by field, but I am having trouble setting up the fields. I think I may have the dtype wrong. I keep getting a TypeError: "expected a readable buffer object". Here is a sample of the infile: 1480 CL 9 2004 …

Software Development python
Member Avatar for drew7py
0
2K
Member Avatar for jhonnyboy

Hello everyone, I have a program that i am working on using more than one Form. The way i am going through forms is by minimizing my first form then showing the other forms. I was wondering if i start the program from a module maybe i can unload forms …

Software Development vb.net
Member Avatar for jhonnyboy
0
164
Member Avatar for clutchkiller

[code=c++] #include <wx/wx.h> class Hello : public wxApp { public: virtual bool OnInit(); }; IMPLEMENT_APP(Hello) bool Hello::OnInit() { wxFrame *frame = new wxFrame(NULL, -1, _T("Hello"), wxPoint(60, 70), wxSize(500, 600)); frame -> show(true); SetTopWindow(frame); return true; } [/code] C:\Documents and Settings\Levi\Desktop\C+++\Makefile.win [Build Error] exe: *** [Output/MingW/Project1.exe] Error 1 Why do i …

Software Development c++
Member Avatar for clutchkiller
0
86
Member Avatar for jhonnyboy

Hello everyone. I have a small problem. I have a Streamwriter writing things to a file. But when i write more than one thing, the previous item gets overwritten. I.E. Write 1111, Write 2222. 1111 gets replaced by 2222. Here is some of my code: [CODE] Dim fileOut As New …

Software Development vb.net
Member Avatar for jhonnyboy
0
118
Member Avatar for dev_kc

This is the code i am using for displaying data into the DataGrid,bt its not working,plz help Set DataGrid1.DataSource = rs If rs.EOF And rs.BOF Then MsgBox "Invalid Entry", vbOKOnly, "Stop!!" Exit Sub End If Do DataGrid1.Columns(0).Caption = rs!PS_NO DataGrid1.Columns(1).Caption = rs!Name DataGrid1.Columns(2).Caption = rs!DT_PREP DataGrid1.Columns(3).Caption = rs!ADV DataGrid1.Columns(4).Caption = …

Software Development display visual-basic
Member Avatar for KSS
0
108
Member Avatar for Dewey1040

ok so im creating a program minmax to find the minimum and maximum numbers of an array. heres my code but i get segmentation fault where do you think im going wrong? [code=C] #include <stdio.h> #include <stdlib.h> void minmax( int numberlist[], int n, int *p_min, int *p_max ); int main( …

Software Development c
Member Avatar for Dewey1040
0
201
Member Avatar for SDS20

Hi! im trying to create an object in python, but when i try to call the length of that object, it says "Mp3tag instance has no attribute '__len__'" i know i can define a method on the "object"(i dont know if im creating the object in the right way) called …

Software Development python
Member Avatar for SDS20
0
129
Member Avatar for AirmanTheGreat

Hello, I am to write a program that is capable of taking an array of doubles from the user, then calculating each numbers square, cube etc. and then displaying it to the screen. The program itself is fine, but one aspect of the program is that if a user enters …

Software Development java java-swing
Member Avatar for AirmanTheGreat
0
82
Member Avatar for manoj_582033

Hi Friends, I M Working In Vb.net, I Want that, to which form i m opening that must be top,while i don't close that,i could'nt open any other form,for this i m doing [B]topmost=true[/B](Property of form) ,& It 's working also but that is not showing the messages which i …

Software Development vb.net
0
108
Member Avatar for YingKang

After user choose ticket type(first class, business, or economy) and desired seat, for example row 2 A, the program will output the form: A B C D E F row 1 * * * * * * row 2 X * * * * * // now user chooses row …

Software Development c c# c++
Member Avatar for YingKang
0
3K
Member Avatar for AnGuRuSO

I've looked around and it turns out there isn't a C++ version of the java instanceof operator. I've also found out that using instanceof is supposed to be bad, for some reason. So let me tell you why I want to use this instanceof operator so badly. I've got a …

Software Development c c# c++
Member Avatar for AnGuRuSO
0
885
Member Avatar for scrypt3r

Is it possible to use Process.Start to open a file with a program other that the default program? For instance, like [code]Process.Start("C:\file.txt");[/code], but opening it in word instead of notepad

Software Development
Member Avatar for scrypt3r
0
85
Member Avatar for leverin4

I'm having trouble coming up with a solution to this problem. Say you have two byte arrays with numbers stored in them backwards. For example, say you have the numbers num1 = 843234 and num2 = 5430222124 stored in two byte arrays as follows [code=java]byte[] num1 = {4, 3, 2, …

Software Development java
Member Avatar for JamesCherrill
0
167
Member Avatar for chriswellings

hi im new to vb and i have just run into a mind boggleing prob i think i have tried just about everything to get this working but it just wont work my question is when calling a function in my case Charge(nights) i get a litte := after nights …

Software Development vb.net
Member Avatar for chriswellings
0
96
Member Avatar for Blkfxx

Please help, got this code below that i need to add to a program im making and for some reason i cant work out why it doesnt work. [code] program dbase1; uses Crt; const fileName = 'C:\TEMP\NAMES.TXT'; maxRecords = 100; var name : array [1..maxRecords] of String; address : array …

Software Development pascal
Member Avatar for Stib08
0
169
Member Avatar for free radical

Hello, I need to prompt the user if they want to actually execute the program or not. Like, "Do you want to run the program, y=yes and n=no" Then user enters y or n and the program either runs or quits. I was thinking that would be like: [code] char …

Software Development c++
Member Avatar for free radical
0
191
Member Avatar for c++noobie

I recently learned a little bit about sorting algorithm efficiency. I looked at the merge sort and saw how it could be implemented using a scratch array to store the result until it was finished. It then talked about in place algorithms but didn't offer one for a merge sort, …

Software Development algorithm c
Member Avatar for c++noobie
0
110
Member Avatar for wasge

Hi. I'm newbie in C language (and in programming in general) and I don't know if this is possible. Imagine you have an integer variable called "number" with a number, and when you executes a function, this function creates a variable called "audio1" and increments number (number ++; ). The …

Software Development c
Member Avatar for wasge
0
229
Member Avatar for tux4life

Can someone please take a look at my code to ensure there aren't any memory leaks or (array) overrides or anything else which could be a bad practice in my code ... Here's my code: [CODE=C++] #include <iostream> using namespace std; template <typename T> void create2DMatrix(int rows, int cols, T …

Software Development c++
Member Avatar for tux4life
0
231
Member Avatar for neutralfox

Hello, I need your help again guys. I am trying to make a pop up form name setIPInterface (when the user click on a button in the form "ClientInterface"), for a user to input an ip address in a textfield and when the user click on the button "Set", the …

Software Development java
Member Avatar for BestJewSinceJC
0
151
Member Avatar for turbomen

I have designed an age calculator which given a person's age, works out given a person's age, works out how many days they have lived for, and how many hours they have lived for. My answer: var age, month, day, hour: integer; begin writeln ('How old are you?'); readln (age); …

Software Development pascal
Member Avatar for FlamingClaw
0
190

The End.