|
Depends upin your task,
need some explanation,
does add, changes or what?
So: it is sequencive writing or random ?
If sequencive- use ini file, from artivcles
on this site.
If Random and data is big use ACCESS database- it hightly optimized for
random data access.
Or possible to create randomly accessed file for self, but it not so easy as
ACCESS or registry, unreliable.
If no performance problems happens- still use registry.
|
|
|
|
|
Depends. Here is the scenario:
Every 1 Second:
Data is "read" from registry (Note: not written)
Every 8 Seconds: (Can be 3-5 too)
Data is updated in registry (Note: not read)
I so wish that there was some hierachal arrays in MFC, could have made life so easier.
|
|
|
|
|
Ii is not understandle what "depends" ?
Arrays is not disk stort feature.
(It has no reflection on the disk,|except structural storage that is some complex).
Registry is better fot you,
data not big, (not 10.kbytes)
due to 1 second is big time for update computers and
registry is not sequencial optimized store.
|
|
|
|
|
The only drawback to using the registry is it limited size in Windows 2000 and below.
XP removes the limits because it is now mapped into the cache address space and isn't charged for more than 4MB of memory.
Also, using the registry for data storage isn't really the quickest method. If performance is an issue, you should check into either developing your own storage class or using possibly using XML.
RageInTheMachine9532
|
|
|
|
|
Varun Shoor wrote:
Is accessing the registry every 1 second to read the data
Why the need for such frequency?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I want to switch Fibers in other thread,
in Main thread from Second thread.
(Main thread creates two Fibers.)
but after calling SwithToFiber(pFiber),
in second thead leads to Fiber execution
in this thread, second (that called to swith)
but not native to Fiber,
so that Fiber in initial thread remain not changed.
For make switch possible it is need to convert second thread to fiber - does it correct?
It there way to switch Fibers, so they remain in main thread?
Is there methods to to split execution in thread,
remaining thread context same?
(for controlling it threads ?)
Thanks.
|
|
|
|
|
I have code to put a window image on the clipboard as CF_BITMAP, using the screen's active color depth (typically 24 bits/pixel). I'd like to force the image to something of lower color depth, e.g., 8 bits/pixels or 256 colors. Is there a simple way to do this with Windows APIs, without adding an image-management library? Thanks, -M
(Optimism is a contagious; infect someone today.)
|
|
|
|
|
Hi,
When I use the CreateFile for Open, Read, Write and Close , when I using COM1, to COM9 no problem.
But when I would like to use COM10 to COM34. I cannot open Comport.
I using this command :
CreateFile(\\\\.\\COM10,...)
or
CreateFile("COM10",...) cannot workink.
Can you help me
youssef
|
|
|
|
|
hi,
how to capture Alt+F2 keys in pretranslatemessage. any one help to me.
Thanks in advance
Murali.M
|
|
|
|
|
if (pMsg->message == WM_SYSKEYDOWN)
{
if (pMsg->wParam == VK_F2 && (HIWORD(pMsg->lParam) & KF_ALTDOWN))
TRACE(_T("Alt+F2 was pressed\n"));
}
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
thanks for suggestion.
Murali.M
|
|
|
|
|
I need sample for using Fiber
(win32 threading),
and founf that one there is at OLD MSDN as
"Fibers Sample: Fiber-based File Copy Operation"
(130 MB to download proposed -in total C++ sample archive)
can some one who have old MSDN or have else
source for other Fiber sample
send it ti me,
or reference to the sample ?
Thanks
grigoriev@arktika.ru
|
|
|
|
|
hi all,
i am trying to use as it is the rijndael algorithm..for encrypting and decrypting the xml file...using AES rijndael..32 bit key and block size and also the method is CBC..it adds a few characters at the end of the file which makes it an invalid XML file..while using BLANKs..I am getting the valid XML file..Now i have to do is a server side encryption of the XML files..from php script..so i am using mcrypt library to do the same..but when i use this class to decrypt the same file it says can't secrypt..while i am using the same key and all..there the function is MCRYPT_RIJNDAEL_256..CBC and ECB..but nothing is working..can anyone help me out there in doing the same..or if there is any encryption which works as same in php and vc++ so that i just have to use the function and can do the same..Please help me out..any pointers and ideas are highly appreciated..
Thanks a lot in advance..
Regards,
Himanshu
|
|
|
|
|
i don't know what the problem is, but the rijndael key is 32 BYTES!
Don't try it, just do it!
|
|
|
|
|
Hi,
I want to Print Frame Window.
Thanks in Advance.
AJJU
|
|
|
|
|
Hi,
I'm creating a SDI program in VC.net using MFC, with a scroll-view derived class, and paint this view using GDI+ functions. My problem comes when I scroll, where the view seems to do two things:
- Scroll what is draw already up/down depending
- Do the whole drawing process once more
This, obviously, destroys what I am trying to draw, so my question is, how do I make sure drawing and scrolling the view get along? I am using the OnPaint message handler to envoke the drawing.
Please note that I am a newbie, as if the question doesn't tell you that, so try to explain things quite simple;P
Thanks,
- Jørgen
|
|
|
|
|
Hi all,
I know i can add 2 images to the first columns of a list ctrl.
can any1 show me code to do that?
thanks in advanced,
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Dear friends,
I have a std::string object and the value stored in it is of the form:
std::string source = "Hello 22.90fg"
i.e in the string value, there are characters, a number, and again characters in the end.
I need to detect the number i.e 22.90 , in the middle of the string and want to assingn it to a float variable.
How can i do so ?
Actually i already did it, but i am looking for some better logic and a code that is easily readable.
|
|
|
|
|
It depends alot on how much you know about the incoming data.
If you know a fair bit you could try a regular expression parser (there is one distributed with the .NET framework, or the boost::regex library)
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Hello,
I have to search certain file on all the drives. I am using FindFirstFile API to find a file in the directory which uses WIN#@_FIND_DATA structure. I am facing one problem. If the attribute of a directory is readonly then it does not find that directory using FindfirstFile or FindNext call. Can anybody suggest me why it is like this and pl tell ,e the solution to this.
|
|
|
|
|
|
My question is: I want to Hide/Show an Image depanding on the checking of 'checkbox'. Image should be hidden and NOT DISABLED if checkbox is unchecked. Can you sent a sample progaram to do so...
|
|
|
|
|
Jackson Antony wrote:
Can you sent a sample progaram to do so...
In short, no.
Longer; your question makes no sense. Images aren't disabled or enabled, or even hidden. They are either displayed or not displayed. To display an image, draw it. To not display an image, invalidate the background and don't draw it.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi Everybody,
How to print contents of CFrameWnd class.
Thanks in Advance.
AJJU
Live and Let live
|
|
|
|
|
Is there a fundamental difference between 'reinterpret_cast<type>()' and 'static_cast<type>()'?
I have been using these two cast operators with almost disregards to their specific usage and feel I have been getting away with impunity.
Is there something that fundamentally set them apart from when one should be used over the other?
Thanks for any insight.
William
Fortes in fide et opere!
|
|
|
|