132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Wheater

Beginning C# programmer here. I have had lots of problems finding online a tutorial or help-me thread where someone explains how to create the specific type of user profile database I need. I need to use SQL and C#.NET to create a profile/role for each specific user on my website. …

Software Development asp.net
Member Avatar for Mike Askew
0
143
Member Avatar for splitter66

I want to disable shortcuts in a menu. This dont work. Even though I dont have any shortcutkeys it automatically chooses the first letter in every menuitem. This I dont want. I found very little about this on the net. Below is a link where they finally concludes it with …

Software Development vb.net
Member Avatar for splitter66
0
199
Member Avatar for adarshcu

Hi, I'm not quite sure if there is a thread for Eclipse related query separately. But since this is a java related one. I'm posting it here. Is it possible that i can have PMD check run on a project by default ? Instead of clicking on my source file …

Software Development java
Member Avatar for DavidKroukamp
0
142
Member Avatar for rumencho

Hi all,I'm beginner in assembly language. I use TASM and it works well,but I should place all my .asm text files in /TASM/BIN directory ,because only there assembler see the files. and this is quite annoying,I want to have special folder for this purpose and place it whenever I want.

Software Development assembly
Member Avatar for amar.chukki
0
1K
Member Avatar for anthonyjpv

I know how to pull data from a db and present it in a textbox in a form my question is, how can i pull data from a db and present it in a datagridview? and another thing, once a certain row is double clicked, new form will show and …

Software Development
Member Avatar for anthonyjpv
0
104
Member Avatar for poojavb

Hello All, I have 3 combo boxes on my form 1. Doctor Start Time 2. Doctor End Time 3. Doctor Appointment Duration I want a 4th combo Box that will Start from Doctor's Start Time upto Doctor's End Time with the interval of Appointment Duration eg. Suppose the Start time …

Software Development vb.net
Member Avatar for poojavb
0
798
Member Avatar for anthonyjpv

Hi! I created a really simple CRUD app in C# using MS SQL as back end. I connected the DB using connection string and use dataset, and data adapter to pull data from the db Im searching for the simplest way of checking record if it exist in a table …

Software Development dataset
Member Avatar for kamilacbe
0
106
Member Avatar for jbutardo

Hi, How can I create an array of a class that I have declared? I have this class named parts with properties of frame, engine and date, and i want to know how could I store them in an array .. thanks

Software Development vb.net
Member Avatar for Reverend Jim
0
170
Member Avatar for Rudner D. Diaz

please help..i need a basic code in printing using vb.net..the scenario is..im going to print a delivery reciept..the data will be came from my tables...i need the code on printing..basic printing.. thanks in advance rudner

Software Development vb.net
Member Avatar for AverageStudent
0
2K
Member Avatar for jbutardo

Hi, I have this fileupload in my program and I want to set it's extension to .xls only, Is it possible? If yes, how can I set it so it's file filter will only be .xls? Thanks

Software Development file-system vb.net
Member Avatar for jbutardo
0
196
Member Avatar for Stefano Mtangoo

Hi friends, I need to make a simple parser for parsing PHP files (classes, functions et al) and I have read both Flex and Bison manual. I have read somewhere that I must build Abstract Syntax Tree (AST) and utilize that. But I cannot find any tutorial on how to …

Software Development c php
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for ajacintha

I have created a frame , which cannot be maximized , but i want to make the frame non drag gable, want the frame in fixed position.

Software Development java
Member Avatar for dmanw100
0
85
Member Avatar for rhfh

Hi everybody, Good morning...need to ask some question.. Below is my code for the cinema booking system. [code] import java.util.ArrayList; import java.util.Hashtable; import java.util.Scanner; public class CinemaBooking { final int rows = 7, cols = 4; char[][] seats = new char[rows][cols]; ArrayList<String> reservedSeats = new ArrayList<String>(); public static void main(String[] …

Software Development java
Member Avatar for mcriscolo
0
174
Member Avatar for Empireryan

Greetings all. I'm preparing for my java data structure/algorithms class and I'm starting a personal code repository of sorts and such. I started out with c++ and my question is this: I'm implementing a controller class and a class full of sorting and search methods in java. Instead of copying …

Software Development data-structure java
Member Avatar for dmanw100
0
2K
Member Avatar for sushlet

Requesting help with my homework problem. error: conversion from 'std::string*' to non-scalar type 'std::string' requested The lines with the error are under the comments. Thanks. [CODE] #include <QtCore/QCoreApplication> #include <iostream> #include <cstdlib> #include <string> using namespace std; typedef string* stringPtr; string* addEntry(string *dynamicArray, int &size, string newEntry); string* deleteEntry(string *dynamicArray, …

Software Development c++
Member Avatar for sushlet
0
5K
Member Avatar for RickCJ7

How do I replace a string in a text file with another string, including quotes? For example, I have an xml sting that reads: <test name="My name is Rick" value="False" /> and I want replace to replace the value="False" to value="True" so that it ends up like this: <test name="My …

Software Development vbscript visual-basic
Member Avatar for BitBlt
0
1K
Member Avatar for rfrapp

I'm writing a program that rolls a die a number of times that the user enters, and counts up each time a one, two, three, and so on is rolled. Right now, it only prints out zero's. Any guidance would be appreciated! Here's my code: [CODE] // dice.cpp : Defines …

Software Development c++
Member Avatar for WaltP
0
160
Member Avatar for triumphost

Why does it load my DLL but the pointer to the Proc returns 0? It loads the DLL and says "DLL Loaded" but it just won't say "Function Found." Help me please :)? [CODE] #include <windows.h> #include <iostream> //DLL Function: void DLL_EXPORT Theading(HANDLE hThread, DWORD ThreadID, void* FunctionToPass); typedef void …

Software Development c++
Member Avatar for triumphost
0
2K
Member Avatar for bluewhale628

Hello everyone! I am currently working on creating a Poker Simulation using the language C++. However, I am having issues with my swap function and also creating the conditions, such as declaring a Flush or Pair. Here is the code I have so far, and if you can assist me …

Software Development c c# c++
Member Avatar for Lerner
0
589
Member Avatar for sirlink99

I have this line of code (repeated with a bit of change) [CODE] if (ropeChosen == 1){ g.drawImage(rope, 321, 0, 10, 505, this); g.drawImage(rope, 521, 0, 10, 704, this); g.drawImage(rope, 721, 0, 10, 703, this); g.drawImage(rope, 921, 0, 10, 702, this); if (p.idol2){ g.drawImage (idol, 275,485,100,100,this); }else{ g.drawImage (snake, 300,505,50,100,this); …

Software Development java
Member Avatar for sirlink99
0
112
Member Avatar for hamby

Hello people, I've got a 2-d array, the first row has a string in each position, the second has a number in each position returned by a function that run on the strings.I run the mutatedstring function, run the matchmutated and put the values into the array, offspring times. Then …

Software Development c++
Member Avatar for hamby
0
242
Member Avatar for sheepboi

Hi, i have been working on a questionnaire that will allow me to show a question and then have three possible answers in the form of radio buttons. Users will have to select one then hit the NEXT button to move onto the next question. I have managed to use …

Software Development vb.net
Member Avatar for archelle
0
147
Member Avatar for curtissumpter

[code=java] final String cardListStrings[] = {"First Card", "Next Card", "Previous Card", "Last Card"}; cardList = new JList(cardListStrings); cardList.setVisibleRowCount(4); cardList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); cardList.addListSelectionListener( new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { System.out.println("Inside List Event Handler"); if (cardList.getSelectedIndex()== 0) { cardManager.first(deck); System.out.println("First Card"); } if (cardList.getSelectedIndex()== 1) { cardManager.next(deck); System.out.println("Next Card"); } if (cardList.getSelectedIndex() …

Software Development java
Member Avatar for DavidKroukamp
0
227
Member Avatar for amf101

Guys i always get an error in this...it says "Syntax error in Update Statement" please help... [CODE] Sub updateaccount(ByVal Username As String, ByVal Password As String, ByVal FName As String, ByVal MName As String, ByVal LName As String, ByVal Restrict As String, ByVal FullName As String) connect = New ADODB.Connection …

Software Development open-source vb.net visual-basic
Member Avatar for BitBlt
0
210
Member Avatar for Cupidvogel

Hi, I was wondering if Perl has a command line interpreter like Python's IDLE, where you can test things readily without having to save them as a program and run them. If not, why? Why is it that Python or Matlab has command line interpreters where you can type 4+3 …

Software Development perl python
Member Avatar for d5e5
0
311
Member Avatar for kotsarikos

Dear all, how can i make a program that count the different words in a text(input stop with EOF) and the number of the lines which a word appears?

Software Development c
Member Avatar for DeanMSands3
0
105
Member Avatar for boris90

I need a user to input int and get the name of the month in return. I have this: [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package se211.dz14; import java.text.DateFormatSymbols; import java.util.Scanner; /** * * @author Boris */ …

Software Development java
Member Avatar for DavidKroukamp
0
1K
Member Avatar for riahc3

Hello I'm tring to declare a BinaryOut type of object in a Java web project but it doesn't seem to work. I've imported the same libraries I used in a standard Java project so I don't know what's wrong. Any tips????

Software Development java
Member Avatar for riahc3
0
184
Member Avatar for markdean.expres

Guys just wondering how can I create a program that does specific actions just by pressing any of the alphanumeric keys on my keyboard instead of the very traditional clicking of a button in a GUI. Example, I want to close the window just by pressing the letter x on …

Software Development gui vb.net
Member Avatar for Reverend Jim
0
93
Member Avatar for sandeepau

I would like to write Perl script to read just first line of a file & calculate the length of second field which is comma separator file. For example - 1001,abcd,9999 1002,xyz,0001 expecting result - 4 (character length of second field from just first line i.e. abcd) Can somebody help …

Software Development perl
Member Avatar for d5e5
0
212
Member Avatar for triumphost

Hey all, I'm trying to make a DLL that can be used in Pascal to enable multi-threading. I've decided I want to export Threads in C++ to a DLL. Before I make DLL's I usually write the program first to test everything then I convert it to a DLL. [CODE] …

Software Development c++ pascal
Member Avatar for nezachem
0
163
Member Avatar for draven07

...hello!!!...I need some help in python... ..Im new to Python programming and I need a window form builder that can script it into a python program....can you please give me suggestions.???..I have tried also searching on google but Im afraid the results might not help me well....unlike asking here at …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for YAMNA MIDHAT

Hi, i am making a text editor with mouse programming.Given is my code .the compiler is not giving any error but i am unable to use enter,delete,backspace and arrow keys . can any one please tell me the logic with which i can make my project more better. THANKS in …

Software Development c
Member Avatar for WaltP
0
189
Member Avatar for Wolxhound90

Hey guys, So, I have a CheckedListBox that will be used to choose what columns they want to select from a database. Is it at all possible to display it in the format of [Table Name].[Column Name]? So far I have this: [CODE]con.Open() theQuery.Connection = con theQuery.CommandText = strColumns theAdapter.SelectCommand …

Software Development mysql vb.net
Member Avatar for Wolxhound90
0
196
Member Avatar for Wolxhound90

Hey all, Apologies for this question, as I imagine it will be very easy. I'm creating a form that will be used to update fields in a table. I don't want the user to be able to update primary keys though, so I'm trying to disable the textbox so it …

Software Development mysql vb.net
Member Avatar for Wolxhound90
0
257
Member Avatar for saneeha.nust

I need to get the public key associated with a certificate.. The code which I found was as follows... // The path to the certificate. string Certificate = "Certificate.cer"; // Load the certificate into an X509Certificate object. X509Certificate cert = X509Certificate.CreateFromCertFile(Certificate); // Get the value. byte[] results = cert.GetPublicKey(); Now …

Software Development windows-server
Member Avatar for mcriscolo
0
307
Member Avatar for auwi987

hello guys how can i update datagridview to display the newly added data to the database here is my sample code for adding data to the database [CODE]MySqlCommand cmdAdd = new MySqlCommand("INSERT INTO tblelemdetails (STUD_ID,LNAME,FMNAME,AGE,ADDRESS,BDAY,BPLACE,RELIGION,CITIZEN,CITY,LSCHOOL,LSCHOOLADD,SCHOOLYEAR,GENDER,LEVEL) VALUES('" + Ids.ToString() + "','" + txtLName.Text + "','" + fnamer + "','" + txtAge.Text …

Software Development
Member Avatar for auwi987
0
121
Member Avatar for yumyam09

I am creating a login form together with sql as may databse but when i run may program an error occur at "myData = myCommand.ExecuteReader()" stating that "Connection must be valid and open" what should i do on that to make it fix?? someone help me please thanks in advance …

Software Development vb.net
Member Avatar for archelle
0
170
Member Avatar for jbutardo

Hi, My title may be wrong but I would like to explain this process that I need here, Here is my Process, I already have imported excel file and inserted it in the datatable, and then I also validated it's format before inserting it in the database. Now Here is …

Software Development vb.net visual-basic
Member Avatar for adam_k
0
547
Member Avatar for gourav1

[CODE]#include<stdio.h> #include<conio.h> int main() { FILE *p,*p2; char c; long l; long x; p=fopen("file1.txt","w"); printf("enter the content of file:"); while(c=getchar()!=EOF) { putc(c,p); } fclose(p); p=fopen("file1.txt","r"); // l=fseek(p,1L,2); l=ftell(p); p2=fopen("file2.txt","r"); c=getc(p); while(l!=-1) { if(c==' ') { x=ftell(p); // fseek(p,-1L,1); while(c=getc(p)!=' ') { putc(c,p2); fseek(p,-2L,1); } // fseek(p,x+1,0); } fseek(p,x,0); l=ftell(p); c=getc(p); …

Software Development c file-system
Member Avatar for gourav1
0
275
Member Avatar for RenanLazarotto

Hey guys! I need to make a very simple login-like app. I could just write an program that would accept one masked text-box and verify its contents with a predefined string, but I want something more secure. How to make it encrypted, like web login forms? I've read a bit …

Software Development encryption
Member Avatar for RenanLazarotto
0
96
Member Avatar for pwolf

i finally started having a look at gui yesterday, and tried to do some things with PySide, however i have the following problem; Whats wrong with this code? [CODE] !/usr/bin/python # -*- coding: utf-8 -*- import sys from PySide.QtCore import * from PySide.QtGui import * class Form(QDialog): def __init__(self, parent=None): …

Software Development gui python qt
Member Avatar for snippsat
0
305
Member Avatar for Morbane

I have a menu: [code] #include <exec/types.h> #include <intuition/intuition.h> #include <libraries/gadtools.h> /* Prototypes for system functions. */ #include <proto/exec.h> #include <proto/intuition.h> #include <proto/gadtools.h> /* ANSI C includes. */ #include <stdio.h> struct IntuitionBase *IntuitionBase = NULL; struct Library *GadToolsBase = NULL; struct NewMenu window_menu[] = { { NM_TITLE, "Project", 0 , …

Software Development c
Member Avatar for Morbane
0
143
Member Avatar for warlord902

I have a static class, with all methods and fields static. My methods in that class are going to use a static field declared in that class. I want that static variable(which can not be made final) to be initialized with a value taken from a database when that static …

Software Development java
Member Avatar for warlord902
0
217
Member Avatar for jbutardo

Hi, I just want to know how can vb.net validate the format of a certain string for example, i have a string with 2011/13/02, and I want to check if it's format is in yyyy-dd-MM format,. how can this be done? Thanks

Software Development vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for sam1

Hi, Want to remove duplicates from a list so if my list contains: [CODE]www.test.com test.com mytest.com[/CODE] I want the final list to look like below(only selecting the domains with www from the duplicate in front) : [CODE]www.test.com mytest.com [/CODE] I have this linq but it seems to ignore all the …

Software Development
Member Avatar for sam1
0
235
Member Avatar for Captain Neo

[CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); int A[20][2],n,sum; cout<<"\n\tEnter the no. of terms: "; cin>>n; cout<<"\n\tEnter "<<2*n<<" numbers to the "<<n<<"*2 array: "; for(int i=0;i<2;i++) { for(int j=0;j<n;j++) cin>>A[i][j]; } cout<<"\n\n\tThe Array you entered is: "; for(i=0;i<2;i++) { cout<<"\n"; { for(int j=0;j<n;j++) cout<<A[i][j]<<" "; } } for(i=0;i<2;i++) { sum=0; for(int …

Software Development c++
Member Avatar for PrimePackster
0
136
Member Avatar for pseudorandom21

Is there a simple way to get a list/array of all the predefined colors? (without listing them all individually) ? It seems as though the colors are properties of the class "Color" rather than an enumeration.

Software Development java
Member Avatar for JamesCherrill
0
588
Member Avatar for ahoysailor

Hi, Is it possible to take the input from a textbox that's in chinese (unicode) and convert it into hex to output to a text file? Any insight would be great, thanks!

Software Development c++
Member Avatar for daviddoria
0
223
Member Avatar for Ararat

Hi guys i have a problem with my code :[CODE]#include<stdio.h> #include<string.h> #include <stdlib.h> #include <conio.h> struct blahblah { char id[11]; char name[30]; float gpa; }lol[100]; int main(){ int count = 0; char name [50][100] ; for(int i =0;i<=4;i++){ printf ("Student %d\n",i+1); printf ("ID: "); gets(lol[i].id); printf("Name: "); gets(lol[i].name); printf ("GPA …

Software Development c
Member Avatar for Ararat
0
311

The End.