|
I actually figured out an alternative way. I am using the Gdal Library with C++. Instead of declaring a name for the file at the beginning, I directed the file to the destination folder first and then named it. It might sound little confusing since I am not using straight C++.
I would still like to know if there is a way to move the file by extension only in C++.
Thank you,
Lynniz
|
|
|
|
|
Lynniz wrote: I would still like to know if there is a way to move the file by extension only in C++.
I concur with Chris' suggestion.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Thank you guys, I will try that method too.
Lynniz
|
|
|
|
|
|
Just upgraded to VS2005 from VS 2002. What an ugly, distracting environment - but I'll get used to it.
Right now the one thing I'm stuck on are the "expand/contract" icons that appear in the source code. They are eyesores. But I can't figure out how to turn them off - does anyone know?
Thx
|
|
|
|
|
You mean Code Outlining?
Try Tools / Options / Text Editor / 'C/C++' / Formatting and then turn off 'Enter Outlining Mode When Files Open'
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
In VS, go to Tools -> Options. Select Text Editor -> C/C++ -> Formatting. Uncheck "Enter outlining mode when files open".
You can close and reopen VS to reset outlining in all open docs, if you want.
Remember that you can toggle outlining for the current document with Edit -> Outlining -> (Stop Outlining) or (Start Automatic Outlining).
--
I've killed again, haven't I?
|
|
|
|
|
Thanks to all for the replies. Turns out the correct option is the "Selection Margin", which makes no sense to me (I had already turned off all of the other suggested options)
|
|
|
|
|
Actually, the "Selection Margin" option controls just that--the selection margin. In addition to removing the outlining controls (which lie in the selection margin), removal of the selection margin also removes the selection margin itself.
The presented solutions remove just the outlining controls as requested.
--
I've killed again, haven't I?
|
|
|
|
|
I upgraded an MFC app from 7 --> 8 and my dialogs do not have the xp styles. Is there something I have to do? I thought 8 embedded the manifest for you.
Thanks
Kurt
|
|
|
|
|
Upgraded apps are not the same as newly created apps. i.e. the project settings (etc) are not changed behind your back (which is probably a good thing.
I used the following to get the XP style in my app:
http://www.codeproject.com/w2k/xptheme.asp[^]
Warren
|
|
|
|
|
Found this somewhere, put into stdafx.h, pretty easy.
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
|
|
|
Hi I am new here. I want to write some code for Pocket PC using Visual Studio.Net 2003 and visual c++/MFC.
I already have some code in MFC / visual studio.net 2003.
I want to rewrite them for Pocket PC.
My question is does Pocket PC support MFC in visual studio.net.
If yes can you suggest some tutorial/ notes/ book on that subject.
|
|
|
|
|
hi,
i want to ask how to call or load the .bmp file into c++ programme?
what command should i use?
tq....
|
|
|
|
|
For starters:
LoadBitmap()
LoadImage()
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Add a bitmap resource with an ID of IDB_MYBITMAP (or whatever ID you want) to your project. With App Studio, you can do this by either creating a new bitmap resource and setting the ID, or by choosing Resource, Import, and importing an already created bitmap with a .BMP extension.
Using LoadBitmap() to load bitmap in your resource, example
void CMyDlg::OnPaint()
{
CPaintDC dc( this ); // Device context for painting
CBitmap bmp, *poldbmp;
CDC memdc;
// Load the bitmap resource
bmp.LoadBitmap( IDB_CORPLOGO );
// Create a compatible memory DC
memdc.CreateCompatibleDC( &dc );
// Select the bitmap into the DC
poldbmp = memdc.SelectObject( &bmp );
// Copy (BitBlt) bitmap from memory DC to screen DC
dc.BitBlt( 10, 10, 47, 47, &memdc, 0, 0, SRCCOPY );
memdc.SelectObject( poldbmp );
// Do not call CDialog::OnPaint() for painting messages
}
-----------------
conglt
|
|
|
|
|
hi,
why'll the foll. error occur,
cannot open Debug/last.exe for writing ,wher last is my project name.
Pls let me know,
bye
swapna_signsin
|
|
|
|
|
Because your program is still running so it is normal that it cannot be replaced by a new version while still running.
|
|
|
|
|
swapna_signsin wrote: why'll the foll. error occur,
cannot open Debug/last.exe for writing
Because last.exe is running. Close it down, and then do a recompile.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi all,
I have an mdi application ,and here i have about 11 toolbars .All these toolbar are created a variable of
CToolBar and then using the CreateEx() in the mainframe.cpp file,loaded all the toolbar .
Now i have a menu called "Toolbar" in my application which selects/checks the toolbar WS_VISIBLE and checks/unchecks the toolbar .So when i check ,say any one toolbar,it shows at first instance,and if i uncheck ,it hides.
Now i want to save these settings, so that once i close
the application and opens it again,i get only the toolbar shown which are selected initially before the application closes.
"In short,I want to display next time,only the toolbar which are checked .
Please get me out of these problem(;
|
|
|
|
|
CFrameWnd::SaveBarState should do the trick. However keep in mind that this thing fails if you will delete one of toolbars or change ID.
Igor Green
http://www.grigsoft.com/ - files and folders comparison tools
|
|
|
|
|
You can use function GetBarInfo & SetBarInfo
-----------------
conglt
|
|
|
|
|
I have 2 edit control named "Name" and "Location". the "Location" control already contains the text as "C:\DesktopSearch\Index\". Now when i type text into "Name" field,it has to be appended with "Location" control's text i.e. eg
if i type into "Name" ,a text called hello, the "location" field shud be appended with this text i.e
"C:\DesktopSearch\Index\hello".
i have put the code in onchange event of "Name" edit control. The following is the code
void CCreateDlg::OnChangeEnterName()
{
CString csText,cs1,cs2;
m_name.GetWindowText(csText);
m_Enter_Location.GetWindowText(cs1);
cs2 = cs1 + csText;
m_Enter_Location.SetWindowText(cs2);
UpdateData(FALSE);
}
But when i type text into "Name" the characters are repeated.
m_name and m_Enter_Location are member variables for "Name" and "Location" edit controls respectively
how to solve this ? pls help
|
|
|
|
|
you have to store first the content of the "location". then, use this data and append it with what has been written in the name field.
|
|
|
|
|
whenever Location changes, get a copy of the text and store it in a member variable.
add Name to that member variable (not to the current text in the Location control) and set that as the text of the control
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|