|
An INI file should have nothing to do with serializing CObjects. So it should be safe, but as always it depends on what the developer does.
|
|
|
|
|
When saving, the frameword open the file in mode
CFile::modeCreate | CFile::modeReadWrite | CFile::shareExclusive ,
but the GetPrivateProfile still works
|
|
|
|
|
h3y hI every1 i am sorry for this childish question but actually i got a task to perform directory manipulation ... i have created folder by using _mkdir nd remove the folder my using _rmdir .. But i dont know how to show all the content of directory mean i have to show all files name in that folder and all directory names in that folder could any one help me .. i am using visual studio 2005 .. c++ Only in c++ no windows API no MFC nO <direct.h> Just purly c++ .. please reply me back
|
|
|
|
|
Member 3831312 wrote: c++ Only in c++ no windows API no MFC nO Just purly c++
Sorry. There are no "standard" C++ facilities to iterate through files or folders/directories. You have to use an interface to the operating system to do that (.NET, Win32 SDK, etc for Windows platforms; Unix/Linux has their counterparts).
Or, you can use a 3rd-party library (such as Boost) and use their interface.
Enjoy,
Robert C. Cartaino
|
|
|
|
|
Thanks FOr reply Robert ... Please tell me one thing more i am using 3rd party library booost ... but i cause me an error while compiling it says ,
"fatal error LNK1104: cannot open file 'libboost_filesystem-vc80-mt-gd-1_35.lib'"
do u have any idea about it ... hOw can i resolve it .. i have linked all the important path that i have to give but still its not working .. please do hit me back
thanks
|
|
|
|
|
The problem is clearly stated in the error message: the linker can't find the file "libboost_filesystem-vc80-mt-gd-1_35.lib". So two questions occur:
1. Has this file been built (Boost.FileSystem is NOT a header only library)?
2. Has the path to this file been specified in the project settings?
Steve
|
|
|
|
|
H3y hi every1 please help me out i am Just creating a small program in c++, which is use to show all the content Of a directory .. i am Using BOOST LIBRARY beacuse there is nO other option for e if there nay other option plzz do tell me and tell me how to resolve this prob actually prog is compiling but i dont know whats wrong its keep on giving this Error i am Using Visual STudio 2005 ... please help me
|
|
|
|
|
Download and install "BoostPro 1.35.0 Installer" from this site.
http://www.boostpro.com/products/free[^]
Then link with the library "libboost_filesystem-vc80-mt-gd-1_35.lib" which is included with the installer.
-Saurabh
|
|
|
|
|
thanks FOr reply But my dear brother i have already installed that but still itx not working i dont know about the prob PLzz help me
|
|
|
|
|
Have you linked the lib file in the Project-->Settings menu as Saurabh.Garg told you above?
|
|
|
|
|
yes i have linked the folder of lib in addition libraris . but still not working
|
|
|
|
|
Ah my bad I didnt look at the error more carefully. Linker is not able to find the lib file. Try giving the full path to the library or set the folder where boost libraries are under Project->Properties->Linker->Genral->Addition Library Directories.
-Saurabh
|
|
|
|
|
Hi all
I am trying to take exchange server 2003 backup and restore
programmatically. I am using Visual C++ for coding.
My backup function works fine. But i am in problem in restoring
database. My HrESERestoreAddDatabase is not working well. The
HrESERestoreAddDatabase is returning HRESULT -939587631.
Will anyone give me any link related exchange server 2003 backup? Or
can anyone give me sample code or link to sample code related to
HrESERestoreAddDatabase() method?
Thanks in advance
Nasif
Nasif
|
|
|
|
|
CThree.h is :
template < class T ><br />
class CThree<br />
{<br />
private:<br />
T a, b, c;<br />
public:<br />
CThree(T t1, T t2, T t3);<br />
T Min();<br />
T Max();<br />
};
CThree.cpp is :
template < class T ><br />
T CThree< T >::Min()<br />
{<br />
T minab = a < b ? a : b;<br />
return minab < c ? minab : c;<br />
}<br />
<br />
template < class T ><br />
T CThree< T >::Max()<br />
{<br />
T maxab = a < b ? b : a;<br />
return maxab < c ? c : maxab;<br />
}<br />
<br />
template < class T ><br />
CThree< T >::CThree(T t1, T t2, T t3):a(t1), b(t2), c(t3)<br />
{<br />
return;<br />
}
compile is ok, but when I use this Template Classe, it take wrong.
Usage code is :
CThree< int > obj1(2, 5, 4);<br />
int MAX1 = obj1.Max();<br />
int MIN1 = obj1.Min();
part of the wrong is :
1>TemplateFunction.obj : error LNK2019: unresolved external symbol "public: __thiscall CThree<int>::CThree<int>(int,int,int)" (??0?$CThree@H@@QAE@HHH@Z) referenced in function _wmain
Anybody tell me why?
Thanks!
|
|
|
|
|
|
It's a perfect article, thanks a lot!
|
|
|
|
|
You are welcome.
-Saurabh
|
|
|
|
|
|
Code must be written to be read, not by the compiler, but by another human being.
good word, thinks!
|
|
|
|
|
|
Hi everyone,
I want to learn make services but I don't know any thing about it do you know good reference or book for it?
|
|
|
|
|
|
I'm developing a game application, with multiple windows, in C++ on Win32.
My sound needs is to play a few short sounds when some events happen, plus some background music in the main menu.
The thing I need to do : stop play sounds of window1 when switching focus to window2 in my application.
I CAN DO THIS PROGRAMMATICALLY, but I wonder if it's a built-in capability of the DirectSound API.
Note: it does auto-mutes my app sounds when switching focus to another app, but doesn't when switching windows inside my app.
|
|
|
|
|
I want to rotate view and also want to add a feature of viewing multiple documents (2/4) in single view (Just like Adobe PDF reader provides). Any help ?
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
|
|
|
|
|
To make more documents but in different windows you can use multiple instance of an SDI application, if you want them in one only instance, then MDI app
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|