64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for shahriar2403

How can i open acces file using a command button in vb. What should b da reference? what should b da code? Same question for opening pdf file. help me plz.

Member Avatar for sridinesh
1
380
Member Avatar for Khav

Hello Guys , I want to create a script that convert a text file or Nfo file to an image(format is .PNG). What it does is simply load the txt and output it as an image Here is my code: <?php if(isset($_FILES['image'])){ $errors = array(); $allowed_ext = array('txt'); $file_name = …

Member Avatar for Khav
0
313
Member Avatar for trishtren

Hello, Iv been trying to work through some issues on binary output recently. But im having problems understanding the conversion process in java when using two's complement. I dont understand why System.out.println(Integer.toBinaryString(-11700)); Prints out 11111111111111111101001001001100. Shoudlnt -11700 only be 15 bits long? When i calculate it by hand and invert …

Member Avatar for JamesCherrill
0
166
Member Avatar for bettybarnes

Hello guys, I'm trying to make a list of students grade using array. My question is, how am I going to do this? **OUTPUT:** Lea 94 Morgan 85 Jenny 92 Harold 75 I've tried a bit to program, please do check my code. public class StudentScoreArray { public static void …

Member Avatar for Vs5193
0
99
Member Avatar for 68thorby68

I understand a select list will display the options in which they are received, however I am compiling my select list and options from a number of PHP/mysql queries and am at a lost as to how I could achive the ordering via the php/mysql route. $all_zones=('a,b'); // foreach($all_zones as …

Member Avatar for 68thorby68
0
172
Member Avatar for showman13

Good Morning All, This is a question I touched on previously, but don't think I presented what I really need to do. I need to get this accomplished ASAP, and really have no clue how to go about it. Would even be willing to pay someone else if they have …

Member Avatar for coolest_987
0
1K
Member Avatar for Viped

Hi, could some one look over my code I by myself dont get where the flaw is. It should paint 1 cube at a time but now it runs all the code through and paints all at once. package net.viped; import java.awt.Color; import java.awt.Graphics; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.JFrame; …

Member Avatar for JamesCherrill
0
966
Member Avatar for hszforu

I think the following code should print 26 but it's printing 62 instead. public class gjh { public static void main(String[] args) { int x = 2; x += ++x * ++x * ++x; System.out.println(x); } } So how is this possible?

Member Avatar for hszforu
0
109
Member Avatar for shean1488

Hi everybody, I'm trying to do a simple login for a web site, and everything looks fine except one thing, when I enter a name and a password for a superuser I got "403 Forbidden" error. here is my login.html: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> …

0
110
Member Avatar for triumphost

I have a Two Test classes that use variadic templates but I made the constructors explicit so that the compiler doesn't convert anything and leave everything as it was. One class was Array and the other was called 2DArray. When I intialize 2DArray, the compiler was converting its arguments to …

Member Avatar for deceptikon
0
3K
Member Avatar for TheWolverine

Hi all, I've browsed the net trying to find a paradigm to describe what I'm looking for but haven't been successful. So I'll try to explain it as succinctly as I can. Right now, for my PhD research, I've set out a few applications that take input files that have …

Member Avatar for TheWolverine
0
241
Member Avatar for triumphost

I'm trying to test my copy con and move con as well as their assignment operators. It NEVER gets invoked :S Copy con gets invoked just fine but the assignment operators are never called and neither is the move constructor. How can I test it to make sure it works …

Member Avatar for mike_2000_17
0
276
Member Avatar for TheCollegeGuy

I have created MFC ActiveX project in VS 2010 using C++. I have added just one function "Add" to the project by clicking the Add method option in the menu that pops when you right click _DProjectname under ProjectnameLib in solution explorer. SHORT CSampleProgramActivex01Ctrl::Add(SHORT a, SHORT b) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); // …

Member Avatar for TheCollegeGuy
0
387
Member Avatar for salah_saleh

Hi! when I try to run this code: struct Cand{ // 0 -> not a cand // 0.5 -> preCand // 1 -> cand float status; // Row position int PosX; // Col position int PosY; /* * and many other things * */ }; int rows = 1024; int …

Member Avatar for salah_saleh
0
3K
Member Avatar for MasterHacker110

I am writing a program that is suppose to read all the lines in a .ini file and then the program will configure the network connectivity. ex. ip = 128.123.156.46 then it would set the ip address to 128.123.156.46 i have tried this: while(getline(infile, TheBuffer)) { if(TheBuffer == "ip =") …

Member Avatar for MasterHacker110
0
255
Member Avatar for GlenRogers

In my applcation I have a JText field for entering a phone number. Is it possible to make it only accept numerical characters? Or should i wite a method to alert the user if they enter any other characters into it? Thanks

Member Avatar for GlenRogers
0
131
Member Avatar for hwoarang69

hi i am programming for about 4 years and i want to learn how to make a operating system. for ex window, mac or unix. And i am think of storing it on a disk. I have no idea how to get started. can any one tell me the steps? …

Member Avatar for Schol-R-LEA
0
247
Member Avatar for yehoshua2123

I want to make HTML appear as text to maybe write some snippets on a site. I know that there is a way to make < and > by using &lt; and &gt; but I would like something that were a bit easier to remember and quicker like maybe using …

Member Avatar for Troy III
0
416
Member Avatar for toomutch

Hi All, I would like my 'quit' button to appear in the bottom right hand corner of my menu screen, but it seems that every computer in the office has a different sized screen, different size ration (some are widescreen), and different resolution. When I deploy my program, the quit …

Member Avatar for toomutch
0
2K
Member Avatar for zmjman08

Hi, I'm trying to take two text files, compare them, then output the matches into a new text file. I've read the thread started by the1last, but that's outputting differences, not matches. I just started learning about python a couple days ago, so I don't know anything about what syntax …

Member Avatar for santosh2430
0
14K
Member Avatar for dorien

I am trying to run an easy Android ndk app in cpp, but I get UnsatisfiedLink Error for the Generate() function. Any help would be appreciated. I am quite fluent in c++, but my java is a little bit rusty. I have been trying a lot of tips from the …

Member Avatar for dorien
0
279
Member Avatar for magicmarkuk

Hi I am having trouble understanding how the pre_replace function works. I am using a script which has the following line: $ret = preg_replace("#(@|telefone|e-mail|.com|skype|.com.br|fone|www.|hotmail|yahoo|ig|aol|uol|gmail|bol|msn|MSN)#i", "\\1scriptolutionreplacement", $ret); What is happening is that any word with for example the letters ig or uol in it is getting caught. Is there a way …

Member Avatar for magicmarkuk
0
151
Member Avatar for themaj

I initiate OpenFileDialog from a btn and once the correct file is selected at OpenFileDialog1_FileOK * ,I want to load Form2 to do some file checking routines. Private Sub OpenFileDialog1_FileOk(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk dbfFileFolder = System.IO.Path.GetDirectoryName(OpenFileDialog1.FileName) dbfFileName = System.IO.Path.GetFileName(OpenFileDialog1.FileName) dbfFileNameShort = System.IO.Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName) If dbfFileName = "GNDITEM.DBF" …

Member Avatar for Reverend Jim
0
2K
Member Avatar for GlenRogers

I have a TreeMap<String, Customer> (Customer is a class I have created). Customer objects hold a HashMap<String, Repair> (Repair is a class I created). I wrote a method to find a given Repair, this is it: public void processFindRef() { if(ref.length() == 6) // ref is the string we want …

Member Avatar for GlenRogers
0
171
Member Avatar for moshe12007

Hello I try to do a Dynamic TextBoxes - but it doesnt work :( .. here is my code: if (ds.Tables[0].Rows.Count != 0) { foreach (DataRow row in ds.Tables[0].Rows) { %> <div class="LineA"> <input type="text" id="Item_<%= var %>" name="Item_<%= var %>" value="<%= var %>" /> <input type="text" id="Link_<%= var %>" …

Member Avatar for IbrahemShehata
0
128
Member Avatar for GilbertB

I have this form connected with SQL server : http://img171.imageshack.us/img171/7423/692012101827pm.png is there any way that when I enter a new company and press save icon, the combobox will update automatically ? Thanks

Member Avatar for ious
0
191
Member Avatar for B204

Following code is for deleting elemnt from array but it shows NullPointerException at **if(names[k].equals(user))** ... how to remove it!!! public class del_array { public static void main(String s[]) { String names[ ] = new String [10]; names[0]="admin"; names[1]="b"; names[3]="m"; String user="b"; for(int k=0;k<names.length;k++) { if(names[k].equals(user)) { String item=names[k]; for(int j=k;j<names.length-1;j++) …

Member Avatar for stultuske
0
205
Member Avatar for triumphost

> "warning: 'class Debug' has pointer data members but does not override 'Debug(const Debug&)' or 'operator=(const Debug&)' [-Weffc++]" The only pointer member I see here is the HANDLE hTHread. Why should I override my constructors or add a move/copy to this class as the compiler suggests? class Debug { private: …

Member Avatar for mike_2000_17
0
4K
Member Avatar for Sabyre

OK, hours later and much searching yields nothing.... We do newsletters on our website, they are created via a form in the backend. Currently they are generic whatever you enter in the textfield is sent and I was looking to add predefined headers and footers to them that could be …

Member Avatar for Sabyre
0
123
Member Avatar for major_lost

I am using VB.Net 2003 (version 1.1) and I am attempting to open some forms with: Dim myform As New FormX If myform.Visible = False Then myform.Show End If Problem is, no matter what, a New instance of the form opens. How do I check if an instance of myform …

Member Avatar for TnTinMN
0
201
Member Avatar for PinoyDev

Good day Gentl'men! I just need a little help for date manipulation.here is the criteria.. I have **two date picker, dtfrom.value & dt2.value, and a variable called "viewtype".. ** **if viewtype="monthly"**, I want to create a listview column base on fromdate.value & todate.value..Example, if **fromdate.value="12/24/2012" and to.value="06/31/2013"**, I want to …

Member Avatar for PinoyDev
-1
202
Member Avatar for кодирование

First of all, just registered and this forum looks great! PROBLEM: My program which I wrote in Code::Blocks, has compiled fine and has worked fine, but when I run the outputted file called (BINDED.exe) it shows a very quick console window then closes, I think this is due to the …

Member Avatar for georgeduroa
0
175
Member Avatar for xbat

how do you group by value ? I have it where it selects by drop down... select sum (table) where item group by ?????? VALUE ???? The value I use is select

Member Avatar for xbat
0
162
Member Avatar for PhilEaton

Hello all! I am using a little piece of code in a report I'm generating (LogiXML). It is a "back" button that takes the user back to the previous page.. It does not however, use any form of a history, back, location javascript code. It just uses a plain old …

Member Avatar for PhilEaton
0
2K
Member Avatar for poloblue

Good Afternoon, How do you write a two nested do-while loops to display the pattern: * ** *** **** ***** ****** So far I have this code, but it just displays ****** int i=0; do{ cout<<'*'; i++; }while(i<5); cout<<endl;

Member Avatar for poloblue
0
1K
Member Avatar for tomtetlaw

My Ubuntu version is 12.04. I'm simply trying to include GL/glu.h in my program, but I get the error: `fatal error: GL/glu.h: No such file or directory` I include it like this: `#include <GL/glu.h>` I have libgl1-mesa-glx-dbg, libgl1-mesa-dev, mesa-common-dev all installed.

Member Avatar for tomtetlaw
0
141
Member Avatar for BadManSam

I want like a ranking system that works something like this. User clicks on something there is a percentage chance that they will suceed. And if they do they get xp. but if they fail they only get like 1 xp. Anyone a mmporg Coder. Because I will Pay up …

Member Avatar for diafol
0
92
Member Avatar for GlenRogers

**alue** I have a Customer class and a Repair class I have a TreeMap(customerDetails) of type <String, Customer>. Each Customer object holds a HashMap(repairs) of type<String, Repair>, the String represents the ref number of the repair. The user of my system types in a ref number, the program searches to …

Member Avatar for GlenRogers
0
112
Member Avatar for devilhacker

Hi, I have a table with a timedate collumn. I want to get the text of the article and its creation date, than to output them on my page. How can I just get only the date value from a query or php script manupulation?

Member Avatar for pritaeas
0
264
Member Avatar for jckb188

Struggling to get the following code to work. The code works if I just put an individual table in SELECT FROM, but I can't get anything when I try and do INSERT INTO table and then substitute it in. I am a complete noob at this and I know in …

Member Avatar for broj1
0
200
Member Avatar for Acidz

Hi, People... I have a question about reading xls files in python then parsing it to sqlDatabase. The thing is, that the xls file(pricelist) we as a company use are ordered and it's pretty easy to sort that out. The problem comes with xls files from other companies. (We are …

Member Avatar for Acidz
0
356
Member Avatar for mallikaalokam

I created an instance and did some fault while moving the files from one location to other and now the server doesnt start and i need to execute a query in SQL SERVER Management studio in order to open a new query feature it again ask to start the server..the …

Member Avatar for mallikaalokam
0
122
Member Avatar for hwoarang69

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\a_upload\index.php on line 114 line 144: while($row = mysql_fetch_assoc($R)) $count = 0; $Q = "SELECT (SELECT image_short_name FROM user) as `image_short_name`" .",`image_id`,`user_id`,`image_short_name`,`image`" ." FROM `image`" ." ORDER BY RAND()" ." LIMIT 5"; $R = mysql_query($Q); echo " <!DOCTYPE html> …

Member Avatar for hwoarang69
0
432
Member Avatar for magg93

I'm really confused with this! I have 2 classes, Club and Membership. In Membership I have the method, getMonth(), and in Club I have joinedMonth() which takes the parameter, 'month' - so a user enters a month and then I want it to return the Membership's which joined in that …

Member Avatar for magg93
0
545
Member Avatar for bobytch

Good day to everyone.. First Here is my code so far.. import java.io.*; public class Inventory { public static void main (String[]args)throws IOException{ BufferedReader bv = new BufferedReader (new InputStreamReader(System.in)); String x, z; boolean y = true; int a, b, c, d = 0; do { System.out.println("--------------------------------------------------------------"); System.out.println(" M I …

Member Avatar for NormR1
0
1K
Member Avatar for BirdaoGwra

Hi, I have some images which I update like below: count++; if(count >= sizeOfArray) { count = 0; } for(u32 i=0; i<sizeOfArray; i++) { s_image[i].image->setVisible(false); s_image[i].reverse->setVisible(false); } I want to know, how do I reverse it. I mean, it is increasing the count and I want to decrease it. The …

Member Avatar for BirdaoGwra
0
137
Member Avatar for ethio
Member Avatar for usernforce

I've been working through an excersise in a introduction to Java book by Deitel and I have a solution to a problem. The program will compile, but I get a message that says, "Exception in thread "main" java.lang.IllegalArgumentException: adding container's parent to itself" Can Someone please help me? Here is …

Member Avatar for godzab
0
1K
Member Avatar for grh1107

currently I'm rewriting old euler solutions into classes so i can store them in a library. I wrote a program that digitizes a number so it can check to see if it a pallindrome, The base class digitize dynamically allocates memory for the size of a number and stores each …

Member Avatar for mike_2000_17
0
255
Member Avatar for Khav

Hi Guys First of all i would like to state that i am new in php so my question might appear stupid for the geeks here. I want to create an image downloader in php , that is i need a textbox and a submit button. The user enter each …

Member Avatar for Khav
0
671

The End.