64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Dorson8009

Hello, this is a newbie question, sorry for that, I am trying to port some Java code to C++. In this code I have a hashmap connecting string values to float arrays of varying sizes. They are specified like this: [CODE=Java] HashMap <String, float[]> hm = new HashMap <String, float[]> …

Member Avatar for Dorson8009
0
168
Member Avatar for MaddTechwf

I'm trying to call other EXE's from my program I'm writing. Inside my project I have a folder called progs with exe's inside it. How can I call these from button clicks?

Member Avatar for betabasic
0
101
Member Avatar for hitomi_inukai

Hi. I'm developing a software for my degree project. I have some problems in sorting the probability item from linkedList object. Here are the snippets of my code (I have almost 400 lines, so if the below is not enough, please let me know) CLASS LINKEDLIST [CODE] class LinkedList implements …

Member Avatar for hitomi_inukai
0
109
Member Avatar for 54uydf

I can't figure out what am I doing wrong!! please help me before I lose it! I'm trying to send 2 different strings to a function that will put each word in the string into a MAP. string 1:[B] "I CAR Collision Repair Training"[/B] string 2: [B]"Autocar India"[/B] my map …

Member Avatar for 54uydf
0
156
Member Avatar for sunny124

Hi, I'm trying to insert data into array after I retrieve it from database but I keep getting this error message: 'Fatal error: Cannot use object of type stdClass as array in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\DeliciousCupcakes\system\application\models\cupcake.php on line 22' Please help me. The framework I'm using is codeigniter. DefaultDirectory.php file …

Member Avatar for sunny124
0
260
Member Avatar for bbinais

please help me.... i want a error message "invalid user name or password" when i input wrong username or password in the login page. i can do it in an another page .but i need the error message in the same loginpage like gmail(between username and password). this is my …

Member Avatar for bbinais
0
4K
Member Avatar for david56connor

Hi, I have a piece of code which loops through checked checkboxes to do something with each of them. After each turn in the loop I want to pause before it continues to the next checkbox until the user enters a piece of text into the text box. I have …

Member Avatar for david56connor
0
2K
Member Avatar for kdcorp87

[CODE]FileInfo[] Images; Images = Folder.GetFiles("Image Files (JPEG,GIF,BMP)|*.jpg;*.jpeg;*.gif;*.bmp|JPEG Files(*.jpg;*.jpeg)|*.jpg;*.jpeg|GIF Files(*.gif)|*.gif|BMP Files(*.bmp)|*.bmp|All Files|*.*", SearchOption.AllDirectories);[/CODE] getting error here [B]An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Illegal characters in path.[/B] completely confused because it works nice in other app. what i m missing? help

Member Avatar for kvprajapati
0
156
Member Avatar for KushMishra

Hello To All, Its very very urgent... I want a page in which the daily news should come[B](IN HINDI)[/B] and there are two conditions: 1. On the first page there must be only the headings and a brief introduction about each news[B](ALL IN HINDI)[/B]. 2. Secondly, on clicking on the …

Member Avatar for kvprajapati
1
184
Member Avatar for venky.skcet

Hi Friends :cool: Am creating a personal diary application using VB.Net. When i publish the solution i get the .exe file. But when i install it, it gets installed in the C drive by default. My question is cant it be installed in someother drive. If it cant someone pls …

Member Avatar for kvprajapati
0
224
Member Avatar for aaronmk2

When I read in this file it reads in the entire line. [CODE] string filename ="f:\\date.txt"; FileStream f = new FileStream(filename, FileMode.Open); StreamReader stream = new StreamReader(f); int line; int[] array = new int[15]; for (int i = 0; i < 15; i++) { line = stream.Read(); // header line …

Member Avatar for aaronmk2
0
92
Member Avatar for Disloxic2

Hi Guys, I need the following code to allow all common image formats, not just .jpgs, as I now need to display animated .gif images, as well as .jpgs. How could this be done? Many thanks, Dave ps: the code below uses a loop to count through the 7 images, …

Member Avatar for Disloxic2
0
101
Member Avatar for blueman:-0

I have device and have the driver of it ,the device send data to me by serial port how i can receive that data in java .

Member Avatar for blueman:-0
0
86
Member Avatar for MaddTechwf

I'm trying to figure how to pull the computers workgroup name using VB.NET. Any help would be great.

Member Avatar for Unhnd_Exception
0
734
Member Avatar for mbhanley

Can anyone tell me if I am going in the wright direction with this, or if there is a better way, I am trying to create a session check so that if logged in clients change the url id number example.com?id=192 it won't show other clients contents. Its the first …

Member Avatar for paulrajj
0
179
Member Avatar for nasablast

I have an input form in which the user fills in several fields. I want to display the contents of these fields on a page right after the user hits submit. I am not sure how to call the last entered record. Also, to further complicate the issue, there is …

Member Avatar for nasablast
0
113
Member Avatar for ALFA-FOXTROT

My code doesn't really matter, it sends and retrieves the correct info, but the question persists... How can I verify if the action after my $.ajax call is done and if not perform until done? Sometimes it performs the action sometimes it doesn't, it loops the request in this case …

Member Avatar for Airshow
0
181
Member Avatar for bibiki

hey there, I have the following code: [CODE] import java.io.*; public class Karakters{ public static void main(String[] args) throws IOException{ FileWriter in = new FileWriter("karakters.txt"); PrintWriter outfile = new PrintWriter(in); char x = 'A'; for(int i = 0; i < 300; i++){ System.out.println((i + 1) + " " + (char)(x …

Member Avatar for bibiki
0
4K
Member Avatar for MasterGberry

Note, this is converted from C# with a converter program and some of my own hand coding, there is definitely a possibility that the compiler is right and something of the sort does not exist in C++, or its named diff. I am having an issue with the long !System::Windows....line, …

Member Avatar for MasterGberry
0
251
Member Avatar for MaddTechwf

I'm playing around with VB.NET once again since college and I'm trying to recreate a program that GeekSquad uses called the MRI for a friend. Upon doing so, I have run into a few snags. The must present one is once I publish my application to a particular spot that …

Member Avatar for MaddTechwf
0
130
Member Avatar for nyler01

Hey there php masters, Please help me in creating a script that will be able for a user to upload his/her photo and display it on the left side of the page.. like the profile photo in facebook. i dont need a photo gallery. just ask to upload a photo …

Member Avatar for Sorcher
0
92
Member Avatar for alonewolf23

[CODE]#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { char ch, play_or_no_play='y'; while (play_or_no_play == 'y') { cout << "Enter a character: "; cin >> ch; while (ch != 'c') { cout << "Wrong Character, try again: "; cin >> ch; } cout << …

Member Avatar for alonewolf23
0
152
Member Avatar for ggbard

I'm building a local database with VS.Net, using C#. I have constructed the database and filled it with data. I've already been through the process of connecting to the \bin copy of the Db and setting the file to "Do Not Copy". Now, I want to design Views in the …

Member Avatar for ggbard
0
170
Member Avatar for BleepyE

Hey, im just wondering if there was any easy were to make sure that an entry havent been used twice in a selection of ComboBoxes. Heres the start for what id have to do if there isnt. [CODE]Private Sub ComboBox9_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox9.SelectedIndexChanged If …

Member Avatar for Fungus1487
0
650
Member Avatar for stephen_UK

Hi there I would be grateful if you could point me in the right direction with this issue please: Only PAGE 1 loads regardless of content of $choice. [CODE]if ($choice='yes') { ?><script>location.replace("http://~PAGE 1");</script> <?php } else { ?><script>location.replace("http://~PAGE 2");</script> <?php }[/CODE] Thanks in advance Stephen

Member Avatar for stephen_UK
0
80
Member Avatar for johnt68

Hello - The code that I have below works .. but I am sure that there must be a more efficient way of looping through to check for a winner. Any advice much appreciated ... thanks:). [CODE]if ((nandcButton[0,0].Text == "0") && (nandcButton[0,1].Text == "0") && (nandcButton[0,2].Text == "0") || (nandcButton[1,0].Text …

Member Avatar for Mitja Bonca
0
142
Member Avatar for croker10

Hi All, I am trying to output an excel workbook that I created else where in the program through a Response.Write() call. The issue I am having is that when I call the Response.Write(); it shows the download dialog for the excel file which it is supposed, but when opened, …

Member Avatar for croker10
0
689
Member Avatar for himanshumishra

Please help me to write a PHP code for following . i have name , address , loanno (unique) , fup as fields in my database loandata. i want a screen in which i enter a loan number and it should search the loan no. in lonono and if data …

Member Avatar for himanshumishra
-1
323
Member Avatar for soft_coder

Hi! I am a developer. I am using jquery to create a modal dialog. I am using the following code snippets. Please tell what is going wrong: [CODE]<link rel="stylesheet" type="text/css" href="jquery-ui-1.8.7.custom.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.min.1.4.js"></script> <script type="text/javascript" src="jquery-ui.min.1.8.js"></script> <script type="text/javascript" src="jquery.min.1.3.2.js"></script> <script type="text/javascript" src="jquery-ui.min.1.7.2.js"></script> [/CODE] [CODE]$(document).ready(function () …

Member Avatar for soft_coder
0
152
Member Avatar for manish250

hello all i have a string *354*4*string#.what i want is to fetch the string and calculate it's length. plz help

Member Avatar for manish250
0
245
Member Avatar for Mike Askew

As the title suggests, i am trying to pull a bitmap image stored in a table location with an OLEObject type to my picture box on the form. The code i am using is as following: [CODE=VB.NET]img_ProductPicture.Image = DS.Tables("LocationInfo").Rows(0).Item(5)[/CODE] The error i am receiving is an InvalidCastException: Unable to cast …

Member Avatar for Mike Askew
1
867
Member Avatar for johnt68

Hello - I cannot understand why I cannot get a win message box to show for my naughts and crosses game? I'm puzzled because no errors show - so I am guessing that I need to be making a 'win method' or something similar ???:confused: [CODE]Button[,] nandcButton = new Button[3,3]; …

Member Avatar for johnt68
0
109
Member Avatar for novice20

[B]hi all using telnetlib, I am issuing a 'top' command on a remote host. Top seems to continue indefinitely. On a terminal, I can use CTRL+c to suspend the process... What can be passed in telnet.write() equivalently to suspend the process , yet retain the output so far... pls help …

Member Avatar for novice20
0
767
Member Avatar for gutchi

Hi everyone! Is there a function in Perl which is similar to the following [CODE]getServletContext().getRealPath("/filepathInContext")[/CODE] which is in Java? The getRealPath method returns a String containing the real path for a given virtual path . I can't seem to find one. Any help would be much appreciated. TIA.

Member Avatar for k_manimuthu
0
226
Member Avatar for rssk

how to store the output of a telnet session on a local machine, so that it can be used further for calculations??

Member Avatar for rssk
0
1K
Member Avatar for Drakarus

I am making a program that involves adding time. It involves adding a beginning time, duration which would lead to the result of an end time from the sum of beginning time and duration. I will illustrate the problem i am having below: 12:15 start time with a duration of …

Member Avatar for nathanseye
0
102
Member Avatar for zlloyd1

I have been trying to get this directory to add data into an associative array for an assignment I am working on but I keep getting useless results no matter what i try and so I thought I would check here for advice. This is the HTML form that is …

Member Avatar for zlloyd1
0
138
Member Avatar for Saikumar Adep

how to connect to The sql server 2005 express edition give me webconfig file with connection string to connect send me the complete file so that i'll try to understand the whole connection to the database thanking u

Member Avatar for Saikumar Adep
0
93
Member Avatar for afaque01

Hello! Every 1.. Can Any1 Please tell me How to make A Form in vb.net Transparent without Making Its Contents Transparent..! Actually I mean I make a border less form which i want as Transparent and in that Form i added little animation picture .. and iwant this animation picture …

Member Avatar for afaque01
0
115
Member Avatar for libathos

hi i want to create a program which will be working like a agenta,meaning a user will fill in a form with an action he wants to perform and the time he must do it and my program should pop up a window which will be trigered by his computer's …

Member Avatar for Ancient Dragon
0
291
Member Avatar for jamesw

Hi, I'm fairly new to ASP.NET with C# and I have created a GridView with a Checkbox template field which displays files in a directory on the server. I am wanting to use DotNetZip to allow the user to download selected files as a single zip file. Below is the …

Member Avatar for kvprajapati
0
1K
Member Avatar for ImanOcean

Hi, I have just started C# and I have created a console application that ensures that the option 'Calculate and display (c)' is not executed if the student details and results have not been entered. I am unsure how to validate a non-entry.

Member Avatar for ImanOcean
0
101
Member Avatar for tomtetlaw

I'm trying to use a DLL that is generated from one of my projects. When I try to compile I get alot of linker errors from ONE of the files from the DLL project. What I think is the problem is that I should be linking to the .lib file …

Member Avatar for tomtetlaw
0
172
Member Avatar for MasterGberry

Okay, so I understand this C# program I was given to analyze, and now I am being told that I need to convert the entire program into C++, just my luck. So there are several features that at the moment I do not understand how to convert over. If there …

Member Avatar for MasterGberry
0
258
Member Avatar for NickPatton

#This is a homework assignment# I need to calculate how many seconds old I am in C. I'm thinking that I can take my birthday as user input and convert it to a date with strptime. I then would like to take the present date and put both it and …

Member Avatar for NickPatton
0
233
Member Avatar for drogers76

I am using streamreader to read and streamwriter to write, i have put the lines into an array [text file contents] ********** Remove [ ] ***************** blah blah blah ;this is blah blah blah ;this is another blah [end of example file] i want to remove the lines that start …

Member Avatar for codeorder
0
324
Member Avatar for by_stander

Help.... I have 3 vectors I want to store in 1 array, but I can't figure out what I'm doing wrong [CODE] vector<double> range, az, el; double RAzEl[1000][3] = {}; for ( unsigned int j = range; j <= (num); j = j + ncols ) { range.push_back(row_d[j]); } for …

Member Avatar for by_stander
0
2K
Member Avatar for jugosoft

I'm creating some barcode generator, and I want to save generated barcode to database, but I have a problem when I want to get bytes from PictureBox Image. It says that Image property is null. That's hapening because barcode is drawn on the PictureBox(not in Image property). I think that …

Member Avatar for jugosoft
0
197
Member Avatar for ddanbe

Hi you all, I have the following code to put a CSV file into a DataTable. [CODE=C#]// read CSV file private DataTable BuildDataTable(string fileFullPath, char seperator) { const int EOF = -1; DataTable myTable = new DataTable("MyTable"); DataRow myRow; try { StreamReader myReader = new StreamReader(fileFullPath); } catch (Exception ex) …

Member Avatar for Mitja Bonca
0
572
Member Avatar for swathys

Hi, I would like to set my application to show [COLOR="Green"]system under maintenance[/COLOR] if it hit the [COLOR="Red"]start time[/COLOR] until the [COLOR="Red"]end time[/COLOR] which i set in the xml (24 hrs). How do i code it. Please anyone can guide me.Thank You! [B]XML[/B] [CODE] <Value Name="StartTime">22.45</Value> <Value Name="EndTime">00.00</Value>[/CODE]

Member Avatar for Unhnd_Exception
0
258

The End.