Office 97 style Colour Picker : strange behaviour ?

953 byte By Mark Longin at 2007-12-5 22:13:22
I try to use the Office 97 style Colour Picker control from Chris Maunder into my own project, but have some dificulties. Has someone experienced the same ?I have no problems at all executing the ColourPickDemo.exe file coming with the demo project download. However, a simple recompile of the demo...

Class Wizard and Static Libraries

274 byte By Bob Smith at 2007-12-4 23:57:04
In version 4.x of Visual C++, you could use class wizard with a static library by adding a resource to the project. <br/>In version 5, this feature no longer works. Does anyone know of a way to enable class wizard when working within a static library?<br/>Thanks

crash : switched from dynamic to static mfc42.dll - string concatenating causes

1620 byte By Stege at 2007-12-4 10:39:22
Folks !I've encountered a strange problem with a small dialog-based app. I use MSVC++ 6.0 SP3, WinNT 4.0 SP5 and DAO 3.51 (access97)I wrote a small dialog-app, that is capable of importing a non-replicated database into a replicated database master. In the first place, I distributed the app wit...

Weird error in Release Mode, posting messages

1523 byte By cbing at 2007-12-3 19:25:52
Hi:Sorry about my english, I know it doens't very well. Now I will try to explain my problem.In a Dll, I have defined three user-message types as follow:---#define WM_SIMULATION_END (WM_USER + 0x0F0)#define WM_SIMULATION_ERROR (WM_USER + 0x0F1)#define WM_THREAD_READY (WM_USER + 0x0F2)...

Fopen Failure

4243 byte By cnd12001 at 2007-12-1 0:34:57
Hello everybody,Here is my problem.I wrote a program that does a statistical analysis, allocating large quantities of memories (3-400 MB) dynamically, and then performs cycles of calculations on the data.At the end of each cycle, the program opens 2 files in sequence and writes the results to the di...

Cant do Build-All, Help!!

728 byte By davidckeith at 2007-11-29 14:56:28
Problem:Every time I try to do a Build All my system locks up, or I loose the mouse, or loose the video, or the Studio freeses up, or a combination of all of the above. This only happens with one project.I use Visual Studio, Professional Edition, version 6.0a, SP3, and have been for over 6 months w...

Multiple COM ports

432 byte By whitemt at 2007-11-27 0:19:25
I have a system where I am collecting data from about 30 different COM ports (RS-232). I'm having problems accessing the COM ports 10 and above. I can access the devices using a standard terminal, however any applications I write in Visual C++ 6.0 don't seem to work.Has anyone else done...

Access Violation

413 byte By frogg6 at 2007-11-25 11:26:51
I'm getting the following error when I run my code:"Unhandled exception at 0x30023861 (nspr4.dll) in PROC.exe: 0xC0000005: Access violation reading location 0x000000e4"This error only appears when I step through the code (disassembly) using the debugger. The error pops up on the execution of a...

macros not working in vs2005

511 byte By moondance1970 at 2007-11-25 11:21:50
Hi,I am trying to run the sample macro's from :C:\Documents and Settings\<username>\My Documents\Visual Studio 2005\Projects\VSMacros80\SamplesThis is a fresh install of vs2005 and none of the macro's do anything. I tried going into options/Add-in/Macros Security and enabling all 3...

Need quick help with small errors

6 byte By tlamere at 2007-11-25 11:17:08
delete

GETING ERROR "PROGRAM IS TOO BIG TO FIT IN MEMORY"

468 byte By vikrant1 at 2007-11-25 11:16:36
hello,,whenever i m wrriting any program even the smaller one i get the error " program is too big to fit in memory". my prog. is compiled easily but when i want to run the prog that time i get a message cmd prompt.please help me to solve this problem as soon as possible.IT'S VERY VERY URGENTIT...

About SetViewportOrg

282 byte By vikrant1 at 2007-11-25 11:13:47
hello,,<br/>whenever i m wrriting any program even the smaller one i get the error " program is too big to fit in memory". my prog. is compiled easily but when i want to run the prog that time i get a message cmd prompt.<br/>please help me to solve this problem as soon as possible.

VC6 hangs on initial new build

868 byte By microuser at 2007-11-25 11:07:13
I have a problem with VC++6 PRO when used from "user account"on WinXp .Problem-> MSDEV will hang at initial build of a new project that has syntax error. Steps: Create new project with Wizard, then remove a bracket to cause syntax error, then executing build will output error messages and IDE h...

Visual Studio Debugger bug?

817 byte By THY02K at 2007-11-25 10:44:35
Hi is this (attached image) a Visual Studio 2005 bug (tried Express and Enterprise edition)? Or am I mistaken?BUG#1: "strTokenA" and "strTokenB" both declared the same way why "strTokenA" "out of scope"??-- This is a confirmed bug? http://support.microsoft.com/kb/814828BUG#2: It's harder to de...

Microsoft Bug of CFileDialog

445 byte By myron at 2007-11-25 10:44:25
Well, it's a very basic-123 coding style, however, even in MS, it happens.The code review seems not doing well.Environment: VC6 File: ...\MFC\SRC\DLGFILE.CPPCode: Line 113... if (nResult) ASSERT(pThreadState->m_pAlternateWndInit == NULL); pThreadState->m_pAlternateWndInit = NULL;...Of co...

error LNK2019 & fatal error LNK1120

4207 byte By Trojan2213 at 2007-11-25 10:43:31
I was writing a review program from a book I was reading and for some reason it keeps giving me these two errors, error LNK2019 & fatal error LNK1120, and I can not figure out what is causing this to happen.The errors read as followed: error LNK2019: unresolved external symbol "public: __thiscall Re...

fatal error C1853:

1092 byte By arulprakash at 2007-11-25 10:35:39
Hi,I have to create a static library of a whole source code which contains ".c",".cpp" files. I am using Microsoft Visual Studio 6.0, but i have the following error message which i am unable to solve.The following is the problem,fatal error C1853: 'Debug/<filename>.pch' is not a prec...

libraries & VS C++

405 byte By Valine at 2007-11-25 10:32:40
Hi all,i have two project (located in different directories) using different libraries. They work fine. If i try to add libraries from a project to the other i get plenty of errors or the libraries can't be located.(This problem only concerns some libraries, <windows.h> or <cutil.h>...

Getting the boost library to work with Visual C++ 2008 beta2?

546 byte By MakubeX_GB at 2007-11-25 10:31:19
Hello all, noob C++ coder here.I was looking for ways to change String into integer. Of all the ways I found I saw that using lexical_cast from the boost library is the easiest (at least IMO).Anyway, I went into the "Linker" part of the properties and added the directory of the boost library to "Add...

Sorry wrong forum

37 byte By paulw0t at 2007-11-25 10:30:57
Sorry in wrong forum can you delete ?

error handling

131 byte By pagoti_pagoti at 2007-11-25 10:06:56
Hi<br/>how can i handle "debug errors" and "application errors" through my own exception handler...<br/>Thanks for quick reply

VC++ 6.0 crash when inserting files to an existing project

426 byte By sanfapianzhou at 2007-11-25 10:05:11
I just installed the VC++ 6.0 on my new laptop with windows xp. Once I tried to click the "open" option from the "file" menu, it will crash immediately. However, if I generate a new project or workspace or file, it works fine. It also crash right way if I tried to insert files to an existing project...

string length on WinCE

882 byte By myron at 2007-11-25 9:49:46
Windows CE just offers UNICODE functions.Then here comes a question.While I try to get a string length, either by _tcslen or CString::GetLength(),the return value is not exactly the length of the memory that this buffer occupied.For example, for a string memory like:Data Descrip...

Beginner compiling problem

733 byte By sammysoil at 2007-11-25 9:48:33
Hi, I'm new to Visual C++ and C++ in general. I've written the basic "hello world" program and tried to build it to an executable, could someone tell me where I'm going wrong?I'm using Visual C++ 2005 and I started a new a project. I believe it was something like new CLR project....

Unauthorize Disk Access

595 byte By tnguyen at 2007-11-25 9:43:12
I have a hard disk. It mounts to the computer via USB write block device (prevent the use to write to the disk). At windows level, I can access to the contain on the disk fine. When I try to access to the files or directories on the disk via C++ program, I get a runtime error "Unauthorized Access Ex...

problem in string binary tree

7572 byte By C++Lova at 2007-11-25 9:38:51
Hello to allthe purpose of the program is here:( I wrote the segment of this program) 1.CREATE OR INSERT BINARY TREE 2.PRINT LEAF NODES 3.FIND MIRROR IMAGE OF THE TREE 4.PRINT ORIGINAL AND MIRROR IMAGE LEVELWISE 5.HEIGHT OF TREE and the program is://code to create binary tree,find mi...

unexpected end of file while looking for precompiled header directive

4673 byte By chethanJasi at 2007-11-25 9:37:12
Hi all,I am getting the error message "unexpected end of file while looking for precompiled header directive" even though i have included #include "stdafx.h"here is my sample code :::::::#include "stdafx.h"#include "DlgResizeHelper.h"void DlgResizeHelper::Init(HWND a_hParent) { m_hParent = a_hParen...

MS Visual C++ problem

3089 byte By kjsrehsi at 2007-11-25 9:04:26
Hello everybody...iam having some problem in my structure coding programme.....the code is given below......#include <stdio.h>struct date /* declare a global template */{ /* The term date is the 'tag' name */ int day; int month; int year;};typedef struct date...

System Hang(quite urgent)....

1830 byte By krish06 at 2007-11-25 8:54:29
Hi friends,my application hang soemtimes (one day once or 4 hour once ) after i implement new function (save result in excel file).i used to store the result in the excel file. so gor that i have an .header fiel and one .cpp file..afterthat i implement the function into my progem like the following...

Debug Assertion Failed Error

463 byte By Munish.Coraltele at 2007-11-25 8:54:22
Hi All,i have written an dll in Vc++ 6.0. basically it is multithreaded application. The application is writing log in text files using (WriteFile Function) at various locations. i am getting an error after continuos running of 7 - 8 hours' Debug Assertion Failed' file -> dbgheap.c li...

error C2146: syntax error : missing ; before identifier PVOID64

1370 byte By mrutyunjayas at 2007-11-25 8:42:07
Hi All,I am trying to build the 'baseclass' of directshow (directx 9.0), in visual studio 2005 platform on windows XP. Its showing five bugs while compiling dllentry.cpp of baseclass, and the error is in the 'winnt.h' file of "\Microsoft Visual Studio 8\VC\PlatformSDK\Include" ....

Visual C++ Error

827 byte By neilnico at 2007-11-25 8:37:25
Hi,My visual c++ compiler will not accept the following line of code within a coded block:int me = 0;it gives me the following error message.error C2143: syntax error : missing ';' before 'type'It seems to only like c style variable declaration i.e. being at the start of the func...

migration visual studio 6 to 2005

2644 byte By kerenal at 2007-11-25 8:20:06
Hi,I am trying to build on visual studio c++ 2005 projects that where built and linked on vc6.As I understand from msdn, the definition of cstring was chnages in visual studio 2005, and the recomendation was to add the following lines to stdafx.h:template class __declspec(dllimport) CStringT<TCHA...

MFC: execution flow not going through CMDIFrameWnd::OnRButtonUp()

779 byte By bhavacakra at 2007-11-25 8:08:27
I have a "class MainFrame : public CMDIFrameWnd" implemented like this:IMPLEMENT_DYNAMIC(MainFrame,CMDIFrameWnd) BEGIN_MESSAGE_MAP(MainFrame,CMDIFrameWnd) ON_WM_RBUTTONUP()END_MESSAGE_MAP() MainFrame::MainFrame() { Create(NULL,"Battleship");} BOOL MainFrame::OnCreateClient(LPCREATESTRUCT lpcs,...

Normal Block error

601 byte By aruna.cabs at 2007-11-25 8:05:01
hello i have an application which sends a data structure through linked list every 50 ms to another program which receives it and plots the values..but the problem is that is a linked list... i am allocating memory and after sending to display i am freeing it..but its showing error :...

Issue in using Get/SetWindowPlacement functions when skinning is applied

1396 byte By girish.hk at 2007-11-25 8:01:24
Hi,I'm using the GetWindowPlacement() & SetWindowPlacement() to restore my application (just simple SDI application with no features added to it). I have used them in OnCreate(..) & OnClose() functions respectively.Actually it works fine, but I have problem only when I skin my application. I�...

to place FlexGrid in ATL window

343 byte By ravi_engr84 at 2007-11-25 8:01:10
We are trying to place FlexGrid in ATL window(CWnd Inheritance).Create is successful, but we cannot get Interface properly.We think that either one or both of the arguments for "QueryInterface" areincorrect.iCannot find REFIID in the help header file.jPlease let us know the solution for this....

nmake fatal error U1045

788 byte By kosomot at 2007-11-25 8:00:10
Hi,I've got a problem - I tried to compile a certain program (namely the Qt library) with nmake, but it throws out an error at the very beginning: fatal error U1045: spawn failed : No error. I thought it's something with the provided makefile, but it appears that nmake won't build any...

WE ARE OFFEREING DIDs FOR PAKISTAN & TOLLFREE FOR 7 COUNTRIES

1355 byte By solution4itsp at 2007-11-25 7:57:28
Dear Friends:Want to setup VOIP company, a business under your own brand name? We have complete solution to launche VOIP (VOice Over Internet Protocol) company. All support comes included.No ties to us, deal with the wholesalers you want and buy VoIP minutes from any one in the market without any ex...

Memory leak problem: " "0x73ecb430" referred to "0x000000" "(Urgent help require

724 byte By chumeodihia at 2007-11-25 7:52:14
Dear all,Please forgive me if I post this entry in an incorrect box or someone has posted this topic before.On my OS: Windows Server 2003, I made an program by VC++ 6.0 that use Internet Explorer (version 7) to open a website. When I complied by using "Built All" button, no error is shown. In Debug...

Combobox problem

568 byte By Lottaspaghetti at 2007-11-25 7:50:55
When I have two or more items with the same text values in a ComboBox with the AutoComplete option disabled and I move the focus away from the control the first of the items with the same text values are automatically selected and not the selected one. IE. My ComboBox has "George", "Adam", "Paul", "...

An annoying VC++ 2005 IDE bug, I have to restart VC

461 byte By zspirit at 2007-11-25 7:46:37
I am in class view and a class is selected the bottom pane in class view shows the functions and member variables. Now this bottom pane gets refreshed periodically all the time at times and completely slows down the IDE. Most of the time I had to restart VC++ to get rid of this situation.I have inst...

Memory Leak for VC++ 6.0 STL,MFC in Overnight Run.

906 byte By jomercepj at 2007-11-25 7:37:11
I am VC++ programmer with 2 yrs experience. I have some quires abt memory leaks. I am working on a server which is supposed to run for at least an year without shut down. The problem I am facing is If I am running overnight my program memory usage increases from 30 MB to 540MB. Big leak in 12 hour...

Compile EVC++ 4.0 from command line

186 byte By pri_skit at 2007-11-25 7:36:19
I am new to eVC, I want to know how can I compile eVC++ project using NMAKE or equivalent for eVC++ project.How can i write a batch file to do so?<br/>thanks in advance.<br/>priyank

fatal error C1067: compiler limit

603 byte By aaaa102 at 2007-11-25 7:35:44
Hi,I am building my application on VC ++ 6.0 and in setting i put "program datbase" in debug info.but it gives me fatal error C1067: compiler limit and the error is shown in MFC file afxcom_.h .The errpr is like this.C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxcom_.h(66) : fatal err...

[RESOLVED] Debug Assertion Failed - m_hIcon

443 byte By fSSulivan at 2007-11-25 7:32:44
my solution was running ok.today when I made build occurred the following error:Debug Assertion FailedFile: afxwin1.inlLine: 24Debuging (F5)I verified that he occurs in this line (LoadIcon)CPirootMakerDlg::CPirootMakerDlg(CWnd* pParent /*=NULL*/) : CDialog(CPirootMakerDlg::IDD, pParent){ m_hIcon = A...

[RESOLVED] SDL - Surface Loading and Blitting Error

838 byte By songofuriel at 2007-11-25 7:25:08
I have the same code as what is written in this site ( http://lazyfoo.net/SDL_tutorials/lesson02/index.php). I'm also quite sure that I followed correctly what's on the Lesson 1 - Setting up SDL ( http://lazyfoo.net/SDL_tutorials/lesson01/preview.php). I even tested this:#include "SDL/SDL.h"...

Debug Assertion Failed!

575 byte By teckhui at 2007-11-25 7:23:06
Hi, i am trying to print a string of data repeatedly to an excel file.I am doing this in a lopp and repeatedly open the file by fopen(...) and fprintf() then fclose() but when i open the exel manually to view the data while the program is still running i get this debug assertion failed error which t...

[RESOLVED] [Error] Cannot open include file: windows.h

1032 byte By songofuriel at 2007-11-25 7:21:22
Hello people,I encountered a problem in compiling after following the instructions presented at [link (https://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/)], since I was trying to include MFC in my MSVC++ Express Edition. Will someone, kindly, help me to fix the problem-- Build started: Pr...

Strange Link error - possible header recurssion but to behonest, no idea...

4937 byte By Ryanoaa at 2007-11-25 7:20:53
Firstly, these are the link errors i'm recieving:main.obj : error LNK2005: "public: virtual void __thiscall composite_Goal::AddSubgoal(class Goal *)" (?AddSubgoal@composite_Goal@@UAEXPAVGoal@@@Z) already defined in goal_Attack.objDebug/AI_Honours_10.exe : fatal error LNK1169: one or more multip...