|
Hello friends,
I have created a class library(MyClassLib). After giving sn name i registred it
to GAC with version 1.0.0.0 and 2.0.0.0
I have also added app.confg file which contains older and newer version of assembly.
when i run the program newer version get executed how can i specify to use older version.
I tried by interchaning older and newer version but it's not working
Please help me about this GAC.
Rahul Kulkarni
|
|
|
|
|
Ok by
default it always refers the latest one. But you want that it should actually use the older version.
You need to specify “bindingRedirect” in your config file. For instance
in the below case “ClassLibraryVersion” has two versions “1.1.1830.10493” and “1.0.1830.10461”
from which “1.1.1830.10493” is the recent version. But using the bindingRedirect we can specify
saying “1.0.1830.10461” is the new version. So the client will not use “1.1.1830.10493”.
<configuration>
<runtime>
<assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentassembly>
<assemblyidentity name="ClassLibraryVersion"
publickeytoken="b035c4774706cc72"
culture="neutral">
<bindingredirect oldversion="1.1.1830.10493"
newversion="1.0.1830.10461">
ok????
|
|
|
|
|
Math.Round(shortValue / intValue);
Error 1 The call is ambiguous between the following methods or properties: 'System.Math.Round(double)' and 'System.Math.Round(decimal)'
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Math.Round( ( double )shortValue / ( double )intValue );
|
|
|
|
|
Thanx again Mike
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
You're welcome. This is a basic type-relevant issue. Math cannot be taken for granted, so you probably want to heed Luc's advice if it affects your process.
|
|
|
|
|
short sVar;
sVar = sVar * 0.5;
Error 1 Cannot implicitly convert type 'double' to 'short'. An explicit conversion exists (are you missing a cast?)
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
short sVar;
sVar = sVar * ( short )0.5;
|
|
|
|
|
if you do not want to get zero all the time, use sVar=(short)(sVar*0.5);
but I prefer sVar=sVar/2;
|
|
|
|
|
Luc Pattyn wrote: but I prefer sVar=sVar/2;
Or:
sVar /= 2;
---
single minded; short sighted; long gone;
|
|
|
|
|
or sVar>>=1; Why make it obvious...
-- modified at 15:48 Thursday 17th May, 2007 because I owns
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Ummm... wouldn't that divide by four?
|
|
|
|
|
Yeah
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Thanx Mike
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
HI:
I have made an application which creates instances of word application locally and it is working fine but when i try to create intance of word application it gives me this error
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005
Anybody knows the answer.
Thanx
|
|
|
|
|
Farhan Ali wrote:
I have made an application which creates instances of word application locally and it is working fine but when i try to create intance of word application it gives me this error
What do you mean, locally?
I think this error can happen when you dont have appropriate permissions, or maybe Word is not installed at all?
Take a look at Control Panels -> Administration tool -> Component Services -> dunno somewhere you should find settings for Word DCOM model. Good luck.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Hi friends..
string str="ABC";
this means that we are assigning value to the object str of string class..right?But whn we are instantiating some class then we are assigning values to the feilds of that class(ex:Employee_1.Name="xyz",Employee_1.Id=1234,etc where Employee_1 is an object of class Employee)..thn how things are working differently for string class..I think this has to do something with user defined and predefined reference data types..
-- modified at 2:52 Wednesday 16th May, 2007
|
|
|
|
|
Rahul83 wrote: working differently
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
how..i u know plz let me knw
|
|
|
|
|
hi all,
I am developing an application, in that I want to convert a dbx file to a text file. (or I want to extract some data from that)
anybody plz suggest a solution????
Is there s any algorithms or components are available that meet my requirements????
thanking you in advance
jaz
|
|
|
|
|
What is a dbx file ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi,
thanks for ur interest
The outlook / outlook express files(folders) are stored as an *.DBX file (eg:- Inbox.DBX, Outbox.DBX)...
I want extract datas from these files ..
ie, To,CC,BCC,From,Subject,Message ... fields...
How can u do that any idea?? (Can u refer me any components or algorithms to do that ??)
Thanks
jaz
|
|
|
|
|
Try this[^]
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
str variable has the memory address of the location where "rahul" is stored.
The value assigned to a string variable is stored in the heap, and its address is stored in the stack.
|
|
|
|