473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

vc++.net

hello to every one;
I have a project in vc++ basically it is a translator software which translate in english to hindi or it translate the office documents like word,excel,powerpoint.It is developed in visual studio 6.0 and it attached with a database of MS ACCESS which is a base of the project it means the database is a dicitionary for the project.I have two problems in the project:
1. The project is going fine when it is in windows 98 and having office 2000 and now i am change the environment means i compile the project in visual studio 2008 and having office 2007 and XP and VISTA then it give error and it can't work.If here splited table of word is there than it can't work and it stop and hang.So what should i do or can anybody give me the guideline for it.

2. The second one probelm is that it give an error C2593:'operator +' is ambiguous in some code line. so how i resolve this error. please help me.The code where this error is come is as follows:

Expand|Select|Wrap|Line Numbers
  1. void CAnuvadakView::OnChar(UINT nChar,UINT nRepCnt,UINT nflags)
  2. {
  3. .
  4. .
  5. .
  6. .
  7. if(nChar ==8 || nChar==13)
  8. {
  9. if (nChar==8)
  10. PhoneticStr.Delete(PhoneticStr.GetLength()-1);
  11. refresh();
  12. }
  13. if(nChar >=97 &&nChar<=122 || nChar >=65 && nChar <=90|| nChar ==46)
  14. {
  15. PhoneticStr=PhoneticStr+nChar;
  16. .
  17. .
  18. .
  19. .
  20. }
  21. }
where PhoneticStr is declared in header file as

extern CString PhoneticStr;

Please help me to resolve both problems.
Jan 10 '09 #1
6 2401
hello to every one;
I have a project in vc++ basically it is a translator software which translate in english to hindi or it translate the office documents like word,excel,powerpoint.It is developed in visual studio 6.0 and it attached with a database of MS ACCESS which is a base of the project it means the database is a dicitionary for the project.I have two problems in the project:
1. The project is going fine when it is in windows 98 and having office 2000 and now i am change the environment means i compile the project in visual studio 2008 and having office 2007 and XP and VISTA then it give error and it can't work.If here splited table of word is there than it can't work and it stop and hang.So what should i do or can anybody give me the guideline for it.

2. The second one probelm is that it give an error C2593:'operator +' is ambiguous in some code line. so how i resolve this error. please help me.The code where this error is come is as follows:
Expand|Select|Wrap|Line Numbers
  1. void CAnuvadakView::OnChar(UINT nChar,UINT nRepCnt,UINT nflags)
  2. {
  3. .
  4. .
  5. .
  6. .
  7. if(nChar ==8 || nChar==13)
  8. {
  9. if (nChar==8)
  10. PhoneticStr.Delete(PhoneticStr.GetLength()-1);
  11. refresh();
  12. }
  13. if(nChar >=97 &&nChar<=122 || nChar >=65 && nChar <=90|| nChar ==46)
  14. {
  15. PhoneticStr=PhoneticStr+nChar;
  16. .
  17. .
  18. .
  19. .
  20. }
  21. }
where PhoneticStr is declared in header file as
Expand|Select|Wrap|Line Numbers
  1. extern CString PhoneticStr;
Please help me to resolve both problems.
Jan 10 '09 #2
weaknessforcats
9,208 Expert Mod 8TB
This code:
Expand|Select|Wrap|Line Numbers
  1.  
  2. PhoneticStr=PhoneticStr+nChar;
  3.  
  4.  
is attempting to append a UINT to a CString. Not good. You need to append a TCHAR or a CString&. See the MSDN CString operator+ overloads.

I have no idea about your Word table other than anything you did in Office 2000 is almost certainly not going to work on Office 2007. Of course, Office itself will convert forward but any code you wrote for the earlier version cannot be guaranteed to work anywhere except on the exact version it was originally written for.
Jan 10 '09 #3
thanx for ur reply
But can u help me that how i create a splited table of word which was used in my project and my project is MFC based
Jan 12 '09 #4
Frinavale
9,735 Expert Mod 8TB
@jainchar
Are you getting any error messages?
If so, please copy them here so that we can see them.

@jainchar
This error will appear if you are using the "+" operator on 2 different objects.
In your code you are adding a String and an Integer which makes it ambiguous because the compiler doesn't know what to do: do you add the String version of the Integer to the String? or do you add the Integer value of the String to the Integer?


Be more clear about what you are trying to do by using methods like ToString() if you are using the "+" operator to concatenate the String value to the String...or parse/cast the String into an integer first if you want to add integers.

-Frinny
Jan 12 '09 #5
Thanx for reply,

In 2 problem i m using + operator on 2 different objects.PhoneticStr is a CString type and nChar is a UINT type.nChar having the ASCII values.according to me this code is using for concatenate the variables. In code of the project in one function PhoneticStr=" ";.So what should i do.

In 1st problem no errror is generated in the code basically the split function is not there of ms word.so can u give me the code of the split function.
Jan 12 '09 #6
weaknessforcats
9,208 Expert Mod 8TB
You can start by reading the CString overloads for operator+.
Then you can learn how to use TCHAR as I have already mentioned.

"What do I do" means your code has to conform to the CString operator+ overloads.

This site is to answer questions and not to provide code solutions.
Jan 14 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
4
by: Anthony Gallagher | last post by:
I have a bunch of libraries compiled using VC++ 6.0, and I am trying to recompile one of our projects using VC++ .NET. I get all kind of linker errors (specially in STL calls). How do I get rid of...
5
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
2
by: vemulakiran | last post by:
Hi all, I have doubt regarding .NET. I have a tool which was developed on VC++ 6.0(Win32 Application ). The application communicates with library (API) which was developed on VC++ 6.0 called core...
2
by: | last post by:
Everything seems to be moving to .NET and VC++ seems to be adding a lot of managed code support every new release. The questions: is unmanaged code in VC++ beeing phased out in favour of managed...
4
by: ultranet | last post by:
I have cruised around http://msdn.microsoft.com/visualc/ and the rest of the site, and i am not able to find a single C++ or VC++ certification exam that will be available after June 30, 2004. I...
1
by: Steve | last post by:
We are considering the ways to migrate our VC++ 6.0 applications to .NET platform. It would be nice to rewrite them completely in C#, but due to the time constraints this option is out of...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
15
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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,...

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.