so, im trying to make a simple funtion to see if there is a file in a folder. been looking everywhere but havent found one that worked out. annnnnnnnnnnnnd code snippet: ` WIN32_FIND_DATA FindFileData; HANDLE hFind; hFind = FindFirstFile(_T"C:\\Dev-Cpp\\notes", &FindFileData); if (hFind == INVALID_HANDLE_VALUE) { cout << "No File found\n"; } else { cout << "Guess I found a File\n"; } well, the function comes up with no errors but if the file is empty it says that it found a file. can someone tell me what am i not seeing?

Member Avatar
Member Avatar
+0 forum 7

when i start my computer i get a empty messagebox named Explorer.exe. this is very annoying, can u suggest me what causes the problem? or any solution to get rid of this.

Member Avatar
Member Avatar
+0 forum 1

Hi. I just wanted to know if there is anyway to make a textbox recognise if there is text or not. I don't want it to be textbox1.text = "". Is there a legitimate way?

Member Avatar
Member Avatar
+0 forum 2

At a client with 100+ workstations, all running a simple logon script, two workstations are experiencing a strange problem. For testing and as an example, a simplified logon script is used: net use T: \\server\public set > C:\Temp\LoginEnv.txt This works on all but the two workstations, mapping the drive and filling the text file with the environment settings. On the two problematic workstations, the NET USE command returns error **10 - The environment is invalid**, and the text file is empty. To troubleshoot further, I added a command to return a list of specific DNS SRV records, which should list …

Member Avatar
Member Avatar
+0 forum 7

how do you extract all email addresses from a string and put each extracted email address as an element of a simple array? <?php // define and implement your php function here function get_all_emails($text_field) { // ---- Beginning of Green Section --- // create an empty array $emails = array(); // implement the function. this function should extract // all emails from $text_field and put them in $emails // ---- End of Green Section --- return $emails; } // your main code $example1 = "person-1@here.com, person_2@there.net; person.3@wayoverthere.com"; $response = get_all_emails($example1); // use print_r to test the result echo "<pre>"; print_r($response); …

Member Avatar
Member Avatar
+0 forum 12

Hey there! I am making something related to images... So, Using JavaScript and JQuery $(document).ready(function(){ $.fx.speeds.slow = 2000; $(".Gallery").hide().load("gallery.php").fadeIn("slow"); setInterval(function(){ $(".Gallery").hide().load("gallery.php").fadeIn("slow"); }, 3000) }); In this case I want to refresh the div(.Gallery) but I dont want to load gallery.php, In fact what I want is, Put the gallery.php code in that div and load it every x seconds. It requires load("file here") right? Can it be done with out loading any thing just refreshing that div so it recalls that php code again? Thanks, Waleed.

Member Avatar
Member Avatar
+0 forum 1

Hey guys, I was wondering if anybody knew of a method to check if an element in a object array was empty. for example, lets say I have the class "XYZ" class XYZ { int x; string y; }; then in main if i declared the object array: int main() { XYZ ar[10]; return 0; } is it possible to check if a part of that array is empty? for example: for(int i = 0; i < 10; i++) { if(ar[i].x != NULL) //is there anyway to make this comparison? { //CODE HERE } }

Member Avatar
Member Avatar
+0 forum 3

Hello There! I am building a dynamic CSS document through PHP and was wondering if it is a big problem (for browsers or SEO or something) for me to leave *blank values* for some CSS attributes. If it is problematic, is it so much so that it is worth adding a lot more server-side code to make sure I don't leave any attributes blank. Here is an example of what I am thinking of doing: body{ background: #00FF00 url(); color: ; } So in that example is it a problem that there is no value for color and no value …

Member Avatar
Member Avatar
+0 forum 3

Hi, I have 7 variables...each vriable is having either of two values "0" or "1" e.g. a=0, b=1, c=1, d=1, e=0, f=1, g=0 Now I need the total of all these 7 variables but only which are having value "1" (in the above case b+c+d+f) My problem that it's dynamic...i.e everytime on submitting the form...these value will be different (0 or 1), how to check everytime??? I hope, I could explain my problem Please Help. Thank u.

Member Avatar
Member Avatar
+0 forum 4

select name, REPLACE(format, ' – ', '/') as format, CAST(price AS UNSIGNED INTEGER) as price, CONCAT('http://www.example.com/',url_key) as url, id, delivery, sku from Database1 where delivery <> 'finished' INTO OUTFILE 'test.txt' FIELDS TERMINATED BY '\t'; this query returns empty result while select name, REPLACE(format, ' – ', '/') as format, CAST(price AS UNSIGNED INTEGER) as price, CONCAT('http://www.example.com/',url_key) as url, id, delivery, sku from Database1 where delivery <> 'finished'; returns with results, I am a new to databases and developement so need help.

Member Avatar
+0 forum 0

Hello! What I am trying to do is assign the values from a mysql query and store them in an array. I have some code that queries the DB by using SHOW COLUMNS. I then loop through dynamically assigning the name of the DB field to input fields of a form. That way I can build the form and give the text inputs a name without actually knowing the name up front. This depends on what the user selects from a link on a previous page. For example...I show DB's on the index page and then dynamically create links with …

Member Avatar
Member Avatar
+1 forum 2

Hi, I have a database with lots of fields, some of which are still empty and are to be filled in at a later stage. Is there any way of writing an IF statement (or any other method) that will allow these empty records to be 'shown' in my textboxes in Visual Studio, without receiving the error: [CODE]Conversion from type 'DBNull' to type 'String' is not valid.[/CODE]? Thanks in advance. Collin

Member Avatar
Member Avatar
+0 forum 6

I'm stumped as to why this might be happening. A website I had completed for a client over a year ago, was working fine until a couple of days ago when the web host went and moved the site onto a new server without warning any of their customers (myself included). This caused errors with the database connections etc., but that was all easily fixed. Now something strange is happening though - one of my bigger INNER JOIN queries (which was working fine) is suddenly returning empty results. I had a quick search and found that this was happening for …

Member Avatar
Member Avatar
+0 forum 3

hi friends.! need little help. I couldn't find the way to check a stack is empty before pop up a element. when my program is running its give a error. please help me guys.. thank you in advance....

Member Avatar
Member Avatar
+0 forum 4

I am starting to try and manipulate some CSV file data. My first problem is the empty values (empty cells in a spread sheet). My boss sends me these files and when I open the in csv format Python gives me: "Denison, P14, , , , , $1600" I can't find if there is a few simple lines of code (or whatever it may be) that would only output my CSV data as strings and mathematiccal expressions while omitting blank values. Much Thanks!

Member Avatar
Member Avatar
+0 forum 1

I have a reportviewer that prints a second empty page with the header only nothing in the body. I have searched for this issue and I learned that the Width of the report body should be equal to the page width minus the right and left Margins. So I have set the page margins to 0 and shrunk the page width considerably and I still get a last empty page. What else can I do to eliminate that empty page. Thank you

Member Avatar
Member Avatar
+0 forum 4

Hi Everyone- We are building a database that needs table(purchaser) to check table(paypal) for a matching telephone number. Table(paypal) has 'purchaser telephone' as PK and table(purchaser) has 'purchaser telephone' as FK. I can insert and see the data in both tables, but running a select query returns an empty result. The format for datasets in both tables is decimal(19,5) to allow for international numbers and a 5 digit extension. We are running innodb. We have also tried it with email addresses and got the same (they are varchar). The queries that return empty are below. [CODE] SELECT purchaser telephone FROM …

Member Avatar
Member Avatar
+0 forum 6

In writing a CGI script, I have come across several errors. As I went through and fixed the errors, I seemed to get all of the syntax errors but as I completed the last ones, a long list of errors came up that I did not understand. In trying to find where the error was coming from, I commented out different portions of the file, eventually commenting out the whole file, and still received errors. Does anyone know what would cause an error like this?

Member Avatar
Member Avatar
+0 forum 8

Hi! Im pretty new to this whole thing with PHP and have looked at some examples to learn it. I currently made a site that for now, runs on WAMP localy. The thing is, i was wondering if this would be a good code to use on the upload.php site. I get this error when trying to upload a big image file. It says the filename can not be empty at line 85. I would appreciate it if anyone had time to look at this for me. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" …

Member Avatar
Member Avatar
+0 forum 2

I just downloaded a document containing some pointers exercises. The statement of One of its questions is as follows: [COLOR="Green"]Write a function that returns a pointer to the maximum value of an array of double's. If the array is empty, return NULL. double* maximum(const double* a, int size); [/COLOR] It confused me a little. I am wondering what is meant by an empty array? Does it mean that all elements of the array are 0 or 0.0? Or if it means the number of elements in the array is zero? If the case is second then is it possible to …

Member Avatar
Member Avatar
+0 forum 6

I have an array set up to receive the names of forms when they open. The form name is sent as a Form not a String therefore when I run my code I cannot check for whether the field is empty in the normal way (ie. array(1) = "") as the "" are only usable with strings! [CODE]Dim Forms(24) As Form Dim i As Integer Dim Free As Integer = -1 Do If Forms(i) = Then Free = CInt(i) End If Loop Until Free <> -1[/CODE] I only need a solution to do the same as array(1)="" but for windows …

Member Avatar
Member Avatar
+0 forum 2

I can't work out why when i try to print the list(listProb....s) it prints the empty list, i'm not setting them to the empty list after this code or anything, and when i print the normDistProb's on their own it prints fine): [CODE]for i in range(0,12): listProbFog.append(normDistProb(dayValues[i], fogAve[i], fogVar[i])) listProbSnow.append(normDistPr...ob(dayValues[i], snowAve[i], snowVar[i])) listProbRain.append(normDistProb(dayValues[i], rainAve[i], rainVar[i])) listProbNone.append(normDistProb(dayValues[i], noneAve[i], noneVar[i])) [/CODE] Thanks p.s. listProb's are indented

Member Avatar
Member Avatar
+0 forum 4

hi all!! here's the deal: i have this code [CODE] Sub SaveToTextFile() Handles Button1.Click Dim name1 As String = TextBox3.Text Dim st1 As String = TextBox1.Text Dim st2 As String = TextBox2.Text Dim br1 As String = "{" Dim br2 As String = "}" Dim desck As String = br1 & st1 & br2 & vbNewLine & vbNewLine & st2 Dim path1 As String = "F:\My Office\foto Database\Descriptions\" Dim extension As String = ".txt" Dim path As String = path1 & name1 & extension Dim objWriter As New System.IO.StreamWriter(path) objWriter.Write(desck) objWriter.Close() End Sub [/CODE] now all i want to do …

Member Avatar
Member Avatar
+0 forum 5

Hello, I have a script written the unix shell language (NOT in bash or any other shell, in sh) that prints the mount point of a given usb (i.e, it takes the path of a usb (such as /dev/sdb1) as an argument). Here it is: [CODE] #!/bin/sh # usage: get_mount [path] # returns: mount pount of given usb path pth=$1 echo $pth mountPoint="`df -h | grep $pth | tr -s \" \"| cut \"-d \" -f6`" echo $mountPoint [/CODE] The problem is, when I run this, it just prints a blank string, and I know the command works because I've …

Member Avatar
Member Avatar
+0 forum 6

Hello, anyone has an idea of how to use php to check to see if a field in a mysql table is empty or has no values? i tried this $query="SELECT fieldId FROM table WHERE fieldName IS NULL" ; but this works only if the field in the table has been set to allow nulls. the problem is, i want to check also for empty field values (e.g. zero-length strings), which is not the same as NULL. Thanks.

Member Avatar
Member Avatar
+0 forum 1

Good afternoon, I have a problem... Else I wouldn't be posting here, right? My quandary is thus: I have an empty table in a database that I want a user to be able to fill. This will occur when employees are replaced for sick leaves, etc. I'd like to be able to have them populate (insert) information into the table, where I can then match it into another table that I have for a report. I've been looking up using GridView ... a lot ... and it's kind of helping me get back into the swing of things code-wise, but …

Member Avatar
Member Avatar
+0 forum 4

Hi all, I am trying to call a 2D array from another class, and equate the 2D array to a 2D array in the class its at. However, I'm having some problems. I can call the 2D array from the class that I want to, but it seems like my 2D array is empty after it is being called. May I know what went wrong? [CODE]import java.io.*; import java.util.*; import java.awt.*; import javax.swing.*; class MatchApplet extends JApplet { TextArea outputArea; JButton button; JButton reset; JTextField tF1; JTextField tF2; JLabel l1; JLabel l2; String s1; String s2; static String display1 = …

Member Avatar
Member Avatar
+0 forum 55

Hi all, I'm actually equating a 2D array from a class to another class. I call it using method call. However, it seems like the 2D array is empty after I equate it to another 2D array in another class. May I know where is the problem? [CODE]import java.io.*; import java.util.*; import java.awt.*; import javax.swing.*; class MatchApplet extends JApplet { TextArea outputArea; JButton button; JButton reset; JTextField tF1; JTextField tF2; JLabel l1; JLabel l2; String s1; String s2; static String display1 = ""; static String display2 = ""; static double[][] myDouble = new double[1000][1000]; static int x=0, y=0; public static …

Member Avatar
Member Avatar
+0 forum 6

Hi there...... I have received a domain from a customer which is showing me very strange things..... When I tried to login via FTP it showed me empty directory.... The server is apache and when I try to login via cpanel it gives me this error "Not Found The requested URL /cpanel was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. " Can u plz suggest whats the matter here???

Member Avatar
Member Avatar
+0 forum 3

I have a drop-down list box which has to be populated from a database in mysql. I implemented the following code: [CODE] //DB Conn done here.. <td>College Name,id :</td> <td><select><option selected="selected">Choose a college...</option> <?php $query="SELECT nameid from college"; $result=mysql_query($query); while ($line = mysql_fetch_array($result)) { foreach ($line as $value) { echo "<OPTION value='$value'"; } echo ">$value</OPTION>"; } mysql_close($link); print "</SELECT>"; ?> </select> </td> [/CODE] My problem is a new line is inserted between each entry in the drop-down list box. Pls help me to remove that empty line.

Member Avatar
Member Avatar
+0 forum 3

The End.