199,114 Archived Topics
Remove Filter ![]() | |
I have a weird problem and I want to know if any of you have any ideas on how to fix this. If I do this... [code] swprintf(Dest, 500, L"G%sY", "AMEDA"); [/code] [b](wchar_t*)Dest[/b] contains the following text... [TEX]GAMEDAY[/TEX] But if I do this... [code] swprintf(Dest, 500, L"G%sY", L"AMEDA"); [/code] [b](wchar_t*)Dest[/b] … | |
Ok here's my problem. What i wanted to do was that if i save the value i enter on my txtbox (txtIDNo) and saves it to my database, the default value should automatically adds 1 or + 1 on it. I set the field data type to Number and the … | |
hey guys, How to convert the lat/long (in decimal) to x,y pixel. my map has a height and width of 800,500 thnx regards, Nishan | |
Hi all, I've been trying to do this for a few hours now, I've seen several suggestions that castin the toArray() method to a (String[]) should work but this results in runtime errors for me. Code is below, any help would be appreciated. Error is with the getStudents() method, there … | |
Hie, I'm trying to first pass a variable in a link from index.php to a page template.php. This variable is holding a table name of a data-base. Now my problem is to get this passed variable (which is a table name) from index.php to template.php and use the same to … | |
Im developing one application here i need to pass the data from servlet to JSP .How can i pass it ? i tried by request.setAttribute() but it printing as null in JSP page . how can i solve this problem? | |
Hello all, I hope I find the help I need here. I am sorry I am not good enough in C++ yet. This is my first year so please be patient with me. This is my problem: p = 4x^5 + 7x^3 - x^2 +9 the ADT operations are: p.degree() … | |
Hi friends can you send me links OR tell me how to write log files in C++ using events i have got some link from Google but it is not helpful can anyone please help me with some example code | |
I have created setup file of my program. I have tried to install it there in two pcs to test it that its working properly or not. One pc has visual studio & my program worked there after being installed but another pc doesnt have visual studio & my program … | |
[CODE]Traceback (most recent call last): File "C:\Documents and Settings\Administrator\My Documents\textprocessing\test files\keep 6 latest file.py", line 37, in <module> shutil.move(file_name, dst_file) File "C:\Python31\lib\shutil.py", line 278, in move copy2(src, real_dst) File "C:\Python31\lib\shutil.py", line 113, in copy2 copyfile(src, dst) File "C:\Python31\lib\shutil.py", line 66, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No … | |
Here i am again. I would like to to know how to use/connect a database for my login program to a Database from another computer. I will be using 2 pc unit and connect them with a CROSSOVER connection UTP Ethernet cable. My Dbase will be on the other unit … | |
Hi everyone... im new to this forum and also in web application using jsp-jstl. im having problem passing data from a multilple check box lists. here's my code: [CODE]<form method="post"><sql:query var="charge" dataSource="${datasource}"> SELECT chargeID, commodity FROM other_charges where charges_typeID = 1 </sql:query> <span class="cell_content">Toiletries:</span><br /> <c:forEach var="row" items="${charge.rows}"> <input type="checkbox" … | |
Here is my sample xml [CODE] <STUDENT_INFOs> <STUDENT_INFO> <STUDENT_COUNT>1</STUDENT_COUNT> <STDNT_ID>xxxxxxxxx</STDNT_ID> <STDNT_NAME>someone1</STDNT_NAME> <STREET_ADDRESS>address1</STREET_ADDRESS> </STUDENT_INFO> <STUDENT_INFO> <STUDENT_COUNT>2</STUDENT_COUNT> <STDNT_ID>yyyyyyyyy</STDNT_ID> <STDNT_NAME>someone2</STDNT_NAME> <STREET_ADDRESS>address2</STREET_ADDRESS> </STUDENT_INFO> : : upto 50 student info </STUDENT_INFOs> [/CODE] I would like to display this using xslt such that I have 5 student names in the first row and the next 5 … | |
we have a case study to accept user input or should i say... INPUTS from user input :: must not exceed 5 digits. when the user inputs 0 (zero) .. it will reverse his inputs from before. how can i reverse them?? can this could do the job? [CODE]public static … | |
Friends, My main form is located toward the right side of my screen so as not to cover up other open programs. I wish to locate MessageBoxes in relation to my main form (typically centered over my main form) instead of a relation to the screen. How do I do … | |
Hi. I want to run some shell commands on linux machine with python Popen, for ex. "ping". How I can terminate the process, if it isn't finished normally in a given time? I've tried write some code, can anybody improve it or give some better idea? Any suggestions appreciated. Thanx. … | |
Please, How do I properly add a Winsock Control in WPF for purpose of LAN applications? I tried adding the Winsock control dynamically but then the event functions are not available then. Note: Using WindowsFormHost does not show in my WPF application. Help please! | |
I've been severely troubled on putting a cout whereas will tell me [COLOR="Red"]"Error"[/COLOR] if i didnt put an integer and put a symbol or alphabet instead here's my code.. [CODE] #include <iostream.h> #include <conio.h> int larger() { int x,y,z; cout<<"enter 1st integer : "; cin>>x; cout<<"enter 2nd integer : "; … | |
Here is my problem. I have a table that produces 11 names with 2 values for each. These values are derived by subtracting one field in the database from the other. I have no problem gettign the table to produce those 22 values, but now I want to total each … | |
Hello. For 2D matrix multiplication, i tried a new method, which uses only 2 for loops. (im basically using a 1D array to access the elements). Here is the code: // Mutiplication.cpp : Defines the entry point for the console application. // [CODE]#include <stdio.h> int main(void) { int a[] = … | |
I have a project to create a game. This is my code since i am the way improvement. But now i face a problems is, when i run the code and play it, there have a bug and i don't know how to fix it, pls help me. When i … | |
Hi guys ! I am trying to find out how to do this problem using construction with useful value , here is Can I use cons traction with [CODE]public : void set_value (int e, int r) … | |
make failed Error: Error: Unresolved external '_main' referenced from C:\BC5\LIB\C0X32.OBJ I got above error when trying to build one of the examples given in \BC5\examples directory.What is the cause? | |
[code] private void button1_Click(object sender, RoutedEventArgs e) { ShellWindows shellwindows = new ShellWindows(); string filename; foreach (InternetExplorer ie in shellwindows) { // Get the document mshtml.IHTMLDocument document = ((mshtml.IHTMLDocument)ie.Document); // Get the script object. object script = document.Script; filename = Path.GetFileNameWithoutExtension(ie.FullName).ToLower(); if (filename.Equals("iexplore") && ie.Document.parentWindow.name = "Test") { // Make … | |
Hi there: I am running FCKEditor 2.6.4 and am looking for a solution to insert onClick and onMouseOver external javascript into the anchor tags of my editor instances. This insertion would be handled via a toolbar button. What I already know and have tried: 1. Know how to manually do … | |
could any one help me how to make the label box as transparent.... | |
Hello! I have a problem which I don't know if it is related to MySQL or Python. I am writing a database using wx.Python and MySQLdb. My problem is that when I want to send some string which contains accents to the MySQL database (for instance, 'Empordà ') it is inserted … | |
Hello! I have a problem which I think it is related to Python, however I may be wrong. I am writing a database using wx.Python and MySQLdb. My problem is that when I want to send some string which contains accents to the MySQL database (for instance, 'Empordà ') it is … | |
Hello! I am trying to set up a masked combobox using wx.lib.masked.combobox.BaseMaskedComboBox with autocompletion. However, I've found a couple of problems. On one hand, if I run the code as I provide it (code at the end of the post), I get an error caused by the 'Antigua and Bermuda' … | |
Hi everyone. I have two dictionaries. In dictionary1 I have numbers as keys and the occurrence of those numbers as values. In dictonary2 I have numbers again as keys, but there are more numbers here than in dictionary1. The values in dictionary2 are the description of the numbers. From dictionary1 … | |
I am currently wanting to know how to find out two different dates from a list of dates for each customer. I can find out the first date for each customer but I need to know their 6 month and 1 year visit. But the problem is not all the … | |
i wan set a timer in my program to execute a certain function daily,weekly or monthly(which will decide by the user)!User also can execute manually the certain function at anytime! any1 can teach me how 2 do these 2 function in my program? thanks............ | |
Can some one help me in find out which other threads are created as we start our main program, like "main" thread will be followed by "Finalizer" and then followed by "Reference Hanndler" etc. It may be System threads. But my questions is how i came to know and starting … | |
Hi, Am a total newbie to programming & trying to learn python thro pdf tutorials. I have this working code which uses four numbers as arguments to calculate the distance between 2 points. Tried to unsuccessfully convert it to use Class. Can some one guide me & can I request … | |
I am newbie to MySQL.I create a database in MySQL in command shell by "create database DBNAME". But I can not use my own created database.So friends help me how to log into my database named "DBNAME" because I want to create some tables in that. Thank You | |
I want to change icon on remote exe with one that is stored in RC_DATA in my original program (exe) I'm using VC6 where is the error? here's the code [CODE]HINSTANCE hExe = LoadLibrary(nameExe); // first icon HRSRC hRes = FindResource(NULL, MAKEINTRESOURCE(101), RT_GROUP_ICON); HGLOBAL hResLoad = LoadResource(NULL, hRes); PBYTE lpResLock … | |
I want to add first two columns of excel file into hashtable.. I wrote following code but it is giving me eror saying indexing not allowed in datacolumn... [CODE] Hashtable ExcelSheets = new Hashtable(); System.Data.DataColumn dc; // adding excel file into hash table if (dt1.Columns.Count > 0) { for (int … | |
Hello, I am new to vbs and I am trying to copy 'multiple folders' out of a folder called 'voice profiles' into the 'my documents' folder. I've tried this script I wrote and haven't got the results I've wanted. dim filesys, tempFile, readFile, fileText, fileVer On Error Resume Next '' … | |
Afternoon all! Was hoping for a bit of help with something. I am oringally a C++ developer so this way of thinking may be way out there when coding in c# but I thought I would ask the experts first. I am currently creating an XML Viewer. I have a … | |
Hi, I have an application with a main form, and a TabControl in the centre. When a user creates a new tab I want to have controls (Textboxes and labels etc) loaded onto the tab. I was thinking of creating my own class that have these controls already defined in … | |
hi everyone, I am doing my under-graduation in computer science,i am having difficulty in dealing with data structures course,mainly in theoretical part,can anyone please help me in suggesting me a good textbook and book with problems/questions that could help better understanding plz... | |
Alright so I'm completely stuck I don't understand my assignment. My biggest problem is learning what gets passed where since our instructor has us working across 2 .cpp files and a header file. I think I might be able to write the code if I understood HOW it was being … | |
'System.Data.SqlClient.SqlTransaction' in Assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable. Stack Trace: at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter) … | |
![]() | After close to 40 years of programming one might think that databases would be a well known subject, but it's not for me. In fact I have never had a need for a database until now. I have installed Joomla because I want to develop my websites faster and more … ![]() |
I have a form (vb.net, VS2010) which retrieves product orders and displays the result to a datagridview and text fields. I also have a combo box which displays a list of all products in a product file. I need to set the displayed text of the combo box to match … | |
Hi all, i need some help in c# in order to display the attrtibute that is not in the same table.. i have a table COMPANY and CODE..in company table, i have attribute called CmpStatusCode that just display in int (input by ddl which is selectedvalue ex: 1,2,3)..but in CODE … ![]() | |
Hi All, Hope everyone is well, it has been a while since I last posted. I am creating a Yahtzee game, the first thing I want my game to do when it loads is ask for the player/players name/names, so that there scores can be saved to a high scores … | |
I'm working on a code that will multiply two matrices and print the result. This specific code is meant to ask the user to define the bounds of the matrices (i.e. the (M)x(N) of the matrix) then ask for each matrix by row. The trouble I'm having is that I … | |
hi all.. do anyone know how to add a new column in gridview using vb.net syntax? the column that i want to add is not bind to any database unlike the other column in the same gridview. i try to use GridView1.Columns.Add("Percentage") but it turn out to be error. the … | |
I have tried to write a script that sends image as an embedded object rather that attachment OR a url link but it is not working. I am attaching the code. Please help me. |
The End.