|
i need some help over here please !
Bravoone
|
|
|
|
|
A another problem have puzzled me a lot. After trying everything, i just cannot display non-solid-color background in scroll-view correctly, who can help me.
chenzd
|
|
|
|
|
Hi Guys,
I am facing a little difficulty in finding the width of a character in Vista machine.
For the same character (say 'a'),I am getting different (A,B,C values in Vista machine ,when comapare to other O S machines).
Can somebody tell me,why this is happening?
Is this a microsoft bug??
If not ,what is the FIX for it.
Please help me.
Thanks in advance.
Appu..
"My blood group is not B+.But I have it my blood"
|
|
|
|
|
Are you comparing the same things? Doesn't Vista use a different system font? Try selecting the same font into the DC before calling GetCharABCWidths() .
|
|
|
|
|
I am using the same System Font, i.e, Tahoma 10 on all machines.
We are getting different values for A and C(underhangs and overhangs)in Vista,when compared to other Operating System.
Because of this our logic is not working in Vista.
Please help me out.
Appu..
"My blood group is not B+.But I have it my blood"
|
|
|
|
|
When you create the font, are you specifying the exact font or using the stock SYSTEM_FONT?
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
How to detect which key has been pressed along with ctrl key?
Thankyou
|
|
|
|
|
Use GetKeyState to find out state of control key...
BOOL SomeDialog::PreTranslateMessage(MSG* pMsg)
{
if( pMsg->message == WM_KEYDOWN &&
pMsg->wParam == VK_TAB &&
( GetKeyState( VK_CONTROL ) & 0x8000 )
)
{
HandleCtrlTab();
return TRUE;
}
return CDialog::PreTranslateMessage(pMsg);
}
|
|
|
|
|
|
|
Hi all.
I'm using unmanaged C++ MFC application. And I need to get Excel interfaces. As I know I need to import TypeLib using MFC wizzard. Wizzard is creating a header, excel.tlh and excel.tli files. When i start to compile project, there is 100's of errors in excel.tlh.
So the question is: what i've done improperly? May be I need to include additional libraries and headers (tried to include ole.h and ole32.lib). May be someone know some articles, where I can find information about it?
Thank's a lot
|
|
|
|
|
|
Unknown identifiers, syntax errors, type redefenitions.
I tried do the same for MapInfo - it works.
I found articles about excel and it doesnt works, may be my excel is corrupted?
|
|
|
|
|
progDes wrote: As I know I need to import TypeLib using MFC wizzard.
Which type library did you use?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
im using Excel 11 or 10 typelib (TLB), which is in Excel.exe file
|
|
|
|
|
I just did the same thing (I'm using Excel 2003 whose type library comes from excel.exe) and it works fine. The only files that were created are excel.h and excel.cpp .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The TLH and TLI files creating during compilation when #import is executing. I found step by step microsoft sample, but it doesnt works (at home and on work both Office 2003). What VS do you using. I saw that earlier VS creating h and cpp files, but my VS2005 create only .h
|
|
|
|
|
progDes wrote: What VS do you using.
I am using VS6.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
That's the point. Now i'm thinking about finding Excel 5.0 or 9.0 library, may be it can work. I think, i just have bad office on two computers, installed from 1 CD
|
|
|
|
|
progDes wrote: I think, i just have bad office on two computers...
Can you try using the "bad" type library with VB?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yes and its works in VB in managed C++ in C#, and even 5.0 library doesnt work in C++.
Something wrong here, what can I do improperly?
|
|
|
|
|
OK, I'll try to list my actions.
1) Creating a ialog based MFC application (other parameters is by default)
2) Add->Class->MFC class from TypeLib
The window contains library list and list of classes that can be created.
3) Selecting the _Application class (only 1 for example) and header is CApplication.h
4) OK
5) Run (it works)
6) Include CApplication.h into any file
7) Run (100's of error)
in the top of the header there is #import directive. I've reduced error count by changing attributes of it. So, can you list me your attributes, please?
-- modified at 11:20 Tuesday 12th June, 2007
|
|
|
|
|
Ha-Ha!!!
Here is the answer.
Need to comment the line in header file
#import "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" no_namespace
I dont know why, but when i've commented it the code began work
|
|
|
|
|
Hello,
Suddenly my project has started giving me error saying a certain .bsr file doesnot exist.I rebuild the project but in vain.
DO I need to make another project or I can do something with the existing project.
Thanks
Pritha
|
|
|
|
|
prithaa wrote: uddenly my project has started giving me error saying a certain .bsr file doesnot exist.
isa it bsr or bsc
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|