Hi, when I first saw C#, I thought this must be some joke. I was starting with programming in C. But in C# you could just drag and drop objects, and just write event code to them. It was so simple.
Now, I still like C the most, becouse I am very attracted to the basic low level operations, and C is just next level of assembler, with few...
I have a windows forms app that is modifying some registry keys under the software section. Vista non admins are complaining that they are getting a permission error. I did what it said in this post:
http://stackoverflow.com/questions/562350/requested-registry-access-is-not-allowed
Created an app.manifest file and pasted what was sai...
Hello all. I have a script running on a remote machine. db info is stored in a configuration file. I want to be able to encrypt the password in the conf text so that no one can just read the file and gain access to the database. This is my current set up:
My conf file sensitive info is encoded with base64 module. The main script then de...
I have windows forms application with multiple forms and controls in them. I want if user has selected some text in any control of any form of my application and click on cut/copy/paste button on toolbar operation get performed accordingly.
i m using C#.net's sendkeys.send("^c") on click of copy button but it doesn't work...
OR any 1 c...
I have a file generated from windows that I have to paste into a script under linux.
My script works fine, except for the fact that at the end of every line I got a ^M char.
How can I remove it with bash?
Currently my script is:
#/bin/bash
IFS=$'\n'
for CUSTOMER in `cat exp.csv`
do
echo $CUSTOMER
done
...
Simple question here. I have a C# program which needs to stores some files onto the hard drive, but I don't need them to be anywhere useful to the end-user, only somewhere that the program can read/write from.
Is there a directory that I can reference programmatically to be my "filespace playground" - that is, that I can read/write fre...
I'm marking this as a community wiki because I'm not really looking for one complete answer. So if you feel like posting one or two things that will activate the UAC prompt instead of a comprehensive list then go ahead.
What actions in Windows will activate UAC? I'd like to avoid it as much as possible because my application doesn't n...
I have a script to delete all subfolders and files in a folder:
FOR /D %%i IN ("D:\myfolder\*") DO RD /S /Q "%%i" DEL /Q "D:\myfolder\*.*"
And it works great!
Only problem is that I would like to exclude one or more folders, like the XCOPY exclude feature.
I just cant figure how I could add that to the script.
...
I saw the post (http://stackoverflow.com/questions/1585878/adding-song-to-itunes-with-c-sdk-api) about this, but following the link couldn't find any solid help..
Could someone point me in the right direction?
Thanks,
Max
...
I tried renaming my .py file to .pyw. But compiling with py2exe does not make a difference.
I tried using root.withdraw() but all it does is freeze the application, prevent the initial canvas from popping up, and fail to remove the command prompt window anyways.
Does anyone have a solution?
My root is:
root = Tk()
...
How can you view printf output in a win32 application (entering with a WinMain) on visual studio 2010?
...
Hi all,
I'm trying to use urls on my site like example.com/@lorem-ipsum-dolor instead of example.com/tag/lorem-ipsum-dolor form.
It's working on my local and remote servers, but if urls contains " : \ * | etc chars it's not working on local server (Win XP).
Is there any solution?
If not, then I think I need to remove that chars from ...
Is there any way to send a key press to a DirectX application using Windows API without activating its window?
I know there is a solution for simple applications, but DirectX handles this quite different...
The solution is preferred in C++, and libraries are OK.
Thanks!
...
Hello World!
I have developed a java servlet that monitors a folder on a network drive for new files then does some actions on them depending on what kind of file it is. It worked in Eclipse when Eclipse and Tomcat were running with each other, but now that I have deployed it onto a server(different machine), the servlet keeps logging t...
In my application I can programmatically open explorer and select a file using the following code:
void BrowseToFile(LPCTSTR filename)
{
CString strArgs;
strArgs = _T("/select,\"");
strArgs += filename;
strArgs += _T("\"");
ShellExecute(0, _T("open"), _T("explorer.exe"), strArgs, 0, SW_NORMAL);
}
My problem is t...
I have my Git repository hosted at github.com. I would like to push updates and such to github.com and then log into my Windows server and do a git pull to get my changes (that are verified to work on my local machine. Ideally I should have another server setup as my local machine settings are different from the live server. But I'm chea...
I have custom headers in ListCtrl. While it's possible to resize their column width in windows mobile, it's hard to do because you have to hit the line separator exactly and also have to tap, hold and drag as opposed to tap and drag in excel.
Is there anything I can change programmatically to increase the tap area to adjust the column w...
How does one use VirtualAllocEx do make room for a code cave? I am currently in possession of a piece of software with very little "free space" and i read that VirtualAllocEx is used for making this space..
Thanks!
Jake
...
Hi, I´m trying to do a path logger (Navigation logger) in Python, the thing that I need is that the program can get the paths that de user is accesing in real time, for example:
C:\Documents and Settings\
C:\Documents and Settings\Administrator\
C:\Documents and Settings\Administrator\Desktop\
C:\Documents and Settings\Administrator\Des...
I was wondering how can I make the IO faster by writing and reading temporary files to main memory. I've used to write to /dev/shm in Linux.
But now I'm in Windows 7. Anyone knows the answer ?
Thanks
...