I spot some interesting articles about exception handle in CodeProject
http://www.codeproject.com/KB/cpp/seexception.aspx
After reading, I decided to do some experiment.
The first time I try to execute the following code
char *p;
p[0] = 0;
The program died without question.
But
After several times when I executed the same proble...
I am working on a major project that I need for work. I am working on a project that requires software validation. I would like this to be handled by a custom server I will write in Python, this server will be the "gateway" between the user and product activation.
The software program will be purchased from other companies in volume li...
Windows 7 and Windows Vista have a Region and Language control panel which contains a Formats tab which contains a popup menu titled Format. This menu allows the user to select from among many language-oriented sets of number, currency, time, and date formatting preferences regardless of the language of the base system. For example, I co...
Dear all,
I would like to know what the snippet of code does..
Drive[0] = 'A';
Drive[1] = ':';
Drive[2] = '\\';
Drive[3] = 0;
DriveMask = GetLogicalDrives();
for( anIndex = 0; anIndex < 26;
anIndex++ )
{
if( DriveMask & 1 )
{
Drive[0] = 'A' + anIndex;
DriveMask >>= 1;
}
}
Please let me know ...
I'm looking for an open source library to do Windows executable symbol name demangling. Does such a thing exist or must I use the Microsoft libraries?
...
I'm trying to compile a downloaded program in Windows. The program is usually run in Linux, but is programmed to also run in Windows (the code has #if defined(_WIN32)'s in it, and claims to work with borland free tools). When I try to use make from the command line, it tells me "Incorrect command line argument: -C". In the makefile, t...
Is there a way to specify which local network interface to use when using the WININET interface for an outgoing HTTP request?
I know how to do it with WINSOCK (using bind()), but I can't find an equivalent way to do it using WININET.
...
hello all
i am facing problem in drawing dynamically in a picture box. i works very good when the drawing objects are few but as the drawing objects increases the response time of my GUI is getting worse and worse, my GUI works very well up to 90 drawing objects but i have to support more than 1000 so this technique didn't work for me.
...
Is there any way to start non-Java process from Java and then stop it? Or at least send some keyinput to it (e.g. alt+f4)?
E.g. I start java app, then javaapp start notepad, then javaapp send alt+f4 to notepad. Javaapp will run from Administrator account.
Question is only about Windows OS.
...
Hello all
I am going to design system that will keep track of publications due by researchers in my work place
Need for this project :
1- a database housing the information .
2- Automatic reports must be generated .
the users will upload PDF and we have around 25 researchers.
I can’t decide which one is better for my system .
My questi...
I have been trying to find a way to "defragment" the registry on my Windows machine. Firstly, does this make sense? Any benefits in doing this? (Not much love on superuser.com) Secondly, I am looking for a way to rewrite the registry using C/C++ with Windows API. Is there a way to read the registry and write it to a new file getting rid ...
I am trying to convert a PDF document into a PNG file using ImageMagick command line tools from a ASP.NET website. I create a new shell process and ahve it execute the following command:
convert -density 96x96 "[FileNameAndPath].pdf" "[FileNameAndPath].png"
This runs well when testing the website on my local machine with the ASP.NET De...
Is there any API to get path : "C:\Documents and Settings" in windows in c++?
not: C:\Documents and Settings\brianfu\My Documents.
Many Thanks!
Thanks for luke's solution:
GetProfilesDirectory
it works!
...
I need to list out the names of the files based on given type. Is there any tool to do that or is there any source code so that i can get the list of the files with given extension.
Example: If ".txt" is given then the output must contain list of all the text files in a specific directory.
...
I have an addin for outlook which is installer per user.The installer copies the dlls and user specific registry entries.I using VS2008 vdproj for generating msi installer.
When two user on a machine install this addin and if one of the user uninstall it, all the dlls will be removed from the ProgramFiles/App directory.
Is there a wor...
Hello there,
Im using MIB_IFTABLE & MIB_IFROW to get the no.of bytes transmitted & received. Everything looks fine, and values are correct in case of using WIFI alone. But when i use vpn connection over wifi these values are not correct for wifi adapter, interestingly i'm getting correct values for vpn adapter. And if i see status of any...
HI=i,
I need advice on how i should go about improving my c # skills. I want to improve my skills in general c#,ADO,linq and windows form applications.
...
I am a windows developer currently getting into Rails. While you can develop on RoR Windows, it's not the ideal experience. Things are glitchy and running cucumber tests are painfully slow.
So, would I be able to have a decent dev experience running Linux in a VM for doing RoR development, or should I bite the bullet and just do a dual ...
Is there a way to get Windows to adjust the input gain on the fly while recording? I'd like to be able prevent most clipping of audio so if it is getting too loud have the gain decrease.
I could try to implement this myself, but I am looking for a way within Windows or a 3rd-party library that can do this.
Any ideas?
...
I have to differentiate between the real addresses and the VM addresses using any Windows API.
I'm using Getadaptersaddresses API to populate a list of ipaddresses for the local machine. I need to extract only the "real" addresses apart from the addresses associated with the VMware network adapter and other addresses(auto-configuration a...