Questions tagged [windows]
80519 questions
1
votes
1
answer
1.6k
Views
How to Use Ninject with MVVM Light
I am trying to replace SimpleIoc with Ninject 3 in a WP7 application. So far I have Portable.CommonServiceLocator.NinjectAdapter in my app and it contains a service locator but everytime I try to use, my app crashes so I must be missing something.
Simple Ioc way
using GalaSoft.MvvmLight;
using GalaS...
1
votes
2
answer
11k
Views
IIS web.config enable rewrite rules
I am trying to remove the extension .php from the url, so that mysite.com/home.php can work as mysite.com/home.
I am hosting my site on 1and1.com and I asked them if the Rewrite engine was turned on, and they said that for the windows server running IIS 7.5 that it is not turned on and that I could...
1
votes
1
answer
1.4k
Views
Can I check if memory block is readable without raising exception with C++?
I need the following for the exception handler in C++ code. Say, I have the following code block:
void myFunction(LPCTSTR pStr, int ncbNumCharsInStr)
{
__try
{
//Do work with 'pStr'
}
__except(1)
{
//Catch all
//But here I need to log `pStr` into event log
//For that I don't want to raise another ex...
1
votes
1
answer
1.4k
Views
Using Derby EmbeddedDriver in Netbeans
I'm having troubl using Derby in a netbeans project on Windows. I've just downloaded and configured Derby and set the CLASSPATH variable to
C:\Apache\db-derby-10.10.1.1-bin\lib\derby.jar;C:\Apache\db-derby-10.10.1.1-bin\lib\derbytools.jar;
When I run the command
java org.apache.derby.tools.sysinfo
e...
1
votes
3
answer
3.3k
Views
Add sequence prefix to file names
I want to rename multiple files from the command line (I am using windows).
before rename:
fileA.txt
fileB.txt
fileC.txt
after rename:
1_fileA.txt
2_fileB.txt
3_fileC.txt
by the way , even that I am using windows but I have tools like sed,grep,awk...
but I cant find a way to use them
1
votes
1
answer
300
Views
How to skip a bootstrapper or ignore fail in Windows 8?
I have a WiX installer and a number of bootstrappers. We recently added SQL LocalDB support and found we needed to package .Net 4.0.2 to get it to work. I am now testing on Windows 8, and find that this patch fails and isn't actually needed for this OS.
However, my installer fails because .Net 4.0.2...
1
votes
3
answer
82
Views
What's the simplest way to write a program/script to remove the same string from the beginning of a bunch of file names? [closed]
I have a bunch of mp3's that all have a long title, followed by "part 3" or "part 4", etc. So it's like "aasasdfjklakjsdf - part 3" and "aasasdfjklakjsdf - part 4" and "aasasdfjklakjsdf - part 5" and so on.
I have over 100 of these and I would like to simply remove the "aasasdfjklakjsdf - " part fro...
1
votes
1
answer
1k
Views
Git instaweb on windows? got a error
Is it possible to use instaweb on windows?
I have a bare repository at D:/myrepo and I want to use instaweb to see it like
this
I have tried this command
git instaweb --httpd=webrick
But I got this error
git: 'instaweb' is not a git command. See 'git --help'.
Thanks in advance.
2
votes
0
answer
21
Views
How to debug a Windows kernel driver properly?
I'm trying to set up the environment of Windows VM for debugging a kernel driver.
I created a sample of kernel driver in Visual Studio 2017. File->New Project->Kernel Mode Driver (basic project; just for testing - autogenerated trace macro, required procedures, etc.) and want to test it on the targe...
1
votes
1
answer
3.3k
Views
Get radio button value [INNO SETUP]
I am trying to create a new window at Inno Setup. In this window :
There should be 5 radio button
User must select only one of this choice
When the user click the next button I have to get and save the value of the radio button (on somewhere ?) and give this value to the batch file(which will run) w...
1
votes
2
answer
2.6k
Views
Are AUMID's (Application User Model ID's) unique?
For example, the free app 3D Builder (for Windows 8.1) has an AUMID of "Microsoft.3DBuilder_8wekyb3d8bbwe!App". I obtained this value from the registry. Is it unique or static?
If you need more information please let me know.
1
votes
2
answer
3.8k
Views
creating vbscript to change defualt wallpaper on win7home machines
Need help making this script true. i beleave the first part is done file, but registry needs to be reflected from information 4-8 thank you.
1 'this vbscript should be named DefualtWallpaper.vbs
2 'copy this file to a folder.
3 'cat.jpg image should be in same folder as vbscript.
dim filesys
set fil...
1
votes
2
answer
1.1k
Views
How to get CPU clock cycles used by process in kernel mode on windows?
As the title suggests I'm interested in obtaining CPU clock cycles used by a process in kernel mode only. I know there is an API called "QueryProcessCycleTime" which returns the CPU clock
cycles used by the threads of the process. But this value includes cycles spent in both user mode and kernel mod...
1
votes
3
answer
1.9k
Views
batch script to set java homepath/path - only add to path if not already contains
I've wroten a script to set java homepath/path to use for switching between different versions of java.
I want only want to set path if it doesn't already contains the location string to java's bin folder. As it is now, it adds to path multiple times if i run the script multiple times. How can i acc...
1
votes
1
answer
3.2k
Views
Visual Studio 2013 Designer View not showing the UI Elements
I started facing the weird problem recently on my new laptop.
I installed a fresh copy of Windows 8.1 and then Visual Studio Ultimate 2013.
It worked fine for the first few hours, but the next time I opened it, it did not show the UI elements in the XAML Designer view. There's no error, the XAML cod...
1
votes
1
answer
190
Views
Can I write Windows phone 8 apps/games with C (not C++)?
I absolutely love C language, so I want to learn programming Windows phone 8 with it. Does Microsoft support C language (I don't like C++, so please don't include it here)? If not, do you know any mobile platform which supports C. Also please don't include iOS here because I don't have enough money...
1
votes
2
answer
853
Views
How to get the button text of dynamically created button in Windows Phone 8 C#
In my windows phone application I have created buttons dynamically like below:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Ph...
1
votes
1
answer
130
Views
Why does this command fail to print the correct exit code of a Python command?
In a cmd.exe window, when I run python -c "exit(12)" and then run echo %errorlevel%, it prints 12. After that, when I run python -c "exit(13)" & echo %errorlevel%, it prints 12.
Why does the second command fail to print the correct exit code?
2
votes
0
answer
25
Views
Internal speaker under Windows 10
since Windows 7 the "Beep" function from Windows API has been changed to make the sound come from the default audio device instead of the internal audio speaker; but the speaker output in motherboards that still have it should still be usable by past standards.
Is there any way to access the motherb...
0
votes
0
answer
49
Views
Can a shell namespace extension displaying a form receive/pass files to IFileDialogs?
I'd like to show a shell namespace extension in the new (since Windows Vista) IFileOpenDialog and IFileSaveDialog.
These dialogs can apparently display a custom form like the built-in Homegroup screen:
On this form I'd like to show internal files stored in a database (with various other options).
My...
0
votes
0
answer
2
Views
SSH tectia, how to run batch commands?
I have tectia ssh server in a windows environment.
When I use sftpg3 -B cmd.txt [email protected] that works fine. The only problem is that it doesnt let me execute files remotely, it only lets me move files. It reads the commands from cmd.txt but since I cant execute anything it ignores the commands....
0
votes
0
answer
3
Views
Coding through remote, ssh xlaunch, windows 10 subsystem
Specifically, I'm trying to connect to a remote server through ssh and I've been doing:
ssh -Y [email protected]
I'm trying to have gui apps appear on my host machine. The reason I want to do this is I want to be able to write code through the windows subsystem at home then test it through ssh on lab...
0
votes
0
answer
7
Views
Remote printer discovery via Windows API
In a Windows network where each computer runs an SCCM client, is there any way of discovering and listing the Printer objects available to one machine, via an API call from another?
Can this be done via SCCM, Powershell, or any REST library?
0
votes
0
answer
6
Views
Excel stops running protected workbook, runs fine if unlocking it
I have a tool, which uses VBA.
As the tool has company secrets, the project is password protected to avoid the info getting into the wrong hands (to some extent). Therefore, as soon as anyone wants to "view code", they have to put in the password.
The tool has a simple GUI, which just loads values f...
1
votes
2
answer
1.1k
Views
C# Store app check if picture in URL is available [duplicate]
This question already has an answer here:
can I check if a file exists at a URL?
8 answers
I am making a C# store app which contains pictures. I get the pictures from a website for example: http://www.gravatar.com/avatar/6810d91caff032b202c50701dd3af745?d=identicon&r=PG
I have 2 images, 1 is an ima...
1
votes
2
answer
1.5k
Views
Pyinstaller scrapy error:
After installing all dependencies for scrapy on windows 32bit. I've tried to build an executable from my scrapy spider. Spider script "runspider.py" works ok when running as "python runspider.py"
Building executable "pyinstaller --onefile runspider.py":
C:\Users\username\Documents\scrapyexe>pyinsta...
1
votes
1
answer
602
Views
Multiple database handling in cscope
I have the following problem. I have a directory with project, let's assume:
C:\projects\handler
I also have a library that this project uses:
C:\projects\core_library
I use cscope to create the databases:
C:\projects\handler>C:\tools\cscope\cscope -R
C:\projects\core_library>C:\tools\cscope\cscope...
1
votes
1
answer
940
Views
What are the different between “Windows.Media.SpeechSynthesis” and “System.Speech.Synthesis”?
I'm trying t o determined which of the two APIs have more features to do text-to-speech in a pro application developed in C#.
OS is not an issues here, just how of the two namespaces offer more features, quality voices and stability.
Have any body master both tech and could tell me about the differe...
1
votes
3
answer
3.5k
Views
MinGW: C++ Compiler cannot create executables
I am trying to compile an old C++ code using MinGW om windows 7 (./configure , make ..etc. )
but something goes wrong. I am so sorry if my question is silly but I'm still a beginer!
No similar error details in other posts. please, any help?
1
votes
3
answer
2.4k
Views
How to enable Kernel Traces in WinDBg
I have already referred to this post:
But didn't help.
Issuing
ed Kd_DEFAULT_Mask 8
didn't cause any change. and I don't know how to add a DWORD here
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter called DEFAULT with a value of 8, Because I can't see Debug...
1
votes
2
answer
183
Views
Recieving error 80004005 on COM dll registration
I have a Delphi COM dll which works perfectly on several machines. However when I try to register it on one Windows 7 box I get the following error
DllRegisterServer failed with error code 0x80004005
I have tried the obvious solutions around ensuring that the correct supporting libraries are regist...
1
votes
1
answer
1.4k
Views
Is there any git bash with nice interface for Windows? [closed]
Recently started git in bash, after understanding the basics of code mode, but found it feeling bogus using git with a command prompt-like interface of Windows.
I'm wondering is there any easy way I can change the default interface to something cool! What I can most is to use the "Properties" menu a...
1
votes
3
answer
1.7k
Views
What is the difference between IntegratedWindowsAuthentication vs Negotiate?
When setting up my owin self hosted projected I want to set it up to use authentication using windows domain. As I understand this is performed through a negotiate protocol where it tries Kerberos and fails back to NTLM if unavailable. I looked online and the code snippet looks like this
public void...
1
votes
2
answer
4.4k
Views
Saving an Excel File as PDF on both Windows and Mac
I have created a macro to export my sheet as a PDF however some users in the company use Mac OS. When these users attempt to save, it gives them an error. How do I allow both Win and Mac users to use the same PDF export?
Here is my current code:
Sub CreatePDF()
Dim wksSheet As Worksheet
Set wksShe...
0
votes
0
answer
6
Views
Allow off-screen touches with TouchInjection windows 8+ api?
I have a situation where I need to embed some 3rd party closed-source Unity applications into our own. I'm injecting a DLL which creates a DX11 shared texture from their swapchain. This part works and it's done.
Additionally I want to hide the form wrapping the Unity app (you can set their parent ha...
0
votes
0
answer
4
Views
IBM UCD - Download Artifacts - Directory Offset
I am using IBM UCD for deploy.
while configuring the directory offset of the download artifacts, which is one of the steps under processes.
However, I am having a hard time in changing the path to another drive.
For example , if my working directory is C:/program files/agents/workspace/dir1
If I pu...
1
votes
0
answer
11
Views
C# SSL stream - certificate error after system reboot
I'm building a C# SSL software, and it worked just fine when I first generated certificate using openssl, and eveything was good, until I reebooted my PC and ran the program again. In the line:
clientSslStream.AuthenticateAsServer(serverCert,clientCertificateRequired: false, checkCertificateRevocati...
1
votes
3
answer
3.2k
Views
ADFS 3.0 oAuth oauth2/token -> no registered protocol
I'm trying to use the oAuth functionality of adfs but are struggling to get an access token out of it.
The setup is a Windows Server 2012 R2 Preview Edition installed in a virtualbox vm.
I am able to get an access_code by issuing the following:
https://asdf.bla.dev/adfs/oauth2/authorize?response_ty...
1
votes
1
answer
685
Views
Does not contain a definition for 'RootVisual' in Windows Phone 8.1
In this code "RootVisual" is Not Existing in WP8.1
(Application.Current.RootVisual as
PhoneApplicationFrame).Navigate(new Uri("/FeedBackMessageBox.xaml",
UriKind.Relative));
1
votes
1
answer
679
Views
Understanding NDIS virtual miniport driver
I have built and installed the netvmini on windows 7/8. And Im able to ping from one IP to the other.
But I have some doubts with respect to its functionality which are listed below:
In which layer does the driver get placed w.r.t OSI layers.
Does the driver route the packets w.r.t the IP addresses...