64,152 Solved Topics
Remove Filter ![]() | |
Hi All, I have a table with retrieves an image from the database table item, and displays it in a column within a table(for each product-ISBN). I want to be able to show additional images for each row in a table. For example, i would like a hyperlink under the … | |
Ok, I really hated to resort to threading, but it seems like I have no other choice. I am writing a client script for the "instant message" server I just finished writing. Sadly, I am having a slight problem with threading. What I would like to do is have two … | |
hello, i am trying to store some values in an array dynamically. doing this as i dont want to over allocate memory to my array. so the code goes as follows:: [code] #include<stdio.h> #include<stdlib.h> int *p; main() { int i; for(i=1;i<6;i++) { p= (int *)malloc(sizeof(int)); *p++ = i*i; } printf("\n … | |
I have tried several combinations and just can't get this right. I am getting "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM bookmarks WHERE bid = 11' at line 1" when … | |
ok i have been trying to really find out how to do this but with no help. i got this script to work but the problem is that it is not getting the file from the directory that it is stored in. it is just trying to find it in … | |
Hi All, If i protect a sheet then I am getting this runtime error stating Run time error '1004' Application-defined or object-defined error Its not highlighting where is the error .. can anybody help me please i have deadline by today evening.. thanks | |
[B]What it is now:[/B] I'm working on a personal blog because I'll be visiting Sweden for 4 months. I've found / hacked a script that allows the user to mouseover swedish words and have a static translation box show the translation. Working site at [URL="http://sverigejourney.tumblr.com"]http://sverigejourney.tumblr.com[/URL] The current code I use … | |
Hi, I want to Load .dll library on my program. I was using LoadLibrary and GetProcAddress which is tedious work. I saw somewhere Idea of using .lib files but have no clue. I have used google but I got lost. Please help me :( Codeblocks 8.02 MINGW 3.4.5 Windows Vista | |
ok something went wrong and i cannot for the life of me figure it out. my login script which also logs out will not unset the name and admin i set for it. also on top of that if i do use a session_destory and login again it does not … | |
Hi all, I'm trying to mimic an html form that calls a script on the web. When I put the form together on a page, it works, and I was wondering if there was a way I could "scrape" this post request and see what I'm missing when I try … | |
Hi Everyone I am not a full time programmer. I had been using Python for everything and then went to PHP to build my website. I really love PHP now but surely it is the wrong tool for many offline tasks. I know Python is strongly typed but after using … | |
Hello, I'm working on a new little project that moniters a configuration file. Everything seems to work great except for when I attempt to do some error handling. The configuration file simply looks like this. # third sets the lights # 0 = off, 1 = on, 3 = lights … | |
Hello everyone, I am dealing with this problem that I receive a buffer from a client, and when I try to output what the client sends to my program, it only shows everything till the first zero character. [code=C++] #include <cstdio> #include <winsock2.h> #include <iostream> #include <string> using namespace std; … | |
Hi all I'm literally begging for help here. I have a program that as part of other things, executes a batch file. In visual studio 2008,it works fine either either as debug or release. If I execute it fro the debug/release directories it works fine. if I copy the debug/release … | |
Hi All, I know c# has limitations on assigning null values to datetime and integer value types. But is there any trick I can utilize. I'm converting my appl. from another dec. tool wher I have no null issue, to c#. What I want to do is ; I populate … | |
i have this code ... [CODE] namespace ConsoleApplication1 { class watchmove { private static string myString = string.Empty; static void Main(string[] args) { myString = System.Configuration.ConfigurationSettings.AppSettings["DestDir"]; Run(); } [PermissionSet(SecurityAction.Demand, Name = "FullTrust")] public static void Run() { string[] args = System.Environment.GetCommandLineArgs(); // Create a new FileSystemWatcher and set its properties. … | |
i AM really new at java and i have just created a very simple diesign of something that is static but should play mp3 files, loaded the required jmf as well ...I want when i click on the jtable and then play song starts playing ..its is not happening here's … | |
and how i would go about fixing it? main [code] #include <iostream> #include "Format.h" #include <fstream> using namespace std; int main() { Format format; //string word; char in; ifstream infile; bool a=true; bool b=true; bool c=true; while(b==true) { cout<<"to quit type 'q'\n" <<"enter 'c' to get from console\n" <<"enter 'f' … | |
I don't get this.. I was able to use it the other day without issue, but now when I use it, the "message" that I put into the paramater doesn't get printed out to the console, and I get an error box saying "Program has stopped working. Windows is checking … | |
Hi, Just wonder is there any way to display enum as enum not as integer? Thank you. | |
Hi All, I need to change the style of the first row in an excel sheet(that is created dynamically) in VS 2008. I tried using Excel.Style in vb.net but cudn't seem it working. any help? | |
Hey, I'm having some troubles with my hangman game i'm making. I want it to display dashes for the number of characters that there are in the word which that part works fine. but then if they guess the right letter, I want the dash to be replaced with the … | |
This is a catalogue of some experiments on just two aspects of undefined behaviour. This was inspired by yet another long bout of explanation in a recent thread, so I thought it was time to dust off a bunch of compilers, and compare. This is the test code. [code] #include … | |
Hi, I'm trying to bind a DropDownList in the code behind using the following code: [CODE]Dim DatabaseConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("myServer").ConnectionString) Dim selectCMD As String = “SELECT name, id FROM Clients WHERE name LIKE @name + ‘%’” Dim selectCMD As New SqlCommand(selectSQL, DatabaseConnection) selectCMD.Parameters.Add(New SqlParameter("@name", SqlDbType.VarChar)) selectCMD.Parameters("@name").Value = name Dim adapter … | |
I have been trying this for days now and I am not even sure if I am going about this right. I've got errors errors errors everywhere. What I am trying to do is write a windows app that maintains a contact book that can hold up to 20 entries. … | |
Hi peoples, I have a textbox: [code=asp.net]<asp:TextBox ID="TextBoxFirstName" runat="server"> </asp:TextBox>[/code] I need to make sure that it captures data for a first name allowing letters from a-z, A-Z and special characters like - (dash) and the space characters. The validator will block all other characters. How do I go about … | |
I have a excel file and I want to find what I need the ID which is first colomn. The excel file is 4 sheets and fisrt colomn is ID on them. Problem is this : I know only and only ID but I dont know this ID which sheet … | |
Hello Everyone, I had a small problem in my page. There are some select menus that the user can select and there is a download button which on click should allow the user to download a file based on the selected options...I used the following code under the onclick event … | |
this is the code #include<stdio.h> void main() { int i; printf("%d, %d",++i,i++); } and following is the output 8429558, 8429556 | |
there is a tools or util that convert mips asm to c code? thx. | |
Hi everyone! I have a program in C#, which doesn't resize and adjust the contents of the app-window when I maximize it. I know that in Java, one can use JFrame and this problem is eliminated. Is there an equivalent in C#? | |
Hello everyone, I'm writing a code and in there and I need to convert a char which contains any of "+", "-", "*", "/" into a real operator. As an example let's say I have: [code] char myOp = '+'; int op1 = 10, op2 = 20; cout << op1 … | |
Hi all I'm having a strange array problem. I'm pulling variables from a database and putting the values in arrays. One set of values are pure numbers. This array works fine. My second set of values are a mixture of numbers and letters. This second array just returns values of … | |
Hello guys, I don't know if there is already a solution for this but I'm having a lot of problems with re-loading the Ajax div tags. At the moment I have two div tags in my main index.php file, called "flowchartDiv" and "buttondataDiv". Now what I'm trying to do is … | |
I have a grid view and I have a drop down list in several of the cols. A couple have their own data source, and a couple are hard coded. So when I click edit the labels turn to drop down list. BUT, i need to access the drop down … | |
Hi guys please help with this i am trying to write my data from a table in a lis box but a always get the number of items inside the table. can some one come thru please. lstData.items.Add(dataAdapter.fill(dataset,"MyTable") all kinds of help will be appreciated | |
I'm a .net programmer so forgive me if this is a stupid question, but here goes. I'm working with a vendor to interface our system with theirs. We are sending text data via modem. The protocol specifications they have given us require a checksum value to be appended to the … | |
hi, How do you make a exe open and run in a different directory in vb6? so my exe is in the directory D:\test.exe and want it to run in the directory C:\ without copying the file there | |
what's wrong with this line when I try to compile in C++?? The src code was originally in C. It gets an expected identifier error with my c++ compiler [CODE]typedef enum {false, true} bool;[/CODE] | |
Hi guys....i have a problem and I hope you can explain me where am I wrong... I am doing some kind of Breadth First Search (BFS) ("some kind of" because this is my first program to use this algorithm) I have an array of size 4^9 (262144 for those of … | |
This is a continuation of a previous problem I had with a "dir" like program. The previous solution actually *doesn't* work as I'd hoped. the Path class works, as far as I can tell, when the paramater is passed in a very specific way. It doesn't work if I don't … | |
Hello I am reading a text file & I want to make a for loop, loop repeatedly until the end of the file. Is my code below correct, in terms of syntax? Is this possible to do. [CODE=cplusplus] #include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; // … | |
Hi, I have a table in MySQL that I want to update it if the row exist or insert the record does not exist. [CODE=php] mysql_query("REPLACE INTO `$it` (file_name, directory) VALUES ('$insert','$dir_http')"); // or die ("Insert query failed"); [/CODE] I was following this: [URL="http://dev.mysql.com/doc/refman/5.1/en/insert.html"]http://dev.mysql.com/doc/refman/5.1/en/insert.html[/URL] But every time I run REPLACE … | |
Hello, I have a treeview control and want to add a node to it at a desired location or as the child of a Certain Node X.The problem is I will know nodename[or the Text displayed ] of X only at runtime. How do I Iterate the tree to find … | |
Hello, I'm learning Java ME and when i complete the development of an application that uses RecordStore, it's simple a contact book, but when i completed the code i see that my program have an error and i use Eclipse, then it marks wrong codes in the left of the … | |
Hey guys, here's my question. In this text rpg i'm making i'm trying to add a "critical strike" chance, so that the player hits more, i got the hitting more part down right, but my problem is that for example, say the player can hit from 1 to 5 HP, … | |
I did see some other posts on this project, but nothing seemed to help. I just keep getting more confused. =P I coded all my issues into the comments, as this project is already late, and I'm going to have to hand it in - whether it works or not … | |
Hi There.... # include <iostream> using namespace std; int one (int x, int y); double two (int x, double a); int main () { int num, x, y; double dec, a, first; cout<<"please enter two integers numbers: "; cin>>x>>y; cout<<"please enter a double number: "; cin>>a; num = one (x, … | |
Hi, I'm a newbie to python and I'm reading a file and trying to split a string every 3 spaces, that is included any whitespace. string.split() will split the string up every whitespace, but is there another way to specify every 3 spaces, whether there is whitespace or not? I'm … | |
Hi, I have a class object that I have created a DataSource on. e.g.: [code] public class TestDataSource { string fld1; public string Field1 { get { return fld1; } set { fld1 = value; } } } [/code] When the DataSource object is created via the wizard, it will … |
The End.