Answer Questions
ivj Label text setting in MSVC++.NET
Hi. I am very new to MSVC++. I don't know anything really. I would like to know how to access the text property of a label (and all of the properties for that matter), and to edit it. I am used to VB.NET, where is is as simple as 'label1.text', but that didn't work with C++. OK, so nobody knows. Dissapointing. I do have a question which I guarantee someone will know though. As I said before, I'm new to C+ ...Show All
netterdotter How to randomize STL list using std::random_shuffle??
Using Visual Studio 2005. I have the following bit of code which generates a bunch of baloney errors... ideas : #include <stdio.h> #include <list> #include <windows.h> #include "DiskAccess.h" #include "resource.h" #include <algorithm> // by the way somewhere <string> gets included too... don't know if that matters list<MySlide*> slides; // fill the slides up dynamically here list<MySlide*>::iterator begi ...Show All
Andy Rivera Radio button in MFC
Hi, I am testing a group of radio buttons in MFC dialog application with Visual C++.Net. I want to test these radio button group to be selected only one at at time. I tried it in Visual C++ 6.0 and could work. But when I tried it on VC.Net, I can select more than one. The problem is that I don't know how to set the properties for them. Any idea pls Thanks VCboy Set group property to true for first item and fa ...Show All
superbrad Really lost guy needs help updating SDKs
Hi! I am really lost here. I have been working with very old SDKs (DirectX 5, for instance) and I've been trying to upgrade myself but I'ts been a pain in the ***. Now I'm trying to compile an old sample: "PlayFile" for Direct Show (DirectX Media 6.0)... however my IDE tells me this: ..\dxmedia\classes\base\ctlutil.h(439) : error C2504: 'IBasicVideo2' : base class undefined ..\dxmedia\classes\base\sysclock.h(23) : error C2504: 'IAMCloc ...Show All
chug VC++ Editor losing changes
Has anyone else experienced this issue The VC++ editor loses changes that were just made in the code. Here's the steps that I go through: Note: This only happens about one time a week. 1) Compile and run your program. 2) Open and change one of the source files in the VC++ editor 3) Stop your running program by hitting the "Stop Debugging" button 4) Hit F5, answer yes to recompile. 5) Once the program starts running, look at the c ...Show All
J. Hedrick mfc : changing a window's background
hi . i have an mfc application, which when run , throws up a window having a plain white background , on which i implement some drawline methods . instead of this window having a plain white background, is there any way by which i can use a jpeg as the background i guess it should be possible , since its like changing the window's background color from white to blue . Handle WM_ERASEBKGND. http://msdn.mic ...Show All
Ovidiu Burlacu socket--recv()--DataConversion--help!!
Hi , I am infancy to socket programming .I need to connect to an external device through TerminalServer4 and i should be able to send command & receive output. Using the following code, i am able to send data to the external device and able to receive data. But i am receiving data in special characters from the external device.When converted to int, i got the output as -1,-3,3,-1,-5,3,-1,-5,1 (total i received 9 bytes ). But the resul ...Show All
cristy VC++ Visual Studio.Net '05 beta 2 - question
I have a question. If I download VC++ beta 2 would I have to puchase the retail version or purchase the finalized version No you won't have to install the final version. However, the beta version might expire after certain time as well as there are some limitations when developing using beta bits. Please read the agrrement carfully when installing the Beta2 build. A related link: http://lab.msdn.microsoft.com/vs2005/golive/default.a ...Show All
cdmdc VC++ 2005 Toolbars
Is there a way of getting the office 2003 style toolbars in VC++ 2005 I know they are available in C# and VB 2005, but VC++ has the old style office 2000 toolbars. Any suggestions Thanks, Paul Thanks! I thought I could get it in a native MFC app. I am very new to the .NET framework and Visual Studio 2005. What are the major differences between an MFC and CLR application ...Show All
Ammas Babe How to transfer a exe file over socket correctly
Hello All, I need to transfer a exe file over a socket. Currently my code works perfectly all rite for all file types except exe file. Even exe file transfers well but somehow the file structure changes n it does nt run on the other pc. I am posting my both sender n receiver code for reference. Please suggest me a way to do it correctly(i mean i shud be able to run the exe file on remote pc) Sender Code: HANDLE hnd = CreateFile("C: ...Show All
tessy Preprocessor Definitions
I tried to achieve an effect of #define BUILD_CFG "cfg.h" without touching source files, so I wrote BUILD_CFG "cfg.h" in "Preprocessor Definitions" area of the project's property pages. After applying the changes, I saw /D "BUILD_CFG "cfg.h" in "Command Line" field. I wonder why the quotes don't match, and why I don't get the desirable effect of the definition. What did I do wrong Thanks you. Firstly, when de ...Show All
awp001 DirList ActiveX usage problem on localized VS .NET
Hi, As I know, VS uses DirList ActiveX component for showing some properies (see VC++ Linker's "Additional Directories" for example). In our integration we used the same approach. We crteated a dialog with DirList ActiveX on it. Here is the fragment from rc-file (part of DIALOGEX section ): CONTROL "",IDC_SLE_PATHLIST, "{442502BA-D873-4a37-9F19-3E38C42A3DDB}",NOT WS_VISIBLE | WS_TABSTOP,6,68,190,59 Gui ...Show All
BillFugina amstream.h
Why isn't there an amstream.h in C++ 2005 Where can I get it I assume that you have installed the VC2005 Beta2 Express Editon The Express-Edition does not contains the Platform SDK. If you want to use this, you have to install it seperately (an other 400 MB). For more infos see: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=2995 Greetings Jochen ...Show All
Speedo Retriving a key pressed in a different Application
<Gal Beniamini@discussions.microsoft.com> wrote in message news:d1c96286-5525-41a4-9d28-579d9d7d3011@discussions.microsoft.com > Hello, I have a question; how is it possible to get the event of a > key pressed in a different application while my application is > running in the background and to then identify which key it was You need to install a system-wide hook - see SetWindowsHookEx -- With ...Show All
lasse Strange behavior of release executable
I have an application that I built in release version. When I start debugging the application from the Visual C++ IDE (in release mode), I get an output. Now I shutdown VC++ and used the same release exe outside of VC++ and it produces a different result. Infact, when I ran the exe multiple times outside of VC++, I get random results. I looked at the code and I figured out that there was an uninitialized boolean variable in the code which was ...Show All
