199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for FTProtocol

[CODE]Linking... Main.obj : error LNK2001: unresolved external symbol "int __cdecl ConvertANSI(char)" (?ConvertANSI@@YAHD@Z) Debug/szStub.exe : fatal error LNK1120: 1 unresolved externals[/CODE] Defined: [CODE]#include <windows.h> #include <math.h> #include <iostream> using namespace std; int ConvertANSI(char sChar); [/CODE] Function: [CODE]// Credits to Dave int ConvertANSI(char szText[]) { return static_cast<int>(szText[0]); }[/CODE] Usage: [code] if(ConvertANSI(szChar) >= …

Member Avatar for mitrmkar
0
85
Member Avatar for Regen

hi! I am using the [media-library SFML](http://www.sfml-dev.org) And for some wierd reason this code gives me a error message: `"#include <SFML/WINDOW.HPP>` int main() { sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); return 0; }" Compiling and linking works good but when trying to run it I get the errormessage: `"Run-Time Check …

Member Avatar for Regen
0
140
Member Avatar for motofoto

Hi I have Client, Owner, and Staff entity, they all are persones!! with additional criteria... Client ID, FName, MName, LName Owner ID, FName, MName, LName Staff ID, FName, MName, LName so Is there a concept of inheritance in RDBMS like SQL-Server-2005 if so how can I implement it. At lease …

Member Avatar for motofoto
0
123
Member Avatar for venu@baylogic

Hi all, Nice to meet you here.... Any free downloadable tools are available for ASP ??? Please assist me to move forward with ASP... I did not found any tools here,please inform me if you know any tools.. Thank U Take Care Bye...................Bye

Member Avatar for x3mario
0
113
Member Avatar for VelcroMan

Any way to get info about the battery in a laptop? Like how many % is left, and for how long that will last?

Member Avatar for VelcroMan
0
78
Member Avatar for pranav_jog

I'm developing web application in as.net and the most bizarre situation ocurred. in this application i am using only one aspx page ,When I select any item from dropdownliast then pageload is called again & again , and the dropdownliast_selectedomdexchanged method is called right after that. then page is loaded …

Member Avatar for greeny_1984
0
112
Member Avatar for karthikvel

hi i'm a new member for this site. i'm a student. i would like to create some small java application softwares. so i need some support from you.

Member Avatar for stultuske
0
81
Member Avatar for marsh4u

Hi all, am a web developer with average PHP skills and I need some help for you guys. I have a table online that has data and a link in one of he columns: i.e. after a reader performs a search, he has the option to download a file. Files …

Member Avatar for marsh4u
0
109
Member Avatar for FTProtocol

I completely rewrote the Stub i was writing because my VB -> C++ was shocking. VB Version: [code=vb] Public Function TempPath() As String Dim WindirS As String * 255 Dim TEMP TEMP = GetTempPath(255, WindirS) TempPath = Left(WindirS, TEMP) End Function [/code] The Left function returns a specified number of …

Member Avatar for FTProtocol
0
89
Member Avatar for Brent.tc

Wow. It's kinda strange to even consider that I am taking part in the creation of an operating system... It really wasn't that long ago that I wasn't even capable of writing a functional program... I owe a good portion of my achievements to you posters here on DANIWEB (especially …

Member Avatar for Brent.tc
0
94
Member Avatar for ishlux

Hi all, Can i know how to do the checkbox validation........ i used the code below but its not validating..... [code]var val; for(i=0;i<3;i++) { if(form2.elements['contype[]'][i].checked) val=1; } if(val==0) { alert("Select type of your Contract") return false; }[/code]

Member Avatar for vicky_rawat
0
87
Member Avatar for harisyahoo

Haris Hussain - Posted on Monday, June 30, 2008 23:15:15 I am facing a following exception. While am deleting a row from gridview. I am using VS 2005. Exception: Index was out of range.Parameter must be non negative and less than the index collection. Parameter Name : INDEX private void …

Member Avatar for FaridMasood
0
235
Member Avatar for faisaly

Dear All, Kindly help me regarding this questoin of C++(OOP). Write a template function that returns the average of all the elements of an array. The arguments to the function should be the array name and the size of the array (type int). In main(), exercise the function with arrays …

Member Avatar for RenjithVR
0
263
Member Avatar for camproject

I have a dialog based application.I use a text box in it.what i want is write the details from that text box into a text file. when i wrote the code ,the data written into the file was as follows..[COLOR="Green"]慨獮a﷽﷽楢畮ﴀ﷽ý晧晧ﴀ﷽ý[/COLOR] My code is, [COLOR="Green"]CString str; GetDlgItemText(IDC_EDIT1,str); fstream f; f.open("C:\\myfile.txt",ios::app); f.write((LPCTSTR)str,10); …

Member Avatar for camproject
0
202
Member Avatar for kavithabhaskar

Folks: I got rid of the error now.. this is my code..pls take a look at the button1_click function! i dont see any data being entered into my database. :( Your guidance will be very helpful! Thanks, Kukki. Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As …

Member Avatar for sierrainfo
0
2K
Member Avatar for lexfridman

Hi, I get the following Valgrind / GDB output when I run my code. This cod e works on some Linux machine and on some others in gives a seg fault with this output. Pasting my code is not a good option since there is a lot of it and …

Member Avatar for cagadaaa
0
672
Member Avatar for pedramphp

I want to code like this but I am limited the Problem is I dont want to brint the If statement out of the heredoc what is the solution [code]echo<<<ENDSTRING <div> if($i==2) $i is 2 </div> <div class='ProDividerA'></div> ENDSTRING;[/code] thanks Pedram

Member Avatar for R0bb0b
0
110
Member Avatar for myth3_16

Hi All, I am trying to get this working. I have two drop down menus, you select one and the other is populated according to the selection from the first one. Now what I want to do is when selecting an item from the second drop down i would like …

Member Avatar for Luckychap
0
156
Member Avatar for camthalion95

I want to make an engine similar to [URL="http://unreal.com"]Unreal[/URL] for PC, 360, And PS3. Who Wants to help?

Member Avatar for camthalion95
0
141
Member Avatar for lil_panda

Are there, in any way, shape, or form, pointers in java like there are in C and C++? If so, do I declare them the same way as in C++? My 873 page book doesn't explain pointers.

Member Avatar for sciwizeh
0
94
Member Avatar for CoolGamer48

When using >> to extract data from an istream, are spaces skipped over? I.e., if I extracted every character from: "Hello, my name is not World.", would the 5 spaces not be read by >>? If so, is this behavior omitted from istream::get()? Thanks.

Member Avatar for titaniumdecoy
0
110
Member Avatar for lich

when you use floating points and do the coding normally you get 4 decimal points. . but if i want to make it to 2 decimal points. how can the program should be. please help me out here is the program i did /** * @(#)Average.java * * * @author …

Member Avatar for Alex Edwards
0
472
Member Avatar for kdw3

Hi, I am trying to use a 2D array to gather information from a dialogue box. The array has been publicly dimensioned in a module. Before the dialogue box is opened, there is data in the array, and thats fine, but as soon as soon as the dialogue box is …

Member Avatar for kdw3
0
124
Member Avatar for monkey123

A seller needs you to generate a program such that whenever a customer purchases some items and pays for the bill. The seller accepts at max $10 denominations. Your program takes input of payment amount and purchase amount. So u need to give an output of the return change to …

Member Avatar for CoolGamer48
0
84
Member Avatar for java_girl

Hi. Objective: Write a program that declares a 12*12 array of characters. Place Xs in every other element. Use a pointer to the array to print the values to the screen in a grid format. Listed below is my non-functional attempt. Any help would be most appreciated. Thanks, Molly [CODE=C] …

Member Avatar for Dave Sinkula
0
123
Member Avatar for veledrom

Hi, I set DataGrid1 column width as follows, but it doesn't effect when i run my program. [code] DataGrid1.Columns(0).Width = 3030.236 DataGrid1.Columns(1).Width = 1604.976 DataGrid1.Columns(2).Width = 1904.882 DataGrid1.Columns(3).Width = 1065.26 [/code] Thanks

Member Avatar for veledrom
0
111
Member Avatar for Jennifer84

I have Form1 and Form2 in my project. On Form1 I open Form2 like this: [code] Form2^form2 = gcnew Form2; form2->Show(); [/code] In the Form2:s LoadEvent I use this code so this Form2 will be Active/Shown even that I click on Form1: [code] private: System::Void Form2_Load(System::Object^ sender, System::EventArgs^ e) { …

Member Avatar for Jennifer84
0
207
Member Avatar for FTProtocol

Ok i finished porting the VB code to c++ but ive hit a wall, it had 49 errors and i solved as many as i could but now im stuck [code=c++] #include <windows.h> #include <iostream> #pragma comment(linker,"/FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,EWR /IGNORE:4078") void IsValidChar(char sChar); void GetRandomNumberInRange(int iLower, int iUpper); void …

Member Avatar for FTProtocol
0
166
Member Avatar for dannomite

Hello all. I'm trying to read a line of data in from a csv file and then assign the fields to it to an int w, string y, and double z **See code below** However, I have two problems: 1. The first is in reading in the all contents of …

Member Avatar for Ancient Dragon
0
102
Member Avatar for kavithabhaskar

Hello All: I have a program using VB.NET and Access. I have 5 comboboxes and any combination that I choose I get a result. I have 2 problems here: 1. I want to design 4 check boxes in such a way that any1 or combination when selected should give a …

Member Avatar for kavithabhaskar
0
163
Member Avatar for k2k

I try to simply concat the arguments if they are not the same..... what is wrong with this simple code for concat??? [CODE] #!/bin/sh result=$1 shift while [ "$#" -ne "0" ] do next=$1 if [ $result = $next ] then : else $result="$result $next" fi shift done echo "$result"[/CODE] …

Member Avatar for omrsafetyo
0
87
Member Avatar for edman

I am trying to convert the ouput of this recursive function to double, but no matter what I try the output remains integer. Could someone please assist. [CODE]int main() { int x,y; cout << "Please enter the low value of the range to add: " << endl; cin >> x; …

Member Avatar for iamthwee
0
144
Member Avatar for FTProtocol

Well in VB6 they use Chr() example: [code] Do sChar = Chr(GetRandomNumber()) Loop While sChar = Chr(34) [/code] Just wondering if there is a similar function in c++?

Member Avatar for William Hemsworth
0
153
Member Avatar for muppetjones

I'm still kinda new at this, so please bear with me, but I have tried debugging the program (perl -d) and using Carp as well. I just can't seem to isolate the problem. I'm using regex to search through a series of sequences read in from BioPerl (this is not …

Member Avatar for KevinADC
0
139
Member Avatar for warpath001

i have created a code which takes username pass etc from the user and then pts them in the database which is made using MSaccess the program complies very well but when i open my database no entries have been entered in there can u plz help [code] <%@page contentType="text/html"%> …

Member Avatar for jwenting
0
94
Member Avatar for licruzny

Please help with the following linked list program. Any help is good =] Use a linked list to do this program a store recieves shipmesnts of chairs at various cost. the store policy is to charge a 35% markup, and to sell chairs which were received earlier before chairs that …

Member Avatar for licruzny
0
163
Member Avatar for Black Magic

Hey, I have been trying to learn C++ for a few months know but I'm still not 100%. I've got a good book and all that just do get a bit confused. The thing is I want to learn GUI but i'm not sure what to do. Should I go …

Member Avatar for William Hemsworth
0
140
Member Avatar for guravharsha

Hi, In main.jsp i wish to display the data from the database( user information stored in user table ). my codein main.jsp is: [code=JSP]<h2> description about user:</h2> <% Statement st = null; ResultSet rs = null; rs = st.executeQuery("Select description from user "); %> <option value = "<%=rs.getString("description")%>" > </option>[/code] …

Member Avatar for peter_budo
0
114
Member Avatar for Andina

I am having difficulty setting my computer up in order to do JSP. Some people are telling me to use Jakarta others are saying Apache Tomcat. When I try to find the things to download there are so many options with little or not tutorials accompaining it. Could someone provide …

Member Avatar for peter_budo
0
92
Member Avatar for Alex Edwards

Is it possible to generate something like the following-- [code=java] public interface Reference{ // Returns a reference of the provided type (in theory) public <E> E getReference(int num); // Set the reference of the type public <E> void setReference(int num, E ref); } [/code] [code=java] public class ClassFullOfReferenceVariables implements Reference{ …

Member Avatar for Ezzaral
0
131
Member Avatar for guravharsha

Hi All, I had created application where once you log in into index.jsp page, the next validateuser check for validation. but when i fill the form of username and password the error shows like: [COLOR="Red"]The requisted resources are not available[/COLOR] Here my context.xml [code=xml]<?xml version="1.0" encoding="UTF-8"?> <Context path="/student" docBase="student" debug="5" …

Member Avatar for stephen84s
0
187
Member Avatar for Venom Rush

Hi all Is it at all possible to do this? I have a number of records that I need to recover. Any help would be greatly appreciated

Member Avatar for varmadba
0
90
Member Avatar for anuizath2007

Does anybody know how to this question.... An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate no on the ballot paper. Writea program to read the ballots and count the votes cast for each candidate using an array variable count.In …

Member Avatar for anuizath2007
0
292
Member Avatar for twburkle

My program currently takes three inputs from the user ( Wage, Hours, Tips ), then it calculates the gross income. Im brushing up on my c++ and Im not sure what functions I need to look for, but I know what I want to do. 1. I would like to …

Member Avatar for twburkle
0
129
Member Avatar for cam875

can I used an element like characters[2] to create an object out of it like an object from the class other character would be OtherCharacter : characters[2] I need to dynamically be able to create objects for the amount of characters in the vector or is their a better way …

Member Avatar for cam875
0
151
Member Avatar for paulcat

I'm trying to make a GUI application that needs flow arrows to shows the flow between 2 components, sort of like the display you see in the Toyota Prius that shows the transfer of power from the battery to the motor, etc... Are there anything in Visual Basic Express 2008 …

Member Avatar for J-P
0
78
Member Avatar for jakesee

Hi, I need a clue on how to design a Many to Many relational database. For example, I have a products table and a supplier table. each product can be supplied by many suppliers each supplier can supply many products how can I orgranise this data in the tables? I'm …

Member Avatar for jakesee
0
89
Member Avatar for cheesedoodle

I started trying to teach myself how to program in python just a few days ago. I have been using a wikibook for non programmers and it has this piece of code as an example. I CAN NOT for the life of me figure out why it outputs the value …

Member Avatar for vegaseat
0
133
Member Avatar for ishlux

Hi all, Can i know how to do the checkbox validation........ i used the code below but its not validating..... [code] var val; for(i=0;i<3;i++) { if(form2.elements['contype[]'][i].checked) val=1; } if(val==0) { alert("Select type of your Contract") return false; }[/code]

Member Avatar for Thirusha
0
67
Member Avatar for TheOneElectroni

Hi everyone, I have a problem to insert text into a text widget in Tkinter. I want to be able that each time some text is inserted (by means of an action -not directly by the user-) that text is displayed into a new line. However I can't figure out …

Member Avatar for TheOneElectroni
0
4K

The End.