|
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
|
|
|
|
|
Thank you very much.
but, Are the RTF file support the table? or how create a RTF table in BCB?
and I find some software may save as doc format,maybe them be support by ms?
I find some document about word and excel format,but them are not detailed,and no helpful.
mu..... may the rtf file is a right choice.
thank you.
|
|
|
|
|
I have a webserver that supports CGI v1.1. I would like the source code to some scripts that can be compiled and run under windows. Can anyone help?
-Matt Newman
-Matt Newman
|
|
|
|
|
The ultimate CGI application: Count
Jon Sagara
"Merry Christmas. Merry Christmas. Merry Christmas. Happy Hanukah. Kiss my a--. Kiss his a--."
-- Chevy Chase (National Lampoon's Christmas Vacation)
|
|
|
|
|
Hi,
I desperately need source code in some normal programming language Like C/C++ , VC++ , VB , Java or some normal computer programming language not like LISP etc.
Please i need it as soon as possible.
Even the Knowledge Base will be Ok..
Thanking u in advance ...
RawCoder
|
|
|
|
|
Hello all,
I have seen samples in C++ of an implimentation of Socks4 and Socks5, anyone has a port for that into C#? I want to be able to go through proxy servers from C# using sockets.
|
|
|
|
|
I have to work behind a proxy so I can't download from FTP sites without a dedicated app. I was wondering if anybody had an FTP class that worked through a proxy that I could create my own with.
I need it in Visual C++. Thanks if you have one.
-Matt Newman
-Matt Newman
|
|
|
|
|
I've never tried this but have you thought about using the URLDownloadToFile function? Mike Dunn has written a great article on it, which you can find here.
--
Andrew.
|
|
|
|
|
I was going to search CP but didn't have any time earlier because I am on XP install number 10 because Gateway screwed me over.
-Matt Newman
-Matt Newman
|
|
|
|
|
Please !!!! I need help to complete this below C++ source code.
Please its urgent......can somebody give me a hand.
/* Evolutionary Systems Guided Practical Exercise 2
Genetic algorithm for Hinton and Nowlan's experiment
Guide:
A. Read and understand Hinton and Nowlan's paper (given out in the lecture)
If you missed the lecture then photocopy a friend's or ask ADC next lecture
B. Read through the code in this question and make sure you understand what
each part should do
C. Fill in the CCCC to complete the code that calculates the genotype fitnesses
D. Fill in the DDDD to complete the code that selects parents for reproduction
E. Fill in the EEEE to produce the child genotype using crossover
F. Test that your program compiles and runs
To compile: g++ -o EvSysEx2 EvSysEx2.cc
Then to run: ./EvSysEx2
*/
#include <stdlib.h>
#include <time.h>
#include <iostream.h>
const int numGenotypes = 1000;
const int genotypeLength = 20;
const int numLearningTrials = 1000;
const int numGenerations = 50;
void randomise() // seed the random number generator from the system clock
{
srand(time(0));
}
int random(int n) // return a random integer between 0 and n-1
{
return (int) (((double) n)*rand()/(RAND_MAX+1.0));
}
enum Gene {zero=0,one=1,questionMark=2};
Gene genotypes[numGenotypes][genotypeLength];
int fitness[numGenotypes];
// fitness = 1000*"1+19n/1000" where n = number of learning trials remaining
// or rather numLearningTrials + 19 * n
void calculateFitnessArray() // calculate fitness[]
{
int i;
for (i=0;i
|
|
|
|
|
I tried to use the Microsoft Hierarchical FlexGrid Control with Data Environment (connecting to SQLServer) in order to display a hierarchical recordset but didn't work.
I used the MSDataShape Provider to set the connection object.
How do I set DataSource, Location and Initial catalog?
Help me!!!
|
|
|
|
|
See sample at
http://www.codeproject.com/useritems/msdatagrid.asp
|
|
|
|
|
How do i search for files and folders in a specific directory without using any MFC code.Any hint will be very apreciated.
|
|
|
|
|
Check out FindFirstFile(), FindNextFile(), FindClose().
--Mike--
http://home.inreach.com/mdunn/
While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate.
your with and
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Thanks Michael for the tips.
Euler
|
|
|
|
|
Is there a way to open for read, a file that was opened exclusively by anther application??
Thanks
|
|
|
|
|
|
i have to sort an arry using this code, but the template won't accept the parameters. can anyone help me?
/////////////////////////////////////////////////////////
#include <algorithm>
#include <iostream>
#include <string>
#include "InsertionSort.h"
#include "ShellSort.h"
using namespace std;
int main()
{
int num[] = { 5759, 6865, 2532, 8783, 7064, 531, 7351, 3761,
8838, 7290, 5058, 3361, 4912, 7790, 9691, 5330,
892, 1134, 4412, 5187, 1394, 837, 7615, 6087,
2336, 4052, 6238, 4470, 9675, 4859, 6156, 6394,
2885, 584, 8138, 729, 9752, 2805, 3966, 5206,
6374, 5727, 8144, 3683, 7830, 947, 2132, 384,
6726, 2023, 8512, 5839, 2091, 783, 531, 2403 };
string name[] = { "Tracy", "Zachary", "Louis", "Jakub",
"Katerina", "Anthony", "Carl", "Robert",
"Stephen", "Cedric", "Anthony", "Bernard",
"Michael", "Bart", "Esosa", "Eric", "Jose",
"Dominic", "Katarzyna", "Inna", "Catheri",
"Kirill", "Sean", "Igor", "Jose", "David" };
const int numSize = sizeof(num) / sizeof(*num),
nameSize = sizeof(name) / sizeof(*name);
int num1[numSize], num2[numSize];
string name1[nameSize], name2[nameSize];
copy(num, num + numSize, num1);
copy(num, num + numSize, num2);
copy(name, name + nameSize, name1);
copy(name, name + nameSize, name2);
sort(num, num + numSize);
sort(name, name + nameSize);
insertionSort(num1, num1 + numSize);
insertionSort(name1, name1 + nameSize);
shellSort(num2, num2 + numSize);
shellSort(name2, name2 + nameSize);
cout << (equal(num, num + numSize, num1) &&
equal(name, name + nameSize, name1) ?
"Congratulation! Your insertion sort works." :
"Your insertion sort doesn't work. Try again.") << endl;
cout << (equal(num, num + numSize, num2) &&
equal(name, name + nameSize, name2) ?
"Congratulation! Your Shell sort works." :
"Your Shell sort doesn't work. Try again.") << endl;
return 0;
}
//////////////////////////////////////////////////////
template<typename t="">
void insertionSort(T a[], T b)
{
for (int g=1; g<b;g++)
{
="" int="" j,temp1;
="" temp1="a[g];
" for="" (j="g;j">0 && temp1< a[j-1];j--)
a[j]=a[j-1];
a[j]=temp1;
}
}
/////////////////////////////////////////////////
template<typename t="">
void shellSort(T a[], T b[]){
int i, j, temp, gap;
for (gap=b/2;gap>0;gap=gap==2?1 : (int)(gap/2)){
for (i=gap;i<b;i++) {
=""
="" temp="a[i];
" j="i;
" for="" (;j="">=gap&&temp
|
|
|
|
|
Can anyone send me the file unicows.lib via email please.
I still run windows 95 on my computer so am unable to download the new Platform SDK. Or has anybody done it before.
Thank you
|
|
|
|
|