windows

TortoiseSVN 1.6.8 missing repository browser in Branch/Tag "To URL" dialog?

It seems that in TortoiseSVN 1.6.8 (on Windows), when you click the "To URL..." button in the Branch/Tag dialog, it now pops up a generic "browse for folders" dialog. It used to pop up a Repository Browser. Displaying a regular folder browser isn't much use, since you can't navigate to any of the tags/branches via the file system. Does ...

How to resize window using WinAPI

I'm want resize window using WinAPI. I use WinAPI function SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags); Window is resized, but window content is not redrawed. If I resize this window using mouse, content redraws. How to resize window using WinAPI with content redrawing? ...

Disabling Scrollbars in WebKit (flat frame mode)

Hello, I'm embedding WebKit in a Windows C++ Application. I'm using the Cairo port. It works fine. I'd like to disable the scrollbars that appear when there's more data that the client area can display. Like the iPhone, the iPhone does not have scrollbars, scrolling is implemented differently. How can I disable the scrollbars programa...

How can I fix my window focus problem?

I have a very frustrating bug in an application I am working on. The routine is supposed to do something in one window, and then return focus to the other at the end of the method, but when I started to use a large data set the other day, the focus stopped returning at the end. I stepped through the code one line at a time, and the error...

VS 2010 installation on Win7 x64 breaks

Clean Windows 7 x64 system. Try to install VS 2010 Ultimate and the installation breaks with error: CRootComponent::Install(): Cannot install; setup files failed verification. What could be the problem on a clean Win7??? ...

Device drivers and Windows

Hi, I am trying to complete the picture of how the PC and the OS interacts together. And I am at point, where I am little out of guess when it comes to device drivers. Please, don´t write things like its too complicated, or you don´t need to know when using high programming laguage and winapi functions. I want to know, it´s for study p...

What is the name of the Windows System Menu button?

What is the name of the Windows System Menu button? I am talling about the round glass-orb looking object (on a Windows 7 operating system) that appears in the lower left of the screen -- usually -- that you can click on to see the menu selection of programs on your compter. ...

Using a Windows 7 style menustrip in Windows Forms

I am using windows forms and when I use a MenuStrip item, I get something that looks like this: http://imgkk.com/i/ggn1.png Is it possible to use menu strips like the ones the system uses, like in Windows Explorer, or Firefox, for example: http://imgkk.com/i/cxyg.png with Windows Forms, or C# in general? ...

Memory leak while using emoticons on CRichEditCtrl

I'm developing a text editor class (for a chat application) based on CRichEditCtrl (MFC) with emoticon support. After i load the emoticon's bitmap, I use the function OleCreateStaticFromData to insert it into CRichEditCtrl. After that i just delete the bitmap object allocated by myself. I can verify (using a GDIView utility) that all r...

start a process in a .bat file but hide it?

I would like to launch one of my apps inside a .bat file but it is visible and taking up space in my taskbar. How do i launch the app and not have it visible? ...

Python - checking if a user has administrator privileges

I'm writing a little program as a self-learning project in Python 3.x. My idea is for the program to allow two fields of text entry to the user, and then plug the user's input into the value of two specific registry keys. Is there a simple way to make it check if the current user can access the registry? I'd rather it cleanly tell the u...

Problem in using a second call to send() in C

Hello. Right now I'm working in a simple Server that receives from client a code referring to a certain operation. The server receives this data and send back the signal that it's waiting for the proper data. /*Server Side*/ if (codigoOperacao == 0) { pr...

using strcpy_s for TCHAR pointer (Microsoft Specific)

I was wondering which is the correct way? _tcscpy(tchar_pointer, _tcslen(tchar_pointer), _T("Hello World")); or _tcscpy(tchar_pointer, _tcsclen(tchar_pointer), _T("Hello World")); or _tcscpy(tchar_pointer, ???, _T("Hello World")); ...

How to know user is dragging something when the cursor is not in my window?

Hi folks, We all know you can implement drag-and-drop feature for your Window so that it accepts drag and drop operation, but my question is, how to detect a drag-and-drop operation that's is in progress in other windows, for example, dragging a file in the Windows Explorer? What I want to do is that when a user is dragging a file then ...

How to copy files in VC++ ...?

Hi, i want to copy the files present in a flash drive into hard drives and then run them using a VC++ application. I have a VS 2008..? ...

Verify 64 bit binary on windows

How can I verify that a .exe file is built for 64 bit on Windows ? I am used to Linux where I can simply use the 'file' command to see this. ...

Can i clear the serial port every time after reading the data from it?

i need to clear the data on serial port when i have read the data from it before i read the data again? i m using c/c++ on windows xp how can i do so ? thanx in advance. ...

Location of MFT file?

I have a partition, formatted as NTFS. I have studied that devices formatted as NTFS have a MFT (Master File Table) which contains a lot of information about the contents of a devices. Is MFT really a file? Where is it located? How can I view it? I, actually want to view the $BITMAP to know the locations of all the files and directo...

Windows FTP batch sript to read & dl from external user list

i have several old, unused batches that i'm redoing.. I have a batch file for an old network arch from several years ago.. the main thing I'd like it to do now is read a list of files.. I'll explain the setup.. Server updates a complete list [CurrentMediaStores.txt] 2x a day. The laptops can set settings to DL this list through their st...

Reopening serial port fails if not closed properly with CloseHandle

I am working with USB device on Windows that is seen as a virtual serial port. I can communicate with the device using CreateFile and ReadFile functions, but in some cases my application does not call CloseHandle (when my application in development crashes). After that all calls to CreateFile fail (ERROR_ACCESS_DENIED), and the only solu...