473,405 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

I can't regain control of my form

This is a bit "wordy", but here is the scoop. I'm using Microsoft Visual
Studio for VC++ in
Windows 2000.

I made an application which had no form in it. So when I ran the
application, I just got a DOS box that showed some progress info. I then
decided to add a form... So I made a new application and started with
creating the form. Then I copied and pasted cpp code into places where I
thought they should go - leaving out the stuff that would print to the DOS
box. Pfff.....

The program works, but as soon as it gets into the meat of the real
application, I lose control of the form and can't change things.

Now... it is very likely that this may be due to the fact that the real
application is running all over the place and doesn't have time to bother
with the form - but I really think I should be able to get back to the form
so I can change things on the fly.

I should let you know that I'm using an SDK. I've noticed that the form
creates an area in the .cpp with event handlers - but my application uses
event handlers involved with the SDK. These event handlers are not active
until I hit the "Connect" button - and that is when I lose control.

I'll try to be a little more exact. I'm using the 3d chat - Active Worlds
SDK. The form takes information from two ini files and loads it. I hit the
connect button, it connects and the application runs fine - but I have lost
my form control at that point. Funny thing... before I hit connect - I
can't close or minimize the form yet I have control of the edit boxes in the
form and can load and save to ini files - but after I hit connect, the
minimize and close functions work, yet I can't get to the edit boxes. I
think the basic code is good - I just got some stuff out of place or I'm
missing a message somewhere along the way.

Got any clues?

Maybe I'm a complete idiot and should have the real application separate
from the form? As it is right now, the real application is in the form
..cpp - the form .cpp does not call up the real application because it is
already there. I think that is my problem... but I don't know how to run
another .cpp from the form. I hope I am making sense here... Should I
study up a bit more on resourcing stuff? Thinking to myself... the form
should be running in one section of memory - and the application in another.
When I change the form, the form sends a message to the application and the
application adjusts itself. As it stands right now, since the main
application is in the form, the form code is ignored once the connect button
is hit. If I am correct, or if you have other suggestions, please give me a
hand here.

P2
Apr 7 '06 #1
9 1717
Piccolo Pete wrote:
This is a bit "wordy", but here is the scoop. I'm using Microsoft
Visual Studio for VC++ in
Windows 2000.

I made an application which had no form in it. So when I ran the
application, I just got a DOS box that showed some progress info. I
then decided to add a form... [..]


You're in a wrong newsgroup. You need a Windows programming newsgroup
or a Visual C++ newsgroup.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 7 '06 #2

"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:e1**********@news.datemas.de...
Piccolo Pete wrote:
This is a bit "wordy", but here is the scoop. I'm using Microsoft
Visual Studio for VC++ in
Windows 2000.

I made an application which had no form in it. So when I ran the
application, I just got a DOS box that showed some progress info. I
then decided to add a form... [..]


You're in a wrong newsgroup. You need a Windows programming newsgroup
or a Visual C++ newsgroup.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

bleh...

my first question to you is... are you a problem poster with a serious
attitude? You didn't give any real recommendations and there are no
recognizable newsgroups on my server that meet your suggested criteria. So
I posted here...

Next time - if you can't give good info, then don't respond at all and you
won't look like a complete jackass.

P2
Apr 7 '06 #3
* Piccolo Pete:
"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:e1**********@news.datemas.de...
Piccolo Pete wrote:
This is a bit "wordy", but here is the scoop. I'm using Microsoft
Visual Studio for VC++ in
Windows 2000.

I made an application which had no form in it. So when I ran the
application, I just got a DOS box that showed some progress info. I
then decided to add a form... [..]

You're in a wrong newsgroup. You need a Windows programming newsgroup
or a Visual C++ newsgroup.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

bleh...

my first question to you is... are you a problem poster with a serious
attitude? You didn't give any real recommendations and there are no
recognizable newsgroups on my server that meet your suggested criteria. So
I posted here...

Next time - if you can't give good info, then don't respond at all and you
won't look like a complete jackass.


Victor is a long-time regular here, and provided correct and sound advice.

You're evidently a complete newbie with an attitude.

Please read the FAQ and the monthly welcome message before posting more
drivel (posting under your real name might also be worth considering).

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Apr 8 '06 #4

Alf P. Steinbach wrote in message <49************@individual.net>...
* Piccolo Pete:
Next time - if you can't give good info, then don't respond at all and you
won't look like a complete jackass.


Victor is a long-time regular here, and provided correct and sound advice.

You're evidently a complete newbie with an attitude.

Please read the FAQ and the monthly welcome message before posting more
drivel (posting under your real name might also be worth considering).


We used to smash Piccolo Petes in the middle with a pair of pliers, then they
would blow up at the end of their run!! [fireworks]

Maybe that's what happened here. <G>

--
Bob R
POVrookie
Apr 8 '06 #5
> my first question to you is... are you a problem poster with a serious
attitude? You didn't give any real recommendations and there are no
recognizable newsgroups on my server that meet your suggested criteria. So
I posted here...


A real recommendation was indeed given--that you go to another group
dedicated to your problem.

You may try any of the microsoft.public.vc.* newsgroups.

Regards,
Ben
Apr 8 '06 #6

Piccolo Pete wrote:
my first question to you is... are you a problem poster with a serious
attitude?


He certainly can be but in this case he is 100% right. There are lots
of microsoft programmer newsgroups and help there will be more accurate
and more available. You can be writing a microsoft platform specific
program and still ask questions here, when they pertain to the language
and the standard library...but when it gets to questions about how to
make some windows form to work or use some windows api function then
you need to find a group that caters to that type of material.

Good luck.

Apr 8 '06 #7
Piccolo Pete wrote:
there are no
recognizable newsgroups on my server that meet your suggested criteria.


(offtopic)

Microsoft provides a NNTP server, msnews.microsoft.com, that you can use
if your server does not carry their groups.

Alan
Apr 8 '06 #8
On Sat, 08 Apr 2006 02:45:19 -0700 Alan Johnson
<al****@no.spam.stanford.edu> waved a wand and this message magically
appeared:
Microsoft provides a NNTP server, msnews.microsoft.com, that you can use
if your server does not carry their groups.


I'm surprised they even do that considering their history of
disregarding usenet standards.

--
http://www.munted.org.uk

Take a nap, it saves lives.
Apr 8 '06 #9

"benben" <be******@yahoo.com.au> wrote in message
news:44**********************@news.optusnet.com.au ...
my first question to you is... are you a problem poster with a serious
attitude? You didn't give any real recommendations and there are no
recognizable newsgroups on my server that meet your suggested criteria. So I posted here...


A real recommendation was indeed given--that you go to another group
dedicated to your problem.

You may try any of the microsoft.public.vc.* newsgroups.

Regards,
Ben


Thanks
Apr 8 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: datactrl | last post by:
Hi, all Is that possible I can assign an window object variable to an already opened window? With window.open(), we can get a window object from opened window. If a window has already opened, is...
3
by: Bryan Capps | last post by:
I have a text box control on a form, the value of which is calculated (concatenated) from entries on a subform. Accordingly, I've set the control's locked property to true and the tab stop...
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
0
by: jay | last post by:
I am writing an Access 2003 application that consumes a web service (VB ..NET). I communicate with it through the class modules that Access creates for you when you establish a web reference...
1
by: Mian Mahboob | last post by:
Nicholas Paldino in my application a have an Windows form on that i place an Panel Control. in Form load event i ganerate an Form in Panel Control on Runtime then get an design time create...
1
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
23
by: Umesh | last post by:
This is a basic thing. Say A=0100 0001 in ASCII which deals with 256 characters(you know better than me!) But we deal with only four characters and 2 bits are enough to encode them. I want to...
1
by: Simon | last post by:
Dear reader, How can I move the record pointer in a sub form. The sub form is a datasheet type. Both forms have the same reference key. How can I move the record pointer in the sub form...
11
by: newbie | last post by:
i have a form in which a hidden field (initial value as '0', and my javascript set it to '1' when an event is trigged). In the same form, i have a reset field. But I realized that the hidden field...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.