8,298 Topics
![]() | |
Hi everyone, i already build web page, now i need to add one more user and the user based authorization to view only the website. any samples please.. thank you | |
I am not able to solve problem number 25 mentioned in the attachment. The problem is related to questions 23 and 24, which I have solved. Their code is given below. Can anyone help me with problem 25? Just so you know, since I am a beginner, I am only … | |
Ok. I'm new in c# and I'm trying to create an online booking service. I have the file: dbConnClass.cs where I have the db connection/statement as shown: [CODE] public void getPrice(int fromDest, int toDest, int totalPass) { string sqlStatement = "SELECT * " + "FROM destPrices "+ "WHERE fromID = … | |
I have an image processing project using c++ language. I have also linked opencv to integrate some optimized algorithms.However, I would like to create a nice GUI using Visual C#. Is it possible to call a certain program in c++ in visual c#. (P.S. I have no idea about dll, … | |
Hi All, I am new to programming and have been trying to learn the c++ language for the last couple of weeks. I feel that I understand a lot of what I have learnt but where I am confused how databases are used if c++. Most the tutorials or books … | |
is it possible in C to do an unfix size array like in Java ? if so, howto ? thx guys Dark | |
to anyone, I'm new to using C# wrote a program for a business class to calculate double-decling balance method of depreciation for years. But when I run the progam and enter the 2000 for property value, 5 for property life. I get the wrong results. for year 1 Value at … | |
Hello. I am using this code to save asp.net page as an MS Word doc file. protected void GenerateMsWordDoc(object sender, EventArgs e) { string strBody = "<html>" + "<body>" + "<table width=\"100%\" style=\"background-color:#cfcfcf; font-family: Arial, Helvetica, sans-serif\"><tr><td>????</td><td>2nd cell body data</td></tr></table>" + txtName.Text + "</b></div>" + "Ms Word document generated successfully." … | |
Hello All, Can someone please help me with this? I converted from C# to VB.NET and get this error : [B] A namespace cannot directly contain members such as fields or methods [/B] I appreciate you looking at this. Regards Imports System.Collections.Generic Imports System.Linq Imports System.Text Namespace UsedCarsSales Public NotInheritable … | |
I have developed an application that loaded many images in a listview using ImageList in c# .net framework 4. The images are also compressed. When many many images are loaded and compressed then it takes a long time. So I call the method in backgroundworker. In the backgroundworker I had … | |
[URL="http://www.herongyang.com/C-Sharp/"]C# Tutorials[/URL] This free book is a collection of notes and sample codes written by the author while he was learning Flash. Topics include C#, C Sharp, data types, float, expression, literal, loop, .NET, performance Table of Contents About This Book Introduction of C# (C Sharp) What Is C#? Installing … | |
Hi I am working on Pdf annotation using Itextsharp. I am able to get hyperlink url from pdf using the below code. How to get the annotation (Highlited) text from pdf. [CODE] string[] PdfFiles = Directory.GetFiles("C:\\ABK"); foreach (string fi in PdfFiles) { try { PdfReader reader = new PdfReader(fi); // … | |
Hello, all. I am receiving an error that I hope you all can help me with. After running a while or quite a few reports, I get the message " The maximum report processing jobs limit configured by your system administrator has been reached." I know this is because I … | |
C program to replace all the letters of a string with all 26 alphabets and to do permutations to all the substituted ones and finally store the resulted strings in a file.. please help me out in fixing this situation.. To be clear. let me quote an example: If i … | |
there are three methods called in a backgroundworker_dowork() event in c# .net 4. I want to execute three methods synchronously. that is, 2nd method will execute after 1st method is fully executed and 3rd method will execute when 2nd method is fully executed. because 2nd method can exetue properly only … | |
I have errors for the template can any1 see anything wrong??? //Array.h [CODE]//Header file for Array.cpp. class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; public: //Functions. template<class Datatype> int m_size; Datatype* m_array; //Consturctor. Array( int p_size) { m_array= … | |
I have created a new website . With access db inside app data folder. . And hosted in server. . Bt it is not retrievind or updating db datasg . Why it is happening ? | |
Hello can anyone help me with sorting this struct by name and surname? Ive done like this and it doesn't sort it. Thanks Code: [CODE]#include <iostream> #include <string> #include <vector> using namespace std; struct student { int st_studenta; string vpisna; string ime; string priimek; }; student vpis(int st_studenta) { student … | |
Hello! Im having trouble with reversing string in this program: [CODE]#include <iostream> #include <string> using namespace std; int numChars(string besedilo[]) { int znaki=0; int vrstica=0; for(int a=0;a<10;a++) { vrstica=besedilo[a].length(); znaki=znaki+vrstica; } return znaki; } int numWords(string besedilo[]) { int besede=0; string vrsta; for(int a=0;a<1;a++) { vrsta=besedilo[a]; for(int b=0;b<besedilo[a].length();b++) { if(vrsta[b]==' … | |
I have an integer called: int pID = 0; Inside my while loop I'm using pID++; to increment it. Sometimes the pID doesn't get incremented and sometimes it will. My sample output would be. 0 1 2 2 2 3 4 5 5 6 7 Does anyone have an idea … | |
I want to change chars in string like this: if i input DaniWeb it will change it to EbojZfc I've come so far: But this changes to z at the end :S Please any help... [CODE]#include <iostream> #include <string> #include <algorithm> using namespace std; int numChars(string besedilo); int numWords(string besedilo); … | |
I'm in the process of converting a complex system from VB6 and C to C#. However now I'm in a position where I need to call a C# dll from VB6 and I need it yesterday. The only solution I found was using Interop, which didnt work, and seemed to … | |
actually i'm developing web template using asp.net and c#. i have mainTemp.aspx page which is include usercontrol page. in my usercontrol i have a listview which in this listview i have to create dynamic table inside the ItemTemplate based on a XML file. my listview code including the ItemTemplate is: … | |
I need help finishing this assignment. I am really confused! [CODE] //Game of Life //Dylan Metz #include <iostream> #include <string> #include <fstream> #include <cstring> using namespace std; //function(s) void GetFile(); //Get filename char MakeArray(); //Make 2d array char ChgArray(); //change the array char GameBoard(); //Game Board //Global Variables const int … | |
I am having a problem displaying random numbers, I'm trying to make a dice game where you play against the computer and the first one to 100 wins. However, my random number is never random, it always comes out as the same number. From what I understand to simply display … | |
I need to make it so that whenever I have "East" selected under my combobox for example, then only the list of parks with that particular location will show up. I also need to do the same for whichever facilities are selected and if the park falls within the opening … | |
Hi, When writing a little code for showing ASCII characters in C++ and C, the only difference is when I do it in C++ I print until char ( or integer ) reaches value of 127, and in C I print until it reaches 255. Why it's like that? Thanks! | |
I wanna convert an integer to a character then i will store it later to the index of a c-string...... something like... int res=123 then it will be putted in.... var[0] = 123 where in var is a cstring, and here 123 is now a char type..... here is what … | |
Hi, I'm trying to create a thread for running some tasks. I copied the code from an old console application (which compiles fine), but can't figure out why it's not working now. I have searched for the error code and came across this suggestion: "Are you passing the name of … ![]() | |
Alright, I understand some of the basics of big O notation, but I have a test coming up in a few days and I need a bit of help. I understand that if you have a loop that iterates i*=2 then it would run lg(n+1) as log base 2 and … | |
Hi All, I am trying to convert the following C++ code to C#. pExportDir = (PIMAGE_EXPORT_DIRECTORY)GetPtrFromRVA(exportsStartRVA, pNTHeader, pImageBase); [CODE]template <class T> LPVOID GetPtrFromRVA( DWORD rva, T* pNTHeader, PBYTE imageBase ) // 'T' = PIMAGE_NT_HEADERS { PIMAGE_SECTION_HEADER pSectionHdr; INT delta; INT delta2; pSectionHdr = GetEnclosingSectionHeader( rva, pNTHeader ); if ( !pSectionHdr … | |
I am getting ready to write a programming competition on Tuesday (the Canadian Computing Competition) and I remember that last year it said that only standard libraries can be used. I was having trouble deciding which libraries are standard. I ended up using windows.h and when I suddenly realized that … | |
write, compile and test a short program to read in a list of 10 positive numbers which also determines and prints out the largest number. here's what i've got so far. but how do i change it in order for it to accept a positive number only? [CODE]using System; using … | |
Hello to all, before begin i must say that I'm sorry for my bud english and hope that it not be a problem for understanding whit you. I'm looking for a solution to create a simple background server application that running and live over infinite loop cicle, whit have the … | |
Actually i'm creating web template using asp.net and c#. in my user control page i have to create the table dynamically. i just read the data from XML file then retrieve the name and number of columns and rows of each table. while i'm creating the table i assign the … | |
Hello all this is my c++ web server that i can get working on my computer but not connecting to others for some reason. I am not on a router, just using my external ip address. If i run the server and type my external ip address into my browser … | |
Hi friends, I need to develop a COM Port Application in the C#.Net? So What kind of code will i use to COM Port Application in C#.Net? Please Help me. | |
Hi all, I'm in my 2nd year of software development (doing C#) and having come from a Java background, and having programmed a few GUI's in C#/Visual Studio's; I was wondering... Like in Java You can use an IDE to build a GUI, however you can also simply add Frames, … | |
I am starting a new project and i plan to use c# for it. Basically what it entails to is reconfiguring a large am mount of config files. 100+ of them. They are each named differently but are prefixed the same (ex: CONFIG_FILE_xxxxxx , where x changes). Inside the files … | |
Hi Guys, I am developing an windows application which is downloading file from webserver using FTP, my question is can i download file using HTTP. can anybody help me with some source. I am downloading a xml file. Thanks in advance. | |
I am trying to create an if statement that when the user releases the left mouse button it will write that out to a text file. I have tried multiple different scenario's and have had no luck, here is some of what I have tried. Thanks for your help! [CODE]if(mouse_event … | |
Hi, Hare is the Example: Table1 Table2 Edit button = to edit the value at Table2 3 blank Table1(as per contract we have 3 spare things) Table2(Current stock of things means if stock have 3 out of 2 means we have to edit to 2 in the table 2) ANy … | |
OK, I am relatively new to C#, so in order to give myself a 'learning' project, I thought I'd update an application I wrote a couple of years ago. The application uses a ListView control in "Details" mode to display MP3 tag data stored in an Access MDB database file. … | |
How to host a asp.net c# web project in a windows service. Please give some step by step instruction. . Please note that it is Not a webservice | |
Hey, I am having trouble implementing a c++ function that will allow the user to enter a lower and upper bounds and reverse everything in a char[] in between the bounds, so if array is, char[] = {'A','B','C','D','E'}; and the user input was 1 and 4 for 1 as the … | |
Hi, I noticed many programmers accuse C++ as very hard language for GUI and very good language for the code. Is there any way to integrate 2 languages, C++ and any other language which is easy to make GUI with? Thanks. | |
Hi guys, I need your help: I tried to initialize an array like this: [CODE]string[] relation1;[/CODE] then I fill it with another function that contains the code: [CODE] for loop then: relation1[z] = something; [/CODE] but...compiler always writes that: [CODE]relation1' is never assigned to, and will always have its default … | |
We are using C# as front End and Sqlserver 2005 as backend.We are using visual studio 2008. System.data.sqlclient is the provider for sqlserver in our localhost and our functionality is running correctly. But we are using bigrock as hostgator, where we uploaded our files and we get to know that … | |
Hi Guys, How to use bigin trance, commit and rollback in c#, suppose i have inserted values in two tables while inserting i am getting error in table 2 but table 1 has inserted values successfully so in catch how i can rollback changes.....after successful insertion i want to commit … | |
I need to sort a series of 25 numbers, entered by the user from smallest to largest, then count the number of times the user entered the number "10". I can't use arrays and I have to use only for loops, can someone please help? |
The End.