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...
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...
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/////////////////////////////////////////////////////////////...
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...
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?
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...
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...
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:...
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...
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'...
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.
In RTF parsing, wordpad generate \'99 for trade mark sign ( TM).<br/>How can i convert it into trade mark sign.
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,
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...
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)
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...
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!!!!!!!!
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.
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...
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...
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...
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...
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 |...
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?
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.....
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...
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...
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(....
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...
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://...
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;};...
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...
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:...
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...
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
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...
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...
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...
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
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...
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...
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...
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...
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...
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...
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...
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...
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....
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....
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...