|
If you add a setup project to a project with stdole as a reference.
Does the detected dependency refer to mscorlib v1.0330.0?? If so where does this live on your machine.
This is the dependency that seems to be missing from my setup project
I can only locate mscorlb v1.0.5000.0 which live under c:\winnt\microsoft.net\framework\v1.1.4322
|
|
|
|
|
I have these:
mscorelib version 1.0.3300.0 in:
c:\windows\microsoft.net\framework\v1.0.3705\mscorlib.dll
mscorelib version 1.1.4322.2032 in:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll
mscorelib version 1.0.2268.0
C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE
if I add the reference to stdole it shows the 1.0.3300.0 version.
|
|
|
|
|
Thanks. I think I'm starting to get somewhere now.
I have loaded .Net Framework 1.0 which has put the file back on my computer under \microsoft.net\framework\v1.0.3705\mscorlib.dll.
It still refuses to pick it up as a dependency and if I add it as a reference (via browse) to the source project I get a message saying it will change where System etc are referenced from and if I agree I get heap of 'Object' is ambiguous in the namespace 'System' type errors come up in the tasks.
I am going to try a reinstall of VS.NET 2003 now that I have .NET Framework 1.0 installed and see if stdole references mscorlib properly.
If I am still having problems I will reply again.
|
|
|
|
|
This is driving me crazy.
OK step by step this is what I do.
I have a VB.NET class library with varios forms and classes, one of which uses stdole.IFontDisp
The solution builds and runs like clockwork on the development machine.
I add a setup project so that I can distribute the dll in a .exe file.
I set the Project Output of the Setup Project to be the source project mentioned above.
When I look at the Detected Dependencies, stdole is missing a dependecy mscorlib 1.0.3300.0
I am sure it exists on my computer now, I am at a loss.
|
|
|
|
|
Ok, I think I may know what the problem is, if you'll bear with me for a bit.
I mushed around thru microsoft's site a bit and found a lot of references about the stdole.dll you are trying to distribute, it is the developer version and that's not supposed to be re-distributed, you reference it in a build when you use the office interops but as far as I can tell the IDE is not supposed to add it to the dependency list because it is installed with the net framework re-distribution. The only one allow to be re-distributed is the runtime version. If your still following all this the a solution may be to download the re-distributable pia's to your machine move the stdole.dll file to your app bin directory and reference it instead, make sure your software works then add it as the dependancy.
This is just a shot in the dark, because, one, I have never had that problem, and two, my IDE say's the same thing your's does, and I have no stdole problem with my builds that include it, as it never get's packaged in the msi file.
|
|
|
|
|
Thanks again.
Are the redistributable PIA's part of the .NET redistributable (dotnetfx.exe).
Should I be thinking then that this is more an issue with the client machine and digging deeper there?? Although I am sure .NET 1.0, .NET 1.1 and Office XP PIA's are installed.
I'll get back to you with any results.
Cheers
|
|
|
|
|
I would look on the Target machine for a problem,
maybe even target another machine like your laptop or somthing to check. I realy don't know what could be causing it.
you should read this page first:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stagsdk/html/stconPIAs.asp
you can get the office PIA's here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52&displaylang=en
The PIA runtime's are installed when you intstall officexp.(not on the minimal install)
|
|
|
|
|
Here is somthing else you may want to see:
Information about designing Office XP add-ins and Office 2003 add-ins by using the .NET Framework
http://support.microsoft.com/?id=840585
|
|
|
|
|
Would the fact that I am building on a win2K machine have an impact??
The PIA's are on both build and target machines and are the same version.
|
|
|
|
|
Yes it will, I have had trouble before with app's built on a 2000 box, if your target is XP, I would suggest that you build it on XP, in any case, that may very well be the whole problem.
|
|
|
|
|
Hi,
I'm back apologies for dropping off the planet but meetings and travel kicked in.
The current situation is;
The problem appears to be that all client machines lack the stdole in the assembly directory of the c:\winnt or c:\windows.
From what I read these should be installed with the minimum install of office 2003 but this isn't happening (I am waiting on confirmation from our IT people as they setup all installs remotely over the network.)
Installing the .Net redistributable and XP PIA's doesn't seem to solve the issue as the register.bat for the PIA's requires VS.NET command prompt.
I am trying to following the instructions given for inclusing PIA's in the deployment of the setup project but as yet have had no luck. The project builds but when it is installed it doesn't create stdole in the assembly directory.
Any advice????
|
|
|
|
|
I was wondering if anyone knew how to download attachments from email to a folder using VB.net. What i'm trying to do is take an email, read or unread, from my Inbox, and download the attachments from the email into a predetermined folder. I cannot find any help doing this in the MSDN library. any ideas oh programming guru's? thanks!
megadith
|
|
|
|
|
HOW TO: Retrieve Unread Messages from Inbox by Using Outlook Object Model in Visual Basic .NET
http://support.microsoft.com/?kbid=313795
|
|
|
|
|
I've found that one before, but it doesn't mention anything about attachments. thanks though. Anyone else have any ideas? thanks!!!
|
|
|
|
|
you mean something like this?
Set oAttachments = oMsg.Attachments
For I = 1 To oAttachments.Count
If Not IsNull(oAttachments(I)) And oAttachments(I) <> "" Then
oAttachments(I).WriteToFile (App.Path & "\NewAttachments\" & oAttachments(I))
End If
Next
|
|
|
|
|
We have converted a VB application to VB.Net. It uses SQL server, sockets and a third party active control. This desktop application would execute fine in all developers machine and in any machine which has Visual Studio .Net installed in it. But wouldn't execute on users machine(has .Net Framework) and gives this message :
"Common Language Runtime Debugging services"
"Application has generated an exception that could not be handled."
Any responses is appreciated, thanks.
|
|
|
|
|
we'll need more of the error info,
adm errors can be as simple as a registry setting missing to a the wrong version of an assembly, and everything in between.
What's the error code in the applications log file?
|
|
|
|
|
Thanks for the feedback, I got it fixed by creating a Setup and Deployment project. It gave the Setup files similar to install shield and when I installed that, it fixed the issue and I'm able to run my application.
|
|
|
|
|
I have created a application.I used MDI form in that there is some child form.I am opening a form in that window, the form size is Normal and I am opening another form that is Maximized window. Both window are open and the window size of one window is normal and another one is maximizes. Mow my focus on maximized window, Now I am changing the focus to Normal it become maximize atomatically. But I do't want, I tried to solve this problem but it is not solved till.
Plz help me in my application to solve this problem.
pkc
|
|
|
|
|
I can't understand what you said, but I'll take a stab at it...
You have an MDI Parent window with two child windows, one normal and the other maximized. You want to show the normal window AND the maximized window at the same time, but have each window show in it's set state, normal and maximized.
There is no way to do this. If you maximize one child window, ALL child windows will be displayed maximized. If you set a child window to normal, then ALL child windows will be displayed normal.
The only way around this is to configure the window you want to be maximized as a normal window instead, then set that windows size to match the client area size of the MDI Parent. You'll also have to write code in the Parent windows Resize event that will go through the child windows and resize them based on the size of the Parent window's client size.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I’m trying to store a string in a string variable and the string itself contains quotes ("). Example
Dim LongSentence as string<br />
<br />
LongSentence = "This string contains "quotes" within it."
VB.NET dosen’t seem to like the quotes within quotes. Can anybody tell me how this can be written?
Thanks
Brad
|
|
|
|
|
Hmmm...I think I just figured out the answer to my own question :
Dim LongSentence as string<br />
<br />
LongSentence = "This string contains ""quotes"" within it."
|
|
|
|
|
Correct.
'Howard
|
|
|
|
|
Hi Everyone
Problem No.1
We are trying to capture Video capture with Driver Microsoft WDM Image capture 32 and tested in Windows XP, But cannot run ;Pin Windows 98. Also I checked up with Microsoft KB Article -192112. And Then updated Windows 98 Second edition. Still it does works windows 98 PC.
Problem No. 2
Image File compression for motion detection technic, How to compare the JPG/BMP file in VB6.0, to identify the motion. and then store it it in AVI format, How to follow the available standards to do compression?
Thank you
|
|
|
|
|
Hi Dave,
What type of objWmiDataBlock object and its properties? Was it delcare as Type?
Can you explain more details of your code? I'm just starting of study WMI.
Thanks alot.
|
|
|
|