I'm writing a GUI driven by dialog boxes using Win32 and MSVC 6.0, and I'm struggling to understand the usage of WM_INITDIALOG.
It's my understanding that WM_INITDIALOG will be called by the dialog process prior to painting it to the screen. The issue I'm having is that WM_INITDIALOG is being called only when I am stepping through the ...
I'm trying to port a program that uses zlib to Windows with MSVC. Unfortunately, though, after many hours of trying I can't seem to get anything referencing zlib to run.
Here's a dummy program I'm using to test whether zlib can run:
#include <zlib.h>
#include <stdio.h>
int main(void)
{
z_stream zst;
zst.zalloc = Z_NULL;
zs...
I have added some ToolBars(CToolBar [FIXEDBMP]) and a AnimateControl(CAnimateCtrl [FIXEDBMP,FIXEDSIZE]) to a ReBar (CReBar). No Specific positioning is done for any of the Tool Bars or Animate Controls. Now The Animate Control gets MISALIGNED(Goes in the Top Left over the Menu Bar) ONLY in the Release Build, whereas in the debug build it...
Hi,
I created WPF as C# dll.And i loaded that dll in one of my VC++ dailog.
The dialog appears half black,then from half of dialog shows my cotrol as half.
Whats my mistake.How can i do that.
...
Hi,
I want to upload to s3 using vc++, i use libs3 but i am not able to upload single xml file
on s3 bucket can anyone tell what is the problem really i am not getting ...
i am able to create a bucket.
unsigned __stdcall S3Operation( void* pArguments )
{
try
{
typedef void (__stdcall *CREATE_BUCKET)(S3Protocol , const char *,const...
Which headers should I not use if I don't want my program to be linked with any of msvc*.dll ?
At the moment my application uses:
kernel32
user32
shell32
msvcp90
msvcr90
I want to get rid of the bottom two files. I don't mind if I will have to rewrite certain aspects of the program.
Because I know if you code in C and then link it ...
Hi, I have Windows Vista, Visual C++ 2008 Express Edition. I'm trying to create a dll. So, I take next steps: File - Create - Project - Win32 - Win32 Console Application (it have to be a wizard). And I was expecting for this window: http://img244.imageshack.us/i/vs3ae4.jpg/ But I've got next situation: http://img30.imageshack.us/i/msvs1....
How do you set an HBITMAP object as the wallpaper? I am taking the screenshot of the desktop using BitBlt, so i have the screenshot as a HBITMAP object. Now i can save the object to a bmp file and the set it as wallpaper using SystemParametersInfo, SPI_SETDESKWALLPAPER.
But i am checking if there is a direct way to set the bitmap object...
I have this weird problem. I have an icon in my C++ project's resource section, and it tells me it's "res\icon123.ico". I make some changes to this icon and save/rebuild... and while the resource editor shows the new version, the .ico file in Explorer has not changed.
How is VS storing my changes and why won't it let me do what I want?
...
I can't seem to add a user control from an existing solution I've created in visual C++ 2008 Express. I don't see the option located anywhere. Perhaps I'm looking in the wrong area or it's just not available in the express edition. I've followed the advice described here: http://msdn.microsoft.com/en-us/library/114xc3e5%28VS.80%29.aspx
...
I'm pretty sure I'm overlooking something totally obvious, but I want to view the raw contents of a point in memory under MSVC9, but I can't find a location in the UI where I can punch in a memory address. How can this be done?
...
I'm using a usoft date time picker control in a dialog box. I started by setting the format to "HH':'mm' 'ddddMMMdd','yyyy" and the current local date & time using DTM-SETSYSTEMTIME. If the user changes any field in the control, the program can not reset the date and time in the control using DTM-SETSYSTEMTIME although SendMessage retur...
I have had quite the experience trying to compile wxWidgets on Windows for x64. After a nightmare setting up Visual C++ 2008 express to compile x64 apps, I opened the wx.sln file. (I'm using wxWidgets 2.9.0, by the way.) I picked the Release configuration and set x64 as the platform. When I hit build, I get a slew of errors saying that w...
Hi,
Is there a tool that I can use to see what functions are exported by a static library? I am getting linker errors in VS2005, and I want to make sure that a static library I am including does indeed have the proper functions.
I did find a lot of stuff for viewing dynamic library exports, but a search for static library viewers wasn'...
Is there an equivalent to getopt() in the visual studio CRT?
Or do I need to get it and compile it with my project?
Edit clarification
getopt is a utility function in the unix/linux C Run Time library for common command line parsing chores i.e. parsing arguments of the form -a -b -f someArg etc'
...
#include <stdexcept>
#include <string>
using namespace std;
class ListIndexOutOfRangeException : public out_of_range
{
public:
ListIndexOutOfRangeException(const string & message = "") : out_of_range(message.c_str())
{
}
}; // end ListIndexOutOfRangeException
...
I am creating a simple GUI in C++ which have few buttons in it. I want to launch some external .exe files when i click on these buttons.
What's the code to achieve this?
...
(Why I am trying to do this: I have had no luck in using the pre-built binaries for libpng on Windows (despite many hours of trial and error), and therefore am now trying to compile it myself. I found this helpful blog post concerning this, complete with a Microsoft Visual Studio 2008 project file, but unfortunately have still not been a...
If my application crashes, a Microsoft Visual C++ Runtime Library "Runtime Error!" occurs.
The text of the message is:
This applicaton has requested the Runtime to terminate in an unusual way.
Please contact the application's support team for more information.
I know, that I need to solve all these issues, but I imagine that this error...
Hi
I want a piece of function which will take a file and last how many days, if it was older than that date, will return 0 otherwise 1... Something like that...
For example:
int IsOlder(TCHAR *filename, int days)
{
do operation.
If last modify date was older than days variable
return 0
else
return 1
}
It's MS VC++ 6 for Windows.
...