|
MSDN wrote:
Explicit instantiation...
The explicit instantiation is a particularized version of the template class. You can export a finite number of versions for your class, that's true. But there are template classes that support an infinite number of versions. What about them? Do you intend to write all the versions for such a class?
rechi
|
|
|
|
|
nop... you're right...;)
Thanks for your reply...
Hello World!!!
from Raphaël
|
|
|
|
|
Hi Y'all!
How can i calculate the number of files in a folder programmatically in a
Win32 API Application???
|
|
|
|
|
I don't know if this is the best choice but: "use FindFirstFile , FindNextFile , FindClose "
Funny how the history is repeating...
rechi
|
|
|
|
|
|
My main application thread starts a auxillary UI thread in order to display a dialog and show some progress information. The main app thread updates the auxillary thread's dialog with information it processes.
The problem: What is the best way to let the main app thread know that the auxillary thread is started and that the dialog is loaded(displayed) and ready for input?
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
if the main thread is a ui tread .. you can use PostMessage function to notify it
|
|
|
|
|
|
for ms OS 95/98/00/ME/XP.../NT etc, which one do you think is best and worst?
the post is just for general knowledge.
thx
includeh10
|
|
|
|
|
depends on what you need it for.
W95 - is out of the picture W98 is improved version of it
W98 - excellent for home environment and computer-illiterate people. Bad memory management, no security, no true, multitasking, no UNICODE.
W ME - same as 98, but seems to be less stable.
Nt4 - excellent professional system (security, multitasking, stability + good memory management and native support for UNICODE), true services. Relatively difficult to configure, no hardware wizards.
W2K - significantly improved version of NT4 (with hardware wizard), there is better memory management and improved security. From developers standpoint it has much better APIs. Do not forget telnet and COM+.
Win XP - same as W2k, but seems to be less stable especially with older software and drivers (the once that rejected by wizards). The concept of the WindowStation is improved but seems to be exposing the system (security and stability wise)
|
|
|
|
|
for w2k and win XP don't forget the IO Completion Ports for network connections, they rule...
[]D [] []D []
|
|
|
|
|
Yeeah, forgot that... and I agree they rock
|
|
|
|
|
From the C++ coder 's point of view, i think the NT family is the best because it has more useful technologies then the previous and also is more stable while programming.
From any other point of view, you could have had infinite superior chances to be answerd if you would have post it in the Lounge
rechi
|
|
|
|
|
Hello,
in MDI project,to open a new document (like File->New), i do this :
AfxGetApp()->OnCmdMsg(ID_FILE_NEW, 0, NULL, NULL);
Is it possible to open new document with specific height and width ?
Thx in advance
|
|
|
|
|
I create a zip file and do not want winzip to open it. that is say I have a.zip now I only want my app to be able to open this file and not winzip. Once my app takes control then winzip can be used internally to extract the file contents. Any idea?
|
|
|
|
|
Add your own header onto the start, confusing winzip. Then when your app opens it, strip the header off, and get winzip to unzip the original zip. Messy and ineffecient yes, but easy.
|
|
|
|
|
How do you "get winzip unzip the original zip"? Does winzip support command line parameters or is there anyway to make winzip work for my own application? Thanks.
|
|
|
|
|
Winzip does support command line parameters, it is a add-on. You can download it from their web site.
Jonathan Craig
www.mcw-tech.com
|
|
|
|
|
If you want custom stuff you can use the PKWARE Data Compression Library. I have use them before to compress very large amounts of data. They allow you to create your own file formats and use PKZIP quality compression.
http://www.pkware.com/products/developers/dcl/
Jonathan Craig
www.mcw-tech.com
|
|
|
|
|
Hi,
I'm creating a program that does the following:
- create an Access database using CDaoDatabase
- create in this db a table with a number of fields, for which I use CDaoTableDef
So far, no problem.
But now I need to insert data into de table, and I cna't figure out how.
Could anybody show me some code to do this?
Thanks
n
|
|
|
|
|
move to place u want to add new data
//i can't remember exact name of each function
1. call New() (?)
2. Add(),Add(),..., add whole row
3. call Update()
New() locks ur table
Update() ends the action and put data into table
if edit then step 1 is Edit()
by the way, VB is wanderful for database, and easy to learn, C++ is too complex for database.
includeh10
|
|
|
|
|
Excuse me,
your New() function is a member of which DAO class? where can I find it?
Thanks
|
|
|
|
|
i can't remember exact name of each function as i said, but u definitely can find similar function.
if u can't, i will find for u tommorow.
it should belong to Table or RecordSed class.
includeh10
|
|
|
|
|
I finally solved it wil CDaoTableDef!
Thanks
|
|
|
|
|
I have a static instance of a class that basically handles memory allocation for a certain module. This way when the application quits this destructor will handle freeing memory for the whole module. An alternative would be to call an 'exit' type function in this module to do a similar thing.
As this is a static object, the constructor and destructor get called before and after calling 'main()'. However in the main() function just before we return, we call our own CheckMemory function that checks all allocated memory has been freed (we also have out own new & delete functions for this). As the memory in my module is not freed until the destructor we get a few warnings.
Any ideas as to how to fix this?
I am considering putting the CheckMemory() into it's own class and call the check in the destructor but how can we guarantee when each destructor will be called?
Is there a Visual C++ 'work around' for this problem?
Thanks
Kris
|
|
|
|