|
Thanks Jijo for all your help and efforts.
I am able to write data to the file from map, but couldn't check the dat file.
As I am working on CE, couldn't even read the data as after closing the Enumarator, the files are deleted. But the file is writing correctly so I hope reading will also perform correctly only.
Now, I have problem of communicating between parent & child dialogs & on child dialog's message parent should hide that child and show another child dialog. As this question is out of this topic so am creating a new one. Hope will get help from you in that topic too.
Once again thanks.
Thanks
Terry
|
|
|
|
|
Trupti Mehta wrote: But the file is writing correctly so I hope reading will also perform correctly only.
So happy to hear the good news!
Trupti Mehta wrote: Hope will get help from you in that topic too.
Sure. I'll have a look at it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I have been working on VS2005 for the past one month now. I am working on an MFC application which runs fine when run through code. When I try to run the exe of my application from the debug/release folder, a runtime error with a message "This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information".
When I use Dependency Walker, I see that the exe makes a reference to DWMAPI.dll. I searched on Google and found out that DWMAPI.dll is not available on WindowsXP. Some other people had mentioned about the same problem, suspecting that IE7 might be the cause for the problem. I uninstalled IE7 and the exe still could not be run. After uninstalling IE7, the Dependency Walker says that it could not find IEUI.exe along with DWMAPI.dll. So, I think IE7 was not the cause for the problem.
I have been trying to solve it since past two days, but with no success. I had never had that error popping up when I used to write applications in VS2003. Had anyone come across this problem before? If yes, what did you do to solve it.
Regards,
Vijay.
|
|
|
|
|
vijay7173 wrote: When I use Dependency Walker, I see that the exe makes a reference to DWMAPI.dll.
With and without the IDE?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You're missing that DWMAPI.DLL is a delay-loaded DLL and will only be loaded by IEFRAME.DLL if a referenced function is actually called (which it won't be because it's not running on Windows Vista).
This message is displayed whenever abort() is called. You may be allowing a C++ exception to go unhandled, which I believe ultimately calls abort.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Hi to all,
I know it is a stupid question, but I couldn't find any function that deletes a directory and all its contents.
I've tried to use Directory.Remove() but for some reason my compiler does not recognise System as a valid namespace.
Thanks for the help
|
|
|
|
|
Are you sure that is a Visual C++ / MFC question?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Well... I would thought so, as I want to do it programmatically in my C++ application.
Am I wrong?
|
|
|
|
|
System namespace belongs to the .NET Framework .
See [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Ok, I didn't know that, sorry.
|
|
|
|
|
You can delete any directory using RemoveDirectory() function, provided that the directory which is being deleted is empty. So, you will first have to delete all the files of the directory (by using DeleteFile() function) and then use RemoveDirectory() to delete it.
Regards,
Vijay.
|
|
|
|
|
|
piul wrote: I know it is a stupid question, but I couldn't find any function that deletes a directory and all its contents.
Use SHFileOperation() .
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
using SYSTEM.IO; can help
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
I am using Visual C++ 2005 Pro IDE with SP1 for developing a MFC application. In my application there is a header file which contains application constants inside a namespace like
In file AppCommon.h
namespace APP_CONSTANTS
{
const int MAX_BUFFER_SIZE = 100;
const CString appStartupMsg = _T("Welcome to application");
....
};
Now when I use this header file and try accessing the variable as
APP_CONTANTS:: then the auto complete feature of Visual Studio always shows only the first defined variable. Can someone pleasae tell me how do I get the intellisense to display the other defined variables inside the namespace when trying to use auto complete feature?
I have tried deleting all the extra files (ncb, sbr etc...) and tried rebuilding the application for no success.
Thanks and Regards
|
|
|
|
|
VS intellisense is bad bad bad.
personlay i shifted to using Visual Assist X product.
you can get an eval of it.
first instal then when u open ur proj, giv it some time to parse evrything.(lokk at the status bar when it finished)
if after that it failed to give you completion regarding this namespace..then open the file code, and enter the menu and choose the reparse this file command.
..
perhaps somebody else could help you how to force VS intellisence to parse that namespace file...
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
psychedelic_fur wrote: Now when I use this header file and try accessing the variable as
APP_CONTANTS:: then the auto complete feature of Visual Studio always shows only the first defined variable.
What happens if you swap the order of MAX_BUFFER_SIZE and appStartupMsg ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I am facing a problem with Japanese font - MS UI Gothic ,regular,16.. We have a function for handling Japanese strings.. But as per current implementation.. after user types any text onto a dialog and presses enter or minimizes the dialog then the entered text is turning bold. Our current implementation is
DWORD DrawJapaneseString( HWND hWnd, PSTR str, LPRECT lpR)
{
HDC hDC;
DWORD dwExt;
int xStart = 0;
HFONT htempFont;
RECT charRect;
HideCaret( hWnd );
hDC = GetDC( hWnd );
dwExt = GetTextBoundingSize( hDC, (LPSTR) str, textLen, &xStart );
if( GetSystemMetrics(SM_DBCSENABLED)) {
SetRect( (LPRECT) &charRect,
textStart.x,textStart.y,
textStart.x+LOWORD(dwExt), textStart.y+ HIWORD(dwExt));
// AppRedraw expands rectangle by 10 anyway...
AppRedraw( hWnd, &charRect );
SetTextColor( hDC, textPen.lopnColor );
int nmode = SetBkMode( hDC, TRANSPARENT );
DrawText(hDC,str,textLen,&charRect,DT_LEFT);
SetBkMode( hDC, nmode);
textLoc.x = charRect.right;
}
ReleaseDC( hWnd, hDC );
ShowCaret( hWnd );
return( dwExt );
}
Can I know how to stop the text turning to bold.
Thanks.
|
|
|
|
|
Please do one thing after the string is bold than copy and paste that string to winword and check is it the same font that you are using ?? I think may be it is due to font is not set properly.please check.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
|
Please give me the details of
1) Font Name
2) Font Size
3) Font Style
when you paste that data in microsoft word. and if Font Style is change than please check when OnPaint is called than anywhere you set any default style or size so that when repainting is done than only your font size changes
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
MS UI Gothic
16
Regular
Yes when I copy and paste in winword... Font is appearing as in FontDialog...
|
|
|
|
|
Hi
I am developing windows mobile 6 application using vc++ 2005 on my desktop.
I am using some control over there like EDIT control, LIST VIEW control, COMBO box, button etc
I have to do it that whenever i will click on add button whatever written in edit control and combo box will go
in list view control according to coloum provided in list view.
I have searche on net for handling of controls but couldn't found.
so plz send me some link for handlind concept
Thanx
subodh kumar
|
|
|
|
|
waquasalig wrote: I have searche on net for handling of controls but couldn't found.
so plz send me some link for handlind concept
What exactly are you trying to do?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I am done with activex control printing. Now i have to print a user control. User class is derived from CWinApp. Can any body suggest me a link or code to print a user control.
Thanks
|
|
|
|