Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Platform/API C++

Reply
 
LinkBack Thread Tools Display Modes
Old 10-11-2004, 12:30 PM   #1 (permalink)
V5dave
Registered User
 
Join Date: Oct 2004
Posts: 1
V5dave is on a distinguished road
Updating textbox from outside header in Visual C++

Hi there,
This is probably a really easy one, but I am new to Visual C++ and totally stuck.

What I am trying to do, upon a button click in a form, is to call a function in my .cpp file which at certain times is required to update a rich text box on the form. All runs fine except for the text updating. I have tried many ways to do this, calling the appendText function with my string direct from the .cpp file, or calling a function I have written called set_text which I have defined inside the form. If I call set_text from inside the form direct from a button click, it updates the text box, if however I call it from the .cpp file, it runs, but doesn't update the text (appears to run the same code though). Can someone give me an easy example of any way to append the richtextbox, as I do not wish to write my entire programme inside the class form1, as this seems very bad practice.

Any help very much appreciated
V5dave is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Mortgage.cpp verdell32 Standard C, C++ 7 10-23-2004 06:50 AM
to C or C++ cheawick Standard C, C++ 13 05-05-2004 04:45 PM
edit? anon Lounge 10 11-21-2002 03:02 PM


All times are GMT -8. The time now is 04:04 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting