visual-studio-2010

The specified file is an unrecognized or unsupported binary format

那年仲夏 提交于 2020-01-14 10:16:28
问题 I downloaded tutorial (0.3.8) from http://www.arcsynthesis.org/gltut/, then according to instruction I used premake4.exe to builld visual studio 2010 projects (premake4 vs2010) and it works fine, but when I try to run some example, I get the error message The specified file is an unrecognized or unsupported binary format can you tell me why? 回答1: I think you wrongly set the .lib project as your startUp project. Try to set your .exe project as your startUp project. In Visual studio you can set

The specified file is an unrecognized or unsupported binary format

假装没事ソ 提交于 2020-01-14 10:15:17
问题 I downloaded tutorial (0.3.8) from http://www.arcsynthesis.org/gltut/, then according to instruction I used premake4.exe to builld visual studio 2010 projects (premake4 vs2010) and it works fine, but when I try to run some example, I get the error message The specified file is an unrecognized or unsupported binary format can you tell me why? 回答1: I think you wrongly set the .lib project as your startUp project. Try to set your .exe project as your startUp project. In Visual studio you can set

Visual Studio 2010 keyboard shortcut to open context menu on document tab

不羁岁月 提交于 2020-01-14 09:45:08
问题 Is there a keyboard shortcut to show the context menu for a document tab - same as document tab right click? Note: not the same as shift + F10 which brings up the main context menu. thanks 回答1: I was looking for this thing for quite some time and I accidently opened this menu today using my keyboard. The command is "Window.ShowDockMenu". The default key binding (at least in VS 2012) is "alt + -". 回答2: What, in particular, are you looking to be able to do? By default I don't think that there

CreateFile always override the specified file

寵の児 提交于 2020-01-14 08:05:10
问题 I'm trying to log the actions made by a service I wrote using the Windows-API & C-language, so I made a log file system. The problem is that at each CreateFile call, the file is overridden instead of just opening it and write at the end of the file. Here's the code of my WriteInLogfile function : void WriteInLogFile(LPCTSTR log_string) { HANDLE hFile; DWORD dBytesWritten; if ((hFile = CreateFile(LOG_FILE_PATH, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL)) == INVALID

How can I to remove or reset the tab order in VS 2010

时光总嘲笑我的痴心妄想 提交于 2020-01-14 07:53:06
问题 I have a tab order set, but have rearranged a lot of controls, added more, removed some. So now when I click view Tab Order it show the tab oeders by cluttering the screen with tons of numbers. Is there a way to clear these and start over? I tried setting tabstop to false on the controls, hoping it would 'clear' their entries in the View Tab Order, but when I go back to view the tab order they still have numbers in them. Any assistance would be greatly appreciated. 回答1: Those numbers are the

How do I bind a jagged array of strings to a DataGrid in C#?

爱⌒轻易说出口 提交于 2020-01-14 06:30:09
问题 I have a jagged array of strings in C#. How do I bind it to a DataGrid such that I can see the contents of the array? Currently in the DataGrid, instead of the array's contents, I see a column that says "Length", "Long Length", "Rank", "SyncRoot", etc...basically, properties of the array and not the contents of the array. My code: string[][] jagged = new string [100][]; //...jagged array is populated... dataGridView1.DataSource = jagged; 回答1: Here is an example that you can try following I

VS2013 compilation for WinXP, procedure entry point could not be located

余生长醉 提交于 2020-01-14 06:05:15
问题 I had a working VS2010 C++ solution, output of which I could launch on XP and Win7 with no problems. Now I switched to VS2013 and imported the project. From that moment on, the output exe could be launched only on Win7. On XP it would give me " Error Executing Program! (5) ". Well I found this thread Since then the error I get while launching the application on XP is " The procedure entry point K32GetModuleFilenameExA could not be located in the dynamic link library KERNEL32.dll " Does it

Read Bluetooth RSSI on Windows 7/Vista/XP

*爱你&永不变心* 提交于 2020-01-14 05:28:29
问题 I need to read the RSSI of the Bluetooth link on a Windows desktop - ideally Windows 7 and XP, but would be enough Windows 7 too. From what I studied in Windows CE and Mobile, there is a method in the Microsoft Bluetooth stack API called BthReadRSSI, but for desktop I couldn't found anything yet. Does anybody have an workarround solution? 回答1: The response is that in Windows if you are using MS Bluetooth driver stack you cannot get the RSSI. This apply for Windows dekstop versions: XP, Vista

VS2010 / Code Analysis: Turn off a rule for a project without custom ruleset

南楼画角 提交于 2020-01-14 05:11:47
问题 ...any change? The scenario is this: For our company we develop a standard how code should look. This will be the MS full rule set as it looks now. For some specific projects we may want to turn off specific rules. Simply because for a specific project this is a "known exception". Example? CA1026 - while perfectly ok in most cases, there are 1-2 specific libraries we dont want to change those. We also want to avoid having a custom rule set. OTOH putting in a suppress attribute on every

How to do Linq Many to Many join with or without navigation properties

↘锁芯ラ 提交于 2020-01-14 04:36:27
问题 this question has been asked several times on stackoverflow, and I have read through atleast half a dozen of those, but I can't get my head around a simple many to many linq join query. This is my database EDMX I'm simply trying to populate a WPF datagrid with the list of students, along with each student's subjects. Now I know we can simply use navigation properties , instead of doing a join, but I have been unable to get the right result so a ( either C#/VB.net )query like var