windows

How do I assign a literal chinese string to a wchar_t* in visual studio(c++)?

I am trying to compile the following code in my test application on windows in visual studio for C++: const wchar_t* chinese = "好久不见"; But I get the following error: error C2440: 'initializing' : cannot convert from 'const char [5]' to 'const wchar_t * I am compiling with unicode, so I am confused about this. The error goes away...

Errors using PySnmp on Windows XP

I am running a Python program on a Windows XP machine. When I run the program, I get the following error: File "C:\Python27\lib\pysnmp\smi\builder.pyt, line 230, in loadModules... pysnmp.smi.error.SmiError: MIB file "SNMPv2-MIB.py[co]" not found in search path Does anyone know how I can solve this? The file SNMPv2-MIB.py is curren...

camera application in windows form

Hello; Basically, i want to write a windows form program like any other webcam's control program in c++ for a custom camera. this camera has some API like grab pictures and etc. i have never done a camera application before, so i am a bit confused. for the "preview" function like other webcam softwares, is it like just polling the...

Search Crawling "Bot"?

I am working on a project that requires me to collect a large list of URLs to websites about certain topics. I would like to write a script that will use google to search specific terms, then save the URLs from the results to a file. How would I go about doing this? I have used a module called xgoogle, but it always returned no results. ...

Advanced Tkinter text box?

I am working on a simple messaging system, and need to add the following to a Tkinter text box widget: 1) Spell Check 2) Option To Change Font ( on selected text ) 3) Option to change font color ( on selected text ) 4) Option to Change Font Size ( on selected text ) I have used Google to try and find examples or modules I could use, ...

How to disable .NET Framework exception handling and use my own instead?

I've developed a .NET 4 software and I'm ready to send it to beta users. If an unhandled exception is thrown in the software, I would like to catch it, log it and send the logs to me. I've already implemented this functionality and it seems to be running fine when I run it in debug mode with Visual Studio. However, when I've built a rele...

common place to store files on mac and windows.

hi. am writing a java code that needs to save a file. the below code is for mac. ImageIO.write(movie_image, "jpg",new File("/Users/sathyap/Desktop/movieimages/"+fileName+".jpg")); is there a way i can give the directory structure "/Users/sathyap/Desktop/movieimages/" hardcoded that works for both mac and windows. ...

Can I set a cap on costs in Windows Azure?

I want to set up a Windows Azure account. I'm an MSDN Subscriber so I get it for "free" the first 16 months. Still, Microsoft want my credit card number just in case I go over the free limit. In theory, this means I'm writing a carte blanche to MS to bill my credit card. I want to know if anyone has been using Azure and if there's any...

Programatically unzip an AES encrypted zip file on Windows

I need to be able to unzip some AES (WinZip) encrypted zip files from within some C/C++ code on Windows. Has anybody got a way to do this? I'm hoping for either some appropriate code or a DLL I can use (with an example usage). So far my searches have proved fruitless. The commonly prescribed InfoZip libraries do not support AES encrypt...

for loop in batch file programming

I have not much knowledge in batch file programming. I like to know the working of for loop mainly. For this i think a small sample program will be helpful to me. So i want a simple program to display the first 'n' natural numbers.Any help please... ...

Flex Sockets not sending data on Windows

Hi All I really hope someone can shed some light on this. I am building a really simple Chat server/client using PHP and Flex. I have followed many tutorials and have a working server in PHP and a working client in Flex, except that if I use the client on Windows I can't send any messages. When I send a message on my Mac it goes throug...

Including a Windows DDK Header

I am writing a user-space Win32 application. However, as part of this application I need to make some DeviceIo calls to the Windows 1394 stack. The header file which contains the prototypes for these DeviceIo calls is included as part of the Windows DDK at: C:\WinDDK\7600.16385.1\inc\api\ntdd1394.h (Although the header claims to be ...

Why does using IIS7.5's Microsoft.Web.Management.dll only work in a 64bit process?

I'm writing some code to permit users to remotely manage IIS7. Under the bonnet this adds authorisation rules to c:\windows\system32\inetsrv\config\administration.config under the following config section: system.webServer/management/authorization/authorizationRules I'm using the Microsoft.Web.Administration assembly and namespace ...

Run a WPF Application as a Windows Service

Hello We are developing a Windows Presentation Foundation Application that we would like to be able run as a Windows Service. Anyone done something like that? Is it possible? We don't need to interact with the Desktop or any GUI, it would just be nice to have one App that we can run with a GUI, from the Command Line (that works) or as...

cakephp-mssql integration:how does it works

I am newbie in cakephp world when i am trying to configure cakephp with ms-sql, I am not able to connect to database. php-mssql configuration is working fine for me( though for that i uses ADODB connection ) . But nothing worked for cakephp. I searched a lot on google but none of the ways are working for me. Thanks, Ankur ...

Drawing a system-like cursor, top-most, anywhere

I need to draw a system-like cursor that I simply can control the position of. In other words, I need to draw a transparent image that looks just like the system cursor and I need it to be rendered on top of all other windows. I've tried multiple approaches, but they all seem to have some downside. I've figured out that I can load the c...

How to open and write/read to a USB CDC "serial" device on Windows, Linux, OS X?

I've got an Atmel AVR A90USBxxxx device that I have configured to "talk USB" via CDC. It's designed to take input from a Host computer, running Windows, Linux, or OS X. I'm under the impression that Linux and OS X will immediately recognize this CDC device, and with a simple .inf a Windows machine can be told my VID/PID should be opene...

Calling cxfreezed exe of a python script as an independent process in windows

In windows i m trying to create new process and got stuck while spawning an independent process using win32process.CreateProcess I have freeze my python script using cxfreeze to make .exe. By using following command i tried to create a new process which would do some tasks. si = win32process.STARTUPINFO() details = win32process.Create...

Can I pass dynamic parameters to a console app from a scheduled task?

In perfmon on Vista and up you can trigger a scheduled task when a performance counter gets to high or low. From the perfmon end I can add task arguments. When I create the task through task scheduler I cannot find any way to work with these parameters or to pass them on to the console app the task triggers. Am I missing something? I...

Launching a website via windows commandline

I have a program launching a website via the following command. cmd "start /max http://url.com" When launching a website via this method it uses the default browser with its default settings for opening a new window. for example, firefox and IE will open the window inside the tab of an existing window if they are set to do so. I hav...