|
Have a and chill on it until Monday.
It is Friday night, after all.
Seriously though, something must be screwy. Are there any demo projects which came with the libraries that do the same?
Beyond that, I've no idea, other than to check your linker settings, disk space, fragmentation and so on.
Another thought - were the libraries created with the same version of Visual C++ as your project?
Anna
Homepage | My life in tears
"Be yourself - not what others think you should be"
- Marcia Graesch
"Anna's just a sexy-looking lesbian tart"
- A friend, trying to wind me up. It didn't work.
Trouble with resource IDs? Try the Resource ID Organiser Visual C++ Add-In
|
|
|
|
|
Anna-Jayne Metcalfe wrote:
Another thought - were the libraries created with the same version of Visual C++ as your project?
hmmm....
Anna-Jayne Metcalfe wrote:
Have a and chill on it until Monday.
Good idea!
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Slow disk, or compiling over the network...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Can anyone give me an code-example howto write into an excelfile?
It should not be odbc-like (this already works).
I need something to write direct in an excelcell.
for example I want to write an formula in a cell which refers to the data i've imported "odbc-like" in the excelfile.
Sorry for my terrible English
|
|
|
|
|
Can anyone give me an code-example howto write into an excelfile?
It should not be odbc-like (this already works).
I need something to write direct in an excelcell.
for example I want to write an formula in a cell which refers to the data i've imported "odbc-like" in the excelfile.
|
|
|
|
|
Search MSDN for examples of Excel automation. Here's one I came up with:
_Application app;
Workbooks books;
_Workbook book;
Worksheets sheets;
_Worksheet sheet;
Range range;
COleVariant vtOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR),
vtTrue((short) TRUE),
vtFalse((short) FALSE);
CString strText;
if (app.CreateDispatch("Excel.Application") == TRUE)
{
app.SetVisible(TRUE);
books = app.GetWorkbooks();
book = books.Add(vtOptional);
sheets = book.GetSheets();
sheet = sheets.GetItem(COleVariant((short) 1));
range = sheet.GetRange(COleVariant("A1"), COleVariant("A1"));
m_ebCellA1.GetWindowText(strText);
range.SetValue(COleVariant(strText));
range = sheet.GetRange(COleVariant("A2"), COleVariant("A2"));
m_ebCellA2.GetWindowText(strText);
range.SetValue(COleVariant(strText));
range = sheet.GetRange(COleVariant("A4"), COleVariant("A4"));
range.SetFormula(COleVariant("=A1 + A2"));
}
|
|
|
|
|
Thx for the fast answer
Which headers do I have to include
|
|
|
|
|
First you'll need to create a new class from the EXCEL9.OLB (or whatever version of Excel you are using) type library. That process will create a .CPP and .H file that gets added to your project.
|
|
|
|
|
And how to start this process? which tool generates this .cpp an .h files.
I'm using vc++ 6.0
|
|
|
|
|
Search MSDN for "excel.automation" and "excel9.olb".
|
|
|
|
|
ok thx,
i will first study a little bit.
I ask again when I knew it a bit better and can ask more special questions.
I thought it would be not as difficult because the odbc-connection was quite easy
|
|
|
|
|
Heiko2003 wrote:
I thought it would be not as difficult because the odbc-connection was quite easy
COM is much easier to do that what was previously required for OLE. With C++ it's even easier when you have smart-pointers and such at your disposal. With VB, it's way too easy! It almost takes the fun out of knowing what is actually going on behind the scene.
|
|
|
|
|
Now I've got a little application that is able to write an value into an excelcell.
Thanks for your information
|
|
|
|
|
Does anyone what are ways (code examples, etc) to make software evaluation based on "time expiration" and/or "number of runs"?
_ra
|
|
|
|
|
Do you have an idea how to do it ? i.e. in plain english (or whatever your mother tongue is ),
(for the expiration )
it's actually quite simple, when the program starts, you compare the current date with either the hard-coded expiration date (expires on june 3rd 2003), or the number of days left (expires in 34 days), if it expired, just warn and quit the program. The first time the program starts, you need to register the current date and keep it somewhere.
The only "hard" thing is to keep the "number of runs" or "expiration" somewhere on the user's computer that is not easy to find; you can hide it in the registry, or in a file somewhere on disk.
But eventually, people will find a way to overcome the limitation.
If you want to release an evalution version, you'd better make it a version with real limitation( no save, run time limit (runs for 30 mins), missing key features, ... )
Max.
Maximilien Lincourt
For success one must aquire one's self
|
|
|
|
|
Have a look at this[^]
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
Hi all,
I have thread A, which calls a function that takes a callback, and spawns thread B. My question is, when the callback is called in Thread B, does it remain in the context of thread B? I'm pretty sure it does, but I wanted to check.
Thanks!
|
|
|
|
|
Yup, as long as thread B is making the call.
|
|
|
|
|
Low priority.
In the top left of an SDI application, on the frame bar is the
little blue MFC icon. I have changed this icon in the resources, but it does not change on the frame bar.
Any suggestions?
thanks
|
|
|
|
|
did you change both the large and small resolutions in the icon resource?
-c
|
|
|
|
|
I missed one. thank you
|
|
|
|
|
Hi
Does anybody of you know a good regular expression library for C++ apart from regex++? I somehow don't like this template thingy
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Thanks! I will try some of them
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi-
Did you try just using the RegEx class from boost ?
There are no templates to deal with and it performs like a champ.
Example without templates.
#include <cstdlib>
#include "boost/cregex.hpp"
#include <string>
#include <iostream>
using namespace std;
using namespace boost;
int main (int ac, char ** av)
{
RegEx rgx;
rgx = "pu.[a-f].c";
static char * matchStrings[] = {
"dpublic",
"pablic",
"private",
"chennai",
"whatsthis",
"pjslic",
"puslic",
"this string wont public",
NULL
};
for (char ** p = matchStrings; *p!=NULL; p++)
{
char * p2 = *p;
if(rgx.Match(p2))
{
printf("String %s \t*MATCH FOUND*\n",p2);
}
else
{
printf("String %s \tNo Match\n",p2);
}
}
return 0;
}
|
|
|
|