windows

code exited -1073741515 (0xc0000135) 'A dependent dll was not found'

两盒软妹~` 提交于 2021-02-20 00:24:54
问题 I am trying to write a simple program. Vs 2019, Windows 10 64bits Debug->x64 Followed [Configure Visual C++ Projects to Target 64-Bit Platforms][1] #include <windows.h> #include "res/resource.h" #include <iostream> #include <core_api/lsproject.h> #include <core_api/lslocalworkspace.h> #include <plugin_api/lsscenecontext.h> using namespace SCENE_API; using namespace std; #include <Commdlg.h> int main() { LSString filePath; std::cout << "Hello World!\n"; } Where [LSString][2] can be found here.

code exited -1073741515 (0xc0000135) 'A dependent dll was not found'

▼魔方 西西 提交于 2021-02-20 00:24:13
问题 I am trying to write a simple program. Vs 2019, Windows 10 64bits Debug->x64 Followed [Configure Visual C++ Projects to Target 64-Bit Platforms][1] #include <windows.h> #include "res/resource.h" #include <iostream> #include <core_api/lsproject.h> #include <core_api/lslocalworkspace.h> #include <plugin_api/lsscenecontext.h> using namespace SCENE_API; using namespace std; #include <Commdlg.h> int main() { LSString filePath; std::cout << "Hello World!\n"; } Where [LSString][2] can be found here.

Handling LPTSTR in golang with lxn/win

不打扰是莪最后的温柔 提交于 2021-02-19 23:57:32
问题 I have this piece of code which runs without returning err but simply doesn't do its job because it doesn't return the expected value. The idea is to use SHGetSpecialFolderPath in order to retrieve the path to the Windows directory ( C:\Windows for example). This api call has the following signature: BOOL SHGetSpecialFolderPath( HWND hwndOwner, _Out_ LPTSTR lpszPath, _In_ int csidl, _In_ BOOL fCreate ); I know it is deprecated, but still available even on current Windows versions. I have to

How would my program listen to OutputDebugString output and allow launch of multiple instances?

馋奶兔 提交于 2021-02-19 23:41:26
问题 Here's my scenario: I have a program which produces debug output with OutputDebugString() which maybe contains messages indicating bugs. I want to run this program inside daily build and automatically listen to debug output, parse it and report suspicious output. There're several examples of such listener implementations, for example this one. They all do the same - listen to a system-wide event and then read data from a file mapping. The problem is this protocol allows for only one instance

How can I show my own message and then exit setup if the current version of Windows is not supported?

回眸只為那壹抹淺笑 提交于 2021-02-19 18:23:06
问题 I have to check if the Windows version is not lower than 6.1 which is Windows 7. If it is lower I need to show my own message and then exit setup. If I write this in the [Setup] section: [Setup] MinVersion=6.1 the message that is shown is a standard one. How can I show my own message and then exit setup? 回答1: Set WindowsVersionNotSupported in [Messages] section: [Messages] WindowsVersionNotSupported=You are using an ancient version of Windows. 来源: https://stackoverflow.com/questions/60867566

How can I show my own message and then exit setup if the current version of Windows is not supported?

限于喜欢 提交于 2021-02-19 18:19:45
问题 I have to check if the Windows version is not lower than 6.1 which is Windows 7. If it is lower I need to show my own message and then exit setup. If I write this in the [Setup] section: [Setup] MinVersion=6.1 the message that is shown is a standard one. How can I show my own message and then exit setup? 回答1: Set WindowsVersionNotSupported in [Messages] section: [Messages] WindowsVersionNotSupported=You are using an ancient version of Windows. 来源: https://stackoverflow.com/questions/60867566

How can I show my own message and then exit setup if the current version of Windows is not supported?

孤者浪人 提交于 2021-02-19 18:18:51
问题 I have to check if the Windows version is not lower than 6.1 which is Windows 7. If it is lower I need to show my own message and then exit setup. If I write this in the [Setup] section: [Setup] MinVersion=6.1 the message that is shown is a standard one. How can I show my own message and then exit setup? 回答1: Set WindowsVersionNotSupported in [Messages] section: [Messages] WindowsVersionNotSupported=You are using an ancient version of Windows. 来源: https://stackoverflow.com/questions/60867566

How to prevent the TrayIcon popup to occupy the whole dispatcher thread

扶醉桌前 提交于 2021-02-19 08:12:30
问题 I have a java application that uses a JFrame as well as a TrayIcon and I added a PopupMenu to the TrayIcon . When I click on the TrayIcon the popup menu shows up, but the main frame freezes as long as the PopupMenu is visible. My first thought was that the event dispatch thread is occupied by someone. So I wrote a small example application that uses a swing worker and a progress bar. public class TrayIconTest { public static void main(String[] args) throws AWTException { JFrame frame = new

How to detect if there is any file added in a folder?

你说的曾经没有我的故事 提交于 2021-02-19 08:06:42
问题 Is it a way to detect if there is any file added in a folder? Include the sub-folder. For example, check if any text file *.txt is added in folder c:\data-files\ or its sub-folders. The folder can be shared folder of another machine too. 回答1: Perhaps you are confused on the types of events that are triggered: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher_events(v=vs.110).aspx This should work, taken from the link above and modified for your requirements: #By BigTeddy 05

How to detect if there is any file added in a folder?

此生再无相见时 提交于 2021-02-19 08:06:39
问题 Is it a way to detect if there is any file added in a folder? Include the sub-folder. For example, check if any text file *.txt is added in folder c:\data-files\ or its sub-folders. The folder can be shared folder of another machine too. 回答1: Perhaps you are confused on the types of events that are triggered: http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher_events(v=vs.110).aspx This should work, taken from the link above and modified for your requirements: #By BigTeddy 05