PC Review


Reply
Thread Tools Rate Thread

How to GetText() from TextBox under Visual C++ application?

 
 
=?Utf-8?B?RGFuaWw=?=
Guest
Posts: n/a
 
      31st Aug 2007
This code in VB works:

Dim ws As Worksheet
....
Dim myText As OLEObject
Set myText = ws.OLEObjects("TextBox1")
str = myText.Object.Text

The same in Visual C++ does not (error DISP_E_MEMBERNOTFOUND):

_Worksheet objSheet;
....
TextBox myText;
myText = objSheet.OLEObjects(COleVariant(_T("TextBox1")));
CString str = myText.GetText();

What is an analog in Visual C++ of ".Object" property?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Visual C++ and/or Visual Basic under Vista Home Premium OS =?Utf-8?B?RGFsZUI=?= Windows Vista General Discussion 10 20th Nov 2007 07:45 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET 4 17th May 2007 07:56 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft Dot NET Framework 1 14th May 2007 08:05 PM
How to take an IE rendered screenshot of a website with visual studio .net 2002 or visual stuido .net 2003? I can't install visual studio .net 2005 on this computer. Daniel Microsoft C# .NET 0 14th May 2007 07:45 PM
Visual Studio 2005 Beta 1 Refresh vs Visual Studio 2005 CTP vs Visual C++ 2005 Express Beta1 Peter Nimmo Microsoft VC .NET 1 16th Dec 2004 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:59 AM.