8,298 Topics

Member Avatar for
Member Avatar for Rombosia

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. …

Member Avatar for selvaganapathy
0
1K
Member Avatar for Kavyashri

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.

Member Avatar for Kavyashri
0
5K
Member Avatar for NargalaX

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 …

Member Avatar for Geschickte
0
263
Member Avatar for immujeeb

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 …

Member Avatar for immujeeb
-1
127
Member Avatar for rss

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.

Member Avatar for Geekitygeek
0
148
Member Avatar for daeuse

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 …

Member Avatar for daeuse
0
171
Member Avatar for mtfudi

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 …

Member Avatar for kolosick.m188
0
75
Member Avatar for Romil797

Hi I have tried so much and I am wondering how I can put a background image in an email using gmail.

Member Avatar for sknake
0
383
Member Avatar for shahid00704

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 …

Member Avatar for shahid00704
0
120
Member Avatar for codecutie

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 …

Member Avatar for programmersbook
0
137
Member Avatar for nfatima

hi, is anyone know how to code Homomorphic Filter in c#.net? I only find it in matlab code

Member Avatar for nfatima
0
43
Member Avatar for hardlynoticable

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 …

0
67
Member Avatar for astala27

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, …

Member Avatar for n1337
0
111
Member Avatar for amit-400

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 …

Member Avatar for Oxiegen
0
96
Member Avatar for cyborg22

:) 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 …

Member Avatar for programmersbook
0
386
Member Avatar for carey_amanda

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 …

0
71
Member Avatar for blur_guava

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 &amp; Class2.cs. Next, I open up the .CSPROJ file of ClLib and modify …

Member Avatar for blur_guava
0
237
Member Avatar for jojomakinen

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 …

Member Avatar for jonsca
0
152
Member Avatar for CaffeineCoder

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> …

Member Avatar for CaffeineCoder
0
282
Member Avatar for ziyakhan10

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; } …

Member Avatar for Skeen
0
4K
Member Avatar for Eternity[LK]

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 …

Member Avatar for jonsca
0
370
Member Avatar for travism

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++. …

Member Avatar for travism
0
7K
Member Avatar for brightsolar

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 …

-2
63
Member Avatar for Tank50

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'" + …

Member Avatar for Tank50
0
195
Member Avatar for XMarshall

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. …

Member Avatar for DdoubleD
0
262
Member Avatar for pilu

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 …

Member Avatar for DdoubleD
0
291
Member Avatar for Paladine

[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 …

Member Avatar for avirag
-1
7K
Member Avatar for Stefano Mtangoo

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++?

Member Avatar for Stefano Mtangoo
0
176
Member Avatar for 07tr0wa07

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 …

Member Avatar for Lerner
0
276
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
654
Member Avatar for Clinton Portis

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 …

Member Avatar for Lawand
1
153
Member Avatar for shachar

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 …

Member Avatar for sknake
0
66
Member Avatar for bharanidharanit

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]

Member Avatar for bharanidharanit
0
152
Member Avatar for absk

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? …

Member Avatar for peter_budo
0
160
Member Avatar for Vita1ity

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) { …

Member Avatar for Aia
0
42
Member Avatar for dewdropz

//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) …

Member Avatar for jonsca
0
102
Member Avatar for Robyy14

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> …

Member Avatar for Robyy14
0
11K
Member Avatar for maharjanmike

so far i was able to do for countting the letters in a phrase ..,but i am not able to count the words in a phrase and displaying according to the number of the word...here's my code to count the letters.. what changes should i make to count the words …

Member Avatar for maharjanmike
-2
105
Member Avatar for fradiavolo

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 …

Member Avatar for Lerner
0
261
Member Avatar for dani2010

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 …

Member Avatar for dani2010
0
977
Member Avatar for Acute

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.

Member Avatar for sknake
0
564
Member Avatar for srvishnukumar

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

Member Avatar for Silverfox13
0
123
Member Avatar for Hiromi

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 …

-1
61
Member Avatar for leebee306

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 …

Member Avatar for sknake
0
104
Member Avatar for shine_jose

The web site is set to run in server the crystal report header button images and export options are not working please help me

0
71
Member Avatar for Poab9200

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 …

0
192
Member Avatar for woolm110

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 …

Member Avatar for woolm110
0
243
Member Avatar for n3r3d

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 …

Member Avatar for n3r3d
0
195
Member Avatar for amit-400

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.

Member Avatar for towerrounder
-1
85
Member Avatar for norz

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 …

Member Avatar for DanielGreen
0
144

The End.