|
Thanks Nelek for your help. After some more testing I think the problem is not in the axis orientation but in the screen refreshing. I used a different component for drawing than in my previous programs and it needs a different method of refreshing. I will post the result when I know where the issue was.
All the best,
Denny101
|
|
|
|
|
You are welcome
[quote]
I will post the result when I know where the issue was.
[/quote]
Please do it. I am curious about.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi,
I found the problem with my program running on European Windows - it is in the decimal separator! European use comma, while the US (and all English countries) use dot. My program reads a file with coordinates in a string format. I use Borland Builder C++ and I trusted it that its method AnsiString::ToDouble() makes the conversion according to the OS used - but it does not. After I changed the conversion method to STL C++ strtod() it works fine on all systems.
Regards,
Denny
|
|
|
|
|
Glad you found the solution.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Upon a cold start, I create an fstream replay file that's opened for output ios::out. If my program stops and does a warm restart, I open the file for ios::in and process the file. Then I close it and reopen it as ios::out | ios::app. This second open succeeds if did not read (getline) any data when opened for ios::in; but fails if I did read data. I thought that flushing the file before closing might have helped, but it didn't. This is not the kind of behavior I, for one would've expected. Any ideas or suggestions?
Thanks
|
|
|
|
|
You can check the stream state for all operations open/create/write you are doing. May be the file is empty while you are opening it?
Checking documentation for fstream may help you..
--
"Programming is an art that fights back!"
|
|
|
|
|
When selecting a different item in my combobox control, I need to save some dialog information for the previously selected item. Which combobox notification should I use for this purpose and how?
Thanks
--
"Programming is an art that fights back!"
|
|
|
|
|
From MSDN:
ON_CBN_SELCHANGE The selection in the list box of a combo box is about to be changed as a result of the user either clicking in the list box or changing the selection by using the arrow keys. When processing this message, the text in the edit control of the combo box can only be retrieved via GetLBText or another similar function. GetWindowText cannot be used.
|
|
|
|
|
Hello, folks,
I set a file association programmically. point the DefaultIcon key value to a .ico file. but after my setting operation. the icon is not be shown with the associated file. but, i noticed that the msi installer can refresh the explore and enable the associated icon with files after installing?
How to enable the setting immediately? what API should i call?
Thanks,
hawk
|
|
|
|
|
UpdateWindow(handle_to_desktop_window)
|
|
|
|
|
I got the answer, refresh explorer by using SHChangeNotify() .
|
|
|
|
|
Hi
I have written a Dialog based Application in VC++ 2008 and also I made some Modeless Dialogs which are created in response of Button Click.
I want my parent Dialog (main Dialog) to be notified of Child Dialog's destroy so I use the below code But It doesn't do any thing while child dialog is closed or destroyed.
void CMyAppDlg::OnParentNotify(UINT message, LPARAM lParam)
{
CDialog::OnParentNotify(message, lParam);
if ((LOWORD(message) == WM_DESTROY))
{
if((HWND)lParam == _mChildDlg->m_hWnd){
::AfxMessageBox(_T("My Code here"));
}
}
}
|
|
|
|
|
How does the child dialog tell the parent it is closing? It won't happen automatically.
Judy
Be wary of strong drink. It can make you shoot at tax collectors - and miss.
Lazarus Long, "Time Enough For Love" by Robert A. Heinlein
|
|
|
|
|
According to the MSDN CWnd::OnParentNotify
A parent's OnParentNotify member function is called by the framework when its child window is created or destroyed, or when the user clicks a mouse button while the cursor is over the child window.
So I think It should work. if not so what should I do?
|
|
|
|
|
From the same link you have given...
[quote]
All child windows except those that have the WS_EX_NOPARENTNOTIFY style send this message to their parent windows. By default, child windows in a dialog box have the WS_EX_NOPARENTNOTIFY style unless the child window was created without this style by calling the CreateEx member function.
[/quote]
How do you create your child dialog?
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Thanks I think that should works
|
|
|
|
|
You are welcome
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hai,
I am having a VC++ exe. i wat to create a setup file, I tried creating a setupfile by reading the msdn site.when i am running it, it is working in some machines, but not in other machines. will you please help me
|
|
|
|
|
Are you making the setup from your debug or your release version?
If you are making it from debug, it probably is the reason why in some machines does not work. They probably are machines where visual studio is not installed, and so your program is missing the needed libraries and dlls to be able to run the application.
What error do it appears in the machines where it is not working?
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
i Am making it from the debug version.It is showing the error Application Not configuredf properly.Try reinstalling it.
|
|
|
|
|
As I said, if you do the setup from the debug version and you try to run the application in a machine where no visual studio is installed... you may have problems. The debug versions sometimes need to have some DLLs and other files in the target computer to run correctly.
Take a look with the dependancy-walker about what your programm needs when it is running and add it to the setup packet.
Or do the setup with released version. If you do this, I strongly recommend to take a look into:
Surviving the Release Version[^]
Debugging Release Mode Problems[^]
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Are you including visual studio runtime library in your setup? The Target machine may not have these files
|
|
|
|
|
I want show some options as checkbox in menu.
this menu could be called by right clicking the dialog.
If user select some menu item according to that i will make some operation.
how could i add checkbox to submenu item
|
|
|
|
|
If you go through MENUITEMINFO structure (which is used in InsertMenuItem() function) you can find fMask member which supports MIIM_CHECKMARKS value.
|
|
|
|
|
CMenu::GetSubMenu[^] and CMenu::CheckMenuItem[^] might help you with that...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|