49,761 Topics

Member Avatar for
Member Avatar for ObscureOne

[code=c] #include <stdio.h> __declspec(dllexport) void DisplayHelloFromDLL() { printf ("Hello from DLL !\n"); } [/code] This above code has been written using VS 2005. I opened this project as a win32 application and chose the option to build a dll and not a exe. The name of the project is DLLProctTest …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for sonygamer

I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include …

Member Avatar for Narue
0
1K
Member Avatar for kabbo

Hi, i am trying to use a library. included the header in my code set the path (-L) and the library (-l), but i get the following error and a bunch of undefined symbols. Does anyone have an idea? What am i doing wrong? Thans in advance. PB:~/Downloads/lp_solve_5.5.0.11_c max$ gcc …

Member Avatar for kabbo
0
300
Member Avatar for saketbash

Hi guys. This is my first post and I hope I can get some help. Thanks so much in advance for this. I have what I'm sure is simple but I'm missing something here. I have a file being read from (input.txt) which has no more than 50 grades w/ …

Member Avatar for saketbash
0
84
Member Avatar for Jennifer84

This code(Files) does return the whole directorypath like this: C:\Documents and Settings\User\Desktop\Text.txt What should be changed if you only want to return the fileName wich is: "Text" Code: System::string ^ Files10 = "c:\\"; array<System::string ^> ^ Files = System::IO:: Directory::GetFiles(Files10,"*.txt");

Member Avatar for Jennifer84
0
143
Member Avatar for wingwarp

ok ihave looked through google and cprograming.com and cant find much to do with opning documents like... i am trying to do... run the c++ program select a number and open an html document ... ... yes i know basic html... thanks... --wingwarp--

Member Avatar for VernonDozier
0
308
Member Avatar for timchippingtond

In C++ on MS Windows XP. Actually using MS Visual C++ in VS 2003 .net (v7.1) and VS 2005, on XP Pro with SP2. How can I find the full pathname which is attached to a file stream? I have code like: [CODE]bool DataModel::readGrades(char* filename) { std::ifstream tablestream(filename); if (!tablestream) …

Member Avatar for Narue
0
146
Member Avatar for mistercow.pnoy

first off, this is my very first post, so sorry if i sound a little noobish. also, i've only been learning C++ since september, and we're going pretty slow. so yesterday I got an assignment, using [b]only[/b] [i]for loops[/i], and [i]if statements[/i], enter a number, find it's factors, and tell …

Member Avatar for Nemoticchigga
0
118
Member Avatar for gsivaram

I need to extrace particular text from PDF file matching particular expression...But PDF file is stored in different format I need help how to parse PDF file using using filestreams...

Member Avatar for Ancient Dragon
0
93
Member Avatar for gmerch80

[code=c++] #include<iostream> #include <string> using std::cout; using std::cin; using std::endl; using std::string; using namespace std; class Invoice { public: void setPrice(int price); int getPrice(); void setQuantity(int quantity); int getQuantity(); void setPartnumber(string); string getPartnumber(); void setDescription(string); string getDescription(); int getInvoiceAmount(int Quantity, int Price); private: int Quantity; int Price; string Partnumber; string …

Member Avatar for Ancient Dragon
0
95
Member Avatar for gsivaram
Member Avatar for vectra17

Hello, I made a COM server in C++ using IDL. The server consist of a DLL file and a TLB file and it works fine. Now I want to merge the TLB file in(to) the DLL file in order to have one DLL file. How can I do that? Thanks.

0
52
Member Avatar for fl00d

I'm trying to import a function exported by a dll. So far: [CODE] #pragma comment(lib, "hookHop.lib") extern "C" void hhPostMessageA(HWND Hwn, UINT Msg, WPARAM WParam, LPARAM LParam); extern "C" LPARAM CursorPosTolParam(VOID);[/CODE] The lib and dll are in my project directory and my dll is in my debug directory. I get …

Member Avatar for 4ng3licDew
0
148
Member Avatar for jimJohnson

For the half of you that whine and complain that the new people don't use code tags please do not respond to me but for the people that did a great job helping me before: I was asked how to use code tags and i am sorry but this is …

Member Avatar for WaltP
0
285
Member Avatar for vishalkhialani

Hi, I would like to create, modify insert del and read from excel files I found some articles on daniweb and other sites and even on msdn but they are very difficult and not complete. I was wondering if someone could please give some tutorial link to explain how to …

Member Avatar for vishalkhialani
0
193
Member Avatar for jimJohnson

I am in the last part of the program and everything is working but one final thing. I need to get all the Subtotals, taxes, and total cost to add up....I tried using sums, counts, and change the variable names and still having trouble....this program has been a real pain …

Member Avatar for Agni
0
143
Member Avatar for Jboy05

a = 2; b = 3; a = (a + b) % 2; b = b – a; a = a * b; cout << a << "\n" << b ; What is the output for a and b? ------------------------------------------------------------ Why is a [B]3[/B] and b[B] 2[/B] is this one …

Member Avatar for VernonDozier
0
77
Member Avatar for SurviBee

Assignment was to take information about sales made, hours worked and number of dependents from a file, calculate the gross pay expected on one of two plans Plan A 10% commission on sales, and 9.50 an hour with 1.5x overtime after 40 hrs Plan B 30% commission then we had …

Member Avatar for VernonDozier
0
111
Member Avatar for Jennifer84

I have managed to create a file (Sample.txt). So what I need now is to put the contents from array (ReadLines[]) to this file, line by line and the file name should be what is written in textBox3. [code] array<System::String^>^ ReadLines = gcnew array<System::String^> ( textBox2->Lines->Length ); ReadLines = textBox2->Lines; …

Member Avatar for Jennifer84
0
108
Member Avatar for JRM

hello all, I have an old database that was written for xenix 386 using the old a.out binary format. Since then most unix/linux OS s have adopted the ELF format. These binaries will not run on a modern OS. I don't have the source code, just the binaries. Is there …

Member Avatar for vijayan121
0
145
Member Avatar for Jennifer84

If I have a textBox1 that contains 2 lines of text. What I want to do is to put each line into an Array. So I want to check the textBox1 and read in all consisting lines into an Array. [I](1 line will reprsent 1 memoryplace in the Array)[/I] How …

Member Avatar for Jennifer84
0
313
Member Avatar for armanp

I have a function find(x) in my linked list, that search through the listfor the value and return an Iterator pointing to the first node contaning value x. if x is not found in the list, it returns an Iterator pointing to NULL. it should be a linear search. would …

Member Avatar for Lerner
0
102
Member Avatar for Jennifer84

I wonder. When you are in dubbingmode and develop you program you refer to ifstream like in the code below. [code] ifstream OneFile("Text.txt"); [/code] "Text.text" is in the folder debug. Later when the application is finished. I want the file "Text.txt" to be in a folder like this: C:\NewApplication\FileFolder\Text.txt How …

Member Avatar for Jennifer84
0
135
Member Avatar for bis student

[CODE]#include <iostream> using namespace std; void intialize(char array[][6]){ for(int i=0;i<13;i++) for(int j=0;j<6;j++) array[i][j]='*'; } void menu (char array [][6]){ cout <<endl; cout<<"\tA\tB\tC\tD\tE\tF"<<endl; for (int i =0; i<13 ;i++){ cout<<"Row "<<i+1<<'\t'; for(int j=0;j<6;j++){ cout<<array[i][j]<<"\t"; } cout<<endl; } cout<<endl; } void main(){ char array[13][6]; intialize(array); char smoking,type,exit,column; int row,col; do{ smoking = …

Member Avatar for Narue
0
145
Member Avatar for buddyrocks73

I'm having trouble with this program that is a math tutor for a young student. The program should display two random numbers between 1 and 500. Could I get some help?

Member Avatar for Narue
0
140
Member Avatar for Nemoticchigga

Hi, I am writing a simple program to read and write a serial port. I only have access to one serial port on my pc so I am using a HugePine RS-232 to USB convertor. The driver is installed and windows recognizes it is attached. My question is what comm …

Member Avatar for Nemoticchigga
0
144
Member Avatar for gcardonav

Hello Well I have this coding and I thought I set it up ok to catch this simple exception, but as of right now, the program continues to run after the exception happens and its not even catching it. where did I go wrong. Thank you all Your rookie programmer …

Member Avatar for gcardonav
0
97
Member Avatar for vishalkhialani

Hi, My below code compiles and builds ok but it behaves a bit unexpected. Please see my comment where I am having the problem. Any advice will be highly appreciated. [code] while(count<9) { system("cls"); printf("\n\n\n"); printf("\t\t\t PURCHASE ORDER SYSTEM \n\n\n\n\n\n\n\n\n\n\n"); printf("\t\t\t\t INPUT NEW ORDER DETAILS MENU\n\n\n\n\n\n"); printf("PLEASE SELECT ONE OF …

Member Avatar for vishalkhialani
0
104
Member Avatar for Squeeker

Hello all, I am working on a program that takes input from a file, removes extra white spaces and outputs the edited text to another file. So far my program deletes 1 whitespace whether the whitespace should be deleted or not. I have read about peek() and putback(). I am …

Member Avatar for Squeeker
1
1K
Member Avatar for jb7643

I have just started today. I put the following code into DEV-C++: [code=cplusplus] #include <iostream> int main() { std::cout << "Enter two numbers:" << std::endl; int v1, v2; std::cin >> v1 >> v2; std::cout << "The sum of " << v1 << " and " << v2 << " is …

Member Avatar for jb7643
0
91

The End.