Why is the parameter on UpdClient.Receive a ref parameter, instead of simply out?
According to the MSDN page, the parameter is filled with the address that the datagram was sent from. However it doesn't specify what kind of input it is used for, only output.
How do I implement "visual styles" into my GUI application?
Following the guide by msdn, I've written a manifest file, but how do I embed that into my program? My program is just pure C code (no resource files). Would I need to edit my app to use a resource file?
I'm going to be writing a small app based on the .NET SerialPort class.
Is there a generic dialog available for setting the port settings, ala baud rate, data bits, stop bit, parity bit, flow control, etc? I didn't see one in the MSDN documentation, but I would think that one exists, since that stuff doesn't change.
In books I have seen that it exists but MSDN says it does not???
What do you guys have to say on this subject???
Might load up VS later on and see if it appears in 3.5 .Net. I;m asking as some of you lot know I am lsowly revising for the exam and I don't want little nougets like this to suprise me.
TIA
I learned the range of int and long on 32 bit windows is:
signed int: -32767 to 32767
signed long: -2147483647 to 2147483647
why does the int has same range as long type as mentioned here?
http://msdn.microsoft.com/en-us/library/s3f49ktz%28VS.80%29.aspx
In C++ I am able to get the current time when my application starts I can use
time_t appStartTime = time(null);
then to find the difference in seconds from when it started I can just do the same thing, then find the difference. It looks like I should be using "System.DateTime" in C# net, but the MSDN is confusing in its explanation.
How can I use System.DateTime to find the difference in time (in seconds) between when my application starts, and the current time?
According to MSDN, an azure service can conatins any number of worker roles. According to my knowledge a worker role can be recycled at any time by Windows Azure Fabric. If it is the true, then:
Worker role should be state less OR
Worker role should persist its state to Windows Azure storage services.
But i want to make a service which conatains client data and do not want to use Azure storage service. How I can accomplish this?
How do I set Environment Variables in Visual Studio 2010?
I found this web page:
http://msdn.microsoft.com/en-us/library/ee479070.aspx
Which says:
From the Project menu, choose Properties.
In the left pane, select Configuration Properties, and then select Environment.
But when I select "Configuration Properties", there is no "Enviroment" option:
http://i67.photobucket.com/albums/h292/Athono/microsoft/newstuff.jpg
This is an example in VS 2008:
http://i21.photobucket.com/albums/b279/GrunchCan/env.jpg
But how is it done in VS 2010?
What are the new versions of CAB, mainly for WPF? What is changed? Is it the same stuff, adjusted for WPF characteristics? Does it still rely on Unity (and SCSF for the matter)?
I find Microsoft and MSDN to be very confusing sometimes ... :(
The company for which I work has an MSDN license and upgrading to TFS 2010 from 2008 is not an expensive option. However, I haven't been able to find any features that make this something neither my colleagues or me feel we need. Is anyone experienced with TFS 2010 enough to convince me that my company needs this?
I have a dlg box as the main window. After a few searches on the we I tried downloading and running the sample the source here:
http://msdn.microsoft.com/en-us/magazine/cc164067.aspx
I get a compile error:
error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CStaticLink::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
1 Cast from base to derived requires dynamic_cast or static_cast
(VS 2008)
The tooltips functionality seems to be a bit of a challenge. Any suggestions on how to get this working are much appreciated.
Back in January 2009, Dino Esposito published an article on MSDN titled "Managing Dynamic Content Delivery In Silverlight". We are considering using an approach like this for an upcoming project and were wondering if anyone had any advice on whether this is a good approach. Are there any traps or pitfalls we should look out for? We currently use Prism and would need to look at how the two would live happily together.
I'm trying to localize a Windows 8 Metro style app as described in a guide on MSDN. This worked very well so far, but now I'm trying to localize a string containing a non-breaking space which appears in a XAML file (originally as hexadecimal xml-escaped string:  ).
Just putting the above string into the Resources.resw file does not work, it appears just as  .
What do I have to do to get a non-breaking space in my localizations?
There are three possibilities, but I can't find examples:
System.Linq.Expressions.MemberAssignment
System.Linq.Expressions.MemberListBinding
System.Linq.Expressions.MemberMemberBinding
I want to write some unit tests to see if I can handle them, but I don't know how to write them except for the first one, which seems to be new Foo { Property = "value" } where Property = "value" is an expression of type MemberAssignment.
See also this MSDN article.
hi-
i'm following the instructions on how to build a custom search provider for windows federated search:
http://msdn.microsoft.com/en-us/library/dd742956(v=VS.85)
i'm returning local results of the form:
File://C:\Users\user\file.txt
however, when i perform a search, i get results that say:
"This item was blocked because of your Internet security settings".
how can i change my security settings so that federated search will allow my customer search provider to return local filesystem results?
thanks.
The MSDN documentation doesn't generally specify the assembly a namespace is in, so there's no easy way to add the necessary assembly reference.
NOTE: I am using MonoDevelop, so right-click, resolve is not an option.
I'm doing this:
http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx
But it's not working.
I have "iexplore.exe" set to 8888 (decimal mode) under MACHINE, but it's still coming up documentMode = 5.
I thought 8888 was suppose to force IE8 Standards Mode whether you have a doctype or not.
What is going on?
I have read under: Compiling Web Application Projects (http://msdn.microsoft.com/en-us/library/aa983464.aspx)
... this compilation model creates a single assembly, you can specify attributes, such as assembly name and version.
You can supply a PATH (directory name only) in the Visual Studio "Build Options".
But where can the file name for the assembly be specified?
I'm looking for a way to set a selection in a textarea in Internet Explorer. In other browsers, this works just fine:
textarea.selectionStart = start;
textarea.selectionEnd = end;
In IE, I assume I have to use createRange and adjust the selection somehow, but I cannot figure out how.
Extra bonus points for a link to a proper documentation about createRange and associated methods, MSDN isn't helping out much.
I have a C program which has a function call that is defined in windows.h (which I have included), however, when I try and compile it with gcc, I get the error:
warning: implicit declaration of function `LockWorkStation'
I looked at the MSDN documentation and I see that this function is the User32 library file, and I was wondering how I would go about linking that to my file.
So I read MSDN and Stack Overflow. I understand what the Action Delegate does in general but it is not clicking no matter how many examples I do. In general, the same goes for the idea of delegates. So here is my question. When you have a function like this:
public GetCustomers(Action<IEnumerable<Customer>,Exception> callBack)
{
}
What is this, and what should I pass to it?
Hi,
since the new SDK 1.1 is missing the tutorial for "ASPProviders", i am currently asking myself how i would implement a "azure session state provider" ( this is the path in the "old" SDK: C:\Program Files\Windows Azure SDK\v1.0\Samples\AspProviders )
Related threads:
http://stackoverflow.com/questions/1023108/how-does-microsoft-azure-handle-session-state
http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/2d1340ed-0ad0-456a-b069-aa6b85672102/
Has anyone an idea or even the old example project and could post some snippets of the config here?