windows

Which unit testing framework to use for C development on Windows?

On Windows XP, using TDM's GCC/MinGW32 for basic development i.e. gcc 4.4.x with gdb. Which unit testing framework to use for test driven development? Apparently Check's unit tests don't yet work on Windows. The questions at Unit Testing Frameworks for C and Unit Testing C Code are similar but not specifically about using gcc 4.4.x on ...

How to configure permissions on application folder to write XML Documents

I´ve an desktop aplication using VS2005. The application write a XML document into a application´s folder. When a run with a administrator the application run OK, but when a run like simple user (haven´t access rights) I receive the access denied message error. My application will be distributed to multiple users, and therefore could ...

.BAT file that starts ASP.NET Development Server, then opens in browser

I am trying to create a .bat file that starts the ASP.NET Dev Server outside of Visual Studio, and then opens the site in a browser. What I have so far does successfully start the Dev Server, but then it stops there and doesn't open the browser. Here is what I have in my .bat file: "C:\Program Files\Common Files\Microsoft Shared\DevSe...

WCF windows authentication with IIS and Application Pool

I have a WCF Server running on IIS 6 using a application pool with a custom identity right now the I looked on the web for two days and I can't find the exact answer to my problem. I know there are a lot of similar ones outer there On IIS6 the virtual directory has anonymous access disable and Integrated Windows authentication enabled...

__LP64__ on Windows?

I know Windows uses LLP instead of the LP data model, but is there a predefined variable or something? on OS X/Linux you can use __LP64__. ...

How to set the culture info in unmanaged C++?

Hello, I got a program written in unmanaged C++, I need to get the cultural info from the system and set that info to the current execution thread in my c++ application. Thanks. ...

Benchmarking Desktop Applications

I have the desire to benchmark a Client/Server application (GUI) written in Java, on a Windows platform. I'm doing this so I can identify where the Application platform will break when scaled to 100s of users. This is not my application, I do not have source code. I know packages like selenium exist for web apps, but I haven't seen ...

How to prevent starting TaskManager in my Desktop?

Hi, I am creating a new Desktop in Windows XP/Vista and 7 using win32 API. This is more like having a secure Desktop and I don't want let any other application to be executed in that Desktop. Well, in Windows XP if I press strg+shift+Esc or strg+alt+ent, in the Desktop which I created, I don't see the task manger on my Desktop but inst...

Easiest way to remove all whitespace from a code file?

So I'm participating in one of the Code Golf competitions where the smaller your file size is, the better. Rather than manually removing all whitespace etc, I'm looking for a program or website which will take a file, remove all whitespace (including new lines) and return a compact version of the file. any ideas? ...

Anchor buttons in a dialog when using SW_MAXIMIZE

This should be a simple one: I have a CDialog with 2 buttons. The dialog is always opened in full screen (No title bar \ Status, etc...) using m_pMainWnd->ShowWindow(SW_MAXIMIZE); I want my buttons to snap to the edge of the screen. There are no resizing or anything. ...

CreateDC fails with error code 0

I'm printing using CreateDC, passing in a valid DEVMODE structure and getting NULL returned which indicates an error but GetLastError returns 0. m_hDC = ::CreateDC(L"WINSPOOL", PrinterName, NULL, pDevMode); if (m_hDC == NULL) { throw Exception(GetLastError(), __LINE__, _T(__FILE__)); } This is working for all of my customers apart f...

keyboard hook in windows C++ or what?

Hi, I wish to build my own application which can send keyboard commands(messages) to the Windows OS. For example when I press ctrl+shit+n, I wish to launch the notepad.exe . How can I do that? Do you have some advices for me about the concept used. I've read that is possible when are used keyboard hooks? That's the only way? Do you ...

What's the purpose of COM+ library applications?

When a COM+ application is created the wizard offers to choose between a library and a server application. A server application is activated in a separate process and this can be used to cheaply interop 64-bit consumers with 32-bit in-proc COM components. What's the use of library applications that are activated right in the caller pro...

Batch delayed expansion not working.

Ok, I'm getting crazy and I don't know what else to do, I've tried several things and nothing is working. Look at this sample code (test.cmd): setlocal enabledelayedexpansion enableextensions set VAR=before if "%VAR%" == "before" ( set VAR=after; if "%VAR%" == "after" @echo If you see this, it worked ) This is the generated o...

Gource on Windows

We're having problems on windows creating a video file from gource (gource). We can run gource and watch the video live but don't seem to be able to get any useful physical output. ...

how do I always include symbols from a static library?

Suppose I have a static library libx.a. How to I make some symbols (not all) from this library to be always present in any binary I link with my library? Reason is that I need these symbols to be available via dlopen+dlsym. I'm aware of --whole-archive linker switch, but it forces all object files from library archive to linked into resu...

Win CE Calendar :Add Appointment ::Need help :appointment:save->E_outofmemory

Hi..., I am trying to add appointment to calendar (using pimstore.lib n .h) using win ce...I am trying as follows: CoCreateInstance(CLSID_Application, NULL, CLSCTX_INPROC_SERVER, IID_IPOutlookApp, reinterpret_cast(&polApp)) polApp->Logon(NULL); polApp->CreateItem(olAppointmentItem, (IDispatch**)&pAppt); ...

Hooking the windows COM runtime

Hi, Is there an available tool which hooks the windows COM runtime? I want to be able to see all the instances which get created, view queries to their interfaces, method calls, etc. Thanks! ...

What is the preferred unit testing tool for C development in Visual Studio?

What is the preferred unit testing tool for C development in Visual Studio? ...

How to send a message from Server A to Server B using MSMQ?

How do I setup a message queue that automatically sends all it's messages to another server? I'm working on a proof of concept for a system that needs to run on multiple servers, writing to local message queues, then have a central service on another server running that reads its local queue to pick up all the messages from the other se...