|
Roger Allen wrote:
This is a new configurable setting of windows XP.
It's also present in Windows 2000.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Is it possible to use C# controls in a MFC Dialog based application. I have a C# control of a fancy button, and want to add this button on the MFC Dialog. Any help in this context will be much appreciated.
Regards
|
|
|
|
|
Hi everybody, please tell me how to check a folder existed or not.
Ex:
BOOL CheckExistedFolder(CString strFolderName);
It returns
TRUE : Existed
FALSE : Not existed
Thank a lot !
nguyen_nd
|
|
|
|
|
Here you go.
bool dirExists
(CString strDirectory)
{
TCHAR* fullPath = _tfullpath (NULL, strDirectory, 0);
if (fullPath == NULL)
return (false);
TCHAR szCurrDir [_MAX_PATH];
_tgetcwd (szCurrDir, _MAX_PATH - 1);
long nStatus = _tchdir (fullPath);
_tchdir (szCurrDir);
free (fullPath);
if (nStatus == 0)
return (true);
return (false);
} /ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
You can do a simple check like this
use
GetFileAttributes(..) to get the attributes of the folder, if you receive valid values that means that directory exits, elese its not there.
BOOL CheckExistedFolder(CString strFolderName)
{
if(GetFileAttributes(strFolderName) == INVALID_FILE_ATTRIBUTES)
{
return false;
}
else
{
return true;
}
}
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
You also might want to check the attributes for FILE_ATTRIBUTE_DIRECTORY to make sure it is not a file.
|
|
|
|
|
_access() , GetFileAttributes() , and CFile::GetStatus() are my favorites.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi..
i am using the frame grabber to capture the video..now i want to apply any compression on that video and save it in the remote computer.. how can i do this .. save in remote computer is possible in vc++, please help to slove the problem
Karthi
|
|
|
|
|
Visit avphone home page:
http://www.banasoft.net/AVPhone.htm
|
|
|
|
|
Hi,
How could I update the Multiple string in Registry of type REG_MULTI_SZ.
Could anyone give me some MFC Code sample.
Thanks
iRams
|
|
|
|
|
Use RegSetValueEx() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi guys,
I need your help to create a transparent checkbox on a image-background-dialog using inherited-CButton-class . I have created a transparent one, but at the first time the dialog show, the checkbox displayed only text part, and the rectangle-box was invisible. After clicking on it, the checkbox part then displayed.(Windows 2k Pro., VC6++)
How 2 solve this problem.
Thanks in advance.
WB.
|
|
|
|
|
Hello.
I am designing an application that requires the support of SSL/TLS layer socket transfer. I would like to know what is the most extensible solution.
- OpenSSL
- Win32 SSL API
The Win32 SSL API is quicker in terms of implementation. OpenSSL requires the use and in-depth knowledge of how the library handles I/O.
My primary concern is with non-blocking I/O model. Part of the design includes an OVERLAPPED I/O model via winsock. I have no problem blending Win32 SSL API with the current OVERLAPPED I/O. However, OpenSSL is somewhat different. Here is what OpenSSL design could end up.
- Winsock connect
- Associate socket to OpenSSL layer (global context)
- OpenSSL connect
- sent/recv via OpenSSL API
OpenSSL does support an event callback interface. However, is its send and receive API blocking or non-blocking? How will it affect the winsock OVERLAPPED layer? In other words, if there is incoming data, will OpenSSL handles the callback or will winsock handle the callback?
Thanks,
Kuphryn
|
|
|
|
|
Anyone know how to accomplish this? I want an effect similar to the one that Trillian uses for its custom buttons.
|
|
|
|
|
Hello,
Sorry to bother you all but i am experiencing a little nasty problem and since i am quite a newbie to MFC programming, i really don't know where to go to find a solution by myself.
I have a project of mine, developed under windows xp pro / visual c++ .net 2003. When i compile the program and make a setup for it, everything works fine as long as my application runs under windows xp / windows 2000 / windows NT. If the application is installed under windows ME / 98, the visual c++ runtime complains reporting an enigmatic error:
Runtime Error!
Program C:\......
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
For me that means that the runtime provided with visual c++ 2003 is not compatible with the latter systems. Unfortunately this program has to run on both platforms.
Is there a way to instruct visual studio to create an executable in a sort of "compatibility mode" or "retro mode", which will produce an executable that can be run under windows 98? It is even ok to have two separate installers (one for 2000/xp and one for 98/me) as long as the installed program will run.
If there is no way to do that how could i solve the problem?
THX
|
|
|
|
|
sorry conticello, but i can't see other way to do that but to compile your project under each plateform you want it to run on...
so, you must compile it under WinME and Win98...
TOXCCT >>> GEII power
|
|
|
|
|
It looks quite strange to me the fact that visual c++ doesn't have a way to instruct its compiler to produce code backward compatible with windows 98 but, assumed that, another problem arises...
Which compiler to use to compile the source code under windows 98/me ???
Of course not visual studio .net 2003 because it can't be installed on platforms older than windows 2000.
The easiest answer should be to use visual studio 6.0 but i don't own it and even if i can get a copy around i don't feel i can buy it just to compile a single program once.
Does someone have an idea?
|
|
|
|
|
conticello wrote:
Sorry to bother you all...
How is asking a question on a public forum considered bothersome? It's not like you forced yourself upon anyone.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi,
I would like to be able to drag thumbnails from one list control and then have them appear in a pre defined arrangment in another list control (e.g.). What is the standard way of doing this? Is there a specialised control for this. I just want to be able to drag the thumbnails to another user defined grid . Say 1:1 layout or 4x4 (16) thumbnails.
Regards,
|
|
|
|
|
I'm trying to display the PI symbol on certain static text variables in a Dialog box. I know I can set all the text in the dialog box to the symbol font but is there a way using SetFont in the OnInitDialog() function to allow me to change the only certain ones to the symbol PI?
Also how would I put a subscript/superscript on a static text? Would this be done using some sort of RichEdit?
Any help would be nice.
J Guds
Masters Student
Kansas University
|
|
|
|
|
CFont font;
font.CreateFont(
14, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_BOLD, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
_T("MS Sans Serif"));
btn = (CButton*)GetDlgItem(IDC_BUTTON_EXIT);
btn->SetFont(&font);
Ellis Li
|
|
|
|
|
1. Remember to delete your font after use.
2. This is only a sample, please custom it yourself
Ellis Li
|
|
|
|
|
why delete the font after you used the SetFont()? Please refer to : http://www.flounder.com/detach.htm
Ellis Li
|
|
|
|
|
Did you know that you could modify your original response instead of creating more?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I have been reading line after line of code and instructions of classes and instances, declarations and structures....I think I get it and I try to write a program but It just doesnt want to come together. I have been reading about C++ on and off for years now and I understand fully what many of the functions and structural components of C++ are and how they work....but something seems to be flying right over my head! I scan thru these forums and hear talk about all different kinds of wacky functions and what not and have NO CLUE whats going on.. Does anybody have any suggestions as to where I might go for help/tips or some incite as to how they went about starting their coding career? Thanks in advance!
------------------
Aspiring coder with no programs to date.
|
|
|
|