199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fiska

HI folks, pardon my ingorance, but is there a possible way to connect to ms sql express directly to the server or you have to copy the .mdf file to your project and then connect to? another question how do you connect to the ms sql express? (I come from …

Member Avatar for idrissi
0
113
Member Avatar for Valaraukar

Hi, I'm writing a program in C++/OpenGL as part of a university assignment but I am having difficulty using the function glBindTexture to bind my loaded textures onto the models that I load in and render. I can actually wrap the texture around my 3D model no problem but I …

Member Avatar for Valaraukar
0
261
Member Avatar for didi00

Hi everyone. So I get the code going now the question is: How to make a menu in Java code? For example: 1.create table 2.insert into table 3.select fro table 4.delete table... Which will you choose: ex.1 and creates table I mean like switch case in C++ [code] import java.sql.*; …

Member Avatar for didi00
0
189
Member Avatar for Ragoune

Hi, You probably got annoyed when you read the title, it must have been asked a million times. But unfortunatly I cant get it working for myself. Ive been using this code to highlight the word "var": [CODE]Dim search As String = "var" Dim index As Integer = RichTextBox1.Text.IndexOf(search) If …

Member Avatar for thecoat
0
761
Member Avatar for fotsung

[CODE]procedure TForm3.Button3Click(Sender: TObject); var i,j:integer; var str1,str2,str3:string; begin with adoquery1 do begin close; sql.Clear; if combobox5.Text='' then str1:='' else str1:=' and new_blade_type='''+combobox5.Text+''''; if combobox7.Text='' then str2:='' else str2:=' and team='''+combobox7.Text+''''; if Edit9.Text='' then str3:='' else str3:=' and operator='''+Edit9.Text+''''; Sql.Text:='select * from blade where 1=1'+str1+str2+str3; open; First; stringgrid1.RowCount:=RecordCount; stringgrid1.ColCount:=Fields.Count; for i:=1 …

Member Avatar for Ionelul
0
130
Member Avatar for cdtrd

I was wondering how such interface designs can be achieved? [url]http://img130.imageshack.us/img130/1286/49282415.jpg[/url] [url]http://img697.imageshack.us/img697/5835/11728532.jpg[/url] First image has the stylish tab control design and border. Second has a "dropdown" on each tab button.

Member Avatar for cdtrd
0
160
Member Avatar for LloydFarrell

Hi everyone, first of all, I'd like to wish everyone a very merry festive season and a happy new year for 2010 .... ;-) I am working on a registration that is going fine at the moment, when all fields are populated and the submit is pressed, the script checks …

Member Avatar for LloydFarrell
0
78
Member Avatar for labsnark

Hi all, I'm pretty new to VB.net, having only recently migrated from VB5(!). I'd appreciate any help at all with the following problem that I have on a project; I'm reading data in from a comma-separated text file and storing the data in an array for later use. Some of …

Member Avatar for jlego
0
108
Member Avatar for whitestream6

I've got a simple PHP page with a list of events that are taking place at certain times on certain days, and this is my code: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORD"); //select which database you want to edit mysql_select_db("events"); …

Member Avatar for CFROG
0
151
Member Avatar for Waylon

Hello! I'm working on this roguelike and I'm trying to make it so that the different "maps" can be loaded from text files. It was going pretty good until I tried to get it to return the filled array. Take a look: [CODE]void getMap(string str[10][10]){ ifstream myfile("world1.txt"); int a = …

Member Avatar for Lerner
0
106
Member Avatar for madristaa

Hello friends, I have a very minor error, but i am not able to figure out which one is that. I have a simple form page and it goes to the another page and insert the values in database. But the thing is it inserts multiple rows in the database. …

Member Avatar for accountholder
0
87
Member Avatar for Excizted

Hi. I have a little question, that which answer may mean death to my class plans. I have a superclass (or parent class if you will) that I have to delete when I'm done with it, but does that affect the subclass (or child class if you will)? Simple question, …

Member Avatar for Excizted
0
164
Member Avatar for Dmennite

I have form1(frmGate) and form2 (frmEdit) form1 minimizes when form2 is open and restores when form2 is closed however I use this to open form2 [CODE]private void btnEdit_Click(object sender, EventArgs e) { //checks to see if the form is open if (editor == null || editor.IsDisposed == true) { editor …

Member Avatar for Dmennite
0
4K
Member Avatar for Pamilerin

Please I have a little problem with my project. It goes "A polynomial of degree n is represented as Pn(x)=A0 + a1x + a2x2 + … + anxn Where a0, a1, a2, a3 , … , an are constant coefficients. Evaluation of suc polynomials may be important if Pn(x) is …

Member Avatar for nezachem
0
100
Member Avatar for mellowmike

So I have a client/server application and I'm trying to send an ArrayList of objects to the server. I kept getting errors sending the ArrayList of objects, so I just decided to send an empty ArrayList to see if anything was wrong, and it turns out, that the server can't …

Member Avatar for mellowmike
0
471
Member Avatar for mahela007

Would it be of interest to learn C or C++ if one already know python? I'm a linux and programming enthusiast (i.e hobbyist ;-) ) and C is pretty common on linux and many other applications. But is it worthwhile learning C if I already know python? What are the …

Member Avatar for Narue
0
138
Member Avatar for Alex_

hello, i'm trying desperately to recover my c++ knowledge. I haven't done c++ for a year and now i'm facing some problems. Please help. I. How to type cast this: [code=c++] class A { virtual c Read(); } class B: public A { public c Read(){ D d ; return …

Member Avatar for Narue
0
113
Member Avatar for rajeshwari_ib
Member Avatar for eva yang
0
7K
Member Avatar for shlesha

i have no idea about how to create a forum in jsp please give me suggestion and code to create a discussion forum

Member Avatar for macalalad03
0
95
Member Avatar for rafaqat hassan

hi my problem is that whan i want to add 2+3 i enter it in postfix 23+ it give me 5 which is correct but whan i want to add 20+30 i enter 2030+ it add me 3&0 because i use char so, this progm is limited to 1 digit.so …

Member Avatar for Lerner
0
77
Member Avatar for princesssuperst

Hello, Im looking to split eac row of my CSV file into an array, by separating it out by the commas, but taking care not to include the commas inside of quotations; " asd , dfg ". How would i go about this? Thanks for any help! PS

Member Avatar for Dmennite
0
103
Member Avatar for spitfire

I am getting errors when trying to compile my program, can anyone help? Errors are error C2143: syntax error : missing ')' before 'constant' error C2143: syntax error : missing ';' before 'constant' fatal error C1004: unexpected end of file found Here is my code: [code] // declaration of a …

Member Avatar for wish_C
0
593
Member Avatar for forneamax

Hi. I would like the program to take the character/symbol/number right away after they had been pressed to avoid string being entered. [CODE] static void Main(string[] args) { char E; string response; do { Console.WriteLine("Please select your products :"); Console.WriteLine("Oranges - press O"); Console.WriteLine("Apples - press A"); Console.WriteLine("Potatoes - press …

Member Avatar for forneamax
0
133
Member Avatar for revski

hi currently i have a few memo lines on a form with a large memo for viewing all the lines together which are saved to a text document when savedialog is executed. when i add the load function i wish for the text to return to each of the seperate …

Member Avatar for revski
0
125
Member Avatar for JRM

hello, I am S L O W L Y working through learning/writing a JS project. here is the core issue.: [CODE] var pt =<? echo json_encode($prt);?> alert(pt) // for diagnostic purposes [/CODE] json is flattening the PHP array to be used in the script. However, the alert shows me that …

Member Avatar for ShawnCplus
0
188
Member Avatar for TheManual

I have managed to change an input String expression with parentheses to a postfix expression. I want to print to print the values in the stack but can't work it out. Can anyone tell me how I do this? [code] class Converter{ private Stack converterStack; private String input; private String …

0
64
Member Avatar for inmar

Hi, I'm trying to use the system() command to invoke "eseutil.exe" and store the output in a text file using VC++. The way i used this command is mentioned below. code snippet: ========= [CODE]string command= "\"C:\\Program Files\\Microsoft\\Exchange Server\\Bin\\eseutil.exe\" /mh \"F:\\fsg\\edb\\mailbox database.edb\" | find \"Log Required\" >output.txt"; system(command.c_str());[/CODE] Compilation is success. …

Member Avatar for donaldw
0
414
Member Avatar for ishFady

Hi I have windows XP on my intel pc. I have installed Apache2.2 and it work fine. Then I installed PHP 5.3.1. So do I have this setup in httpd.conf. LoadFile "C:/Program Files/php/php5ts.dll" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" But I can't start apache with this two entry in httpd.conf When start …

Member Avatar for vardsolo
0
143
Member Avatar for BobFX

Hi, I need to convert a BSTR buffer (that contains wchar data) to a straight char*. How can I do that? I only found that info so far: [url]http://msdn.microsoft.com/en-us/library/ms235631(VS.80).aspx[/url] but it covers only CComBSTR types. I'm not sure how CComBSTR and BSTR relate. Thanks.

Member Avatar for BobFX
0
327
Member Avatar for mikeSQL

This tutorial shows how to greet your visitors depending on what time of day it is. If it's morning, it greets your visitor with "Good Morning!" If it's afternoon, it greets them with "Good Afternoon!" Magic? Noooo! Just PHP! We will start by looking at the entire script and then …

Member Avatar for LloydFarrell
0
127
Member Avatar for cthoes

i tried to pass one number by one within given range from for loop to while loop to check for armstrong. but the value passed from for loop into while loop is not accepting. so any suggestion [CODE] /*program to find armstrong within a given range */ #include<stdio.h> #include<math.h> int …

Member Avatar for n.s.hemalatha
0
114
Member Avatar for anilopo

I want to pass all the values from a HashMap to ArrayList (that a demand of my exercise..) and to use for it an iterator (to the HashMap). How do I get the first key to the HashMap? (if I have the first I'll continue in a loop untill there …

Member Avatar for anilopo
0
103
Member Avatar for Corpes

Regards, I have a weird problem with a variable in asp.net + C#. Those lines work: [CODE=C#]DataTable customerDT = service.GetCustomerDT(1); dataRow["CustomerName"] = customerDT.Rows[0]["FullName"]; [/CODE] But those lines do not found anything even though the value of the variable is "1" too: [CODE]int customerID = int.Parse(gridViewRowVar.Cells[0].Text.ToString()); DataTable customerDT = service.GetCustomerDT(customerID); dataRow["CustomerName"] …

Member Avatar for Corpes
0
150
Member Avatar for rigidboss

Hi, I wanna generate a software, which should read a C file and check for some rules. I mean, some lines will be syntactically correct according to C compiler. But logically sm lines will be wrong. I wanna detect such lines using this software. Please help me how to start …

Member Avatar for rigidboss
0
145
Member Avatar for ultras1

Hello to all. I have application where users are able to login. I use database for users. I want to get real-time currently logged users.For example if there are 5 online users and one of them close web browser, at the same moment online users to be 4. If I …

Member Avatar for ultras1
0
93
Member Avatar for yushuan718

Hello, This is my first post here. I had learned c/c++ for about half a year, and hope now to move into win32 non-console programming. I use VC 6.0 as my IDE and had successfully created a simple "Hello World" project (built by VC 6.0) However, I do not know …

Member Avatar for yushuan718
0
94
Member Avatar for padtes

I have a T-SQL function (transact SQL is SQL server 2005 programming language, with many limitations compared to say C# or Java). It currently works but has severe limitations. Its input is string (formula) that has ternary operators used in it. The function converts it into CASE statement and returns …

0
114
Member Avatar for dcads

Hi there, I am trying to create a session based on a field from a datareader. the code I have so far is [CODE] string sqlStmt = "Select Member_Username, MemberID from Members where Member_Username='" + UserName.Text + "' and Member_Password='" + PassWord.Text + "'"; SqlConnection sqlConn = new SqlConnection("server=********;"); SqlCommand …

Member Avatar for dcads
0
116
Member Avatar for Argo54325

Hello, could someone please tell me how to add buttons, list boxes, tabs, etc. to the main window that shows up with the menu when you first create a win32 windows application? I've been searching for this on Google for about two weeks now and keep coming up dry, any …

Member Avatar for marco93
0
153
Member Avatar for bharanidharanit

Hello, I am designing School Management System. I dont know how to design database for this. My Application contains 5 parts. Student Teacher Parent Data Entry Admin I need to maintain the following records. And these are not fields and i need all these for the particular page. Register (UserName,Password,SecurityQuestion,SecurityAnswer …

Member Avatar for bharanidharanit
0
104
Member Avatar for omoz4real

Hi everyone, please i created a[COLOR=#000000] C# windows application to implement a form with a ListBox, a TextBox, an Edit button, an Insert button, a Delete button, a Update button and an Exit button in the form. I want my C# program to be able to copy the columns of …

Member Avatar for youtubeline
0
160
Member Avatar for TheMightySpud

Hi all, I hope someone can help me with this because it's driving me insane. I've spent almost two solid days trying to figure this out without much success. What I need to do is load in an XML file (which I have working fine) but then I need to …

Member Avatar for TheMightySpud
0
128
Member Avatar for Round

hi all, i have a problem regarding the pixels. i have a picture box suppose of width 950 now i have to draw more than 1000 pixels in that picture box. one way is t0 use horizental scrollbar. but the problem is tha i dont know to use it. so …

Member Avatar for Geekitygeek
0
89
Member Avatar for thewonderdude

Hello, I have to read from a .txt file which has info as such, 10:5:23 2:343:54 1:4:7 and so on. 3 Columns, lots of rows. How can i read each column for example 10 to x, 5 to y, 23 to z.

Member Avatar for jonsca
0
139
Member Avatar for Graphix

Hi, I am currently learning C#, but when I made a program that allows the user to guess a word (in Dutch that's called "Galgje") it repeats the while-statement twice, ignoring the scanf(). I searched with Google and found out that the program is too fast for the user input. …

Member Avatar for Graphix
0
233
Member Avatar for kalpa23

im using : v.s 2003 sql server: 2000 [B]im creating this vb application and i took a coding from the inter net which uses 2005 i only have one error that is it's not supported in v.s 2003 can some one help me how to solve this my problem occurs …

Member Avatar for Geekitygeek
0
188
Member Avatar for stigmatized
Member Avatar for sandipdandel
Member Avatar for pri1
0
60
Member Avatar for sam023

anyone can tell how to add mins in php.? i have values in Db in this format 00:10, 4:05 etc i want to add mins...!!! can anyone guide me little bit Thanks

Member Avatar for Froger93
0
106
Member Avatar for musthafa.aj

i need jpeg image compression.. i would like to compress any image (size is too like 2mb)in to around 35 kb with acceptable quality.. i tried lot of solution but all of them given unacceptable quality ... I almost spent 2 months ... please give any open source solution to …

Member Avatar for musthafa.aj
0
90

The End.