Answer Questions
elainetan Create Windowless control
I'm creating a windowless control with a simple line in it. (GdiPlus). Add a mouse event. This is not working in my MFC dialog project. I can see the mouse event, with the add handler wizard, and add it to the code. It is working tough in VB. What is going wrong Doeb Please show us some code Thanks, Ayman Shoukry VC++ Team Since we haven't seen any reply here, I would recommend trying ht ...Show All
roygdavis debugging problem
whenever i click debug it all works good and the box appears but as soon as it appears it goes away and wont stay up is there anything im doing wrong like would there be a setting i need changed Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=105351&SiteID=1 that deals with similar issue. Thanks, Ayman Shoukry VC++ Team ...Show All
Ricacho Help with visual beta 2
Im in a CS class using the microsoft visual studio 8 beta 2 as our program. last year we used lawence press libs and we cant use those in beta any suggestions Of course I won't be able to know why you can't use such libs since I don't know the exact errors you are getting. It could be possible to use such libs. Without specific errors or issues I won't be able to have any answers. Have you tried using the libs, if so, what issues are you ...Show All
JeremyRooks To increase memory size for my program
I am a student currently working on large datasets. I am reading data records from a text file and storing them in arrays. I am unable to store more than 450 records. I am working on visual c++ win32 console application. If I increase the size of array its giving me an error ' stack overflow' . I tried even by changing stack size & heap size to MAX value : 2147483647 in the projects properties - ...Show All
Anthony Wong 6 CFile GetStatus() Date and Time Help
I'm want to read the date and time a file was created. I saw that CFile GetStatus() could do what I wanted. I'm able to display the file name and path but how the heck do you display CTime m_ctime value I do see a number retreived while in debug mode. Thanks for your help. Thanks for the help. I was just missing this part( bold ) CString myString = myFileStatus.m_ctime ...Show All
Renato Tinoco Do I need to install .net FX 2.0 on other computer?
As I used VS.net 2005 to write a win32 console application, and it turned out that I couldn't execute it on other computer without .NET Framework 2.0. As I know this is not the case with VS.net 2003(which using .NET Framework 1.1) Now I wanna ask "What can I do to make my program run on other computer without installing .NET Framework 2.0 " Or "There ain't any solution " Thx Now trying to do this with Visua ...Show All
Johny_Extreme Radio Button Problem
I have 3 radio buttons in my Dialog and it's in a group, i have on click event(OnRadio1) for first radio button( ON_BN_CLICKED(IDC_RADIO_ONE, OnRadio1) ), problem is that when dialog box pop's up OnRadio1 is called many times and then dialog will appear. Please help me. Pramod Please check if the ID value that is assigned to IDC_RADIO_ONE is used more than once. Look it up in your resource.h file. If ...Show All
Deadlock Problem seeing my window
I just got Visual Studio 2005 and I tried to make a program using Win32. The program is just displaying a window. When I compile the code I get no errors at all, but nothing happens after that. My window doesn't pop up. I made sure that I had the functions: ShowWindow() and UpdateWindow, but apparently that wasn't the problem. Please help. Here is my CreateWindow code: hwnd = CreateWindowEx(NULL,"Window ...Show All
steve8man Problem In MFC AppWizard(exe) 2
my code is like this: double kk; kk=1234.123; bb.Format("%d",kk); pOUTPUT->SetWindowText(bb); The output from the program above is not 1234.123. How come like this Is %d incorrect Please help me solve this. Hey Tom - first post here, eh :-) I've moved here from the newsgroups as I find the web interface more organized and more easily searchable. Tom Serface wrote: T ...Show All
Tom De Cort post increment problem
Hello- I'm having a problem with a seemingly simple piece of code. I created a new .net console application and inserted this code: #include "stdafx.h" # using <mscorlib.dll> using namespace System; int _tmain() { int xyz=0; //broken int testar __gc [,]; testar= new int __gc [3,5]; for ( int i=0;i<=testar->GetUpperBound(0 ...Show All
Jay Turner com/atl attributes broken
It seems most of the ATL/COM attributes from 2003 -> 2005 have been broken. Im using the RTM. I just compiled a COM/ATL project which works fine in 2k3 but in 2k5 i get lots of errors with attributes. A classic is: [ uuid("xxx-blah-xxx") ] class myForwardDeclaredClass; That no longer works. I find I have to do: class __declspec(uuid("xxx-blah-xxx")) myForwardDeclaredClass; There is no documentation or acknowledgement of this problem anywhere. ...Show All
mattie02601 c++ compilation strategy
Well .. this is probably not specific to C++ language. It is a more general question on the requirements of including headers, etc, and so sort of basic, of compilers. I have been looking at translation units and linking, etc. I learnt that there can't be duplicate identifiers in all of the translation units combined. If there are duplicates, it's a linking error. It can be avoided by using extern keyword for all the duplicate declarations of th ...Show All
sedanwer STL for Managed C++
Is anyone interested in porting stl for Managed C++. I know that Dinkumware is coming up with STL.NET but its meant for specifically VS.NET2005. But my application is already written in VC++ 7.0 and I am not ready to port it "again" to VS.NET 2005. After lot of struggle I realized that a STL is easy to use with the managed c++. What is needed is an unmanaged wrapper for your managed class which will hold the ...Show All
Bill Sampler Problem with OnPaint and ThreadFunc
Hi, I will explain a little bit of what I am trying to do: I am grabbing some images useing a camera and a framegrabber. These images I am displaying in a window that I created using a function of the framegrabber. My application has to a area to draw a graphic (this graphic is to the gray values of a line of pixels, that I get from the images that I am grabbing). So, I need to grab some images and draw a graphic using data from this image. I tr ...Show All
Chuck Wagner Dependency checker for 64-bit executables
Hello, I am adapting a product from 32-bit to 64-bit. The application is written in C and C++ with MFC and ATL code. At present I am able to execute my 64-bit compiled code on a 64-bit system as long as I have a copy of VS 2005 installed on that server. I have been trying to help our Installation designer determine which of the VS redistributable merge modules are needed to install on a "clean" (one with out VS installed) system. The ...Show All
