Hello,
I found a bug in Visual Basic used with Visual Studio Macros
(Microsoft Visual Studio 2005 + SP1).
Description:
If I apply the simple Visual Basic statement
ActiveDocument. Selection.Text = "//" +
ActiveDocument. Selection.Text
contained in a macro, to the C++ source line
m_nodes.SetSize (10, 5);
the following error message is always produced:
"Beim Aufruf einer COM-Komponente wurde ein HRESULT E_FAIL-Fehler
zurückgegeben"
If found that the reason for the failure is the comma character (,).
If I replace the character with, for example, a semicolon every thing
works fine.
With a ',' the result looks like this
"// m_nodes.SetSize (10,"
and an error message box is displayed.
However a statement like
Sel.Text = "xxxx" + Sel.Text
works fine.
With Visual Studio 2003 and Visual Studio 2005 without SP1 it works
fine.
But with installed service pack it fails.
If the following macro is applied to the line
m_nodes.SetSize (10, 5);
it produces the error message..
Public Sub StringBug()
Dim Sel As TextSelection = ActiveDocument. Selection
Sel.SelectLine( )
Sel.Text = "//" + Sel.Text
End Sub
My configuration:
Microsoft Visual C++ 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727
Microsoft Visual Studio 2005 Professional Edition - DEU Service
Pack 1 (KB926606)
I hope someone can give me a hint how to circumvent this bug.
Bernhard 0 2548 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dean4if |
last post by:
I have 4 Windows 2000 Servers. I have installed the DotNet Framework 2.0 on
all 4 servers.
Three of these servers show a tab for ASP.NET in the IIS MMC and are running
Visual Studio 2003.
One server that has Visual Studio 2005 installed does not show this ASP.NET
tab.
On this one server, when I use Visual Studio 2005 to try to create or open a
|
by: Jeff |
last post by:
Hey
asp.net 2.0
My asp.net 2.0 project has got a assembly load problem:
Some of my web.config settings:
<membership defaultProvider="AH_MembershipProvider"
userIsOnlineTimeWindow="15">
|
by: sqlguy |
last post by:
Why do we have to contact MS for a problem that has been with this
compiler from at least the beta of VS 20005. I am so sick and tired of
the 30 - 40 clicks it takes to dismiss VS when there is a problem. Can
they not just post the fix. I see no reason to contact MS since I have
most likely sent about 1500 dumps to them and I would think this would
get their attention.
|
by: Poldie |
last post by:
I'm using Visual Studio 2005 SP1 on a Win2K SP4 system. VS is set up
to use "web development settings ". I use VB.
If I create a new web application project, then close the project and
exit VS I can see many files, including a .sln and a .vbproj file.
I can double click on the .vbproj file to load it, or I can load VS
and from within VS open the .sln. But if I double click on the .sln
from windows explorer I get the error message:
|
by: Bill Nguyen |
last post by:
I'm running into a very weird problem regarding subtraction.
Subtraction behaves as if it's an addition in the below sub
txtJacoCost.Text = Format(mRackc - (mDisc + mJaEc), "0.#####0")
txtWfCost.Text = Format(mRackc - mDisc + mWfEC, "0.#####0")
| |
by: Amber |
last post by:
I have created a C# library containing CLR stored procedures and user-
define functions using Visual Studio 2005, and I have used Visual
Studio to deploy the assembly to a SQL Server 2005 instance
successfully, of course these sps and udfs are used by other T-SQL sps
and udfs. Now the assembly has a new version, and I want to use it to
replace the original one, but when I use Visual Studio 2005 to deploy
the new assembly, the following...
|
by: Ioannis Vranos |
last post by:
A bit off topic, but does anyone know if Visual C++ 6 supports the
9899:1995, or only the 9899:1990?
|
by: Author |
last post by:
I have VS 2005 professional. Here is the version info:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP .050727-7600)
© 2005 Microsoft Corporation.
All rights reserved.
When I try to create a new project, I don't have a web application
project option. In the New Project window, I select Visual C# under
Project types, and on the right side, I only have the following
|
by: =?Utf-8?B?YzY3NjIyOA==?= |
last post by:
Hi all,
I cut and paste the following code from msdn help page which it just
introduces view and multiview server controls.
Here is what I do:
in vs studio 2005, File --New Web Site, it brings me to the dir: C:\Visual
Studio 2005\WebSites\WebSite1, it creates default.aspx and default.aspx.vb
and I pasted the following code into default.aspx.
I go to build to build web site and it says:------ Build started: Project:
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |