|
Christian,
Thanks for doing that, but I have an older version and it wont run
Can you PLEASE give me step-by-step instructions on how to do it?
I know there is no article thats why I wanted to get the code running to learn directly from the code.
Thanks mate,
-Dan
|
|
|
|
|
I created a new console application, but in hindsight a windows forms app may have been better. Then I deleted all the code in the wizard generated app, and use add existing to add the two classes, which I had copied to the folder. With the console app, I needed to add references to system.drawing and system.windows.forms, then it worked.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian,
I've done that, and the program runs without errors, but the interface doesn't appear, the form is blank ???
Thanks again,
-Dan
|
|
|
|
|
Is there anyway you can save the project so it will open with version - 7.0.9466 ?
|
|
|
|
|
afaik there's no way to get UI items created in source (which is what you get when copy/pasting the code) to appear in the designer.
VS2002 will not open VS2003 or 2005 projects, nor can the newer versions save in the old format. Unfortunately this means you generally won't be able to directly open sample projects from the web. Fortunately the code changes between the 02 and 03 are fairly modest so most will still work.
|
|
|
|
|
maybe you save the project on desktop.you should save it in wwwroot folder in c#.After that open .net and go to the menu file->open and give the path of the .sln file of the project.It will show you the source code.
now you can run it using F5 ,can compile using ctrl+shft+B.
|
|
|
|
|
amit55650,
Thats not working for me?
If ANYONE can help me that would be much appreciated, my MSN email is kerton@iprimus.com.au
Thanks in advance,
-Dan
|
|
|
|
|
If someone could help me with this is would be much appreciated.
Thanks in advance,
-Dan
|
|
|
|
|
Can anyone point me to any websites or articles relating to accuWeather and what can be done to retrieve current weather information? It was simple to discover the details for Weather.com but I have only found bits and pieces of information pertaining to accuWeather, some of which is fairly incomplete. Any input anyone can provide would be great. Thanks!
|
|
|
|
|
Simple question really:
Has anybody seen any C# implementations of AliceBot?
If not, has anybody seen any C# based implementations of chatter bot AI?
EDIT:
Forget it, I am blind : http://www.ntoll.org/projects/aiml/[^]
|
|
|
|
|
Hey
I created an application that automatically enters a webmail account (enters automatically the username and password and enters the account).
the problem is that if one of the e-mail messages opens a new window, its being opened using IE (and thats fine by me b-u-t), when the IE window trys to show the content of that message, it can't because IE doesn't know that I already signed in with MY program so it asks the password and username again.
does anyone know how to fix it?!
I really have no clue!
|
|
|
|
|
Handle the NewWindow or NewWindow2 event. You'll need to return an implementation of the IWebBrowser (like a new instance of your AxWebBrowser control) in the first parameter and VARIANT_TRUE ((short)-1, or 0xffff) in the second). If you search for "NewWindow2" here on Code Project using the article search at the top of every page right below the logo you should find several examples.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
thanks, I'll get to work on that
|
|
|
|
|
Is there a C# method that will return me a path for a file name that I passed in? I need to remove a shortcut that place during an installation of another product. I know the name of the shortcut but not the location of the shortcut, thanks.
-- modified at 18:52 Monday 7th November, 2005
|
|
|
|
|
If you know absolutely nothing about the location of the file, then you probably need to search all the disks on the system for the thing.
But that would be a bit ridiculous. I'm guessing you know something about the location. For example, if it is somewhere on the start menu or desktop you could use System.Environment.GetFolderPath along with Environment.SpecialFolder to narrow down the search.
Or are you are you asking how to get the fully qualified path from a filename that has a relative path? If so, look at the FileInfo object.
Matt Gerrans
-- modified at 19:26 Monday 7th November, 2005
|
|
|
|
|
i have a remote object installed in each remote machine within my network, is there anyway to auto detect if the remote machine is active?
|
|
|
|
|
Is there an alternate tool to nDoc for creating help from documentation comments in C# code? (One that is updated for VS 2005.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I am trying to set up an application that will allow users to view a pdf depending on the version of adobe acrobat. Some of the users have 6.0 and others have 7.0.
I can open one or the other based on the version that is installed on my machine.
The com object ( tool ) seems to get updated depending on the version I have.
To further explain, I created an app that opens a pdf with pdf viewer 7.0 embedded in the windows form. I installed the application and removed adobe 7.0 and installed 6.0. The application doesn't work.
The com tool is different from 6.0 to 7.0.
|
|
|
|
|
Yes, that is the nature of COM. I'd say you need to import both, and check which one is installed.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I can do conditional logic and that will open a version if a particular version exists.
However, the code will not compile if I have logic for both version 6 and for version 7.
|
|
|
|
|
Why not ? Are they both the same named COM object ? Then you may have to do it via a dll, and have one for each version, perhaps.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yes, it appears that you can only have one or the other.
I tried saving the dll's in my project folder and then adding references to the dll's and that doesn't seem to work the same as actually adding the the COM tool.
If the current version of the com tool is 6.0 and and I try to browse to the 7.0 version and select it, the original is now replaced.
|
|
|
|
|
The nature of COM is such that - if developers follow the rules - you should import the 6.0 library and that would work for the 7.0 library as well. Since interfaces should never be changed (though some, like Microsoft Office, only add to existing dispatch interfaces since automation clients can only use one default dispatch interface) they are still typically implemented so that you can do what you need. Now, if you require calling into 7.0-specific functionality in your client then you should cast to 7.0 interfaces. If null is returned then you're dealing with 6.0 and you won't be able to call into the 7.0 functionality.
The same goes for Office (using basic PIAs, not, say, Visual Studio for the Office System): use the oldest typelib you can tolerate in your app to generate the PIAs. Using them should work going forward (unless some day long, long down the line some older functionality is deprecated but then you should just not get the result you were expecting as opposed to a runtime error).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
The customize toolbox com components will contain only 1 adobe acrobat browser control.
the files( dll's ) created when you move the control to a form are different from version 6 to version 7.
Are you saying that I can just add a reference to the dll's for version 7.0 and somehow cast the version 6 class as a version 7?
|
|
|
|
|
No, actually you create an interop assembly from version 6, which means you may have to uninstall 7.0 and install 6.0 to create one, or do this on a separate machine, or just extract the ActiveX server or separate type library (if there is one, a .tlb file) and run tlbimp.exe on it.
If you use the 7.0 library the default class interface - depending on whether they create new interfaces per-version or add to the existing default dispatch interface - then where 6.0 is installed it may not work. The referse should hold true, however. This is how COM is designed to work in terms of versioning interfaces.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|