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...
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
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...
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)...
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...
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...
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...
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...
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...
6 byte By
tlamere at 2007-11-25 11:17:08
delete
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...
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.
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...
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...
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...
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...
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...
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>...
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...
37 byte By
paulw0t at 2007-11-25 10:30:57
Sorry in wrong forum can you delete ?
Hi<br/>how can i handle "debug errors" and "application errors" through my own exception handler...<br/>Thanks for quick reply
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...
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...
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....
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...
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...
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...
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...
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...
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...
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" ....
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...
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...
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,...
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 :...
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...
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....
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...
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...
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...
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", "...
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...
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...
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
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...
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...
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"...
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...
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...
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...