|
I had wirtten a query sometime back. now there is another problem. when i embed this control into the dialog box and compile the application i am getting some 35 errors.
the error is something lime this
error C2440: 'type cast' : cannot convert from 'struct IDispatch *' to 'class CSpreadsheet'
No constructor could take the source type, or constructor overload resolution was ambiguous.
what is the meaning of this??
is it because the control is not reqistered properly?
Awaiting a favourable reply.
Thanks
|
|
|
|
|
Chandrasekharanp wrote: is it because the control is not reqistered properly?
I hardly believe is it.
Try to post some code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
there is no code written.. i tried to compile the application after embedding the excel active x control and giving it a variable name.
the result was 35 errors...
|
|
|
|
|
I am able to see blank space at the beging of the password edit control
how to avoid that?
in VC6 it wont happen only with VC8 resource editor it happen
normal edit control is not having any blank space before starting text
lets say i edit control username and password
it username edit control space wont be there bcase its not password edit control
but in password edit control space will be there
it looks not good
so how to resolve the issue
either i needto have blank space in username edit control r need to remove blank space in password edit control
thank you
|
|
|
|
|
huu, WTF are you saying ?
i don't understand a word in your post dude...
|
|
|
|
|
sarat wrote: in VC6 it wont happen only with VC8 resource editor it happen
I see no difference in the VS 2008 editor.
The control is a Windows control, so the VS version shouldn't matter.
Maybe the editor has changed, but it's what it looks like at runtime
that matters.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Do you have this problem with other projects or no?
|
|
|
|
|
Thanks a lot for the reply
I found solution for the same
i can set the margin of the CEdit box ... which i was not aware of .. i was working on some other bug and i found this
cool na we can set the marging for CEdit Box
|
|
|
|
|
I wonder if we can change the size of a Month Calendar Control. When I try to drag & drop, the number of moths increases, not the dimension of the month. I can change the color of this control through functions in CMonthCalCtrl class but I can't find a suitable function to change the size. Some one plz help me ...
|
|
|
|
|
i want to attach a calender for date & time(not the simple one which is available in tool bar,,i want calender which appears in many travells website).
whenever i click on calender,it display the date & time in text box & close the calender
varun
|
|
|
|
|
Ok, so have you tried the one available in the resource toolbox?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yes david,selected date we can read , but the calender is static ,
i want good apperance calender , and after reading it go automatically
varun
|
|
|
|
|
varun01 wrote: i want good apperance calender , and after reading it go automatically
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
how many times are you going to post that huge amount of code ?
can't you
1. follow the same thread ?
2. reduce the code to a readable sample ?
3. don't break the page formatting with your too wide lines ?
4. just read the posting guidelines ?
|
|
|
|
|
hi~
I have a printer. epson tm-u120.
And i have the esc command document.But i do not know how to use it in VC
Should i send the command to the computer's serial port directly?
Is correct?I use the ComSerial class.
The line-feed command is 'lf' and in hexadecimal is '0a',
if i want the printer to print 'hello word',
what should i send to the serial port?
Sorry,the printer is not here,so i can not try it.
Thank you for your help!
|
|
|
|
|
|
Hi,
i have made a mfc-project in Visual Studio 2008. I want to change the used MFC Version from Version 9 to Version 8.
Is this possible? If it is, may be someone can tell me how?
Thank you.
Jens.
|
|
|
|
|
Jens876 wrote: ...the used MFC Version...
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This version of VS comes with MFC lib version 9.0, for previous version you need to go to VS2005.
Why you are not using VS2005 then?
|
|
|
|
|
Ok.
I thought there is a way to use a MFC Version below 9 in Visual Studio 2008.
But it seems that there is no way to do this.
Then i have to use Visual Studio 2005.
Thank you for your help.
|
|
|
|
|
Why you dont use VS2005 if you need to it?
|
|
|
|
|
I'm using Visual C++ 6.0 I created a simple dialog box with ID called IDD_Test. It simply contains a some static text and a text edit box. I'm doing an SDI application. I would like to display this dialog when the program starts, but I don't understand how to go about doing this.
Thanks ahead of time
|
|
|
|
|
You may like to select "Dialog based application" option while creating new project, instead of SDI.
|
|
|
|
|
Kwanalouie wrote: I would like to display this dialog when the program starts, but I don't understand how to go about doing this.
Hint: This sounds like a "splash screen."
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|