|
I recently learned that on XP (and later) OS, you do not need to register activeX, if you use "isolated" option from vs 2005 menu to create a special manifest file.
Does anyone know how can I make the required manifest lines if I only have VS 2003 ?
Thanks,
Atara
|
|
|
|
|
VS2003 doesn't create manifest files. I also don't see how a COM dll can work without being registered, unless the manifest contains the GUIDs and so on, and everything has to be in the same directory.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
The manifest should contain clsid.
This technologie (COM dll can work without being registered) should work on XP sp2, and Vista. according to the documentation it should work on .Net 1.1
but I can not find the exact format of the needed manifest file
more about this "Reg Free COM" technologie in -
http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/[^]
Atara
|
|
|
|
|
I solved it with the help of:
(1) Escape DLL Hell - Simplify App Deployment with ClickOnce and Registration-Free COM
(VS 2005 Article)
http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/
(2) Registration-Free Activation of COM Components: A Walkthrough
(VS 2003 Article)
http://msdn2.microsoft.com/en-us/library/ms973913.aspx
(3) oleView.exe
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\oleView.exe (or . . . \Tools\Bin)
oleView.exe: File->View TypeLib
The solution:
1. The main manifest (myProg.exe.manifest):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
type = "win32"
name = "myProg"
version = "1.0.0.0" />
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="myAxFile.X"
version="1.0.0.0" />
</dependentAssembly>
</dependency>
<dependency>... more files ...</dependency>
</assembly>
2. The myAxFileN manifest (myAxFileN.X.manifest):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
type="win32"
name="myAxFileN.X"
version="1.0.0.0" />
<file name = "myAxFile.ocx">
<comClass
clsid="{...clsid...}"
threadingModel = "Apartment" />
<typelib tlbid="{...tlbid...}"
version="1.0" helpdir=""/>
</file>
<comInterfaceExternalProxyStub
name="myAxName"
iid="{...iid...}"
proxyStubClsid32="{00020424-0000-0000-C000-000000000046}"
baseInterface="{00000000-0000-0000-C000-000000000046}"
tlbid = "{...tlbid...}" />
</assembly>
The id are taken from oleView.exe: File->View TypeLib generated file.
I hope it will help you to start digging your specific needs.
Atara
|
|
|
|
|
or, you can use only one manifest file, e.g:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" >
<assemblyIdentity type="win32" name="myProg.exe" version="1.0.0.0" />
<file name="file1.ocx">
<typelib tlbid="{...}" version="1.0" helpdir="" />
<comClass clsid="{...}" tlbid="{...}" threadingModel="Apartment" />
</file>
<file name="file2.ocx">
...
</file>
</assembly>
Note: all *.ocx, *.dll files of the activeX should also be in the same folder, with the manifest and the exe files.
Atara
|
|
|
|
|
:->Hello all,
I want to make a vbs file that will take some data and then will redirect me to a nwe web page with the entered data as a query string,
is there any one can help me or have a ready done vbs file
Thanks alot
Hamody
|
|
|
|
|
What is a VBS file ? Do you mean a script for classic ASP, using VBScript ? I heartily recommend you use ASP.NET, unless you hate yourself. Having said that, the web development forum is for ASP questions.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
yeah i mean visual basic script file,
i want to make it as a sparated file without using visual stuodio.net
for example;
make a new text file ane write the following lines inside it:
Dim m
MsgBox "You must enter a quantity."
and then save it as ddd.vbs, then double click on it, u will see its action.
i want to make a one as this but for the purpose that i asked in my sent question
Thanks alot
Hamody
|
|
|
|
|
Well, how is this script going to be run via a web site, if it's just sitting at a random place on your hard drive ? Why does it matter than you use or don't use VS ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hellllllo,
i want to make a separate vbs file, i cannt use vs.net to run t through vs.net or i dont want to run it under html document.
please man, if u know how i can call a web page through the vbs file send t to me
Thanks alot
Hamody
|
|
|
|
|
Mohammad Daba'an wrote: i want to make a separate vbs file,
OK - this file is never going to run under .NET. It doesn't matter what you use to edit it.
Mohammad Daba'an wrote: i dont want to run it under html document.
OK, then where does the query string magically come from when you run this file. When you double click on it, how does it relate to a URL at all ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Dear There,
ok, for the editting, I will use notepad to write the vbs file,
i just need now the code that i can use to call a url, eg, www.yahoo.com
by running this vbs file
Thanks alot
Hamody
|
|
|
|
|
Oh, I see. You just want to launch a URL, and create a query string. I thought you wanted to process one.
I'm not sure, but I know that in C++ and C#, the code to run a program will run the default browser and open a URL, if you pass it a URL.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
ok dear, u now understand 80% of what i want,
in asp.net when i want to go to another page i put (response.redirect("........"))
i want to know what is the code to open a url when i click on button for example in using vbs,
i willnt use asp.net, the example i sent u is on vbs, i will make a vbs file that when i open it it will appear an input box inside it and it has 2 button, ok and cancel, when i fill the url and press ok it will open an IE page and display the url i entered.
i want the code that will call the entered url, hope u understand me now
Thanks alot
Hamody
|
|
|
|
|
Yep, I understand. We've been discussing this for 4 hours. It took me 30 seconds to find how to open a web page with VBS, via a simple google search
set Window = CreateObject("InternetExplorer.Application") Window.RegisterAsBrowser = True
Window.Navigate("www.microsoft.com")
Window.MenuBar = True
Window.ToolBar = True
Window.AddressBar = True
Window.StatusBar = True
Window.FullScreen = False
Window.Resizable = True
Window.Visible = True
Window.Width = 850
Window.Height = 720
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
man thank u for the time u spent with me,
man we r nt all the same, u have 2 b better to help the 1s like me.
tell me, for ur search on google, what is the text u put on the search box to get this codes n a short time,
man :-> am still new with vbs, i just started learning t since yesterday ...
thanks a lot tooooooo much for ur help
Thanks alot
Hamody
|
|
|
|
|
I typed in 'vb script open web page'
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi
dear
I am very new to vb.net and here too...Please help me in understanding vb.net
I need help ..in regards with database programing
I am working on an assignment . as a too i am using vb.net and microsoft access.
Please advise me how to connect database created in microsoft access using vb.net
m.adil.farooq
mcs & acca
adil-farooq@maktoob.com
|
|
|
|
|
|
If you want to become a programmer, you need to learn how to use some high level and complicated tools. Number one tool in your arsenal is right here[^]
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
|
Thanks.
m.adil.farooq
mcs & acca
adil-farooq@maktoob.com
|
|
|
|
|
Private Sub btn_pull_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_pull.Click
Const gRemoteProvider = "Provider=SQLOLEDB.1;Persist Security Info=False; " & _
"User ID=dmspda;Password=dmspda;Initial Catalog=dmspda;Data Source=INSPIRON6000"
Const gInternetURL = "HTTP://192.168.1.3/Sync/SSCESA30.DLL"
Const gInternetLogin = "INSPIRON6000\IUSR_INSPIRON6000"
Const gInternetPwd = "1234"
Dim rda As SqlCeRemoteDataAccess
rda = New SqlCeRemoteDataAccess
rda.LocalConnectionString = "Data Source=\My Documents\pda.sdf"
rda.InternetUrl = gInternetURL
rda.InternetLogin = gInternetLogin
rda.InternetPassword = gInternetPwd
rda.Pull("pda_uom", "Select * from pda_uom", gRemoteProvider, RdaTrackOption.TrackingOn)
End Sub
Have been tried to setting a lot of time but get the error message:
System.Data.SqlServerCe.SqlCeException was unhandled
HResult=-2147467259
Message="An error has occurred on the computer running IIS. Try restarting the IIS server."
NativeError=28022
Source="Microsoft SQL Server 2005 Mobile Edition"
StackTrace:
at System.Data.SqlServerCe.NativeMethods.CheckHRESULT()
at System.Data.SqlServerCe.SqlCeRemoteDataAccess.Pull()
at PDA2007.PULLPUSH.btn_pull_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at PDA2007.PULLPUSH.Main()
Development PC:
* Windows XP SP2
* IIS 5.1
* SQL 2005 Express Edition
* Visual Basic 2005
* .Net 2CF
Device:
* SQL Mobile 2005
* .NET 2CF
* Window Mobile 5 OS
Everything follow instruction, but still fail to do PULL method.
Anybody meet same problem ?
xiaoyTan
|
|
|
|
|
Hi, currently I'm suing visual studio 2005 professional trail edition. Now the trail period is nearly expire, and I want to continue use it. I found an upgrade button in the about dialog box but when i click on it it load an internet explorer. I do not have an internet connection connection at home. So I would like to know are there any method that I could convert my trail edition into a full functioning edition? Do I have to purchase any additional software? Or i need to uninstall it and reinstall the full functioning version? Please suggest me...
|
|
|
|
|
If you do not have an internet connection then you will have to buy the software from either a retailer or ...online.
Not sure if you would qualify but www.academicsuperstore.com has great buys on the programming software if you are part of an educational instituion (student, faculty, etc). I save a few hundred dollars on the purchase of my programming software through them. If you don't qualify then you can always use a standard web store like amazon.com.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|