|
help!!!!!!! i need a code on how to count the minimum possible strokes needed to visit all the edges of a graph without traversing the edges twice....... do u guys know any?? pls help!!
i badly need the implementation of fleury's algorithm on finding a eulerian path or walk. please guys, help me!!!
|
|
|
|
|
I am trying to develop a Borland C++ program that will allow the user to enter details for an invoice and produce it to the VDU.
1. The program must be menu driven (which I have done)
2. Generate a new invoice number for each invoice raised (done)
3. Require the user to enter all of the customer details, require the user to enter a product code only (the program should output, a product description and price, or an error message if code not recognised)
4. Require the user to enter the quantity, the program should then calculate and display the total for that item.
5. On completion of input to invoice value should be calculated and displayed into to invoice
6.The program should update the stock file, and display a message if the components in stock are less that the components required for the order.
7.On termination of the program create a report in form of a text file detailing components which are below minimum stock level and the quantity of each component that needs to be ordered.
8.In order to calculate the overall value of order please note – all prices are exclusive of VAT @17.5%
There is a discount of 2.5% of orders = £2500 <£5000, a discount of 3.25% for orders of £5000+, less than £2500 receive no discount - These only apply to Account Code D customers
A, B or C customers receive a discount anyway Account Code A = 10.0% discount, Account Code B = 6.250%, Account Code C = 5.00%They do not get the other discount.
9. You are only allowed to enter 6 product per invoice
I have done parts 1 & 2 with no problem and an kind of there for the rest. I would appreciate some help me with my coding for the program. I have only been doing C++ for 6 weeks and am expected to be able to do all this along with the JSPs & Black Box testing.
The main problem I’m having is converting a binary file to text file and for the program to read from the binary file.
Below is the code
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
#include<stdio.h>
#include<iomanip.h>
#include<stdlib.h>
#include<ctype.h>
#include<dos.h>
#include<string.h>
//file pathe defined
char Response;
char Answer;
struct CustomerRecord
{//start of struct CustomerDetails
char AccountNo[7];
char LastName[15];
char FirstName[15];
int HouseNo;
char AddFirstLine[50];
char AddSecondLine[50];
char AddThirdLine[50];
char PostCode[10];
char AccountType;
};//end of structure CustomerDetails
struct StockDetails
{//start of struct StockDetails
char Code[7];
char Desc[50];
float Price;
int QStock;
int RLevel;
int RQuant;
};//end of structure StockDetails
struct date d;//set structure for date
//declaration of functions
void readStockDetails(StockDetails&);
void readCustomerRecord(CustomerRecord&);
void ContinuationMenu();
void displayStockPurchase();
void displayScreenInvoice();
void displayCustomerDetails();
void displayAddNewStockRecord();
void displayAddNewCustomerRecord();
void displayMainMenu();
void OpenStockFile();
void OpenCustomerFile();
void getAnswer(char&);
char anotherRecord();
char anotherRecord(char,char);
char anotherCustomerRecord();
char anotherCustomerRecord(char,char);
void displayExitingProgram();
void readStockFile();
void readCustomerFile();
const char FILESTOCK[]="c:\\stockfile.dat";//system file name
const char FILECUSTOMER[]="c:\\customerfile.dat";//system file name
//const float A=10;
//const float B=6.25;
//const float C=5;
void main()
{//start of function main
ContinuationMenu();
}//end of function main
void ContinuationMenu()
{//start of function continuation menu
gotoxy(33,2);//locate cursor
cout<<"***************";//display output
gotoxy(33,3);//locate cursor
cout<<"* *";//display output
gotoxy(33,4);//locate cursor
cout<<"* MICROSERV *";//display output
gotoxy(33,5);//locate cursor
cout<<"* *";//display output
gotoxy(33,6);//locate cursor
cout<<"***************";//display output
gotoxy(32,8);//locate cursor
cout<<"CONTINUATION MENU";//display output
gotoxy(32,9);//locate cursor
cout<<"=================";//display output
gotoxy(32,11);//locate cursor
cout<<"C - CONTINUE";//display output
gotoxy(32,13);//locate cursor
cout<<"X - EXIT SYSTEM";//display output
gotoxy(32,15);//locate cursor
cout<<"Your choice please :";//display output
do
{
gotoxy(52,15);//locate cursor
getAnswer(Response);
gotoxy(52,15);//reposition cursor for re-entery
cout<<" ";//clears user input
switch (Response)
{
case 'C': case 'c':
displayMainMenu();
break;
case 'X': case 'x':
displayExitingProgram();
break;
default:
gotoxy(28,18);
cout<<"Please enter a valid choice. \n\a";
}
}while(!(Response=='X'));
}//end of function continuation menu
void getAnswer(char &Let)
{
Let=getche();
if(Let>'Y')
Let-=32;
//end of if
}//end of function get answer
//display main menu
void displayMainMenu()
{//start of function display main menu
clrscr();
gotoxy(33,2);
cout<<"***************";//display output
gotoxy(33,3);
cout<<"* *";//display output
gotoxy(33,4);
cout<<"* MICROSERV *";//display output
gotoxy(33,5);
cout<<"* *";//display output
gotoxy(33,6);
cout<<"***************";//display output
gotoxy(36,8);
cout<<"MAIN MENU";//display output
gotoxy(36,9);
cout<<"==========";//display output
gotoxy(28,11);
cout<<"P - DISPLAY STOCK PURCHASES";//display output
gotoxy(28,13);
cout<<"C - DISPLAY CUSTOMER DETAILS";//display output
gotoxy(28,15);
cout<<"I - DISPLAY INVOICE DETAILS";
gotoxy(28,17);
cout<<"X - EXIT SYSTEM";//display output
gotoxy(28,19);
cout<<"Your choice please :";//display output
do
{
gotoxy(48,19);
getAnswer(Response);
gotoxy(48,19);//repositions cursor
cout<<" ";//clears user input
switch(Response)
{
case 'P': case'p':
displayStockPurchase();
break;
case 'C': case'c':
displayCustomerDetails();
break;
case 'I': case'i':
displayScreenInvoice();
break;
case 'X': case'x':
displayExitingProgram();
break;
default:
gotoxy(28,21);
cout<<"Please enter a valid choice. ";
break;
}//end of switch statment
}while(!(Response=='X'));
}//end of display menu main
//display stock purchase menu
void displayStockPurchase()
{//start of function display stockpurchase
char Response;
clrscr();
gotoxy(33,2);
cout<<"***************";//display output
gotoxy(33,3);
cout<<"* *";//display output
gotoxy(33,4);
cout<<"* MICROSERV *";//display output
gotoxy(33,5);
cout<<"* *";//display output
gotoxy(33,6);
cout<<"***************";//display output
gotoxy(36,8);
cout<<"STOCK MENU";//display output
gotoxy(36,9);
cout<<"==========";//display output
gotoxy(28,11);
cout<<"A - ADD NEW ITEM";//display output
gotoxy(28,13);
cout<<"V - VIEW ITEM";//display output
gotoxy(28,15);
cout<<"B - BACK TO MAIN MENU";//display output
gotoxy(28,17);
cout<<"Your choice please :";//display output
do
{
gotoxy(48,17);
getAnswer(Response);
gotoxy(48,17);
cout<<" ";
switch(Response)
{
case 'A': case 'a':
displayAddNewStockRecord();
break;
case 'V': case 'v':
OpenStockFile();
break;
case 'B': case 'b':
displayMainMenu();
break;
default:
gotoxy(28,19);
cout<<"Plaese enter a vali choice :";
break;
}//end of switch statment
}while(!(Response=='X'));
}//end of function display stock purchase menu
void displayAddNewStockRecord()
{//start of function main
StockDetails Stock;//record variable name
char Response='Y';
//open a binary file for output appending to existing file
ofstream StockFile(FILESTOCK,ios::binary|ios::app);
//display message if file opening error
if(StockFile.fail())
{cout<<"Error opening file "<<filestock;
exit(1);
="" }
="" enter="" customer="" data
="" while(response="" !="N" )
="" {
="" readstockdetails(stock);
="" stockfile.write((char*)&stock,sizeof(stock));
="" response="anotherRecord('N'," 'y');
="" stockfile.close();="" close="" output="" file
="" cout<<"\n\ninput="" terminated="" ";
="" getch();
="" displaystockpurchase();
}="" end="" of="" function="" main
="" definition="" readcustomerdetails
void="" readstockdetails(stockdetails="" &stock)
{="" start="" readcustomerdetails
="" clrscr();
="" gotoxy(33,2);
="" cout<<"***************";="" display="" output
="" gotoxy(33,3);
="" cout<<"*="" *";="" gotoxy(33,4);
="" microserv="" gotoxy(33,5);
="" gotoxy(33,6);
="" gotoxy(23,9);
="" cout<<"code="" no:="" cin="">>Stock.Code;
cin.ignore();
gotoxy(23,11);
cout<<"Description: ";
cin.getline(Stock.Desc, 50);
gotoxy(23,13);
cout<<"Price: £";
cin>>Stock.Price;
cin.ignore();
gotoxy(23,15);
cout<<"Qty in stock: ";
cin>>Stock.QStock;
cin.ignore();
gotoxy(23,17);
cout<<"Qty reorder level: ";
cin>>Stock.RLevel;
cin.ignore();
gotoxy(23,19);
cout<<"Reorder Qty: ";
cin>>Stock.RQuant;
cin.ignore();
}//end of function readCustomerDetails
char anotherRecord(char Ch1, char Ch2)
{//start of function anotherRecord
char Ch;
gotoxy(wherex(), wherey());
cout<<"Another record y/n?: ";
do
{
gotoxy(wherex(),wherey());
Ch=getche();
if(Ch > Ch2)
Ch -=32;
if(Ch <ch1 ||="" ch=""> Ch2)
cout<<"\b\a";
}while(Ch < Ch1 || Ch > Ch2);
return Ch;
}//end of function anotherRecord
void OpenStockFile()
{
clrscr();
cout<<"File contents:\n\n";
readStockFile();
}
//function displayScreenInvoice
void displayScreenInvoice()
{//start of function displayScreenInvoice
getdate(&d);//get system date
clrscr();
gotoxy(3,1);//locate cursor
cout<<"Invoice No :";//display output
gotoxy(3,4);//locate cursor
cout<<"Name :";//display output
gotoxy(3,5);//locate cursor
cout<<"Address:";//display output
gotoxy(3,9);//locate cursor
cout<<"Account No.:";//display output
gotoxy(24,9);//locate cursor
cout<<"A/C Type:";//display output
gotoxy(35,9);//locate cursor
cout<<"Invoice Date:";//display output
gotoxy(4,10);//locate cursor
cout<<"Code";//display output
gotoxy(14,10);//locate cursor
cout<<"Description";//display output
gotoxy(36,10);//locate cursor
cout<<"Price £ Qty";//display output
gotoxy(50,10);//locate cursor
cout<<"Total £";//display output
gotoxy(50,17);//locate cursor
cout<<"-------";//display output
gotoxy(43,18);//locate cursor
cout<<"Total";//display output
gotoxy(40,19);//locate cursor
cout<<"Discount";//display output
gotoxy(50,20);//locate cursor
cout<<"-------";//display output
gotoxy(38,22);//locate cursor
cout<<"VAT @ 17.5%";//display output
gotoxy(50,23);//locate cursor
cout<<"-------";//display output
gotoxy(50,25);//locate cursor
cout<<"=======";//display output
//generate random 6 digit invoice number
gotoxy(16,1);//locate cursor
int Number[6];
randomize();
for(int j=0; j<6; j++)
{
Number [j]=(rand()%10);
cout<<number[j];
}
generate="" invoice="" date
gotoxy(49,9);="" locate="" cursor
printf("%d",d.da_day);
printf("="" ");
printf("%d",d.da_mon);
printf("="" ");
printf("%d",d.da_year);
response="anotherRecord();
" if(response="='N')
" {
="" gotoxy(2,24);="" cursor
="" cout<<"press="" any="" key="" to="" return="" main="" menu";
="" getch();
="" clrscr();
="" displaymainmenu();
="" }
}="" end="" function
="" function="" readproductcode
char="" anotherrecord()
{="" start="" of="" function
="" char="" response;
="" gotoxy(wherex(),="" wherey());
="" gotoxy(2,24);
="" cout<<"another="" record="" y="" n?:="" ";
do
="" getanswer(response);
="" !="Y" ||="" response="" )
="" cout<<"\b";
="" }while(!(response="='Y'" cout<<"="" ";
="" response;
};
void="" readstockfile()
{="" readstockfile
="" stockdetails="" stock;
="" open="" a="" binary="" file="" for="" output
="" ifstream="" stockfile(filestock,ios::binary);
="" display="" message="" if="" opening="" error
="" if(stockfile.fail())
="" cout<<"error="" "<<filestock;
="" exit(1);
="" }
="" read="" first="" record
="" stockfile.read((char*)&stock,sizeof(stock));
="" while(!stockfile.eof())
="" {="" while="" !eof
="" cout<<"code="" no.:="" "<<stock.code<<endl;
="" cout<<"description:="" "<<stock.desc<<endl;
=""
="" cout<<"price:="" "<<stock.price<<endl;
="" cout<<"qty="" in="" stock:="" "<<stock.qstock<<endl;
="" reorder="" level:="" "<<stock.rlevel<<endl;
="" cout<<"reorder="" qty:="" "<<stock.rquant<<endl;
="" cout<<"\n\n";
="" readnext="" stockfile.read((char*)&stock,sizeof(stock));
="" }="" !eof
="" stockfile.close();="" close="" input="" file
="" cout<<"end="" stock="" file,="" press="" displaystockpurchase();
}
void="" displaycustomerdetails()
{
char="" response;
clrscr();
gotoxy(33,2);
cout<<"***************";="" output
gotoxy(33,3);
cout<<"*="" *";="" output
gotoxy(33,4);
cout<<"*="" microserv="" output
gotoxy(33,5);
cout<<"*="" output
gotoxy(33,6);
cout<<"***************";="" output
gotoxy(34,8);
cout<<"customer="" menu";="" output
gotoxy(34,9);
cout<<"="============";//display" output
gotoxy(28,11);
cout<<"a="" -="" add="" new="" customer";="" output
gotoxy(28,13);
cout<<"v="" view="" customer="" details";="" output
gotoxy(28,15);
cout<<"b="" back="" output
gotoxy(28,17);
cout<<"your="" choice="" please="" :";="" output
do
{
gotoxy(48,17);
getanswer(response);
gotoxy(48,17);
cout<<"="" ";
="" switch(response)
="" case="" 'a':="" displayaddnewcustomerrecord();
="" break;
="" 'v':="" 'v':
="" opencustomerfile();
="" 'b':="" 'b':
="" displaymainmenu();
="" default:
="" gotoxy(28,19);
="" cout<<"plaese="" enter="" valid="" :";
="" switch="" statment
}while(!(response="='X'));
}
void" opencustomerfile()
{
clrscr();
cout<<"\n\n";
readcustomerfile();
}
void="" displayaddnewcustomerrecord()
{="" displayaddnewcustomerrecord
customerrecord="" customer;
char="" ;
ofstream="" customerfile(filecustomer,ios::binary|ios::app);
if(customerfile.fail())
{
cout<<"error="" "<<filecustomer;
exit(1);
}
while(response!="N" )
{
readcustomerrecord(customer);
customerfile.write((char*)&customer,="" sizeof(customer));
response="anotherRecord('N'," 'y');
}
customerfile.close();
cout<<"\n\ninput="" terminated="" ";
getch();
displaycustomerdetails();
}="" displayaddnewcustomerrecord
void="" readcustomerrecord(customerrecord="" &customer)
{
clrscr();
="" gotoxy(33,2);
="" cout<<"***************";="" gotoxy(33,3);
="" cout<<"*="" gotoxy(33,4);
="" gotoxy(33,5);
="" gotoxy(33,6);
="" gotoxy(23,9);
="" cout<<"account="" no:="" cin="">>Customer.AccountNo;
cin.ignore();
gotoxy(23,11);
cout<<"Last Name: ";
cin.getline(Customer.LastName, 15);
gotoxy(23,13);
cout<<"First Name: ";
cin.getline(Customer.FirstName, 15);
gotoxy(23,15);
cout<<"House No: ";
cin>>Customer.HouseNo;
cin.ignore();
gotoxy(23,17);
cout<<"Address Line 1: ";
cin.getline(Customer.AddFirstLine, 50);
gotoxy(23,19);
cout<<"Address Line 2: ";
cin.getline(Customer.AddSecondLine, 50);
gotoxy(23,21);
cout<<"Address Line 3: ";
cin.getline(Customer.AddThirdLine, 50);
gotoxy(23,23);
cout<<"Post Code: ";
cin.getline(Customer.PostCode, 10);
gotoxy(23,25);
cout<<"Account Type: ";
cin>>Customer.AccountType;
}
void readCustomerFile()
{
CustomerRecord Customer;
ifstream CustomerFile(FILECUSTOMER,ios::binary);
if(CustomerFile.fail())
{
cout<<"Error Opening File "<<filecustomer;
exit(1);
}
customerfile.read((char*)&customer,sizeof(customer));
while(!customerfile.eof())
{
cout<<"account no:="" "<<customer.accountno<<endl;
cout<<"first="" name:="" "<<customer.firstname<<endl;
cout<<"last="" "<<customer.lastname<<endl;
cout<<"house="" "<<customer.houseno<<endl;
cout<<"address:="" "<<customer.addfirstline<<endl;
cout<<"="" "<<customer.addsecondline<<endl;
cout<<"="" "<<customer.addthirdline<<endl;
cout<<"post="" code:="" "<<customer.postcode<<endl;
cout<<"account="" type:="" "<<customer.accounttype<<endl;
cout<<"\n\n";
customerfile.read((char*)&customer,sizeof(customer));
}="" end="" of="" while="" !="" eof
customerfile.close();
cout<<"end="" customer="" file,="" press="" any="" key="" to="" return="" menu.";
getch();
displaycustomerdetails();
}
void="" displayexitingprogram()
{
clrscr();
gotoxy(27,9);
cout<<"thankyou="" for="" your="" custom";
gotoxy(30,12);
cout<<"exiting="" system.....";
}
char="" anothercustomerrecord(char="" ch1,="" char="" ch2)
{="" start="" function="" anotherrecord
char="" ch;
gotoxy(wherex(),wherey());
cout<<"another="" record="" y="" n?:="" ";
do
{
gotoxy(wherex(),wherey());
ch="getche();
if(Ch">Ch2)
Ch-=32;
if(Ch<ch1||ch>Ch2)
cout<<"\b\a";
}while(Ch<ch1||ch>Ch2);
return Ch;
}//end of function anotherRecord
|
|
|
|
|
Hi~
I want to write a VB code to send and receive the SMS from my mobile phone via cable. Does anyone do this kind of project in here? Could you give the code of your project?
Thank you very much~~
|
|
|
|
|
Does anybody know how I can read links and click links from a web page from within my c++ program. I am hoping to be able to do this for any webpage, so I will not know in advance what links will be there.
Help is most appreciated.
Regards,
SAK
HAPPY HOLIDAYS
|
|
|
|
|
SAK wrote:
Does anybody know how I can read links and click links from a web page from within my c++ program. I am hoping to be able to do this for any webpage, so I will not know in advance what links will be there.
This is a little delayed you may have figurd it out i dunno...it's late, i'm bored and love CP so i'll offer my suggestions even still*s*
Do some research on IWebBrowser2
Laterz
"An expert is someone who has made all the mistakes in thier field" - Niels Bohr
|
|
|
|
|
Hi,
For all those available FREE people who are willing to create freeware for free, this is for you...
My Name is Zakai, I am 18
I have 2 1/2 years experience in MFC UI designing.
I want to work on a project called FlashLight.
The idea of the program is that it searches loads of sites for files and return results.
The differences are as follows:
1. This once will actually realy support site search updates (files which tell the program about a new site to search in)
2. The UI will be exellent (especially when I design it ( Most programs just work on getting the thing working. I want it to look easy to use with a simple interface with no setup needed plus no extra magnificant addons to the UI to just make it crash and make more bugs.
3. The program will download from multiple sources at the same time in the same program. (No need for DAP or FlashGet (
4. The program will check if the files it found have the same size and same file name, if they do it will display them as one name, that way there is no need to decide what to pick.
This project is serious to me and I hope will be to other programmers around the globe.
If anyone think they can contribute please send me email. PLEASE!!!
If you want any more information I have about Flash Light and what I need (or what I dont have (;)
please send me email.
The reason for this project is because so many people want to search for files like mp3's and dont want to get the security holes of peer to peer programs but still want results.
FlashLight searches for any files in an html document on sites and displays relevant ones to the user.
Please contribute!!!
Zakai Hamilton
UI Designer
|
|
|
|
|
Will this software support RESUME of the file download?
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
Zakai wrote:
Most programs just work on getting the thing working. I want it to look easy to use with a simple interface with no setup needed plus no extra magnificant addons to the UI to just make it crash and make more bugs
Ah, but you are young
Zakai wrote:
UI Designer
So you are a paid professional UI Designer at 18?
|
|
|
|
|
I want the ability to close other applications running, but I want to 'force' a close, meaning that I dont want any dialog boxes prompting me with stuff like "app is not responding" or "do you want to save changed document". Is there a way to close other apps without having these popup dialog boxes appear. Similiar to task manager but with no pop-up dialog boxes.
Most appreciated,
SAK
|
|
|
|
|
See TerminateProcess(). The calling process will need to have appropriate rights to kill processes.
/ravi
"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
|
|
|
|
|
TerminateProcess may be a bit severe, particularly if it is not a child of your app's process. First, I would try sending a WM_CLOSE message to the app's main window. Only when you can't close the app by any other means would I invoke TerminateProcess.
Bill Stott, Contractor
|
|
|
|
|
Hi All,
I need to create a block diagram graphic in a dialog and have each of the individual blocks be an independent button (or hot-spot). Clicking on the block needs to cause an associated combo box to activate and drop down its list for the user to pick an item.
Question is, how do I accomplish this in the least painful manner? I know how to manage a combo-box but haven't a clue as to how to manage a graphic in an image-map like fashion (as you'd do with a web-page).
Thanks.
|
|
|
|
|
One solution could be to use Bitmapped buttons.
Explore CBitmapButton, CBitmapButton.AutoLoad() and other related functions.
Basically uyou would first create a Bitmap to be put on the button. Now create the button on your dialog box, using VC++ Visual Editor - check the "Owner Draw" and "Bitmap" options for the button. In Caption give the same name as the name of the bitmap. If the bitmap was named "FIND" then your button caption should read FIND. Give the ID for the button e.g. ID_FIND. Now before displaying the Dialog declare a member variable
CBitMapButton find;
find.AutoLoad(ID_FIND, this);
I am telling you thus from the top of my head, so the information should be treated as a pointer to the right direction and not as an absolute solution
Software Engineer (Techlogix (pvt)ltd)
Visiting Faculty Informatics, Lahore
|
|
|
|
|
Hi,
I want to be able to get the collection of forms from a html page held within CHtmlView.
Here is what I have now,
CString forms[200];
LPDISPATCH ld = NULL;
ld = GetHtmlDocument();
IHTMLDocument2* phd;
ld->QueryInterface(IID_IHTMLDocument2,(void**) &phd);
BSTR bstr = NULL;
IHTMLElementCollection* pForm;
phd->get_forms (&pForm);
long formSize=0;
pForm->get_length (&formSize);
IDispatch* fid;
VARIANT one;
for( idx = 0; idx < formSize; idx++)
{
one.vt = VT_UINT;
one.lVal = idx;
VARIANT ftwo = {0};
pForm->item (fone,ftwo,&fid);
IHTMLElement* pformElem = NULL;
fid->QueryInterface( IID_IHTMLElement, (LPVOID*)&pformElem );
pformElem->toString (&bstr);
szurls[idx] = bstr;
}
but I only get back '[object]' as the name. I basically want to extract all the form info from the html document that is loaded into the array of CStrings szurls.
any help much appreciated.
CAB
|
|
|
|
|
C++
I'm dying to find some code to help me create a Snapshot.
I want to be able do what the old SYSDIFF utility does.
Need to scan a system, and record temporarily the current state,
then tell it to scan again and compare the two results, outputting a list of registry keys and files that have been modifed/added/deleted.
Unfortunately I'm not having much like at trying to do this myself, here's hoping someone has the knowledge to help me out ~
cheers.
|
|
|
|
|
Looking for source code that can read specified area of a doc from a scan and then
assign a value to it.
|
|
|
|
|
Try gOCR (http://jocr.sourceforge.net/download.html) - they even have a DOS/WIN95 distribution.
Essam
___________________________________________
Author - JScript .NET Programming
...and a bunch of articles around the Web
|
|
|
|
|
Hello all!
Anybody knows how to create Excel (BIFF) files without Excel (directly write to file)?
I find source code only in Pascal ((
Need C++ ...
Help!!! ))
Dmitry.
|
|
|
|
|
See the COMEXCEL-sample in MSDN. OK, it still uses Excel, but you can "hide" the excel-window (see the tlh/tli-files after compiling the sample). If you really want to do it without an excel-instance, I would suggest .csv-format, where every value ending with " ; " is placed in another filed of an .xls
could you submit (HintiFlo@gmx.at) pascal-codes you mentioned? I currently use the way COMEXCEL goes, but I also try to avoid excel running! I would try to recreate it for C++.
mfg HintiFlo
|
|
|
|
|
I am looking for Bar code source code so I can generate a bar code associated with a number on my printer.
|
|
|
|
|
What format of barcode? Code39?
Michael
|
|
|
|
|
Looking for source code for bar code 128
|
|
|
|
|
Anyone know hot to check a machine to see if IIS is installed programatically? A CD we're putting together for a customer has several installs on it and so they've requested it have a little pop-up (autorun) with buttons for installing each. Sure, no problem. However, I'd like it to do some of the checking for me as well and recommend things they need to install that I can't package with the CD (like IIS). So, I want to try and determine whether IIS is already installed... Same question for PWS?
Thanks in advance.
|
|
|
|
|
Dear all.
I want create the Office2000 file in my program with Borland C++ Builder 5,but not OLE method.
I search the file format on MSDN,but I can obtain the idea.
the word2000 file format is different with word97,right? and the msdn's document has no sample code and no integrated file format description(or my english is too poor to read the document,so i can't find this description).
I save a simple excel file from excel2000,but I can't know it's format reference the docuemtn of MSDN.
Can you give me some code about create word2000 and excel2000 file, C++ or JAVA .
Or you give some site where has the source code or lib ?
Thank you very much.
sharetop YC.
2001-12-11
|
|
|
|
|
The Office file formats are not officially documented. The only way to save an office document is via COM automation of the Office apps. For Word documents you could always use an RTF file as Word will be able to read this. I'm not sure about Excel.
Michael
|
|
|
|
|