msdn

cl.exe not finding any standard include file

大憨熊 提交于 2019-12-03 09:42:04
I found this sample code on the msdn library #include <iostream> int main() { std::cout << "This is a native C++ program." << std::endl; return 0; } from How to Compile a Native C++ Program From the Command Line I store this code in file.cpp I then go to the command prompt and type this The output is as follows: Current Path> cl /EHsc file.cpp Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. file.cpp file.cpp(1) : fatal error C1034: iostream: no include path set I have the path variable set to the mirosoft

How to get the full path for USN journal query?

回眸只為那壹抹淺笑 提交于 2019-12-03 08:51:22
I am trying to go through the example on MSDN ( https://msdn.microsoft.com/en-us/library/windows/desktop/aa365736%28v=vs.85%29.aspx ) on how to query USN journal in order to trace file changes on a NTFS drive. The example code works well. However, in this example code, the USN_RECORD structure only returns me a file reference number and the file name. It does not return me the full path of the file. Does anyone have any idea how to query USN journal to return a full path? Or there is a way to get the full path from file reference number? Thanks. Harry Johnston The ParentFileReferenceNumber

Why code snippet in VB is more featured than in C#?

故事扮演 提交于 2019-12-03 07:03:06
As I read http://msdn.microsoft.com/en-us/library/ms165394.aspx : For VB: Inside the Snippet element, add the References element and all of the required child elements that add a reference to the project when the snippet is inserted. For C# Visual C# code snippets to do not support the References section, so a reference to System.Windows.Forms.dll must be added to the project manually What fundamental reason prevents C# to support References like VB ? Update: I saw this posted http://visualstudiogallery.msdn.microsoft.com/en-us/dc06b54c-b6c4-4cf5-8203-a09c6979e881 But it isn't even as full

Where to download vcredist?

白昼怎懂夜的黑 提交于 2019-12-02 18:24:51
I feel a little stupid asking this question, but I hope that this might be helpful to others as well. Background: We/I are developing some software with Visual Studio 2008 SP1 (VC9) . We would like to provide the vcredist along the software on the cd. Now, I am used to ask google "download vcredist 2008 sp1" and usually it leads me to the following (also bookmarked) web pages: https://www.microsoft.com/en-us/download/details.aspx?id=5582 (32 bit) https://www.microsoft.com/en-us/download/details.aspx?id=2092 (64 bit) I think I have downloaded different versions (9.0.30729. 01 and later 9.0

Playing a Video (MSDN Tutorial)

纵饮孤独 提交于 2019-12-02 18:07:27
问题 When trying the example on http://msdn.microsoft.com/en-us/library/dd904198(v=XNAGameStudio.40).aspx the program crashes on Line 69: " player.Play(video); " error message: "An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xna.Framework.dll Additional information: An unexpected error has occurred." I did not change a single character in the code, but used exactly the files as they came out of the VideoPlayback_4_0.zip folder. (can be directly downloaded

Playing a Video (MSDN Tutorial)

让人想犯罪 __ 提交于 2019-12-02 08:00:44
When trying the example on http://msdn.microsoft.com/en-us/library/dd904198(v=XNAGameStudio.40).aspx the program crashes on Line 69: " player.Play(video); " error message: "An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xna.Framework.dll Additional information: An unexpected error has occurred." I did not change a single character in the code, but used exactly the files as they came out of the VideoPlayback_4_0.zip folder. (can be directly downloaded from http://msdn.microsoft.com/en-us/library/dd904198(v=XNAGameStudio.40).aspx ) I have read in other

Where can I get checked builds for Windows 10?

你说的曾经没有我的故事 提交于 2019-12-02 04:32:32
问题 My question is somewhat related to this question, which was for Windows 7, except that I do have an MSDN Pro subscription and I have previously fetched checked builds of Windows. I'd like to install the checked build for kernel debugging as I have done many times in the past with older Windows versions. The strange thing is that Windows 10 checked build symbols are available. Have a look: Strangely enough older versions such as Windows 7, 8 and 8.1 (also the respective server versions) have

Where can I get checked builds for Windows 10?

六眼飞鱼酱① 提交于 2019-12-02 01:31:31
My question is somewhat related to this question , which was for Windows 7, except that I do have an MSDN Pro subscription and I have previously fetched checked builds of Windows. I'd like to install the checked build for kernel debugging as I have done many times in the past with older Windows versions. The strange thing is that Windows 10 checked build symbols are available. Have a look: Strangely enough older versions such as Windows 7, 8 and 8.1 (also the respective server versions) have both symbols for the checked builds and installation media. Here the results for Windows 8 and 8.1: So

MSDN documentation error? “If the procedure is Shared, all its local variables are automatically shared. This includes the Static variables.”

牧云@^-^@ 提交于 2019-12-02 01:10:51
I was reviewing the MSDN documentation on VB.Net's little-used Static keyword for local variables. My question is not about how Static works (I personally plan to avoid using it as it seems like it could cause grief to future programmers who don't notice the side-effects.) My question is about this statement in the docs : The behavior of any local variable depends on whether it is declared in a Shared procedure. If the procedure is Shared, all its local variables are automatically shared. This includes the Static variables. There is only one copy of such a variable for the whole application.

Jquery Click Handler Not Working After Two Times

老子叫甜甜 提交于 2019-12-02 00:35:38
问题 I am facing a little strange problem. I am using bing translator (http://www.bing.com/widget/translator) and trying to customize it on my own using their API. Here is my code for testing purposes. Script: $(document).ready(function (e) { var lang; $('#changeLang a').click(function (e) { Microsoft.Translator.Widget.Translate(null, 'en', null, null, function () { lang = Microsoft.Translator.Widget.GetAutoDetectedLanguage(); alert(lang) }); document.getElementById('WidgetFloaterPanels').style