|
Why do you have three dialogs up ?
Lucky2002 wrote:
what´s wrong?
1. It's probable that a pointer you're passing around is becoming invalid for some reason.
2. You haven't posted any code, which makes it hard to do more than guess.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
I believe that the first point is my problem.I think, I must give a value to the pointers (if they be produced). But how? (I´m sorry, but I have the code not here)
lucky
|
|
|
|
|
Unused pointers should always be set to NULL, and checked for NULL before use. Also, ::IsWindow will tell you if a pointer is a valid window ( which a dialog is ). Finally, show and hide your modeless dialogs so the pointer does not change, rather than destroying and recreating them.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
i am confused.
can you give me an example of it
(They can just hold pointers to each other, provided by the host window),
where also the pointers are adjusted to zero?
thank you very much
lucky
|
|
|
|
|
Lucky2002 wrote:
where also the pointers are adjusted to zero?
In the constructor.
MyDialog1::MyDialog1()
{
pDialog2 = NULL;
}
Then presumably the main window when it creates dialog2, also passes the pointer to dialog1. In dialog1, you do this
{
if (pDialog2 && ::IsWindow(pDialog2))
pDialog2->SomeMethod(nSomeInt);
}
Finally, when the main program wants to get rid of a window, it calls ShowWindow(SW_HIDE); and when it wants to show it does this
if (m_pDialog1)
m_pDialog1->ShowWindow(SW_SHOW);
else
{
// Create the dialog
}
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
thank you very much
lucky
p.s.: not confused anymore
|
|
|
|
|
Which libraries do I need to used TCP/IP protocal in Visual C++ 6.0?
|
|
|
|
|
What do you mean?
What lib-files?
Ws2_32.lib but you can read all about that in MSDN...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Do you use Winsock or Winsock2?
winsock.h
winsock2.h
ws2_32.lib
Kuphryn
|
|
|
|
|
Tip: You should probably use the WinSock 2 library. If so, include <winsock2.h> before including <windows.h>. That way, it won't use the WinSock 1 definitions, besides, it in turn includes <windows.h> itself.
Don't forget to add ws2_32.lib to your imports in your settings so your app will link to the dll imports.
"The greatest danger to humanity is humanity without an open mind." - Ian Mariano
http://www.ian-space.com/
|
|
|
|
|
Anyone knows how to create a CArray of complex numbers? Thanks.
mIchAel Liu
__________________________________________________________
The secret of business is to know something that nobody else knows.
|
|
|
|
|
CArray<std::complex<double>,std::complex<double>&> array;
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks.
mIchAel Liu
__________________________________________________________
The secret of business is to know something that nobody else knows.
|
|
|
|
|
In complex number class, can I be able to just change the value Real or Imaginary?
mIchAel Liu
__________________________________________________________
The secret of business is to know something that nobody else knows.
|
|
|
|
|
No, you can't directly change the parts. You must use an assignment, e.g.
std::complex<double> c(1.0, 2.0);
...
c = std::complex<double>(c.real(), 3.7);
|
|
|
|
|
Hi
I'm writing COM add-in to MsProject2000. The problem is that using Project object I cannot change cursor that appear in MsProject app. I tried to change the cursor by WinAPI (unfortunately in this case CWaitCursor can't be used) calls but I failed. Is this possible to change cursor in MsProject by executing some code from my add-in?
Mariusz Popiolek
|
|
|
|
|
we know how to use menu, but ...
someone knows more.
see menu on vc++, it is something - at least i don't know.
if u know that or else, pls give me a clue or link, i need it.
thx.
includeh10
|
|
|
|
|
Yep, we've all been there !
Max.
|
|
|
|
|
HAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAAHHAHAA !!!!!
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
What are you talking about?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
What are you talking about?
Thats the exact same thing I was wondering!
Regards,
Brian Dela
|
|
|
|
|
Come on Brian, it's a random post generator. Quite nice at the mo, sentences are almost natural.
How low can you go ? (MS rant)
|
|
|
|
|
funny guys, don't display ur poor knowleges on my poster.
vc menu is one u can drag-drop buttons and menu-items on it, are u there?
keep study for 20 years then say something, otherwise waste people's time.
includeh10
|
|
|
|
|
I may be wasting your time, but YOU are wasting the time of everyone here.
You don't react in an adult manner. Come with accurate questions, and we are ready to take our time to answer you.
Other than that, improve your english. We cannot understand you.
How low can you go ? (MS rant)
|
|
|
|
|
if u don't understand the Q, go back to read it again, i think u understand now.
if u even don't know vc menu is different from normal menu, as i said: u are very poor.
go back read all replies one by one, who is in adult manner?
i post the Q for my job, not for kidding.
if u think replies are in adult manner, here may be an adult club.
i am waiting for help (from top c++ programmers, not at ur poor level), but when i read replies in words of ur adult club, i am angry.
don't type anything on the forum except u sure u can help.
see, one funny reply is:
HAHAHAHHAHAHHAHHAHAHHAHAHHAH!!!!!!!
includeh10
|
|
|
|