|
In my SW i have to save all the data in a new folder.how to create folders.is shell inevitable?
yanigv kcarija
|
|
|
|
|
_mkdir, _wmkdir
int _mkdir( const char *dirname );
-c
“losinger is a colorizing text edit control”
-- googlism
|
|
|
|
|
After I hit reply to your question, I realized that I have forgotten the code I wrote yesterday night to create folders. But I am sure there is one.
Sorry.
"* Code till death *"
http://www.askarya.com
|
|
|
|
|
try this API:
BOOL CreateDirectory(
LPCTSTR lpPathName, // directory name
LPSECURITY_ATTRIBUTES lpSecurityAttributes // SD
);
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
hi
i am wiritng my own print dialogbox. on that i place the controls for setting properties. i like to set that properties to selected printer. i wrote below code. but printer doesn't set the user selected properties . please correct the code where i am wrong. otherwise please give guidence
Thank you
void CmyPrintSetup::OnButPrint()
{
// TODO: Add your control notification handler code here
unsigned char temp[32];
DEVMODE *devout,*devin;
DWORD dwNeeded,dwRet;
DEVMODE* pDevMode;
if(!OpenPrinter(printername,&hprinter,NULL))
MessageBox("Printer can't be opened","error",MB_OK);
dwNeeded=DocumentProperties(NULL,hprinter,printername,NULL,NULL,0);
pDevMode=(DEVMODE*)malloc(dwNeeded);
dwRet=DocumentProperties
(NULL,hprinter,printername,pDevMode,NULL,DM_OUT_BUFFER);
if (dwRet != IDOK)
{
/* If failure, cleanup and return failure. */
free(pDevMode);
ClosePrinter(hprinter);
}
pDevMode->dmOrientation=m_orientation;
pDevMode->dmCopies=m_copies;
dwRet=DocumentProperties
(NULL,hprinter,printername,pDevMode,pDevMode,DM_IN_BUFFER|DM_OUT_BUFFER);
if(dwRet!=IDOK)
{
MessageBox("properties initialization error","error",MB_OK);
}
}
please help it's urgent
|
|
|
|
|
hi
i am wiritng my own print dialogbox. on that i place the controls for setting properties. i like to set that properties to selected printer. i wrote below code. but printer doesn't set the user selected properties . please correct the code where i am wrong. otherwise please give guidence
Thank you
void CmyPrintSetup::OnButPrint()
{
// TODO: Add your control notification handler code here
unsigned char temp[32];
DEVMODE *devout,*devin;
DWORD dwNeeded,dwRet;
DEVMODE* pDevMode;
if(!OpenPrinter(printername,&hprinter,NULL))
MessageBox("Printer can't be opened","error",MB_OK);
dwNeeded=DocumentProperties(NULL,hprinter,printername,NULL,NULL,0);
pDevMode=(DEVMODE*)malloc(dwNeeded);
dwRet=DocumentProperties
(NULL,hprinter,printername,pDevMode,NULL,DM_OUT_BUFFER);
if (dwRet != IDOK)
{
/* If failure, cleanup and return failure. */
free(pDevMode);
ClosePrinter(hprinter);
}
pDevMode->dmOrientation=m_orientation;
pDevMode->dmCopies=m_copies;
dwRet=DocumentProperties
(NULL,hprinter,printername,pDevMode,pDevMode,DM_IN_BUFFER|DM_OUT_BUFFER);
if(dwRet!=IDOK)
{
MessageBox("properties initialization error","error",MB_OK);
}
}
please help it's urgent
|
|
|
|
|
hi,
3 questions.
1.how to display symbols in listbox text like the wave equation?formatting the string using the ascii octal just gives a box in place of the symbol.
2.how to add tabs in a string and not get black boxes when displayed in a list box.
3.how to set the precision for floats.i have to display say 1.23 and not 1.23046.
where can i find good illustrated examples of printf family?
thanx.
|
|
|
|
|
1. I presume you need to owner draw
2. \t is a tab, if it won't show, the answer again is owner draw
3. ostringstream will do that for you, so will printf, you can use printf if you don't care about safety, or if you're especially worried about exe size.
examples of printf abound in the MSDN.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
1. you'll probably have to draw them yourself (see "owner-drawn" listbox)
2. see 1, or replace the tabs with spaces
3. MSDN, any book on C, etc.. but, if you want to limit the number of decimal places, use this notation: %.3f . this will give you three digits after the decimal.
“If it turns out that I’m actually the one who did it, then looking for the real killers would be a big old waste of time.”
-- OJ Simpson
|
|
|
|
|
hi,
i am just not getting how to make a help file like all those softwares.the msdn is too cryptic for me .can any one guide in simple steps.what are all those arrays etc?
i also don't find any articles or demo projects or even queries about that here.
Alex
|
|
|
|
|
|
1. there is no such thing as "visual c"
2. C# is a new language that is similar to C++ and Java
“If it turns out that I’m actually the one who did it, then looking for the real killers would be a big old waste of time.”
-- OJ Simpson
|
|
|
|
|
One is a new language that is based strongly on C++, VB and Java, the other is a common contraction where Visual C++ is meant. Visual C++ is an IDE from Microsoft for programming in the C++ language.
Why do you ask ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
Why do you ask ?
It was on his test.
|
|
|
|
|
I am trying to get a certain date variable to be converted to a text so I can then display it in the window of my windows program. Any suggestions will be accepted.
Thanks
Elvis8900 forever
|
|
|
|
|
ostringstream will do it, and I have an article on CP that explains how.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
|
LOL
1. Get an account here so that people will take such a question remotely seriously.
2. If you don't know what it is, why do you want to learn it ?
3. As Chris said above, there is no such thing as Visual C. You probably mean Visual C++, and you probably want to learn C++. If you don't know what it is, you'd be better off with VB, where you can't hurt yourself.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
you'd be better off with VB
Headlines : CP Times
--------------------
Ruthless Christian attacks VB world again
Junkie
"* Code till death *"
http://www.askarya.com
|
|
|
|
|
Christian Graus wrote:
you'd be better off with VB, where you can't hurt yourself
He/she may not hurt him/herself but is quite likely to hurt others. Surely it's unwise to recommend VB even in such a circumstance as this??
The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
|
|
|
|
|
I couldn't think of anything worse. Logo, maybe ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
I want to learn how to program games but I don't know where to start. Should I learn OpenGL or DirectX, and are there any game programming website equivilants to CP? Any good books to get me started?
There's always one more bug.
|
|
|
|
|
The nehe.gamedev.net site is the best for OpenGL, there IS a game programming site, but the name escapes me. Before you start, how much C++ do you know ? Don't try to learn C++ and game programming at the same time, that would be worse than learning C++ and Windows API or MFC at the same time.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
There are a number of gamedevelopment sites including www.gamedev.net and flipcode.com. There is a game development search engine at http://www.gdse.com/.
As far as what you should learn depends on what you want to do. OpenGL is a good graphics library that is portable. Many companies use OpenGL for things like flight simulators and games like Quake use OpenGL.
DirectX is a library that is designed specifically for machines that run windows. DirectX is a more generic multimedia development library that will allow you to access the systems video, sound, and input devices.
There are a lot of books about game development now, how ever I would recommend that you learn C++ first. You may find it quite confusing to extract the game programming fundamentals if you dont have a firm grasp of C++.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
i am using function GetGUIThreadInfo function to get the active window hwnd it works to get active hwnd but it dont work when i try to use it in multithreaded program
(csharp).
can any body tell why and how to use it in multithreaded program?
r00d0034@yahoo.com
|
|
|
|
|