|
Yes, you specify the target platform for the compiler, so the actual hardware doing the compile doesn't matter.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
As Luc said, when you compile you can specify the target platform (64-bit or 32-bit) just like you choose Release or Debug configurations. The actual hardware doing the compile doesn't matter in this case.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hello everyone,
I've created a WinForms app that uses .NET remoting to communicate with a Windows Service (also custom created using .NET). It works great on every operating system I've tried it on. On one particular Server 2003 Standard system though, the Remoting doesn't work. The client application and service are both running but the communication doesn't seem to work.
I've tried doing the remoting with a TCP connection (tried both ports 60001 and 9250) and an HTTP connection (port 1077) and no luck. The software gave a .NET CLR error and wouldn't run when in HTTP mode.
All I know about the server (it's a customer's) is that it's running Citrix (update: just a Citrix client).
Anyone have any ideas?
Thanks in advance!
-- modified at 15:38 Wednesday 11th July, 2007
|
|
|
|
|
|
Turns out the problem had nothing to do with remoting. I'm new to remoting and didn't realize that unhandled exceptions from the server end propogate through. My service accesses the Performance Counters in Windows and for some reason they don't exist on the clients computer (really strange).
|
|
|
|
|
I can integrate document help with MSDN Library Visual Studio 2005?
phamvudo
|
|
|
|
|
You mean intergrate the MSDN with Visual Studio? Or intergrate your own help with the MSDN?
|
|
|
|
|
I mean integrate my help with MSDN.
phamvudo
|
|
|
|
|
|
If you mean integrate your own help in MSDN then you can
|
|
|
|
|
Hi
I want to set some properties at run time in .net. For example if i want to set textbox's back color then i have to write TextBox1.BackColor = color.red
but i want to assign this color from some variable or config file. so what should i do? another example like i want to set alignment of gridcolom so i have to write col.alignment = HorizontalAlignment.left but i want to assign from some variable so what should i do?
i tried it by assiging "color.red" in string variable and then tried to ctype in color but it didnt allow for casting.
Can anyone advice me please?
Thanks in Advance
Anand
|
|
|
|
|
Set up the config file, read it, and set the property based on what you read.
Aaanand wrote: i tried it by assiging "color.red" in string variable and then tried to ctype in color but it didnt allow for casting.
OK - if you just did 'red' it would probably work.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Rather then storing the value in a string, why dont you use the Color object. You can store this value as an application/session variable.
example:
Color c = Color.Red;
//Store as applicationVariable
Application.Add("defaultColor", c);
//Store as sessionVariable
Session.Add("defaultColor", c);
//Retreive ApplicationVariable
Color c =(Color)Application["defaultColor"];
//Retreive SessionVariable
Color c = (Color)Session["defaultColor"];
Hope this helps.
|
|
|
|
|
Can somebody tell me the declaration for the
winsock2.0 function WSAAccept with callback function in C# .net
|
|
|
|
|
The .NET equivalent is to use the Socket.BeginAccept method. The TcpListener class also offers BeginAcceptSocket and BeginAcceptTcpClient .
|
|
|
|
|
Hi,
I have developed a windows application and published that. In my desktop that works fine, but when i try to access that from another machine in my desktop it throws an error that "unable to connect to the remote server". I think the error occurs when the application tries to connect to the database. The connection string i specified is...
"Data Source=MyServer;Initial Catalog=Mydatabase; Persist Security Info=True;User ID=sa;pwd=MyPassword"; ...
Should i add something or customise?
Please guide me to solve this....
Thanks in advance
Sebastian
|
|
|
|
|
*wiggles his fingers and stares vacently into space*
My psychic powers are telling me your using Sql Server 2005 Express Edition?
|
|
|
|
|
How to handle the user authentication in CAB? I know that there is authentication service included in CAB but i don't know how to use to match my requirement.
Suppose: There are two types of users called ("Normaluser" and "Adminuser") in my System. There are 5 different modules (M1, M2, M3, M4 and M5) in System. The adminuser is allowed to access every modules and the Normaluser is able to access only 3 modules (M1, M2 and M3).
The problem is that the Adminuser log in to the system so that all 5 modules are loaded. then, he/she log out the system without shutting down the application. Then, the Normaluser log in to the Sytem. At that time, he/she is able to access all the modules. If we stop and restart the application then it works. I think i might need to unload the module when one user log out from the system.
I'd like to know how to do that.
Thanks in advance.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
I was doing some experiments on this issue during these days. I realized that it's so hard to unload the loaded dll(s) from current domain. In order to unload the dll (assembly) from current domain, we have to shift this dll to another domain and unload the whole new domain.. loading dll to different domain(s) is okay as long as they dont have visual. But modules have a lot of visual things
Loading modules on deamand:
http://staff.southworks.net/blogs/matiaswoloski/archive/2006/02/26/CABModulesOnDemand.aspx
About restarting application
http://www.codeplex.com/smartclient/Thread/View.aspx?ThreadId=4786
Logout generally:
http://www.codeplex.com/smartclient/Thread/View.aspx?ThreadId=10140
Tell us more about CAB Modules isolation requirements
http://blogs.msdn.com/eugeniop/archive/2006/09/21/764953.aspx
It seems like the limitation of winform. The login/logout things is very common in practical project and I think it is a must to have in every applications. (Why do we need to shut down the application to change the logged-in users? )
However, I'm thinking another strategy to achieve this goal.
I created one small project in the same way mentioned in the sample ("08 ObjectBuilder with CAB" from Hand-on Lab ).
I made some changes (which is in bold) as following in BuildUp method.
public override object BuildUp(IBuilderContext context, Type t, object existing, string id)<br />
{<br />
if (existing == null)<br />
{<br />
return base.BuildUp(context, t, existing, id);<br />
}<br />
bool hideControl = false;<br />
Type targetType = existing.GetType();<br />
foreach (AuthorizationAttribute attr in<br />
targetType.GetCustomAttributes(typeof(AuthorizationAttribute), true))<br />
{<br />
string role = attr.Role;<br />
if (!Thread.CurrentPrincipal.IsInRole(role)) <br />
hideControl = true;<br />
<br />
}<br />
if (hideControl)<br />
{<br />
UserControl ctrl = existing as UserControl; <br />
<br />
if (ctrl != null)<br />
ctrl.Visible = false;
}<br />
<br />
foreach (PropertyInfo propertyInfo in targetType.GetProperties())<br />
{<br />
CheckAuthorization(context, existing, propertyInfo);<br />
}<br />
<br />
return base.BuildUp(context, t, existing, id);<br />
}
And put the [Authorization(Role = "manager")] in one of usercontrol of one module. The idea is that showing/hiding usercontrol based on User Level. If normal user log on to the System, the control that I mark should not be shown. But it doesn't work. If I set ctrl.Enabled = false; instead of ctrl.Visible = false; then it works. but it doesn't work with visible property.
|
|
|
|
|
hi my friends
my english is weak, so i use simple sentences
I emergency need some code of vb.net
i want to find my harddisk serial number
i want to find my mainboard serial number
i want to find my cpu serial number
serial number or id , not difrent.
if u have
please insert them here
or send to me Golab_omidreza@yahoo.com
thanks
|
|
|
|
|
|
thank you Michael
|
|
|
|
|
I noticed that some xml files and pdb files are generated for dll file.
Suppose: I have one dll called "Microsoft.Practices.CompositeUI" in bin folder. Microsoft.Practices.CompositeUI.xml and Microsoft.Practices.CompositeUI.pdb are automatically generated when I build the application.
What are those file? What is the use of those files?
Thanks..
|
|
|
|
|
The Microsoft.Practices.CompositeUI.xml file is the compiler generated XML documentation file. The contents of this file come from the XML comments in the source code.
The Microsoft.Practices.CompositeUI.pdb file is the debugging symbol file, also generated by the compiler. It contains the debugging "symbols" (information) needed by the debugger to be able to match the compiled binary to the source code when you are debugging.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Okay. I got it. Thanks a lot..
|
|
|
|