|
Hello!
How can I store data easily and free? I tried mysql++ but it has a conflict with managed classes. I would like to use the advantages of basic SQL commands, but without having to buy a server...
Thank you in advance,
Alin Stoian
|
|
|
|
|
|
Sorry, maybe i didn't make myself very clear..
I want to use it in a C++ program.. are there any libraries for Access?
Alin Stoian
|
|
|
|
|
yes please see again my post
whitesky
|
|
|
|
|
Yup. If you're using VC6, there's the CDao* classes.
Personally, I'd use the ATL Database classes. Of course, these aren't available in the Express edition of 2005. You can use ADO classes, or ODBC as well.
There is no 'Access' library per se, since Access uses either a desktop engine (MSDE) which is API compatible to SQL Server, or it can use JET, which uses DAO or ISAM internally, depending on the data source.
Steve S
Developer for hire
|
|
|
|
|
|
hi all
I have to read(write) large amount of data from(into) file.
I want to make decision whether to load this data(whole) to buffer directly (using CFile::Read() ) method, then modify data and write to file(using CFile::Write() ) method.
Or using loop and fread and fwrite methods, read per 5 bytes (for example), modify each 5 bytes and then write to file and so on.
How do you think which will be faster solution ?
thank you.
|
|
|
|
|
big_denny_200 wrote: large amount of data
So probally a good solution is to limit the number of HD access, I think that this can be a reason to Read and write the data in only one access using Read/Write and a big buffer.
If this will required a lot of memory, there is the usefull class CArchive, (very simple to be used) where you can set the buffer length to a big value (like 10000 or more) and reduce the HD access according to the amount of memory required.
|
|
|
|
|
If you are going to be modifying almost all of the data you read in, then it *might* be faster to load, modify, write all at once, however that would also lock your program up. If you need to keep things moving along, then doing so in a second thread, using a loop, might make more sense, plus using a much larger value than 5 bytes at a time, maybe 1024 or 4096 bytes at a time?
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
|
|
|
|
|
I have owner-drawn list box.
when calling GetScrollPos on scrolling, it is always returning 0.
how can I solve this?
-Sarath
|
|
|
|
|
Hi,
I created a list of images and want to display the image dimension.
Is there an other solution than loading the images and extract the width and hight?
Thanks,
Joachim
|
|
|
|
|
It depends on what the type of image file it is.
Normally the width and height is stored in the header, i.e. the first few bytes of the bitmap file.
To find out about file formats see http://www.wotsit.org/search.asp?s=graphics[^]
So all you do it read the first few bytes of the file.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
|
|
Thanks for that link (one constructive reply)!
There I found the position of the dimension at once.
Thx,
Joachim
|
|
|
|
|
You are welcome.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
Happyjojo wrote: one constructive reply
Sorry, the other replyes wasn't for you.
And surely your low score isn't nothing that depends on what you sad!
There was someone that is descovering how to let people be nervous!
|
|
|
|
|
Before drive the car, take the licence !!!!
|
|
|
|
|
Happyjojo wrote: Is there an other solution than loading the images and extract the width and hight?
yes. you can learn how to parse each of the different file formats to find out how and where each format stores image size information.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
1. Does AcceptEx and ConnnectEx support IOCP?
2. Mswsock.h doesn't have a declare of ConnectEx, how can I use it?
3. If A sends a packet to B, then B receives it use in an IOCP method, but how does B know when to call WSAReceive? DO I have to use WSAAsyncSelect/WSAEventSelect at the same time?
|
|
|
|
|
Hi,
1. Yes, and yes.
2. U should be using winsock2.h
3. IOCP sockets that support 'receiving data', should be in a constant state of 'being ready to receive data. Due to the nature of IOCP, the worker threads are the ones handling the events, so you don't want to use WASAsyncSelect/WSAEventSelect stuff.
There are a couple of really good articles on CP for IOCP servers and sockets - you should have a look at them. Also, remember that if you have multiple buffers per socket (which you should have), you will not always be able to guarantee the sequence of partial packets received when you run on a multi-CPU box.
Hope this helps a bit
controlSHIFT
[WinShareSpy] [Glossary Manager] [AfterThought Backup Lite]
All good things were meant to be improved
|
|
|
|
|
Cedric
how u made "C" as red?
-Sarath
|
|
|
|
|
You can use html tags in your name:
<font color=#FF0000>C</font>
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Hey Cedric it's really nice
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Why sigh: you responded to this boy?
|
|
|
|