473,803 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FindWIndow and trademark symbol

I have an Access application with the name: MyAppName®
It has the "®" symbol (ChrW$(&H00AE)) at the end of it.
If I remane the application without the "®" symbol, I can use
FindWindow to close the application, but with the "®" symbol it
doesn't. Unfortunaetley this app is already distributed as MyAppName®
and I cannot change it.
I have tried:
hwnd = FindWindow(vbNu llString, "myAppName" & ChrW$(&H00AE))
But it won't work.
Yikes.
This has become an emergency.
Can anyone help?
lq

Nov 13 '05 #1
17 3074
lauren quantrell wrote:
I have an Access application with the name: MyAppName®
It has the "®" symbol (ChrW$(&H00AE)) at the end of it.
If I remane the application without the "®" symbol, I can use
FindWindow to close the application, but with the "®" symbol it
doesn't. Unfortunaetley this app is already distributed as MyAppName®
and I cannot change it.
I have tried:
hwnd = FindWindow(vbNu llString, "myAppName" & ChrW$(&H00AE))
But it won't work.
Yikes.
This has become an emergency.
Can anyone help?
lq


Can you not use the classname of the window? i.e. the first parameter,
this is after all unique.

--
This sig left intentionally blank
Nov 13 '05 #2
Trevor,
The application I want to close in an Access application and the user
may have many different Access applications open. As I understand it,
that precludes the use of the classname of the window...
lq

Trevor Best wrote:
lauren quantrell wrote:
I have an Access application with the name: MyAppName®
It has the "®" symbol (ChrW$(&H00AE)) at the end of it.
If I remane the application without the "®" symbol, I can use
FindWindow to close the application, but with the "®" symbol it
doesn't. Unfortunaetley this app is already distributed as MyAppName® and I cannot change it.
I have tried:
hwnd = FindWindow(vbNu llString, "myAppName" & ChrW$(&H00AE))
But it won't work.
Yikes.
This has become an emergency.
Can anyone help?
lq

Can you not use the classname of the window? i.e. the first

parameter, this is after all unique.

--
This sig left intentionally blank


Nov 13 '05 #3
lauren quantrell wrote:
I have an Access application with the name: MyAppName®
It has the "®" symbol (ChrW$(&H00AE)) at the end of it.
If I remane the application without the "®" symbol, I can use
FindWindow to close the application, but with the "®" symbol it
doesn't. Unfortunaetley this app is already distributed as MyAppName®
and I cannot change it.
I have tried:
hwnd = FindWindow(vbNu llString, "myAppName" & ChrW$(&H00AE))
But it won't work.
Yikes.
This has become an emergency.
Can anyone help?
lq

I think "®" is ChrW$(&HAE)).

in any case

"myAppName" & ChrW$(&HAE)) finds a window for me.
(haven't tried to close it).

so does

"myAppName® "
--
--
Lyle
--
From ADO28.chm

Deprecated Components
Each of the following components is considered obsolete. While these
components are still supported in this release of the Microsoft® Data
Access Components (MDAC), they may be removed in the future. When
writing new applications, you should avoid using these deprecated
components. When modifying existing applications, you are strongly
encouraged to remove any dependency on these components.

ODBC Provider (MSDASQL)
You are strongly encouraged to use one of the native OLE DB Providers
instead of the Microsoft Open Database Connectivity (ODBC) Provider.
Native OLE DB Providers provide better application stability and
performance. Furthermore, native OLE DB Providers will be supported in
the future, whereas MSDASQL will not have any new features added to it,
will not be available on 64-bit, and will not be accessible from the OLE
DB NET Data Provider.

Remote Data Services (RDS)
Remote Data Services (RDS) is a proprietary Microsoft mechanism for
accessing remote data across the Internet or intranet. Microsoft is now
shipping the Microsoft Simple Object Access Protocol (SOAP) Toolkit 2.0
that enables you to access remote data using an open, XML-based
standard. Given the availability of the SOAP Toolkit 2.0, you should
migrate from RDS to SOAP. The SOAP 2.0 Toolkit 2.0 also includes sample
code for remotely accessing Microsoft ActiveX® Data Objects (ADO)
Recordsets.

Jet and Replication Objects (JRO)
The Microsoft Jet OLE DB Provider and other related components were
removed from MDAC 2.6. Microsoft has deprecated the Microsoft Jet
Engine, and plans no new releases or service packs for this component.
As a result, the Jet and Replication Objects (JRO) is being deprecated
in this release and will not be available in any future MDAC releases.

.....
Nov 13 '05 #4
lauren quantrell wrote:
Trevor,
The application I want to close in an Access application and the user
may have many different Access applications open. As I understand it,
that precludes the use of the classname of the window...
lq


When you say
Unfortunaetley this app is already distributed as


MyAppName®
and I cannot change it.


Do you mean the whole app or just the caption?

--
This sig left intentionally blank
Nov 13 '05 #5
Lyle,
(&H00AE) converts to (&HAE) when compiled.
I can find the window, and it gives me a hwnd number, but for some
reason it doesn't close it, but it will only close it if the
application has no "®". Very puzzling.
lq

Lyle Fairfield wrote:
lauren quantrell wrote:
I have an Access application with the name: MyAppName®
It has the "®" symbol (ChrW$(&H00AE)) at the end of it.
If I remane the application without the "®" symbol, I can use
FindWindow to close the application, but with the "®" symbol it
doesn't. Unfortunaetley this app is already distributed as MyAppName® and I cannot change it.
I have tried:
hwnd = FindWindow(vbNu llString, "myAppName" & ChrW$(&H00AE))
But it won't work.
Yikes.
This has become an emergency.
Can anyone help?
lq
I think "®" is ChrW$(&HAE)).

in any case

"myAppName" & ChrW$(&HAE)) finds a window for me.
(haven't tried to close it).

so does

"myAppName® "
--
--
Lyle
--
From ADO28.chm

Deprecated Components
Each of the following components is considered obsolete. While these
components are still supported in this release of the Microsoft®

Data Access Components (MDAC), they may be removed in the future. When
writing new applications, you should avoid using these deprecated
components. When modifying existing applications, you are strongly
encouraged to remove any dependency on these components.

ODBC Provider (MSDASQL)
You are strongly encouraged to use one of the native OLE DB Providers instead of the Microsoft Open Database Connectivity (ODBC) Provider.
Native OLE DB Providers provide better application stability and
performance. Furthermore, native OLE DB Providers will be supported in the future, whereas MSDASQL will not have any new features added to it, will not be available on 64-bit, and will not be accessible from the OLE DB NET Data Provider.

Remote Data Services (RDS)
Remote Data Services (RDS) is a proprietary Microsoft mechanism for
accessing remote data across the Internet or intranet. Microsoft is now shipping the Microsoft Simple Object Access Protocol (SOAP) Toolkit 2.0 that enables you to access remote data using an open, XML-based
standard. Given the availability of the SOAP Toolkit 2.0, you should
migrate from RDS to SOAP. The SOAP 2.0 Toolkit 2.0 also includes sample code for remotely accessing Microsoft ActiveX® Data Objects (ADO)
Recordsets.

Jet and Replication Objects (JRO)
The Microsoft Jet OLE DB Provider and other related components were
removed from MDAC 2.6. Microsoft has deprecated the Microsoft Jet
Engine, and plans no new releases or service packs for this component. As a result, the Jet and Replication Objects (JRO) is being deprecated in this release and will not be available in any future MDAC releases.
....


Nov 13 '05 #6
Trevor,
The application is in the hands of a few hundred users globally and I
already have the caption with the "®" symbol.
lq

Nov 13 '05 #7
lauren quantrell wrote:
Trevor,
The application is in the hands of a few hundred users globally and I
already have the caption with the "®" symbol.


I was going to suggest some sort of workaround where you could open the
other Access mdb, pop in a value to a table that a timer event in the
other app would react to. If you can't change that app at all then
that's not an option :-(

--
This sig left intentionally blank
Nov 13 '05 #8
"lauren quantrell" <la************ *@hotmail.com> wrote in
news:11******** **************@ z14g2000cwz.goo glegroups.com:
Lyle,
(&H00AE) converts to (&HAE) when compiled.
I can find the window, and it gives me a hwnd number, but for some
reason it doesn't close it, but it will only close it if the
application has no "®". Very puzzling.
lq


How do you try to close it?

I use:

Dim h As Long
h = FindWindow(vbNu llString, "MyApplicationT itle" & ChrW$(&HAE))
PostMessage h, WM_CLOSE, 0, 0

with the requisite API declarations. Of course, one can use the IsWindow
and WaitForSingleOb ject functions to be sure or branch somewhere else if
unsuccessful.

--
Lyle
--
Nov 13 '05 #9
Lyle,
I use:
Dim hwnd as long
hwnd = FindWindow(vbnu llstring,"AppNa me" & ChrW$(&HAE))
SetForegroundWi ndow hwnd
PostMessage hwnd, WM_CLOSE, 0&, 0&

lq

Lyle Fairfield wrote:
"lauren quantrell" <la************ *@hotmail.com> wrote in
news:11******** **************@ z14g2000cwz.goo glegroups.com:
Lyle,
(&H00AE) converts to (&HAE) when compiled.
I can find the window, and it gives me a hwnd number, but for some
reason it doesn't close it, but it will only close it if the
application has no "®". Very puzzling.
lq
How do you try to close it?

I use:

Dim h As Long
h = FindWindow(vbNu llString, "MyApplicationT itle" & ChrW$(&HAE))
PostMessage h, WM_CLOSE, 0, 0

with the requisite API declarations. Of course, one can use the

IsWindow and WaitForSingleOb ject functions to be sure or branch somewhere else if unsuccessful.

--
Lyle
--


Nov 13 '05 #10

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

Similar topics

0
2451
by: K McNeil | last post by:
I'm trying to run this query: SELECT * FROM features WHERE food_group_ID = 'Company™' I've tried Company%99, Company™ Company&trade; and nothing returns. What do I need to pass from a jsp page to represent the trademark in MySql? Thanks
2
10430
by: mrwoopey | last post by:
Hi, On my site I have "SomeProduct™", a name with the trademark symbol, in a javascript menu. When the page (js) was refered in classic asp it showed the trademark symbol. Now the page is aspx (.net) and the traemark symbol displays as a "?". I used String.fromCharCode(153) to display the "™", but it displays a box.
79
3802
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the relevant name owner? If I make a whisky and call it "Jack Daniels", I most probably will have some serious legal problems. "Mozilla" partially appeared because NCSA stopped them from using "Mosaic" in the UA string. Is it some different...
3
16768
by: hsmsites | last post by:
Anyone know how I can remove this symbol from a string. I'm using vi and do not know how to refer to this symbol in my script. TIA
2
3470
by: sasingh75 | last post by:
We have a strange problem using trademerk symbol in our emails. We store certain templates in database as long text. A aprt of the text looks as shown below. "Please access the XYZ â„¢ site to review and update" We retreive the template from database and send a email to our customer. When the email is sent out to an hotmail account the content gets changed to as shown below.
3
6363
n8kindt
by: n8kindt | last post by:
simple question: is there a chr() number code for the trademark symbol? i am compiling an email in vba and need to use the trademark symbol when sending it out.
1
3212
by: danka21819 | last post by:
Hi, I am a front end web designer/developer and analyst...struggling with putting an accordian flash xml menu together. I have it done except I need to add a simple trademark symbol circle with r. I am struggling with how to do this since I am not savvy in actioncript. I assume the best way is to add it is with a CDATA child node, but do not know how or whatever is the best way to get this done since am on a tight deadline. I need someone to...
1
2232
by: danka21819 | last post by:
Hi, I am a front end web designer/developer and analyst...struggling with putting an accordian flash xml menu together. I have it done except I need to add a simple trademark symbol circle with r. I am struggling with how to do this since I am not savvy in actioncript. I assume the best way is to add it is with a CDATA child node, but do not know how or whatever is the best way to get this done since am on a tight deadline. I need someone to...
1
4419
by: danka21819 | last post by:
Hi, I am a front end web designer/developer and analyst...struggling with putting an accordian flash xml menu together. I have it done except I need to add a simple trademark symbol circle with r. I am struggling with how to do this since I am not savvy in actioncript. I assume the best way is to add it is with a CDATA child node, but do not know how or whatever is the best way to get this done since am on a tight deadline. I need someone to...
0
9699
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, 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...
0
9562
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,...
0
10542
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10309
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10289
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9119
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, 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...
0
6840
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.