|
MonoDevelop 2.2 is a good choice.
Hope it can help you.
modified 27-May-14 4:52am.
|
|
|
|
|
Hello!
I have an older C++ application that uses the Word.Application object to create and open a Word document from a template.
I have installed my application on a new server running Windows server 2008 (32bit) and now the Word-connection gives me trubble, Word starts an instance but no document is created and I recieve the error:
5151 Word was unable to read this document. It may be corrupt. Try one or more of the following:
* Open and Repair the file.
* Open the file with the Text Recovery converter.
The application works fine when I run it on my computor (XP 32bit) as well as on a Win 2008 64bit server (and various Win 2003 32-bit servers). I think there is some problem when creating and loading the Normal.dotm-file but there is no problem opening the template in Word nor opening the Normal.dotm-file that is created.
I tried Repair as well as uninstalling and reinstalling Office 2007.
Any ideas?
Thanks!
|
|
|
|
|
Are you using an #import directive with a specific version of Word?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
From what I can tell there is no connection to a specific version of Word. The same version of Word is running on the server where I get the error as on my computer and on the other server where I don't get the error...
|
|
|
|
|
By the way - the application can create and open Excel-documents without problems on the same server and the application is run interactively by a logged on user. The error occurs no matter whether the user has administrator rights or just "normal" user rights to the server.modified on Monday, February 22, 2010 10:11 AM
|
|
|
|
|
After placing a number of printouts down in the class using the Word.Application objekt I found out that the error occured doing Documents.Add(@"\\path\OurTemplate"), there seems to be some filetype association missing on the server which is in place on the other servers where the same code works fine. Changing to Documents.Add(@"\\path\OurTemplate.dot"), i.e. explicitly specifying the file suffix solved the problem. Why the suffix was not supplier from the begining I can't say - this code was written long before my time here...
|
|
|
|
|
Hi
I Planned to Start an SDI(Windows Explorer View) and then Dialog Boxes for my project.
Kindly provide some examples to start with..
Regards
Gany
|
|
|
|
|
Use the MFC Wizard of Visual Studio to create a new project.
Follow each step of the wizard carefully.
-- Modified Sunday, February 21, 2010 11:48 PM
|
|
|
|
|
HI
I need some tutorial to go with ..
|
|
|
|
|
|
Hi All
I am using ListControl for my application in Report View.
Can Any One have idea of maximum number of datas that can be viewable in list control.
Regards
Ganesh.P
|
|
|
|
|
More than enough I would say.
If not, you need to change you're UI design.
Anyway that will also depend on how many columns you're going to have.
The index is stored as an integer.
So you definitely cannot store more items than the capacity of an integer variable.
-- Modified Sunday, February 21, 2010 11:48 PM
|
|
|
|
|
If we look at the MSDN details of LVM_INSERTITEM message, the item index is a zero-based integer value. So, I guess List control is designed to support up to INT_MAX + 1 items.
|
|
|
|
|
You may insert many, many items (i.e. millions?) in a list view. However you'll quicky find that flooding the list view will slow down the UI to unacceptable levels (and will make you consider using the Virtual List-View Style].
Why don't you perform a test?
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
[My articles]
|
|
|
|
|
hellogany wrote: Can Any One have idea of maximum number of datas that can be viewable in list control.
That's governed by the height of the control."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi,
I have a simple program that uses WIN32_FIND_DATA with the usual GetFirstFile() GetNextFile() etc.
What I need to be able to do is find out if the directories I pass through are Indexed or not.
I cannot see an Indexed Attribute in WIN32_FIND_DATA, so that it obviously not the place to look.
Also, is there some way to programmatically set a Directory as Indexed?
Visual Studio 2008, Vista 64 Bit.
Thanks for any advice,
Bryan.modified on Sunday, February 21, 2010 4:10 PM
|
|
|
|
|
Now assuming that the target system is using NTFS, the Indexing service is running and that the folder you are interrogating is included in the list of items the service will index THEN the file attribute FILE_ATTRIBUTE_NOT_CONTENT_INDEXED[^] is your best bet.
Check Win32_ServerFeature in WMI for ID
71 Indexing Service
Then look at ISearchCrawlScopeManager[^] at ways to query the indexing service.
Hope this helps.Alan
|
|
|
|
|
Hi Alan,
looks like there is a bit more to this Indexing Service than just getting an attribute bit...
It seems to me that the FILE_ATTRIBUTE_NOT_CONTENT_INDEXED is saying that the associated file is to be excluded from Indexing, so is not too useful for my purposes.
I have been looking at the OLE DB Provider and its interaction with the Indexing Service, but this "simple" project is not going to be as easy as I had hoped.
So I will leave this one on the back-burner for now.
Thanks,
Bryan.
|
|
|
|
|
Bryan Anslow wrote: It seems to me that the FILE_ATTRIBUTE_NOT_CONTENT_INDEXED is saying that the associated file is to be excluded from Indexing, so is not too useful for my purposes.
Wouldn't the lack of the FILE_ATTRIBUTE_NOT_CONTENT_INDEXED bit being set indicate this it is being indexed?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
True. IF, and it is a big one, you have the index service installed, running and the folder was in the list. Alan
|
|
|
|
|
The problem I have is essentially very simple.
I need to have multiple CDialog thread in my application that do not lock the primary UI thread. Their purpose will be to display specific data in each one.
My problem is that although I have been able to achieve this for one of the dialogs by
public:
CSimulator thSim;
...
thSim.CreateThread();
but any attempt I make to repeat this approach does not give me the dialog although no errors are generated at compile or runtime.
I have also tried using the
OnInitDialog() of my main dialog but this just results in the main dialog having the child dialog pasted over it. Not pretty.
Ultimately I am planning to use an SDI for the main interface with CDialog's for the children. This would allow the child dialogs to be arranged across multiple montiors independantly of the main UI.
Whilst MFC is quite an old thing to be using I have to be sure the application will run on ANY Windows platform without having to worry too much about dependancies (i.e. from XP to Windows 7). Also the target machines are tightly controlled so adding .Net to them is a no go before anyone suggests it.
So does anyone have any suggestions how best to create and manage multiple CDialog's?
Many thanksAlan
|
|
|
|
|
|
If I am understanding this correctly, your difficulty is that you are attempting to use modal dialogs. What you want is to use modeless dialogs. These are still based on CDialog but have some differences in what you need to do in some overridden methods and how you start them up. You do not need a seperate thread to run them, they are just fine on your main UI thread. I have talked about them before in this post. I haven't double checked if I have everything in there that you need, but there is at least a good part of it. This should give you some direction. If necessary I could try to fill more stuff in, but I have to head out to a baby naming this afternoon and have a six hour drive tomorrow, so I'm leaving it at this for now.
Good luckPlease do not read this signature.
|
|
|
|
|
Thank you for the suggestions. Modeless sounds like it could be what I need to do. I will experiment with your suggestions. Alan
|
|
|
|
|
Thank you for the suggestions and Modeless certainly works to a point.
Sorry if I am being a newbie but I have spent most of my time deep behind the UI so this is all a bit of a novelty.
The problem I have now is that when I spawn the modeless dialogs, overlapping them causes painting issues. i.e. each dialog becomes contaminted with whatever was infront of it when it takes focus.
Oddly this is does not happen on Windows 7 which is my development platform.
Now I am assuming this is because I am not handling the change in focus correctly, which I am looking into, but any suggestions?
I have to be able to spawn between 2 and 255 of my modeless dialogs (yes I know it is a lot) and be sure that they all repaint correctly.Alan
|
|
|
|