|
|
thanks!!
|
|
|
|
|
Didn't there used to be a link to that faq on the forum somewhere?
Or is it still there, and i'm blind...
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|
|
|
THere used to be a link at the top of the page when you were viewing the VC forum, but it hasn't been there for a while. I keep a link to it in my .sig though.
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
Magnae clunes mihi placent, nec possum de hac re mentiri.
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Well, that's one thing i haven't hallucinated today at least. Any idea why it was removed?
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|
|
|
|
In my app there is an assumption that
After selecting a folder , i need to grab the one and only .xml file and parse it .
With the help of u code gurus I was able to get the folder path for the file .
Now I will not know the name of the .xml file(contained within that folder) to parse
What is the best way to
1) Make sure that there is only one file of that extension in the folder
Something like : "where count of *.xml files equals 1 "
2) Be able to get the name of the file .
|
|
|
|
|
try something like this:
WIN32_FIND_DATA FileData;
HANDLE hFind = NULL;
if (hFind = FindFirstFile("c:\\temp\\*.xml", &FileData))
{
CString filename = FileData.cFileName;
etc
FindClose(hFind);
}
Image Toolkits | Image Processing | Cleek
|
|
|
|
|
hi
In mfc way
CFileFind fFind;
BOOL bMoreFile;
bMoreFile = fFind.FindFile("C:\\YourFolder\\*.xml");
if ( bMoreFile == FALSE )
{
// no files
}
else
{
fMore = fFind.FindNextFile();
if ( fMore == FALSE )
{
// means there is only one file.
CString sFilename = fFind.GetFileName();
}
else
// can be more files
}
Hope this helps
Jetli
conclusion means Coming to wrong Decision with confidence
|
|
|
|
|
I thoght I remembered a 'beautify' command to align your code right in VC6. I can't find it in VC7 (.Net 2003), does anyone know if this is still possible?
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
|
|
BlackDice wrote:
a 'beautify' command to align your code right in VC6
what is beautify command?
Is it come with out of box VC6
Thanks
Jetli
conclusion means Coming to wrong Decision with confidence
|
|
|
|
|
yeah, I think in VC6 you can go to the 'help' item on the menu and go to 'keyboard map' or something like that, and view all the hotkeys set up for the IDE.
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
Hey,
I am looking for a solution to an eternal problem. We get complaints that our software does not look good in English when running on a Japanese OS.
Most of the problems revolve around the wizards and property pages not sizing correctly. This is because I cannot find a way for the MS PropertySheet and PropertyPage to use a more English favorable font.
Does anyone know a way to force the MS controls to use the current dialogs font and sizing and ignore the OS specifications? I should say and do this without affecting the users OS in a deterimental way. I don't want to change things on the OS out from under a user obviously.
Just as a side note, the applications are not MFC but Win32 API.
Thanks,
Brian
If you start a fire for a man, he will be warm for a day. If you start that same man on fire, he will be warm for the rest of his life.
|
|
|
|
|
Are you concerned about just the appearance, or about how DBCS characters appear in your UI, or about handling DBCS strings in general? From your description it sounds like #2, but have you even tested #3? If not, #2 is the least of your troubles.
The quick answer for fixing #2 is to make these changes in all your dialog resources:- Use
MS Shell Dlg instead of MS Sans Serif as the font - Change all
DIALOG resources to DIALOGEX - Add the
DS_FIXEDSYS dialog style
--Mike--
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ | You Are Dumb
Magnae clunes mihi placent, nec possum de hac re mentiri.
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Thanks I will try that...
Not worried about handling DBCS strings. We build our software in all UNICODE, with a few exceptions where the interfaces call for DBCS. Then we worry but I have a good handle on that.
I also wrote a quick application to allow me to actually psudeo translate all the resources and insert DBCS characters in preparation for actually localizing the software.
The only thing I couldn't figure out was why the property pages and the wizards would always truncate the English version of the dialog boxes when running on a Japanese OS. The strings which would normally be wide enough on an English wizard would be too wide for the Japanese wizard. If I expand the size of the English dialog resources without expanding the controls, then they would fit. However this made it look bad in English.
I think this solution will help and I will try it.
Thanks,
Brian
If you start a fire for a man, he will be warm for a day. If you start that same man on fire, he will be warm for the rest of his life.
|
|
|
|
|
Hi guys
Sorry for the silly question, but what's the way to change the name of the actual document in a document/view application?
Doc
|
|
|
|
|
See CDocument::SetTitle().
onwards and upwards...
|
|
|
|
|
I've re-written Franky Braem's Filemonitor control using ReadDirectoryChangesW to return the full paths only of files ADDED to a particular directory . It apparently seems to work, but I noticed that when I use the control in other applications (in this case one written in VB6) to report multiple simultaneous files added to any subdirectory of a given directory, the control randomly duplicates the full filename of a notification in other notifications, that is, if I add files A, B, C, D and E to a directory at the same time, the control might report that I've added files C, B, C, D and D (the number of notifications is correct, but the returned values quite frequently aren't.)
I've made no changes to the interface, but needed to declare a global handle to the completion port and a global buffer to hold the directory info which I needed to share between the methods of the control and the thread created to wait on the notifications.
What could be wrong here?! Please help...
|
|
|
|
|
How do i perform this conversion
My a CDialog object to a Hwnd
Engineering is the effort !
|
|
|
|
|
What do you mean, converting a window derived class to a handler ?!?
Maybe you want to get a handler to the window? That's already available in m_hWnd!
SkyWalker
|
|
|
|
|
You can't "convert" a CDialog to a HWND , but you can access it's window handle by calling GetSafeHwnd() .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|