|
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
|
|
|
|
|
mike.r.winter@btinternet.com wrote: I wish to do the same in VC (6.0) - have you any suggestions?
Take a look at the FindFirstFile/FindNextFile[^] functions; they may be what you need.
|
|
|
|
|
Excellent - thanks very much - using the example got exactly what I wanted!
Thanks very much
Mike
|
|
|
|
|
After importing the idl file "msado15.idl" in the idl file of my DLL and the build i have many errors like this:
1>c:\sac\see_ac_services\debug\msado15.tli(2103) : error C2065: '_result' : undeclared identifier
1>c:\sac\see_ac_services\debug\msado15.tli(2105) : error C2065: '_result' : undeclared identifier
1>c:\sac\see_ac_services\debug\msadox.tlh(495) : error C2327: 'ADOX::_Index::Properties' : is not a type name, static, or enumerator
1>c:\sac\see_ac_services\debug\msadox.tlh(1059) : error C2327: 'ADOX::_Table::Properties' : is not a type name, static, or enumerator
1>c:\sac\see_ac_services\debug\msadox.tlh(1172) : error C2327: 'ADOX::_Column::Properties' : is not a type name, static, or enumerator
1>c:\sac\see_ac_services\debug\msadox.tlh(1265) : error C2327: 'ADOX::_Group::Properties' : is not a type name, static, or enumerator
1>c:\sac\see_ac_services\debug\msadox.tlh(1364) : error C2327: 'ADOX::_User::Properties' : is not a type name, static, or enumerator
1>c:\sac\see_ac_services\debug\msadox.tli(245) : error C2065: '_result' : undeclared identifier
1>c:\sac\see_ac_services\debug\msadox.tli(246) : error C2065: '_result' : undeclared identifier
1>c:\sac\see_ac_services\debug\msadox.tli(248) : error C2065: '_result' : undeclared identifier
knowing that I have imported the "msado15.dll" in my DLL (in the stdAfx.h file)
So someone know where is the problem and help me please ?
|
|
|
|
|
I added
#import <c:\Program Files\Common Files\system\ado\msado15.dll> rename("EOF", "adoEOF") and it compiled fine. What do you have before this statement?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
what i did is like below :
i imported the msado15.idl (import "msado15.idl) in the begining of my IDL file (before the def of my Library) to use the ADO connection type as parameter of method.
But it compile with errors like i posted.
|
|
|
|
|
Are there any other ado include files in stdafx? if try moving it to after import line.
-Suhredayan
|
|
|
|
|
- No, there is no include ADO in stdAfx.h
- The two line :
#import "C:\Program Files\Fichiers communs\System\ado\msado15.dll" rename_namespace("Internal") rename( "EOF", "EndOfFile" )
#import "C:\Program Files\Fichiers communs\System\ado\msadox.dll"
are imported in most files of my project.
- My problem is related with the IDL file of my DLL and it begin when i try to put ADO connection as parameter of method in the IDL -> So i need to add the line import "msado15.idl"; and here i get about 2000 errors like this :
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msado15.tlh(1024) : error C2327: 'Internal::_ADO::Properties' : is not a type name, static, or enumerator
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msado15.tlh(3124) : error C2327: 'Internal::_Record::Fields' : is not a type name, static, or enumerator
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msado15.tli(109) : error C2065: '_result' : undeclared identifier
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msado15.tli(1104) : error C2065: '_result' : undeclared identifier
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msadox.tlh(1265) : error C2327: 'ADOX::_Group::Properties' : is not a type name, static, or enumerator
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msadox.tlh(1364) : error C2327: 'ADOX::_User::Properties' : is not a type name, static, or enumerator
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msadox.tli(857) : error C2065: '_result' : undeclared identifier
C2065: '_result' : undeclared identifier
1>d:\travail\see_user_access\version 2.20\source\sac\see_ac_services\debug\msadox.tli(927) : error C2065: '_result' : undeclared identifier
So i hope i explained more my situation and you can find where is the problem?
|
|
|
|
|
Hi all!
I have a weird problem. I have an application written in c++ and compiled with visual studio.net and connecting to an Oracle with MS ODBC driver. Now the app is built under vs 9 and the ODBC driver is changed to the Oracle's one. (ODBC: Oracle in Orahome92). The connection string had to be changed to the Oracle's one syntax. Unfortunately the SQLDriverConnect crashes with access violation. In the Call stack the last source before asm is the delayhlp.cpp but nothing relevant info can be found. The interresting part is that I build a little sample application using the same Visual studio (9), same ODBC (oracle), same connection string ("Driver={Oracle ODBC Driver};DSN=db;Uid=admin;Pwd=admin;";) and there it works. No error with the function. Can anybody advice? Of course, if I missed some details, let me know.
-mfg-
adam
|
|
|
|
|
See if this[^] gives any lead.
|
|
|
|