|
how we can read back the points from main window to child window
|
|
|
|
|
How did you write them to a window without knowing how to read them. Normally you write them with a ‘set’ function (or method) and read them with a ‘get’ function, both of which use the same coordinate system.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Take a look at ScreenToClient(...)
|
|
|
|
|
sree_as wrote: can we synchronize the windows point to dialog points..
See LPToDP() and DPToLP() API's
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
can u give me small example
|
|
|
|
|
I think you are using the wrong word “synchronize”. I assume you are talking about converting windows points (coordinates [pixels]) into dialog points (coordinates) and vise versa. I do not have time to look it up right now, but the answer is yes. To get a get a better answer you will need to narrow you question a bit. Are you talking about screen coordinates, client coordinates, or an actual windows coordinates (which includes title bar and all)? The current position of the mouse could be in screen or client coordinates, depending on where the information is coming from. If it is coming from a message then it is probably in client coordinates. There are functions to handle the conversions for you or you may be able to write your own. In any case the information is buried in the help system some where.
Please be more specific and someone else will be able to answer you question in more specific terms.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
When i use my application, if any error is logged in the event viewer relevant to my application, i need some sort of notification.
|
|
|
|
|
ok.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
try
NotifyChangeEventLog() ?
nave
|
|
|
|
|
|
|
|
|
am too in NeST... i can c u wearing a grey shirt !!!
|
|
|
|
|
hello naveen, rnt u wearing a grey shirt or am i mistaken? plz reply.
|
|
|
|
|
|
|
But ur not a stranger for me
nave
|
|
|
|
|
|
|
When I compile a SUBROUTINE writen in fortran and link it to C++, a Message like this emerge out ": error LNK2001: unresolved external symbol _PEMV1@44"
and when I test the moule PEMV1.OBJ I found this text "_PEMV1@46".
the number of arguments to the subroutine are 10.
please could you tel me the source of this error?
mech:Yasir
|
|
|
|
|
The value after '@' stands for the size of parameters passed to PEMV1 subroutine. Since the value required by C++ linker differs from the effective value found in OBJ, it seems that the definition of the function in C++ and FORTRAN differs. You should compare not only the number of parameters, but their sizes too. You should investigate how FORTRAN’s data types are represented in C++. For instance, integer type can be represented by int , long and others. Try to change some of the types in C++ declaration of the function.
|
|
|
|
|
If you are using VC6 then look up "Mixed-language programming Topics" or "C calls to Fortran". Which basically means you may need to write a C wrapper in your program to call the Fortran code and then have the C++ code call the C wrapper. In Visual .NET I am not sure, but I do know that it is supported. I just do not know how to find it at the moment, as the information is harder to find in that help system.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I am trying to get a directory using using one of the shell function i.e. SHBrowseForFolder. Here is my code snippet:
LPBROWSEINFOW dir;<br />
LPWSTR DisplayName;<br />
int iImage;<br />
dir->hwndOwner = NULL;<br />
dir->pidlRoot = NULL;<br />
dir->pszDisplayName = DisplayName;<br />
dir->lpszTitle = L"Open folder";<br />
dir->ulFlags = BIF_NONEWFOLDERBUTTON|BIF_RETURNONLYFSDIRS;<br />
dir->lpfn = NULL;<br />
dir->lParam = NULL;<br />
dir->iImage = NULL;<br />
SHBrowseForFolder(dir);
But as soon as I select a directory and press OK it crashes. Is there anything I am missing. Please help.
|
|
|
|
|
iLL eFFect wrote: LPBROWSEINFOW dir;
Your pointer is not initialized so it points to invalid memory address. Instead of using a pointer, use the structure:
BROWSEINFO dir;
dir.hwndOwner = NULL;
...
...
...
SHBrowseForFolder(&dir);
Cédric Moonen
Software developer
Charting control
|
|
|
|