|
Could you please post the error details (maybe also related 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.
[my articles]
|
|
|
|
|
Thanks a lot I've tried to execute the code with VC 6.0 thats what the problem is later when I executed the code with VC8.0 it worked Thanks for your help.
Thank u all
Kings
|
|
|
|
|
Jingley wrote: ...i'm getting link error 1103 when i try to execute some code...
It's not possible to receive a linker (or compiler) error when your code is being executed. By virtue of there being an executable, your code has been successfully compiled and linked.
What is the exact linker error you are receiving?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks a lot I've tried to execute the code with VC 6.0 thats what the problem is later when I executed the code with VC8.0 it worked Thanks for your help
Kings
|
|
|
|
|
Can any body tell me what is the eqivalent of far pointer in VC++
as i am trying to run some c program in VC++ editor ....
T@SU
|
|
|
|
|
they don't actually exist anymore since FAR pointers is something of the old 16 bits systems...
you don't have to care about that any further...
|
|
|
|
|
Oke thanks alot....
vikas da
|
|
|
|
|
Hi Al
How can a text file be converted to MS Word format.
Any idea regarding this is welcomed (Dll, SDK, or sample or precess to convert).
Thanks in Advance.
BYE
|
|
|
|
|
Rename the file so that the extension is .doc There is no big conversion involved.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
...formerly known as brahmma
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Smart hint, but technically there is no conversion until you'll open it with Word and then save it in Word own (.doc ) format.
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.
[my articles]
|
|
|
|
|
It may not work the other way round though
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
...formerly known as brahmma
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Actually what I want is to convert any .txt file to .doc (MS Word) one.
So please tell me any programming approach or related DLL or SDK that will perform the objective.
PLease help me
Thanks & Regards
Edit/Delete Message
|
|
|
|
|
It is just one line of code.
CFile::Rename(_T("E:\\myfile.txt"), _T("E:\\myfile.doc"));
Keep it in mind that you are just renaming a file and you actually haven't done the conversion. It is perfectly safe in this case since MS Word will handle it. It won't work the other way round.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
...formerly known as brahmma
Codeproject.com: Visual C++ MVP
|
|
|
|
|
It is to hard for him to understand the elegance of your approach.
Greetings from Germany
|
|
|
|
|
KarstenK wrote: It is to hard for him to understand the elegance of your approach.
Looks like that. But somebody has voted me a 1 also. I really don't understand what is wrong with my approach.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
...formerly known as brahmma
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
CPallini wrote: VBScript or JScript
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
...formerly known as brahmma
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Don't you like (those) scripting languages?
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.
[my articles]
|
|
|
|
|
Yes, I don't like them. There's no fun in it.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
...formerly known as brahmma
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: Yes, I don't like them.
Well, that's a matter of personal taste, anyway they've many of defects but in fact I think there is a lot of fun dealing with (for instance, script components http://msdn2.microsoft.com/en-us/library/x5t0zfyf(VS.80).aspx[^] http://msdn2.microsoft.com/en-us/library/asxw6z3c%28VS.85%29.aspx[^] are, IMHO, amazing).
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.
[my articles]
modified on Thursday, January 10, 2008 4:15:40 AM
|
|
|
|
|
I've been living with office automation via COM with a lot of help from MFC. If the OP had asked how to extract text content fro a .doc file, then I might have guided the OP to use COM. But then, somehow I don't like VBS and JS.
CPallini wrote: script components http://msdn2.microsoft.com/en-us/library/x5t0zfyf(VS.80).aspx[^] are, IMHO, amazing).
That isn't any script component. You seem to have mistakenly pasted a different link.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: 've been living with office automation via COM with a lot of help from MFC. If the OP had asked how to extract text content fro a .doc file, then I might have guided the OP to use COM.
David Crow has already done it.
Rajesh R Subramanian wrote: But then, somehow I don't like VBS and JS.
Well, I underatand the feeling, for instance I dislike MFC in favour of the honest WIN32 API .
Rajesh R Subramanian wrote: CPallini wrote:
script components http://msdn2.microsoft.com/en-us/library/x5t0zfyf(VS.80).aspx[^] are, IMHO, amazing).
That isn't any script component. You seem to have mistakenly pasted a different link.
You're right, my bad . I fixed it (BTW I hope I didn't made a link swap... What help may have from Script Components the OP taht asked how to read a single line from a text filke? ).
Regards
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.
[my articles]
|
|
|
|
|
Can you use Word Automation like:
COleVariant vtOptional((long) DISP_E_PARAMNOTFOUND, VT_ERROR),
vtDoc((short) 0);
if (app.CreateDispatch("Word.Application") == TRUE)
{
docs = app.GetDocuments();
CString strFileName = "myfile.txt";
doc = docs.Open(COleVariant(strFileName),
vtOptional, vtOptional, vtOptional,
vtOptional, vtOptional, vtOptional,
vtOptional, vtOptional, vtOptional,
vtOptional, vtOptional);
strFileName.Replace(".txt", ".doc");
doc.SaveAs(COleVariant(strFileName), vtDoc,
vtOptional, vtOptional, vtOptional,
vtOptional, vtOptional, vtOptional,
vtOptional, vtOptional, vtOptional);
}
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i have given u the path C:\windows\mirosoft\App.exe ,to check wether this registered or not.
|
|
|
|
|
What kind of component, a COM one?
If you try to obtain an instance of the component then you also test if it is correctly registered.
[added]
BTW
bhogavalli suresh wrote: How to find wether a component is registered in regedit or not
The repository of COM component registration information is called registry . The regedit is just a tool to access manually the registry content.
[/added]
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.
[my articles]
modified on Wednesday, January 09, 2008 6:02:23 AM
|
|
|
|