Inflating MSFlexGrid

1717 byte By Doctor Luz at 2007-11-18 0:15:53
I've been working in an SDI application derived from CFormView wich has some dialogs. I use the MSFlexGrid ActiveX and I have notice some problems. When I change the properties of some MSFlexGrid with the resource editor, sometimes my .rc file grows every time I re-compile the application. Init...

Print without the doc/view framework works with win2k but not win98

3055 byte By DDieudonne at 2007-11-18 0:17:09
I refer to article http://www.dev-archive.com/printing/printing_wo_docview.shtmldescribing a way to print without document/view framework and succeed to make it work on my dev PC with win2k but not on another older PC with win98 ... Everything seems to works perfectly except that nothing is printed...

Problem with message map (using IDE)

527 byte By kowit_x at 2007-11-18 0:21:47
In VS7 when I try to hadle some message in properties panelit appear error box ////////////////////////////////////////////////////////////////////////////Add/Remove of the function is impossible ,because the parent class code is read only/////////////////////////////////////////////////////////////...

Debug and Release

398 byte By kowit_x at 2007-11-18 0:22:55
My MFC project complie and run well in Debug mode , but when I try to run in Release version (It compiled with no problem) it appear error "Unhandled exception at 0x77f7f570" in some case.(actually when call function that iterate load image to collection)I can't put source code here because do...

unchanged variables

130 byte By panther2 at 2007-11-18 0:34:12
Can anyone tell me why sometimes, initialized variables don't change during program execution, when they're supposed to?

visual studio 6.0 Enterprise installation

315 byte By Geof at 2007-11-18 0:36:21
I have problem with installation of Visual studio 6.0 enterprise edition. I would like to use visual J++ but when I installed Studio I'am not able to find it after installation. When I do a custom installation Visual J++ is not on the list of component. Where I can find it in Visual studio 6.0T...

Cwnd::DestroyWindow () problems

571 byte By kojy at 2007-11-18 0:37:19
Hi,I want to close an external application from my program.For example Notepad.I'm writing my application in CDialog class.First I get an handle to the window withCWnd* hwd1;hwd1 = FindWindow(NULL, "Untitled - Notepad");I success to minimize the window with hwd1->CloseWindow ();.But I can�...

Bug in CDatabase::ExecuteSQL()

1483 byte By blli_ at 2007-11-18 0:41:04
Recently, in running my application, I encountered a problem that when trying to restore the database by using the CDatabase::ExecuteSQL with the following statement: "RESTORE DATABASE MyDatabase \n" "FROM DISK = 'c:\\my_direc\\MyDB.dat' WITH REPLACE," "MOVE 'MyDB' TO 'c:...

Compacting Database is very slow !

389 byte By umesh_goa at 2007-11-18 0:45:35
Hello All,I am using CDaoWorkspace::CaompactDatabase to compact access 97 database . my database comtains around 2,00,000 records...Compacting is very slow it takes aroung 10 sec or sometime more ...it appears to hang ...What is the reason behind this? Can i solve this?Your input will help me to clo...

CDateTimeCtrl Focus Problem

483 byte By vijaymohite at 2007-11-18 0:51:10
When I clicked on CDateTimeCtrl drop down arrow it shows me Month calendar, when I do select date or cancels on calendar control, focus gets dissappear :( . Now if I press tab the focus goes to next subsequent control and when come back to the same CDateTimeCtrl control th'r tab, it doesn'...

VS .NET Dialog Editor doesnt show the form [image]

196 byte By Frankesk at 2007-11-18 1:01:08
http://digilander.libero.it/ilbanca/fuffa/DialogEditorBug.jpg <br/>The form keeps staying in the upper left corner and I cant add/modify any control :(<br/>Any help appreciated,<br/>bye.

RTF Parsing

116 byte By sikanderrafiq at 2007-11-18 1:02:24
In RTF parsing, wordpad generate \'99 for trade mark sign ( TM).<br/>How can i convert it into trade mark sign.

Standard system dlls

131 byte By vmalve at 2007-11-18 1:07:40
Hi,<br/>I wanted to know the exact way to know if a dll is a standard system DLL....Is "MPR.dll" a standard system dll?<br/>Thanks,

Getting RC1015 error

364 byte By RobGer at 2007-11-18 1:10:11
Yesterday things were working fine. Today I'm getting: "fatal error RC1015: cannot open include file 'afxres.h'."when I try to compile or create any new MFC project. When compiling, the error comes from xxx.rcI looked at old posts, looked on msdn.microsoft.com, and even reinstalled...

empty call stack, no data

194 byte By _ra at 2007-11-18 1:12:10
when it hits a break point in vc 6, it should show a data in call stack, and it did. But now the call stack remains empty. Any ideas?<br/>Thanks.<br/>(no one seems to be able to figure this out)

New and confused!

524 byte By Dr Nick at 2007-11-18 1:15:23
Hi AllI'm new to Visual C++, and it isn't very kind with its error messages! I'm trying to convert an int into a Cstring, and keep failing! My C++ isn't very good, but here's the error I keep getting:error C2440: 'initializing' : cannot convert from 'void�...

Charts In VC++

192 byte By Pathakhardik at 2007-11-18 1:23:51
Hi, <br/>I want to implment the chart object in VC++, for drawing the charts(Pie,Bar,Line...) for the data from Accss database...<br/>Also the charts should be 3d...<br/>Any Help!!!!!!!!

How can I set SetReadOnly function to Combo DropDownList ox

239 byte By Amarnath Reddy at 2007-11-18 1:25:03
Hai guys,<br/> SetReadOnly Option is there for in Combo DropDown Box,<br/>How can i get this function for Combo DropDownList Box, without Subclassing Combo DropDownList Box.<br/>Plz send me as soon as possible.<br/>Thanks in Advance.

Strange Bug with simple modal dialogs

1188 byte By Doctor Luz at 2007-11-18 1:27:37
I've find an strange behaviour of my program and I don't know why. I have Windows XP HE .I have a SDI application. Double clicking a modal dialog is shownThis modal dialog has a group of 3 radio buttons (with an int m_radio attached to them). The Radio1 and Radio3 buttons do nothing excep...

visual studio current directory

573 byte By joehrle at 2007-11-18 1:48:18
When changing workspaces from the recent workspace list, the current directory for opening files remains with the old workspace. This didn't happen with w98 but is a problem with w2k and wxp. Anybody, help!PS this was posted before in jan, 2001.PPS If you open the workspace without using recent...

Member Variables and Class Wizard

719 byte By KnNeeded at 2007-11-18 2:00:33
Hi,I think I may have found a bug with ClassWizard in VC 6 SP3 regarding signed and unsigned member variables created through ClassWizard. I made a text box and added a member variable through class wizard as a DWORD (Unsigned). Later I wanted to expand the program to allow for signed longs so I d...

Integer Data Type Problem

982 byte By Elmatador at 2007-11-18 2:15:52
I am under the impression that all ascII characters have a decimal value, thus 1 character can be entered as an integer.I have been haveing a problem with this in my code. I'm using visual c++ with a microsoft compiler. I am a high school student and this is a problem that I need to remedy for...

MoveFile trabbles very strange, just disappearing

1048 byte By Plastelin at 2007-11-18 2:18:00
I have code like that: string sTempFileName = GetTempFileName(".\\", "MY"); FILE* pFile = ::fopen(sTempFileName.data(), "w"); int iRet = ::fwrite(sData.data(), 1, sData.size(), pFile); ::fclose(pFile); BOOL bMFRet = ::MoveFileEx(sTempFileName.data(), sDstFileName.data(), MOVEFILE_COPY_ALLOWED |...

Sensing a Webcam Button

218 byte By joehrle at 2007-11-18 2:18:30
DIRECTSHOW example amcap responds to WM_CLOSE message. Example Stillcap does not. Why? Is the best way to get button notification from a webcam to run a program (the one set up in the registry) which sends a message?

VC++ 6 hangs while saving file

1095 byte By Holger Stein at 2007-11-18 2:22:05
Hi Gurus,I have a problem I can reproduce, but I have no clue...After adding arbitrary (working or not working) code to my source-file, I cannot save it anymore as VC++ gets stuck - nothing to do...When I restart VC and load my workspace saved at a point short before crash, I can save things again.....

error returned from .BAT file

316 byte By andreas75 at 2007-11-18 2:30:15
i try to include a MFC-dll to a addin in VC++.NET. i can compile it, but the error : error returned from .BAT file (the batfile is not visible in the directory, probably its temporary)appears. when i compile it again, the error dont shows.is it possible at all, to include a dll to an addin?thanx...

Debug Assertion Failed

843 byte By raju sungar at 2007-11-18 2:33:01
Hi all,I am getting the following bug in my VC++ program==============================================Debug Assertion Failed ;File:dbgheap.c ;Line:1017 ;Expression:_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)=========================================What may be the problem?????and its telling the access...

Too fast system?! Directory monitor

572 byte By Plastelin at 2007-11-18 2:39:46
main purpose:program watching in some directory for new files with specified filemask.FindFirstChangeNotification - tell if somethoing happents in directoryafret that check filemask:_findfirstand read file:FILE* pFile = fopen(...)fread(...)and sometimes I see what nothing in this file, _filelength(....

bug with #define and #include ?

700 byte By PeterP_Swe at 2007-11-18 2:46:14
Hi,I can't get define and include to work properly together.In one of my header files I have this define.#define MY_OS_INCLUDE "windows.h"And in my main.cpp file I try to use it like this:#include MY_OS_INCLUDEBut it says:error C2006: #include expected a filename, found identifier.But it wo...

CCheckListBox bug

489 byte By brandon1879 at 2007-11-18 2:50:49
I know this has previously been posted and it makes me feel better to know other people have felt my frustration. I started a project with CCheckListBox and it WILL NOT work. Anything I do, I run into the VERIFY(bitmap.LoadBitmap(AFX_IDB_CHECKLISTBOX_95)) with .NET. Then I found this post http://...

Members missing from class view

908 byte By cup at 2007-11-18 2:57:54
If all the members of a class are in the same file, then they are all visible from the class view. However, if the body of a class has an include file, then the members in the include file are not visible from the class view. eg// TwoPart.cppclass OnePart{public: int visible1; int visible2;};...

Program crashes when executed from IDE.

369 byte By Milan Stezka at 2007-11-18 3:03:34
HiI have a program which crashes when it is executed from the VC++6 IDE but when I execute it from Windows, it works fine. Does anybody know whether it is my mistake or a bug in VC++6 and if it is mine mistake (I would be surprised if it wasnt :) ), what sort of error this might be in my code. It do...

IDE Del Saved Files =)

327 byte By Bengi at 2007-11-18 3:03:55
thast really weird,everytime i wanna save my c/cpp file, i get this msg:"c:\test\test.cpp""Cannot Save File, This May Be in Use of Other Program"note that only the IDE is using this file,after that if u close VC6's IDE, it will delete the (in other way, it just wont save it!) :confused:...

Visual C++ 6.0 and Windows XP

402 byte By NicolasF at 2007-11-18 3:05:45
Hi,I have developped applications under Visual C++ 6.0 (SP5) for Windows NT 4.0 and 2000. When I am tried to do the same thing under Windows XP (SP1), I have sometimes crashes when I launch my application under Visual C++ 6.0 debugger with breakpoints setting into different tasks. The result is OS b...

How do we find out the memory leaks in our project?

214 byte By kishore1021 at 2007-11-18 3:24:27
Hiii,<br/>Can any one explain me the process of finding out the memory leaks in the program using VC++ editor or debugger. I hope you can provide me some useful tips on finding out memory leaks<br/>Amie<br/>Kishore

Ole containers bug?

704 byte By YoMismo at 2007-11-18 3:52:32
I'm trying to do an ole container from oclient sample but for some reason GUI finishes complety mess up after a while and windows's menus begin to be drawn in black. It happens sooner when I use an activex control I've done, but with other controls like excel graphs, it finishes crash...

CTreeCtrl,overlay images--URGENT PLEASE

433 byte By vmalve at 2007-11-18 3:57:02
Hi,In CTreeCtrl 1.Max how many images can be shown in a State Image List?2.a.Can we associate overlay image to a State Image list ...ie Can we do m_ilState.SetOverlayImage(6, 1)(m_ilState is a state image list)b.And can this over layimage be imposed over a state image?I have tried doing this in vain...

Intellisense bug?

352 byte By proxima centaur at 2007-11-18 4:04:34
Hi...I'm experiencing a quite weird bug.In the VC++ editor, when I move the mouse over a word, namely my newly declared class name, VC simply disapears from sight, the process gets killed. I suspect Intellisense since it only happens when I move the mouse over a word.Anybody can help me solve...

How to get data from ODBC and save it as local file

204 byte By HansonGG at 2007-11-18 4:12:26
I want ot present data on a chart object. data source is odbc. then how to do this? <br/>dynamically read and presenting ? or<br/>save all data to a local file ? how to do this?<br/>thanks

How to add a output window in a MDI

513 byte By lzguo at 2007-11-18 4:26:49
I have compiled a MDI Application. But I want the program open a single window (like CMD) to output some information and input something. I remember this program:void main(){ printf("hello");}When I run it, it can open a window automatically to display "hello" in the screen. What I want is just thi...

Why my program get these debug information

5330 byte By lzguo at 2007-11-18 4:38:32
I have compiled a MFC , when I press F7, I can get debug information.Additionally, if I use one of the function of my program, the program will occur error . How to solve the problem from this debug information? I find that there are mainly two problem in the debug: one is "no matching symbolic info...

Forcing a project to re-link

630 byte By sperlis at 2007-11-18 4:42:39
Is there a simple way to force a project to re-link, without being dependent on the projected generating the new lib?Is there a way to wrte a MACRO or an ADD-IN? I simply can't find the commands (since the commands usually reflect obvious thing, and I can't find the obvious either).I was t...

MFC Extension DLLs - deriving from a derived class

1329 byte By mrpajeau at 2007-11-18 4:56:45
Hello,I want to create a hierarchy of classes in MFC Extension DLLs that includes classes in DLLs derived from classes in other DLLs, and that allows me to dynamically load the Extension DLLs as needed using AfxLoadLibrary( ) and GetProcAddress( ).For example, I have these modules, which all compile...

MSVC compiler bug [?] - private constructor called illegaly

1748 byte By remekz at 2007-11-18 5:06:34
Hi, This is something to moan about and I don't really expect anyone to come up with a solution here. However, should there be a chance to see one or at least to see a reasonable explanation to the following fenomena... It's worth the while.The case:=======================================s...

CListCtrl: how to select two consecutive items by moving VK_UP and VK_DOWN keys

405 byte By Lin Zhao at 2007-11-18 5:25:22
I got a problem as follow:I wrote the codes for selecting multiple consecutive items by one click in a list view, and it works fine. But when I try to do the same thing by using VK_UP and VK_DOWN keys, it doesn't work then.MFC does something with these two keys by its own codes, and I can not f...

Error in reading file in binary mode

607 byte By m87ie at 2007-11-18 5:34:47
Dear membersI have to read an image file in binary mode so that I can process it. The problem is that in Win 32 Console application , I can read the image file in binary mode by using the following code in the main function.FILE *fp_rd;fp_rd = fopen ( "G:\\ikonos_pan_unb8.lan", "rb");but I cannot re...

ADO and delete bug

751 byte By Ultraseven at 2007-11-18 5:43:24
Hi, I have an application compiled with Embedde Visual C 3.0 who works fine. Than I had to port it to Visual C 6. I noticed that when I started using ado I had problems with the "new" and "delete" operator. For instance, if I create an array like: myArray = new char(50) And then try do del...

Doing "NewFolder " in SHBrowseForFolder does not return the path till the newfo

992 byte By vmalve at 2007-11-18 5:57:42
Hi All,In the SHBrowseForFolder ,on clicking the "New Folder" button for the first time the dialog does not go to the newly created folder.It remains at the old location itself.Hence we cannot edit the name of the new folder here and also the path return does not have the newfolder created in it....

After Newfolder in SHBrowseForFolder does not return the path till the newfolder

992 byte By vmalve at 2007-11-18 5:57:43
Hi All,In the SHBrowseForFolder ,on clicking the "New Folder" button for the first time the dialog does not go to the newly created folder.It remains at the old location itself.Hence we cannot edit the name of the new folder here and also the path return does not have the newfolder created in it....

Registering ocx control

418 byte By Rejupal at 2007-11-18 5:58:20
I have created an ocx control using VC 6.0. Ok this control will register under VC 6.0 and that machine. But i am trying this control to register other machines using regerv32.exe it failed. I used this command line argument "regsrv32c:\myprogram\olecontrol\ole1.ocx". But it will not suceeded. I am...