|
Hi,
Thanks for your answers.
However, I'm not sure you understood question 2 and 3 correctly. I meant, if I reference a DLL assembly that was compiled with version 1.1 of the framework in a 2.0 application, will the DLL run against v1.1 or v2.0?
Thanks!
|
|
|
|
|
That will depend on if your assembly was specifically built to target 1.1. By default, it targets the most recent framework version on the machine, I believe, so regardless of if it's referenced in your project, it will run under 2.0 on a 2.0 installed machine. You can set it to build so it requires 1.1, though, and then it would run under 1.1, because you told it to.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I've just been to a Microsoft MVP conference where my focus was on Whidbey sessions. Microsoft say it will be fine when they release it, and should be fine now, but they don't recommend it. I personally run it next to 2003 on a non dev machine ( a notebook I use to play around with stuff ). I would never install it on a production machine while it is in beta.
The whole point of the framework targetting is that you can explicitly target a framework version, and then it will always use that version.
I don't believe it installs 1.0 and 1.1, no. Yes, if you have a component that requires 1.1 for some reason, you'll need to install both on a client machine. If you wrote the component, run your regression tests against a build using the new compiler, and then move to 2.0. If you don't have regression tests, have some next time you build something.
You can get a licence from microsoft to distribute 2.0 code and the framework, but it requires you to replace all installs of the beta framework in the wild with the full version within months of the release date. I wouldn't do that unless you have to.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks for that info Christian!
Our release is set for October or around that time. 2.0 final should be right around the corner by then.
What's the lastest temptative release date for .NET 2.0? Do you know? Of course, "nobody knows for sure", but what are they aiming for? Can we expect it for oct/nov you think?
There's a running joke that says December 35, 2005
Have a good evening!
|
|
|
|
|
Carl Mercier wrote:
What's the lastest temptative release date for .NET 2.0? Do you know? Of course, "nobody knows for sure", but what are they aiming for? Can we expect it for oct/nov you think?
I believe they were saying we will definately have it by the end of the year. The overall thing is, Microsoft won't release it until it is ready. I am using it at home now ( I am writing code libraries on it that will compile under 1.1, so I can learn the new IDE without relying on it ), and I'd say it still needs some work, I've reported a couple of bugs.
When you install it, if you're using C#, type for and hit tab twice. That's called a code snippet, they are very cool.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I heard Beta 2 is very robust but needs speed optimization and stuff like that. What's your "bottom line" on VS.NET 2B2?
|
|
|
|
|
I've crashed it a couple of times, when I first ran it, which gave a bad impression. It's been stable for me for a while now though. It's certainly slow, and there are certainly still bugs to fix. That's why it's a beta
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
I am just starting with .NET programming and am trying to figure out the implementation of Data Access block provided by the Microsoft Enterprise Library. How does one provide connection string and access the database using the Library?
Thanks
Minu
|
|
|
|
|
There is a configuration program installed with the library. Run the configuration program and configure the application blocks you are going to use in your program. It creates entries in the app.config or web.config, and adds another config file for your application. You put both of these files in your project. Thats it.
|
|
|
|
|
Hi!
If I have a static variable in a class in a class library, will it be shared among all programs that use the same class library on the same computer, or will every program have it's own?
public class x
{
public static int y = 0;
}
BR
Christian
|
|
|
|
|
Every instance of the class will have it's own value.
What are you trying to do?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Oops! Hadn't had my Coke yet!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Static variables are static within their appdomains. So two appdomains within the same process can have two different values.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
It is true, but there is a way to modify such behavior.
If you mark your variable with ThreadStaticAttribute then this variable will be unique for thread.
Best regards
Sergey
|
|
|
|
|
Every program that is running on your computer has its own Process. The operating system creates the process which your program will run. Each process has its own stack and heap and depending on how many threads you are running, and the operating system every thread in your program will have its own stack. This is true no matter what DLLs are being used by your program. DLLs or shared libraries do not have their own stack or heap.
|
|
|
|
|
Does anyone know how to send an object through TCP Socket?
Or how can I convert an object to a byte array in .NET Compact Framework?
Thanks a lot!!!
|
|
|
|
|
Try .Net Remoting (look it up on msdn and there are lots of books). The object must be serilizable first so don't try to move a datatable or a hashtable.
|
|
|
|
|
But if I am using .NET Compact Framework, how can I do so? It is because there is no .NET remoting in .NET Compact Framework. Thanks a lot for your reply
|
|
|
|
|
You can use binary serialization to write the object out as a binary stream and reconstruct it at the other end.
private void Serialize(NetworkStream stream, object obj)
{
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(stream, obj);
}
private object Deserialize(NetworkStream stream)
{
BinaryFormatter formatter = new BinaryFormatter();
return (YourTypeHere) formatter.Deserialize(stream);
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
thanks so much. But there is no binary serializable class in .NET compact framework, it only available in .NET framework.
anyway, really thanks a lot!
|
|
|
|
|
How about using System.Xml.Serialization.XmlSerializer to serialize and deserialize data? Is that available in CF?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
it is not available too. But I found from some books that seems it is related to what you suggested, the Xml Web service.
Really thanks so much!!
|
|
|
|
|
Hi i using this Sample for VB.Net
http://www.freevbcode.com/AuthorInfo.asp?AuthorID=6163
I need update for Close Connections.
API is : SetTcpEntry
Declare Function SetTcpEntry Lib "IPhlpAPI" (ByRef pTcpRow As MIB_TCPROW) As Integer
Inside Command1_Click and area With TcpTableRow, inserting this code for test :
If CStr(GetTcpPortNumber(.dwRemotePort)) = "1452" Then
MsgBox("Found")
.dwState = 12
SetTcpEntry(TcpTableRow) --> BreakPoint
End If
1452 is remote port the my Laptop connected to Game Server in my PC.
I looking using Netstat -n
This Stop in BreakPoint but not Close Connection.
ny idea or Sample Code working ?
|
|
|
|
|
Any idea how to embed an exectuable inside another executable, and then from with in your program, call the embeded exectuable with out creating another process or wrting the embed exectuable to disk?
I have a C++ program (straight C++, not managed). It has some logic and then depending on a number of conditions, ShellExecute()s another exectble file (client.exe), which happens to be a .net file. Is there anyway that I can add this client.exe file as a resource of my C++ program, and then call the beginning of the code from within the C++ program, so I wouldn't have to extract the resource or create a new process
Please help
Thanks,
Jason A. Donenfeld
PS: This is what I have now:
<br />
#define WIN32_LEAN_AND_MEAN<br />
#include<br />
#include<br />
#include<br />
<br />
#define INSTANCEMESSAGE "ShowZIM"<br />
#define WINDOW_TITLE "ZX2C4InstantMessenger"<br />
#define MUTEX_STRING "Local\\ZX2C4IM"<br />
#define FILE "client.exe"<br />
<br />
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)<br />
{<br />
if(_tcscmp(lpCmdLine,"clone"))<br />
{<br />
CreateMutex(NULL,TRUE,MUTEX_STRING);<br />
if(GetLastError()==ERROR_ALREADY_EXISTS)<br />
{<br />
SendMessage(FindWindow(NULL, WINDOW_TITLE), RegisterWindowMessage(INSTANCEMESSAGE), NULL, NULL);<br />
return 0;<br />
}<br />
}<br />
ShellExecute(NULL,NULL,FILE,lpCmdLine,NULL,SW_SHOW);<br />
return 0;<br />
}<br />
|
|
|
|