|
in www.msdn.com
CreateDirectory
This function creates a new directory
_mkdir
Create a new directory.
WhiteSky
|
|
|
|
|
thanks for ur reply.
I used the create directory function.
CreateDirectory("c:\\test\\",NULL);
To create another folder named front in the test folder,i used the same method.
CreateDirectory("c:\\test\\front",NULL); ,the folder is not creating..any other way to create subdirectories??
Also i have to store jpeg files in the created subdirectory.
How to do that.
cheers
sangeet
|
|
|
|
|
you can use each name instead test use your favorite name
like this
CopyFile("c:\\a.bmp","d:\\a.bmp",1);
whitesky
|
|
|
|
|
ramyasangeet wrote: CreateDirectory("c:\\test\\front",NULL); ,the folder is not creating..any other way to create subdirectories??
try SHFileOperation api or http://www.codeproject.com/shell/cshellfileop.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ramyasangeet wrote: CreateDirectory("c:\\test\\front",NULL); ,the folder is not creating..
Are you sure that the c:\test folder exists? If it doesn't, CreateDirectory() will fail.
Why are you not checking the return value from GetLastError() ?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
I would like to know how to control the charactor spacing in the CEdit control? Please help!
|
|
|
|
|
hai everybody
i want to create a notepad using a single document application.can you please help me how can i create that application.
|
|
|
|
|
Hi,
The best way is to use the MFC framework and choose the SDI application templete...most of the functionality is alreay implemented in the same.
or you can refer the sample source code provided in the MSDN for the notepad application.
all the best.
Jitendra.;)
|
|
|
|
|
|
Can any body explain me use of Static Function and Static Class in C++/VC++
|
|
|
|
|
What do you mean by static class ? As explained previously already, there is no such thing as a static class. You can only have a static instance of the class (like any other variable). Is that what you are looking for ?
For static function, in which context is that used ? You mean a static member function ? If yes, then it means that the function is shared across all instances of the class (thus, doesn't need a particular instance in order to be called). An example is the GetCurrentTime from CTime:
CTime t = CTime::GetCurrentTime();
As you see, you don't need to declare an instance in order to call the function.
Does that answer your question ?
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
it means that without creating an instance of the class I can call its static function.
|
|
|
|
|
NiLeSh KoRpE wrote: it means that without creating an instance of the class I can call its static function.
I don't understand... Is that a question ? If yes, I just answered in my previous post: yes it means that without creating an instance, you can call a static member function of the class.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Thank U
|
|
|
|
|
|
Hi,
Can we create a service (using VC++ 6) that runs on Windows 98. OR the services can only run on Windows NT and 2000.
Do they run on Windows XP.
Could you please tell me that on which Windows operating systems they can run.?
If i want to run them on Linux and Unix what are the thing to be considered?
Regards.
|
|
|
|
|
It is also possible to simulate a "service" on 9x platforms, although not a true NT service.
You have to use a function from kernel32.dll with GetProcAddress (although I don't remember the function name now, is something like RegisterService or similar, but I might be wrong).
|
|
|
|
|
Hi,
As far as my i know, windows services can only run on NT/2k/XP onwords. we can't deploy windows/NT services on windows 98 and on linux too.
but we can utilize the same functionality by running as a background process or demon.
Cheers
Jitendra.
Jitendra Pal Singh Gangwar
E-mail: jitendra_gangwar@hotmail.com
Mobile No: 09831352305
|
|
|
|
|
How can i use a tree control to display the directories in the system?
|
|
|
|
|
HI,
I want to run a MFC based Application on DOS.
Can i do this?
What are the conditions or limitation or precuation I have to take care of?
Any link or resource that explains about this?
Thanks
Regards.
|
|
|
|
|
in this application I am also using CSocket Class.
Regards.
|
|
|
|
|
You can't run Windows applications on DOS. You can make a console application that runs on Windows that uses MFC but that's a different situation; but some people use the word DOS to mean a console application which is why I mention it.
Steve
|
|
|
|
|
As i get from you reply.
Windows applicxation cannot run on DOS operating system, but a consol based application can run on windows infact this consol based application is not basicaly a DOS application.
So to run a consol based application windows Operating system must be installed.
As i think DOS is a 16 bit operating system and windows is 32 bit operating System that why the windows applications cannot run on DOS operating system is it .
thanks
Regards.
|
|
|
|
|
Microsoft droped support for writing applications in DOS over 10 years ago. I believe VC4 did not even support DOS.
John
|
|
|
|
|
You can use Visual C++ 1.5 (1993 if I remember well), it has an option for DOS console application.
Also I think it was the first time when MFC was introduced, but I don't think you can use MFC for a console application.
There were dlls available for a DOS application, by the way? I think they are available for 16-bit and DOS only under Windows (3.11 etc.), I think the type of application was called QuickDOS or so (a pseudo-console emulated under 16-bit Windows).
Consider a rewrite in C - it's not really necessary to use MFC for a console application anyway just for CString or whatever are the few classes you need. Even talking about Win64 - what kind of console application needs a heavy GUI library as MFC to worth its usage?
-- modified at 4:31 Saturday 20th May, 2006
|
|
|
|