473,657 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unicode errors in coclass attribute

I am trying to create a coclass attribute for an outproc COM server
(i.e. an EXE). The project was created using the ATL Project wizard
using .NET2003.

The coclass is defined as follows:

#pragma once

#include "resource.h "
#include <comsvcs.h>
#include <iostream>

#include "comServIF. h"

using std::cout;

[
coclass,
threading("sing le"),
aggregatable("n ever"),
vi_progid("COMs erv.COMserv"),
progid("COMserv .COMserv.1"),
version("1.0"),
helpstring("COM Serv test interface")
]

When I try to compile it, I get the following errors:
CComServ.cpp
c:\work\comtest \COMserv\CComSe rv.h(20) : warning C4322: automatically
generating a CLSID for class 'CComServ'
c:\work\comtest \COMserv\CComSe rv.h(18) : error C3209: '_uR' : Unicode
identifiers are not yet supported
This error occurred in injected text:
//+++ Start Injected Code For Attribute 'coclass'
#injected_line 18 "c:\\work\\comt est\\comserv\\c comserv.h"
OBJECT_ENTRY_AU TO(__uuidof(CCo mServ), CComServ)
//--- End Injected Code For Attribute 'coclass'
c:\work\comtest \COMserv\CComSe rv.h(18) : error C2018: unknown
character '0x1'
This error occurred in injected text:
//+++ Start Injected Code For Attribute 'coclass'
#injected_line 18 "c:\\work\\comt est\\comserv\\c comserv.h"
OBJECT_ENTRY_AU TO(__uuidof(CCo mServ), CComServ)
//--- End Injected Code For Attribute 'coclass'
c:\work\comtest \COMserv\CComSe rv.h(18) : fatal error C1904: bad
provider interaction: bc6b4b8a-0e4a-4bc9-b319-9dc2acfb61ee
This error occurred in injected text:
//+++ Start Injected Code For Attribute 'coclass'
#injected_line 18 "c:\\work\\comt est\\comserv\\c comserv.h"
OBJECT_ENTRY_AU TO(__uuidof(CCo mServ), CComServ)
//--- End Injected Code For Attribute 'coclass'

Is there some #define that I am missing that is invoking this error?

Does anyone have a good reference for outproc COM development using
ATL & .NET?
Nov 17 '05 #1
0 815

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

Similar topics

8
5265
by: Bill Eldridge | last post by:
I'm trying to grab a document off the Web and toss it into a MySQL database, but I keep running into the various encoding problems with Unicode (that aren't a problem for me with GB2312, BIG 5, etc.) What I'd like is something as simple as: CREATE TABLE junk (junklet VARCHAR(2500) CHARACTER SET UTF8)); import MySQLdb, re,urllib
4
6059
by: webdev | last post by:
lo all, some of the questions i'll ask below have most certainly been discussed already, i just hope someone's kind enough to answer them again to help me out.. so i started a python 2.3 script that grabs some web pages from the web, regex parse the data and stores it localy to xml file for further use.. at first i had no problem using python minidom and everything concerning
3
5628
by: Stanislaw Findeisen | last post by:
Does anyone know how to create file shortcuts in Windows? The only way I know is like: --------------------------------------------------------------- import win32com.client wScriptShellObject = win32com.client.Dispatch("WScript.Shell") shortcutName = unicode("shortcut.lnk", "utf8")
0
955
by: Mervin Williams | last post by:
I am running into errors when I attempt to rebuild a project. To test, download and unzip this zip file (download DotNetEvents.zip to your PC from this link: https://developer.intuit.com/QuickBooksSDK/Resources/Samples.asp?id=96#DotNetEvents%20(VB.NET)%20(qbfc)%20(desktop) to your machine (say to your Desktop) and add the solution file to VS.NET 2003. If you BUILD the solution, all works fine. But if you REBUILD the solution at any...
7
4197
by: Robert | last post by:
Hello, I'm using Pythonwin and py2.3 (py2.4). I did not come clear with this: I want to use win32-fuctions like win32ui.MessageBox, listctrl.InsertItem ..... to get unicode strings on the screen - best results according to the platform/language settings (mainly XP Home, W2K, ...). Also unicode strings should be displayed as nice as possible at the console with normal print-s to stdout (on varying platforms, different
9
2932
by: Jim | last post by:
Hello, I'm trying to write exception-handling code that is OK in the presence of unicode error messages. I seem to have gotten all mixed up and I'd appreciate any un-mixing that anyone can give me. I'm used to writing code like this.
2
4031
by: John Nagle | last post by:
Here's a strange little bug. "socket.getaddrinfo" blows up if given a bad domain name containing ".." in Unicode. The same string in ASCII produces the correct "gaierror" exception. Actually, this deserves a documentation mention. The "socket" module, given a Unicode string, calls the International Domain Name parser, "idna.py", which has a a whole error system of its own. The IDNA documentation says that "Furthermore, the socket...
8
3402
by: rkellerjr | last post by:
I have just delved into the world of Unicode versus Latin1. I've written a quick program (ignore some of the messy code, it's been a work in progress) that traps a string of text that contains Unicode or more aptly said, traps only those lines that Perl cannot translate to Latin1. My goal was to trap and then substitute the Unicode character(s) within that string with something to my liking from the Latin1 character set. For example, Perl will...
0
1557
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am writing C# COM server (managed code). Since there is no QueryInterface, DllGetClassObject like in C++ native code, I am wondering how to know which coclass is initialized and which method is invoking by client? I have such question is because I only develop COM server, and there are some dll level error (dll no longer available, something like this), so I think COM client may use some coclass/methods which my COM...
0
8399
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
8312
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
8732
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
6169
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 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...
0
5632
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
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2732
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
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
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...

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.