windows

cannot convert parameter 1 from 'char' to 'LPCWSTR'

hi i keep getting this error: cannot convert parameter 1 from 'char' to 'LPCWSTR' int main(int argc, char argv[]) { // open port for I/O HANDLE h = CreateFile(argv[1],GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL); if(h == INVALID_HANDLE_VALUE) { PrintError("E012_Failed to open port"); can someone help? ...

Getting Application path during the installation

im deploying an application and during the installation after the user choose where to install the app i want to get that path , im in a custom action already but i dont know how to get the application path where its going to be installed ! its Windows Forms and im developing using Visual studio 2010 "C#". and im using the default depl...

Windows function ReadFile keeps returning FALSE and don't know why

It's quite a simple C code to read a file text, I've done this other times but don't know why now the ReadFile function keeps returning FALSE meaning it fails. Obviously the text file input.txt exists and the CreateFile function succeeds (or at least doen't return INVALID_HANDLE_VALUE #include <stdio.h> #include <windows.h> int main(i...

Arrow keypress not working

This are my code hope any kind souls will be kind enough to help me. Other Keys like Alphabets or Home or PgUp etc.. is working. Except for all the arrows. void AutoMove (HWND hWnd) { BOOL bWorked = FALSE; int value = 0; LPARAM lparam = (MapVirtualKey(0x025, 0) << 16) + 1; //Send to graphic screen HWND MSHWND = FindWindow ("MapleSto...

emacs on windows

I'm having some issues with rgrep/find on emacs. Any search returns 0 results, with this message: The filename, directory name, or volumn label syntax is incorrect. Grep finished with no matches found. I am using the find bundled with cygwin, so I'm curious if me entering d:/workspace is breaking because find is using cygwin for dis...

Disable network connection using batch file

I need to enable/disable network connections on windows with a batch file. ...

Windows log generator

Is there a way to generate specific Windows events? I'm currently developing a solution to get this events through WMI process, but I need all the logs Windows can generate. I know there is a way to make .net solution to write the events to the event viewer, but I don't want that. Is there a way to code or make a solution to make W...

Run HipHop PHP in Windows

I need to run HipHop PHP on a Windows based development environment. Im running Windows 7, I know the version located at facebook's repository is built for Linux, however I need to run it on Windows. Some things to consider> 1- I don't want to install a Virtual Machine, I have VMWare, but it would be terrible to install it only for tha...

Are there C++ versions of PHP's fsockopen, fread, fwrite, fclose?

Are there C++ versions of PHP's fsockopen, fread, fwrite, fclose or anything similar? I'm using Windows (MFC) and TCP if that changes anything. ...

How do you get the exact path to "My Documents"?

In C++ it's not too hard to get the full pathname to the folder that the shell calls "My Documents" in Windows XP and Windows 7 and "Documents" in Vista; see http://stackoverflow.com/questions/2414828/get-path-to-my-documents Is there a simple way to do this in Python? ...

Vista: Need to manually clear the data that tells a folder to hide file names

When I view my user folder C:\Users\cjavapro, I get icons with no filenames similar to what is shown here I use my user folder often for files that are not organized yet and I have custom folders that are not Documents or Videos or Music or Pictures. I often set to hidden the folders I don't use like Contacts and Searches and Games. Wh...

MySQL not working with php; and crashing apache when enabled

I just recently setup a fresh install of PHP, Mysql and Apache on my Windows 2003 server. Php is working fine and my Navicat MySQL browser can connect to my tables. However no matter what I do. MySQL doesn't show in phpInfo() even though I have the extensions in my ext folder. I installed PHP via the windows binary installer. Any idea wh...

Howto: Clean a mysql InnoDB storage engine?

Is it possible to clean a mysql innodb storage engine so it is not storing data from deleted tables? Or do I have to rebuild a fresh database every time? ...

What’s the correct way to build the SQLite FTS extension as a DLL?

What’s the recommended way to build the SQLite FTS3 extension as a Windows DLL? I’m having the following problem: fts3_tokenizer.obj : error LNK2005: sqlite3_api already defined in fts3.obj The macro SQLITE_EXTENSION_INIT1 is used in both fts3_tokenizer.c and fts3.c. It creates a global variable named sqlite3_api, and since this ...

IIS 5.1 not resolving Virtual Directory

I set up a Virtual Directory called 'Site'. I browse to http://localhost/Site/default.aspx, and it loads. However, when I click on anything on the page, say Page1.aspx, it goes to http://localhost/Page1.aspx instead of the expected http://localhost/Site/Page1.aspx. In the source file, the relative paths are coded as '/Page1.aspx', for e...

How can I execute an external Windows command and instantly return in Perl?

I've tried using system() with fork(), tried exec(), and still not getting what I need. I want to write a Perl script which executes, let's say, a different Perl script 5 times in a row (sending it different parameter values), but have it run concurrently. I realize I could turn my script into a .pm file and reference it but I'd prefer ...

What is crossplatform Java analog for Windows SetProcessClass?

How to set my process PriorityClass to "realtime" on windows (xp and later is in my main intrest) and its analogs on Lin? What is crossplatform Java analog for Windows SetProcessClass? ...

Newb: Update XAML Image Element During Runtime (WIndows Phone, .NET 4)

Greetings all, Thanks for reading and sharing any insights. I've created a new simple Windows Phone 7 application. I have two Image objects on the form I would like to update with various .png files. I have included the .png files into my project, and I believe I am building proper URi resources pointing to these files. Uri myImage1UR...

AHK launching a program without inheriting admin rights of the parent script in AutoHotKey?

This is a general problem of how to launch a program without inheriting the admin privileges on the installer. For this particular installer I'm using AutoHotKey, but if I know how to in general I think I might be able to figure out how to do it in my case. I know how to launch a script with Admin rights what I don't know how to do is ...

Question maybe related to windows security.

Hi, Is there any quick-to-grasp article about the concepts such as "Windows Session", "token", "Windows identity", "impersonation", "default computer account", etc. I want to know how different types of applications run on windows in different sessions with different identities. (Hope I make myself clear.) Many thanks... ...