|
I mean if there is a 100 mb file,so what are the maximum number in which i can split this file.
so tell me this in general case for any file.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Tell us your intention.
We didn't understand what you want to achieve
so that we can tell you a better solution.
Величие не Бога может быть недооценена.
|
|
|
|
|
I provide a file to split,and provide a field where i enter the numbers in which i want to split the file.
i want to validate that number if its is exceed the maximum number of splitting.
so now please tell me the solution or suggestion according to this.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
I hope the maximum is as randor suggested.
But optimal condition may be according to your need.
if application dont bother about time but memory then split into small size and large number of file say 5-10k.
but if your application bother about time them split into 250-512k size files
Величие не Бога может быть недооценена.
|
|
|
|
|
Let me tell you the splitting of files will not be depended on the file size and the number of partitions.
I mean if you have 10Mb file if u need to divide it in to 10 files then each file will have 1024kb and 128 byte extra to identify the next file link.But as you have 128 byte*10 extra bytes to store your file size willbe more once you add the size of all files.
|
|
|
|
|
"_$h@nky_" wrote: o now please tell me the solution or suggestion according to this.
There is no maximum, except the value that you decide. As Randor said, if you have a 1MB source file you can split into 1048576 1-byte subfiles. Maybe if you explain why you want to do this then a better suggestion could be made.
|
|
|
|
|
Richard MacCutchan wrote: There is no maximum
Actually, the maximum would be the number of clusters on a given partition.
|
|
|
|
|
thanks
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Michael Schubert wrote: Actually, the maximum would be the number of clusters on a given partition.
The likelihood of reaching this is quite small, which is why I ignored it. I was more interested in trying to discover what he was trying to do, but I guess we'll never know.
|
|
|
|
|
Cluster size is very small usually, if NTFS then it can have maximum default value of 4 KB. It will be not problem to keep file size greater than 4KB. In Actual scenario, no application can create a huge amount of file, so we can ignore it as Richard said. If such a design is done then it should have a strong reason else your design is having some big problem.
Величие не Бога может быть недооценена.
|
|
|
|
|
I think his question was academic and since you can split a file into an infinite number of zero byte files (theoretically), the limit would be the number of clusters of the given partition.
|
|
|
|
|
Yes it seems to be, 5* for this guess
Величие не Бога может быть недооценена.
|
|
|
|
|
Richard MacCutchan wrote: I was more interested in trying to discover what he was trying to do, but I guess we'll never know.
I think his question was purely academic, his (her?) responses would indicate that.
|
|
|
|
|
I have written application on Visual C++ . It is mainly MFC Application.
I can code .net also(with respect to C++ )
At runtime if .net framework is installed on target machine my MFC application has act as MFC .net application otherwise it act as Simple MFC application.
Is it possible ? ( I don`t want to compile with .net because many of our customers not dependent on .net )
Expecting Suggestions
|
|
|
|
|
ERLN wrote: my MFC application has act as MFC .net application
What is a MFC .net application?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
If you have to work on machines without .NET...
And you are prepared to program in MFC...
And MFC works on machine with .NET...
Then where's your problem?
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Sorry for confustions.
I have MFC Application.
It will works fine with .Net Installed machine as well as Without .Net installaed machines.
Now My need is.
I want to create a application like the following
MFC Application has to work on Machines not having .net (current working)
In simple
I need to use .net framework based code at .net installed machine otherwise i need to non .net based code
it is at run time. how can i create a executable like that.
|
|
|
|
|
hello
I want a window to receive focus when I say SetFoucs and the background colour should change but cursor should not appear in the window.
Right now my window changes its color but the cursor appears
can i get rid of the cursor or this is not possible.
Pritha
|
|
|
|
|
prithaa wrote: : window is disabled but can it receive focus
No
|
|
|
|
|
Hi,
prithaa wrote: can i get rid of the cursor or this is not possible.
You need to handle the WM_SETFOCUS message and not call the base class handler to hide the carot.
Best Wishes,
-David Delaune
|
|
|
|
|
thank you naveen
thank you david
|
|
|
|
|
I have a CTreeCtrl defined in my header with a instance of m_cTree. Here's a brief description of how the Tree looks:
[+] Reports (main Heading)
[+]Construction (child of Reports)
[+] Materials (child of Construction)
Materials Report.txt(the ".txt" is only to show you this is the actual report)
[+]Maintenance (child of Reports)
Maintenance Report.txt(the ".txt" is only to show you this is the actual report)
[+] Cost (child of Maintenance)
[+]Exspenses (child of Reports)
[+] Job Cost (child of Exspenses)
Exspenses Report.txt(the ".txt" is only to show you this is the actual report)
======================= end of example ======================
In OnNM_ClickTreeCtrl()
I cannot get the reports using this:
HTREEITEM hItem= m_cTree.GetSelectedItem();
HTREEITEM hChildItem = m_cTree.GetChildItem(hItem);
CString sSelText= m_cTree.GetItemText( hItem );
What is returns is whatever is selected including the button("[+]", the main heading, each child and finally the report. How do I only receive the click on the Reports themselves, not all the headings?
PLEASE use my example in your explaination, WITH(please) the appropriate code.
Thanks in advance.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: In OnNM_ClickTreeCtrl()
Its better to handle this in the selection changed event(TVN_SELCHANGED) other wise, if some one operate the tree control through keyboard, your application wont work.
Larry Mills Sr wrote: How do I only receive the click on the Reports themselves, not all the headings?
You can use the item data corresponding to each item, to identify whether the items is report or not. I mean, while inserting the report, you should set the item data(SetItemData) as some value, say X. When the selection change occurs, retrive the item data correspoding to that item, check whether the item data is X.
|
|
|
|
|
Could you please provide a workable example for TVN_SELCHANGED?
Here's How I set up the TreeCtrl:
strItems[0]= _T("Reports");
strItems[1]= _T("Construction");
strItems[2]= _T("Materials");
HTREEITEM hReportsItemRoot= m_cTree.InsertItem(strItems[0]);
HTREEITEM hConstItemRoot= m_cTree.InsertItem(strItems[1], hReportsItemRoot);
HTREEITEM hMaterialsItemRoot= m_cTree.InsertItem(strItems[2],hConstItemRoot);
In your explaination, could you please use my example data, Please.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Hi
I have an application written in VB that checks whether a new wav file has been added to a folder by using the following:
MyFile = Dir("C:\MyDirectory\*.wav")
If MyFile contains a string, the file is then moved to another directory to manipulate.
I wish to do the same in VC (6.0) - have you any suggestions?
Thanks for any help that you can give!
Mike
|
|
|
|