|
Hello,
I have a system with .NET 3.5/VS.NET 2008 installed, but still using only VS.NET 2005 for my projects.
Just realized my applications will not run on systems without the .NET 2.x SP1.
Any way to target the .NET 2.x without the SP1 on this machine?
The project consists of multiple libraries, mostly written in C#, but some written in mixed mode C++/CLI.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Don't know any easy way to do this. The only thing that comes in mind is to list classes/methods etc that you cannot use (things introduced in SP1) and search them throughout the project.
One way to do this is to create your own rules in FxCop that will alert if you have illegal calls. This really is not an easy way but I think it could be doable.
Mika
|
|
|
|
|
How to get source code from a dll in VB.
Its urgent .pls anyone help me.
thx in advance.
|
|
|
|
|
Actually, I just checked, and it's not urgent to us, at all.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
If it is urgent to get the sourcecode of the DLL, then contact the vendor using telephone instead of slow communication channels like email and discussion boards.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
karthigachawla wrote: Its urgent .pls
Geeze, how rude can you be? First you do a real lame subject line and second, you have an urgent problem. Very rude and frowned upon. Don't do it again.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Okay, I am posting this here because it involves both C# and C++/CLI.
First off, I am implementing a plugin system in .Net. It works fine and I am able to load classes through interfaces in an assembly then reload that specific assembly (through an appdomain). Yet, when the DLL that I am loading is a C++/CLI dll with the following code (a minor hack to allow a DLLMain in .Net)...
private class DllMain
{
public:
DllMain();
~DllMain();
};
DllMain g_DllMain;
DllMain::DllMain()
{
}
Anyway, the problem is the DllMain::DllMain() executes properly yet when it goes to registers each class it fails silently (see the code below).
public static ref class Forge<T>
{
public:
static void Register(ISmith<T> smith)
{
m_Smith = smith;
}
private:
static ISmith<T> m_Smith;
}
When I call on my C++/CLI library from the default AppDomain (without the plugin system [see the next code example]) the library works as expected.
AppDomainSetup setup = new AppDomainSetup();
setup.ShadowCopyFiles = "true";
setup.SandboxInterop = true;
setup.PrivateBinPath = "Bin/";
string domainName = input.Substring(input.LastIndexOf('\\') + 1);
domainName = domainName.Substring(0, input.LastIndexOf('.'));
domainName += " Domain";
AppDomain domain = AppDomain.CreateDomain(domainName, null, setup);
string typename = AssemblyName.GetAssemblyName(input).FullName;
typename = typename.Substring(0, typename.IndexOf(','));
typename += ".Plugin";
IPlugin plugin = (IPlugin)(domain.CreateInstanceFromAndUnwrap(input, typename));
plugin.Initialize(domain);
return plugin;
Any suggestions would be appreciated. As it is I'm banging my head against a wall, and this project is cement.
|
|
|
|
|
I'm not sure what I'm missing....
How does the last block of code relate to the middle block of code?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Sorry if I didn't make it clear.
It is the code I use to create a secondary AppDomain.
|
|
|
|
|
Since nobody else is jumping in on this...
How does that code relate to your stated problem?
Ryan Leckey wrote: // The problem is here... m_Smith stays NULL.
Seems to me (with the info given) you should be able to debug this...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello. I'm developing a Windows Mobile application using .NETCF2 and C#. I need to get the Owner Name of the phone. How can I do this via code?
Thanks in advance.
|
|
|
|
|
Well, leave the programming aside.
How did you even think that a mobile(or any machine) contains the owner name.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: How did you even think that a mobile(or any machine) contains the owner name.
I believe that's called an "assumption". That's how software development works right?
led mike
|
|
|
|
|
I don't agree that SD works on assumptions. Its okay to have a few assumptions in you requirement, but an assumpted requirement will led you no where.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi all,
I'm developing a Windows application in C#. It generates reports using ReportViewer. These reports should be printed on a dot matrix printer. However, there is a problem.
The application runs on multiple computers connected in a local network, the printer is connected to the network also. The following happens:
1 PC prints without problems
1 PC prints the document and then hangs
2 PCs crash when dot matrix printer is selected and Print is pressed
However, all PCs print on a laser printer and all PCs print on the dot matrix printer when using another application. My code is in a try-catch block but no exception is caught. Any help will be appreciated!
|
|
|
|
|
HI
I HAVE TO ADD A CUSTOM DIALOG TO THE SETUP THIS WILL TAKE THE SERVER NAME ,DATABASE NAME ,LOGIN NAME AND PASSWORD AND A LOGIN BUTTON
CAN ANY ONE TELL IS THERE A WAY TO DEVELOP A CUSTOM DIALOG IN THE SETUP
I USED THE DEFAULT DIALOGS BUT IT DOES NOT FULFILL MY REQUIREMENTS
PLEASE HELP ME OUT
REGARDS
|
|
|
|
|
Try this article...[^]
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
Can anybody tell me the best way for sending bulk data between client and server.
I have an application running on sockets. I have to add a functionality in which the server will send a huge amount of data and that data will be stored on client's local machine in a database or in some files.
I cant go to remoting option as the client can be implemented other than .net like java or something else.
Any suggestion will be appreciated.
Regards Obaid Saleem
|
|
|
|
|
You should use binary format to transport data. And if that data is too long you must pass it in chunks.
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
I wish to have a way in which i just have a dataset that i get on server by querying the database and without doing any conversion into bytes or binary, send the whole dataset to client and client catch this dataset and insert all the rows in its local database.
The number of rows can be more than 50k.
Apart from this functionality the client server communication is done in the way that server converts the message string into bytesarray and send through socket. This way is expensive for large data i think thats y i m searching for an alternative.
Do u think that just converting the large data into binary (like converting in a bytesarray) is a gud solution ???
|
|
|
|
|
osaleem wrote: the client server communication is done in the way that server converts the message string into bytesarray and send through socket. This way is expensive for large data
What form of serialization are you using?
You need to serialize the data as efficiently as possible.
Have you looked into some form of lossless compression?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Have you looked into some form of lossless compression the closest McDonalds using Google Maps?
I'm just saying.
led mike
|
|
|
|
|
Cheers![^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
What, no Filet-O-Fish
led mike
|
|
|
|
|
It's "Beef Tuesday"!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|