|
I suppose with "MSDOS name" you mean FAT 8.3 notation, right?
You can get it by calling the GetShortPathName() API.
However, it is a not so good idea to solve your problem this way! Not every filesystem has necessary a 8.3 alternate notation. For NTFS volumes it is just a flag if they store alternate 8.3 names or not. Some network file systems may also not support this old crappy MS-DOS trash.
If your path contains spaces, just enclose it in quotation marks and everything should work fine.
Come on, boys, it's really the time to forget about this legacy 8.3 bullshit
--
Daniel Lohmann
http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there )
|
|
|
|
|
I have successfully managed to split a window into two panes or views, but i'm lost as to how I can get a pane split in half again...?
I'm aware of the CSplitterWnd classes available here @ CP, but i'm interested in seeing how it's done and learning exactly whats going on....
Someone care to show me how I would get the following:
----------------
|1| 3 |
|-| |
|2| |
| | |
| | |
----------------
I know hwo to get 1 and 3, but NOT 2
heres my code so far:
m_wndSplitBar.CreateStatic(this, 1, 2);
m_wndSplitBar.CreateView(0, 0, RUNTIME_CLASS(CTaskView), CSize(100, 100), NULL);
m_wndSplitBar.CreateView(0, 1, RUNTIME_CLASS(CPlanView), CSize(100, 100), NULL);
m_wndSplitBar.SetColumnInfo(0, 146, 146);
How would I make the triple split like above from this...?
Thanx!
p.s-I'm trying to get one splitter to lock and the other to draw flat and those wrapper classes don't help much...
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Anybody knows the IncrediBuild software for reduce compilation time ?? It's really good ??
[]'s
Cris.
|
|
|
|
|
Yes,
we are testing it - it really does help if you have many PC's idle on the network
Victor Rubinstein
|
|
|
|
|
I want to hide vertical scroll bar in CListCtrl derived class
I tried this code in PreCreateWindow:
DWORD dwStyle = cs.style;
if(dwStyle & WS_VSCROLL)
{
dwStyle &= ~WS_VSCROLL;
cs.style = dwStyle;
}
and this in OnSize:
DWORD dwStyle = ::GetWindowLong(GetSafeHwnd(), GWL_STYLE);
if(dwStyle & WS_VSCROLL)
{
::SetWindowLong(GetSafeHwnd(), GWL_STYLE, dwStyle & (~WS_VSCROLL));
}
but it doesnt work, I still have scrollbar
any suggestions?
thankx in advance
nobody is perfect
|
|
|
|
|
dwStyle &= LVS_NOSCROLL;
Signature space for rent. Apply by email to....
|
|
|
|
|
I need to hide only vertical scrollbar, horizontal should stay as is
nobody is perfect
|
|
|
|
|
Hello,
I have the same problem in horizontal scroll, i am trying to make it disappear.
i tried also in the OnSize same as you and it didn't work....
i would like to know if u solved the problem, if u did can u tell me how please?
thanks in advanced
Yaron
Ask not what the application can do for you, ask what you can do for your application
|
|
|
|
|
I want to insert pictures into the talbe of a .mdb(Access 2000)
database created by DAO classes(CDaoDatabase,
CDaoRecordSet, CDaoTableDef). I find CLongBinary useful but
i don't know how to use it at all. Could anyone elaberate on
the complete process of inserting pictures? Thanks a lot!
|
|
|
|
|
Hello world.
I simply want to get a double variable from an ini file...
Currently I get an integer by using:
GetPrivateProfileInt("MY SECTION", "MY KEY", default_value, Ini_file_name)
How to get a double variable?
GetPrivateProfileDouble(...) doesn't exist!
Thanks in advance
Hello World!!!
from Raphaël
|
|
|
|
|
I've by passed this problem by using GetPrivateProfileString and then atof
And that's work...
Hello World!!!
from Raphaël
|
|
|
|
|
Read a string and convert it to a double!
|
|
|
|
|
What's wrong with my code below ? I got an exception of accessing invalid address in the line InsertItem(&tvInsert).
Original, the code adds a TVIF_TEXT too, I thought it's the text buffer problem, but I removed, it's still the same.
One more quetion. If i use TVIF_TEXT mask, I'm using a CString to pass in a function for the tree item text. Should I "new" a buffer for the tvInsert.item.pszText or the control will copy it itself ??
TVINSERTSTRUCT tvInsert;
tvInsert.hParent = hParent;
tvInsert.hInsertAfter = TVI_LAST;
tvInsert.item.mask = TVIF_IMAGE | TVIF_PARAM;
tvInsert.item.iImage = 0;
TVITEMDATA *pitemdata = new TVITEMDATA;
pitemdata->itemtype = TVITEM_PKGETY;
pitemdata->itemkey = pPkgEty->GetPkgEntityKey();
tvInsert.item.lParam = (LPARAM) pitemdata;
HTREEITEM hItem = InsertItem(&tvInsert);
|
|
|
|
|
I m Doing Masters in computer sciences and now a days looking for my final project.
I want to devlop some application as my project, but i m not getting any idea what should i devlope, what type of application should i make and things like that.I will use visual c++ as develpment tool.
I need recommendations and suggestion from u ppl as what to develop as my project
if u have any idea ,
or if u could share any idea about any project that you have done that can help me, or any other info
Do tell me
Thankyou
|
|
|
|
|
My friend for his masters final project did an image recognition application. Think he's still slaving over it just now to be honest Seemed like a good project to do and quite interesting.
|
|
|
|
|
First, pick something doable and practical. Don't fool yourself into believing your going to discover some great algorithm. Something small and elegant will do more for you career wise, than something large, obscure and unfinished.
Second, what areas interest you? Do you like to database stuff or hate it? Do you prefer working at the UI level or the lower level? Command line?
Third, what turns on your advisor? For example, if he/she, hates BTrees, don't do something with BTrees.
Fourth, whatever you do, don't do AI, natural language recognition/translation, visual imagery resolution... All are much, much, much harder than most college students think and none are close to being solved. Moreover, some of these require additional education you may not be willing to do. Also avoid encryption and compression (directly at least), both have been done to death.
Fifth, whatever you pick, make sure you can do it with just MFC. I know some readers will disagree, but to keep the project simple and on track, avoid learning loads of new stuff. If you know STL, great, if not think twice if your goal is to complete the project. (In other words, minimize the new stuff you need to learn.)
Finally, I really suck at coming up with projects like this. I either come up with stuff so huge, it would take a team 18 months or something so simple, I do it in a week.
|
|
|
|
|
I have the problem, that the OnUpdate???(CCmdUI* pCmdUI) functions of my command bar will not be called, and so the buttons are always enabled!
I have a dialog with a command bar and some buttons, the click events works fine. The only thing is that the OnUpdate???(CCmdUI* pCmdUI) functions are not working! I have take some breakpoints in the functions, but the system never call this functions!
I am working with eVC++ 3.0!
--
Nice greets, Daniel.
|
|
|
|
|
Modal dialog? OnUpdate methods are called from main application message loop (CWinApp::OnIdle method), but modal dialogs have it's own message loop.
See Q123158 KB article[^] for details how to implement updating the control bars on dialog.
Pavel
Sonork 100.15206
|
|
|
|
|
Thanks for the tip! I try it...
--
Nice greets, Daniel.
|
|
|
|
|
To All experts,
I have to write an engine capable of :
-accept inout from differnce source eg COM ports, TCP/IP, I/O device. More like each input device is module and have its own properities.
-You can start with one input, say get data from COM1, and if user want can add more. More like having multiple terminal emulators running in the same system.
How best should I go about it ? in term of architecture and UI. I am looking at MDI and may be a SDI with Tab-control interface. my head filled with useful information and cannot decide what is best.
like to get suggestion from our experts here.
thank
sanong
|
|
|
|
|
Try googling for "Free BBS source".
|
|
|
|
|
I am using ShellExecute method to launch Internet Explorer. I am using it like this:
ShellExecute(hWnd,"open","www.codeproject.com","","",SW_SHOWNORMAL);
The problem is that it opens the URL in already opened browser. How can i use this to launch a seprate new browser.
Ahsan
|
|
|
|
|
replace www.codeproject.com with iexplorer.exe http://www.f***you.com
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
What will happen if default browser is NETESCAPE or Internet explorer is not installed on that PC.
Ahsan
|
|
|
|
|
Ah ah ! what a boring question. Then look up the registry in HKCR\.htm (HKCR\htmlfile), and there you get a reference to the default web browser.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|