199,114 Archived Topics
Remove Filter ![]() | |
[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) >= … | |
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 … | |
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 … | |
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 | |
Any way to get info about the battery in a laptop? Like how many % is left, and for how long that will last? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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] | |
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 … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 | |
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 … | |
I want to make an engine similar to [URL="http://unreal.com"]Unreal[/URL] for PC, 360, And PS3. Who Wants to help? | |
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. | |
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. | |
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 … | |
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 … | |
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 … | |
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] … | |
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 | |
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) { … | |
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 … | |
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 … | |
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 … | |
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] … | |
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; … ![]() | |
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++? | |
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 … | |
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"%> … | |
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 … | |
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 … | |
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] … | |
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 … | |
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{ … | |
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" … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] | |
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 … |
The End.