8,298 Topics
![]() | |
Hi, I have a C++ dll with a header having the following struct: [CODE] struct TData { DWORD m_Command; BYTE m_Option; char m_Message[300]; }; [/CODE] The dll also has a callback function MessageReceived that takes TData as a parameter. The function fills in the m_Message with some data and returns. … | |
I want to create columns in my DataGridView just like that: ______________________________________ |________________Taxes________________| |_______Tax 1_______|______Tax 2______| | 3,50 | 4,50 | | 6,60 | 4,22 | But how do I make column headers with 2 levels, and merge the first row? Thanks. | |
Hey everyone, How would I go about creating a simple chat bot? I have finally just recently got an API running for a chat application called Steam, and I can send and receive messages with this program and moderate everything that goes through, too. So, I was hoping on getting … | |
I want to export these xml tags from c#.... [code=xml]<Mujeeb> <ID>1</ID> <NAME>Table</NAME> <ORIGINAL_NAME>Table</ORIGINAL_NAME> <TYPE>Table</TYPE> <FORMAT> <ID>0</ID> </FORMAT> </Mujeeb>[/code] But the code i code output different result even after i created the Child and Parent table relationship. [code=xml]<Mujeeb> <Mujeeb> <ID>0</ID> <NAME>Table</NAME> <ORIGINAL_NAME>Table</ORIGINAL_NAME> <TYPE>Table</TYPE> </Mujeeb> <FORMAT> <ID>0</ID> </FORMAT> </Mujeeb>[/code] Not sure why … | |
I have set-up a deployment project to install C# application. Everything works fine, except I have to go add-remove programs to uninstall the program. How can I add an uninstall for the application. | |
So I'm working on my final project, and I decided to create a BMI calculator. As part of the requirements, I need to call a function into play. Below is what I have so far, but I am getting errors. I don't expect the solution, but could someone assist me … | |
Consider the following C++ program fragment: [CODE=c++]int a[1000]; int b = 0; for (int i = 0; i != 1000; i++) { b = b + a[i]; }[/CODE] (a) Write a MIPS assembly program which corresponds to this program fragment. (b) Unroll the loop in the program 4 times in … | |
Hello, I have three different string strings string attach1,attach2,attach3; string attachment="text1.txt,document.doc,text2.txt"; i want the above string should be split and each string after splitting it should store into three different strings ex: attach1="text1.txt"; attach2="document.doc"; attach3="text2.text"; there should be a check how many string are coming after splitting the comma and … | |
I keep getting an error when using option 2. Could someone please point me in the right direction. [CODE]#include <iostream> using namespace std; int num; int Size; int choice; int *currentArray = 0; int *tempArray = 0; int index, oldSize, newSize; struct nodeType { int info; nodeType *Link; }; nodeType … | |
hi, is anyone know how to code Homomorphic Filter in c#.net? I only find it in matlab code | |
Hi Guys, Take a look at the following code snippet: [code] <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="UTF-8" %> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <script runat="server"> void Page_Load() { Response.Write("This is a test"); } </script> </body> </html> [/code] It outputs the following: [code] This is a test <html xmlns="http://www.w3.org/1999/xhtml"> <body> </body> </html> [/code] (note … | |
Q. Using recursion, write [B]a[/B] C++ function into [B]b[/B] to convert an arbitrary integer n>=0 into binary. Call this function in the main program with the argument n (That's an easy part I can do that). In example; input n=27, output 11011. If anyone can help me with this question, … | |
Hi , I want to convert any image document to its corresponding PDF format , without using any third-party tool because most of them need to be purchased or on a trial basis. It would be very helpful if someone could post me the source code in C# for implementing … | |
:) Hello experts, Im taking a C++ class and i was asked to Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released Running Time (in minutes) I've come down to making it compile, but, when it couts the … | |
Im doing a school project. have to do dllimport as the SiUtil.dll is written in C++. But im not sure the coding below is correct as there is error. Please advise needed. [url]http://www.silabs.com/Support%20Documents/TechnicalDocs/an117.pdf[/url] Thanks a million. [CODE]using System; using System.Collections.Generic; using System.Windows.Forms; using System.Runtime.InteropServices; namespace ProgrammingInterface { static class Program … | |
i everybody, I am required to find out if the following is a standard practice to create a subclass. Take for instance, I have to create a class library (ClLib) with 2 classes using Visual Studio: Class1.cs & Class2.cs. Next, I open up the .CSPROJ file of ClLib and modify … | |
Hello to all code gurus! First of, I wouldn't lie, i am not a professional programmer.....I am more of the opposite. I was given a program to write during a 4 day C++ programmers boot camp that I signed up for (which ended friday actually). By profession am a graphic … | |
Does anyone know how to setup a dropdown list for C# without using a database? I'm trying to set up one that will allow users to select a newsletter from the dropdown and have it pop up in a new window. Any ideas? [CODE] <ASP:DropDownList id="NewsletterSelect" runat="server"> <ASP:ListItem value="'[Path]'">Newsletter 1</ASP:ListItem> … | |
I am trying to write a program to find nearest prime to a number to its left...using for loop i just don't seem to get it right [CODE] #include<iostream.h> #include<conio.h> void main() { clrscr(); int n1,flag=0; cout<<"Enter The Number"<<endl; cin>>n1; for(int i=n1;i>0;i--) { for(int j=2;j<(i/2);j++) { if(i%j==0) { flag=0; } … | |
Hello. I have created a simple program which generates 3 random numbers, puts them in a text file, reads them, and then does 3 small calculations, results are put in another text file. Program is working correctly on my PC, however there is a catch. I need to submit it … | |
I wrote the following function that takes a string with spaces and replaces the space with an underscore ( _ ). The function works, but I believe there is a less novice way of doing it. Anyone have any suggestions? BTW, this is written in Linux and compiled with G++. … | |
To advance my coding to a great level of understanding my questions or resources you have used to solve these promblems yourself would be apprechiated. My First Problem - Is that now that i have added the background as using the system.assembly the chracters are no longer constrained My code … | |
HI I wrote below coding part,but its generate the exception.Below I mention the code and error Error [COLOR="red"]Data type mismatch in criteria expression.[/COLOR] [CODE] DataSet Serach_sumbitdata=new DataSet(); OleDbConnection conn7 = this.getconnection(); conn7.Open(); string str = "Select * from Customer where SubmitDate between '" + str1 + " 12:00:00 AM'" + … | |
Hi, I have declared a Multi dimensional Array in C# like this: [CODE]private System.Windows.Forms.Button[,] ButtonArray = null;[/CODE] Now after inserting into the array, I would like to re-initialize and empty the "ButtonArray"? Please let me know the possible ways to do that Thanks in advance for helping out a newbie. … | |
Hello, I'm quite new to c#. I have one C++ dll in which I have the two simple add & delete functions. [code]int MyTestFuncs::Add(int a, int b) { return a + b; }[/code] I have to access them into the C# code. I have faced the following error - When … | |
[B]Simple ASP.NET Login Page using C# (ASP.NET 1.0 & 1.1 ONLY!!! [COLOR=Red]NOT 2.0[/COLOR])[/B] This is just a small demonstration to show how easy one can "port" the code from my previous tutorials ( [URL="http://www.daniweb.com/tutorials/tutorial19303.html"]Updated: Simple ASP.Net Login Page[/URL] & [URL="http://www.daniweb.com/techtalkforums/thread19303.html"]ASP.Net Login Page with SQL [/URL] & [URL="http://www.daniweb.com/tutorials/tutorial23605.html"]ASP.Net Registration Page[/URL]) over … | |
I see alot of libraries written in C and I like C++ OOP way. How can I use a given C library functions in C++? | |
Hi guys i'm new in C++..:icon_wink: I have a homework that i need to pass soon and i need help because i only have 1 error and i'm staring at it for 2 hours:icon_cry: going back and forth to my book and came up with no solution:icon_sad:. ok so heres … | |
Some C++ buzzwords a programmer need to grasp really boggles my mind. I try to understand them but I strangely, get dim understanding of them (am I tired? Need a vacation?). Anyway please help me understand the following big words in C++ 1. Virtual Functions 2. Polymorphism Thanks alot | |
I thought this website on coding conventions was pretty cool.. learned some things that I never knew before: [url]http://www.possibility.com/Cpp/CppCodingStandard.html#init[/url] I was just wondering: If there are any conventions in particular you agree or disagree with (and why) If this would be worthy of being a 'sticky post' as I think … | |
Hi, i finished writing my project and am trying to publish in order to use it on another computer. when publishing i get 2 files that have the same effect of just running the program (one called "setup" and the other <programName>.exe). is this an indication of somthing wrong? but … | |
Hello sir, how to change this coding to vb.net coding? [CODE] Stream photoStream = PhotoUpload.PostedFile.InputStream; int photoLength = PhotoUpload.PostedFile.ContentLength; string photoMime = PhotoUpload.PostedFile.ContentType; string photoName = Path.GetFileName(PhotoUpload.PostedFile.FileName); byte[] photoData = new byte[photoLength]; photoStream.Read(photoData, 0, photoLength); [/CODE] | |
I have been coding in C++ for a few years now and am comfortable with OOP concepts and Data Structures. Now I wish to pursue a higher level language which will hwlp me in application development. After much reading, I arrived at C# and Java. Which one should I pursue? … | |
Hey everyone, I've written a program for class but am not sure what the values of a and b are after the code fragment is executed. Anyone that can help me out? [code] int a = 16; int b = 45; bob (a, &b); void bob(int x; int *py) { … | |
//ok i need to write a programme that asks the user to input student numbers as an array and check the initial number and allocate them into different classrooms.. my code looks lik ths: [CODE] #include <stdio.h> int number; int i; int student_number[10]; int total; int first[0]; int main (void) … | |
Heya people i really would appreciate some help here.. The Program Works Just Fine At compiling but after like 1 second after ctrl + f10 to test it i get an error . I looked on google and it is something like Killed by signal 8(SIGFPE). [CODE] #include<cstdio> #include<cctype> #include<string> … | |
Hello, below is my polynomial code. I had to add and multiply 2 polynomials. 1) All i have to do more is to sort decreasingly the adding() and product() functions. Eg: 4x^6 + 6x^4 + 2x^2... etc. 2) Second, to add the coefficient with the similar exponents, same in the … | |
I need help with the two dimentiona array because this is a big program to start learning this. Here's what i have so far. [CODE]#include <iostream> #include <cstdlib> #include <cstddef> //typedef char* CharArrayPtr; //CharArrayPtr a; //a = new char[number_of_rows]; int NO_ROWS = 7; typedef char* SeatRow[4]; typedef SeatRow Seating[NO_ROWS]; //Seating … | |
Hello everybody, i'm new in C# and i have a problem: how to make a loop(what will be in paranthesises?) that asks user to enter a word (then my method checks whether it is a palindrome or not) [COLOR="Red"][B]until user presses [I]Ctrl+Z[/I].[/B][/COLOR] PLZ help, i'll glad to any advise. | |
Hi Friends, I dont Know That how to view the data [ie : Fill the datas] from Gird to textbox.... Plz Explain me With Example Thanks with Vishnu | |
Hello i am trying to implement a wordPuzzle but i am having trouble with the last two functions that i need to implement. this is what i am doing. as i'm reading the dictionary from a text file i am checking the length of the word and according to its … | |
Hi, I have a MP3DataSet that includes .mp3 files, i have a form, which shows all the files in the dataset, on the form i also have the windows media players. I am trying, when the user clicks on a song in the dataset to play on the WMP, any … | |
The web site is set to run in server the crystal report header button images and export options are not working please help me | |
Hello all, I'll do my best to make this as simple as possible to explain. 1. I'm using a WinForm DataGridView. 2. I'm using an auto complete feature that I've coded and I'm trying to add the data that a user has entered in the first column to a generic … | |
Hi all I'm having trouble with some of the login controls for my website. I've successfully set it up so when a user registers it enters the details into an Access database. I'm now trying to get the login to work but can't see how to implement this. I've had … | |
I have this class : int br=0; // br is counter how much records i hold in my vector [CODE]class racunalo{ public: void upis(string naziv, string velicinaRam, string velicinaHDD, string brzina, string proizvodac); void upisKomp(); string getNaziv(int s) const; void pregled(); void upisDat(); void pregledNaziv(); void pregledProizvodac(); void brisanjeRac(); string … | |
Hi, I want to convert any image document to PDF format using C# without using any third-party tool as they need to be purchased or are on a trial basis. It would be very helpful if someone could post me the source code for implementing that. Thanks in advance. | |
i am a student...i am zero knowloedge about sql neither c#.my job is to build a database.i dont really know how i can do it and how to do it?i had tried a tutorial for c# from other website but the tutorial using sql 2005.but i had download sql 2008.i … |
The End.