-
- "Layered" precompiled headers
by Jelle van der Beek
- 6 Replies
- Last post
by Simple Samples
- Hi,
I'm reading the book "C++ templates, the complete guide", and in section 6.5 the writers suggest to use layered precompiled headers. With that they mean to have multiple precompiled headers, but also to have a precompiled header to use another precompiled header, as if it inherits the other precompiled header.
For instance, have one header containing all std includes like vecto
-
- Visual Studio .NET 2003 Vs. Visual Studio 2005
by namelessuser
- 4 Replies
- Last post
by Simple Samples
- Hello, I recently installed Visual Studio 2005 and noticed that when I make a C++ Win32 Application (even a simple "Hello World" application) it doesn't run on a computer without the framework installed. It simply displays a message saying that the configuration of the application is incorrect (or something similar), which is normal, given the fact that it needs the framework installed t
-
- MIDL : Linking error LNK2005
by cguillemette
- 5 Replies
- Last post
by Holger Grund
- Hi,
We have this working A.idl and B.idl file with witch we had always generated their respective stub files with MIDL. We then compiled and linked them with C compiler . Everything is working well this way.
We then decided to use the C++ compiler, compilation worked but linking B prints the following error (See bottom of post). Seems like the struct _MIDL_PROC_FORMAT_STRING and _MIDL
-
- What happened with IntelliSense in Visual C++ 2005 SP1 ?
by Catalin Stavaru
- 10 Replies
- Last post
by Legyndir
- Hi,
I am having a big problem using Visual C++ 2005 SP1. IntelliSense works awful, I barely get some IntelliSense now and then. Before, when using Visual C++ 2003 and 2005 without SP1, it worked beautifully. If I added a member to a class, it was immediately intellisense-visible in the class functions. In SP1, I add a member and it is not visible for a very long time.
Also, the current v
-
- Help with something stupid
by Exo_23
- 4 Replies
- Last post
by Exo_23
- Ok, people.
This is my problem...
I have two structures
struct Insurance
{
...
...
};
struct Person
{
...
Insurance insurance;
};
Person * Add();
void main()
{
Person *array = new Person[10]:
...
...
}
So I need to assign array members using Add function but I have no clue
how to implement this function because it doesn't accept any para
-
- Running a very simple Win32 app on a comp without VC++ 2005 Express
by Andreas_
- 14 Replies
- Last post
by Ted.
- Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied t
-
- Meyers and iteration operators
by Shakje
- 4 Replies
- Last post
by Shakje
- A colleague and I were chatting about it earlier, and I was just wondering where does Meyers talk about using ++a instead of a++ I can't seem to find it easily, wondering if someone could remind me of the reasoning behind it (even though it probably doesn't make any difference at all anymore) for curiosity's sake.
-
- Simple postfix increment question
by Chris.G
- 3 Replies
- Last post
by Chuck the Code Monkey
- Hi ! Consider a pointer class Ptr<T> behaving like a pointer. Is the result of the following code completely defined or is it compiler dependent Ptr<T> p = some_valid_address; *p++ = 2 * *p; I ask this because VC++ 8 gives me different results depending on whether I compile with no optimizations (/Od) or full optimizations (/Ox). /Od seems to generate something like: *p = 2* *p;
-
- problem in RegQueryValueEx
by ru_um
- 3 Replies
- Last post
by ru_um
- i am trying to set values under registry which is not there in registry...
but every time it set values with new data szValue even if already there in registry...
for ( int cnt = 0; (RegEnumValue(hLocalKey,cnt,szIp,&dSizeIp,NULL, NULL,NULL,NULL) == ERROR_SUCCESS); cnt++)
{
for ( int i =0 ; i < num_ips ; i++ )
{
if (_tcsicmp(szIpaddress,szIp) != 0 )
Re
-
- CEdit doesn't receive arrow keys - ActiveX Control
by EoF
- 2 Replies
- Last post
by EoF
- Hello, I have a problem with an ActiveX Control for IE. I have an CEdit control and it doesn't trap the WM_KEYDOWN message for the arrow keys. I've researched this a little bit and found KB168777 that is supposed to remove this problem but it only works for COleControl-derived classes and my class is not COleControl-derived. Any help would be appreciated!
-
- Atl/Wtl BHO with MFC Extension Dll
by ankurtech
- 3 Replies
- Last post
by Ramkrishna Pawar
- Hi Everybody,
I am stuck in memory management, I am developing Toolbar for IE and FireFox, so i develope two different toolbars oneis for IE using ATL and WTL and other for Firefox using javascript and XUL. Now to provide these toolbar some functionality I am using MFC Extension DLL ( As I need to show some dialog boxs fro this DLL). My problem is that whenever I am trying to allocate a charac
-
- Detected memory leaks!
by &#40643;&#2785
- 5 Replies
- Last post
by üSãüÁ¿ Jeremy Wong
- I obtained the following strings in the output windows when I exited my program. How to read it Detected memory leaks! Dumping objects -> {45} normal block at 0x013C1A60, 16 bytes long. Data: < qf f - - > E8 71 66 00 0C 91 66 00 F0 2D BD 00 C0 2D BD 00 {44} normal block at 0x013C0040, 16 bytes long. Data: < qf f / @ > E8 71 66 00 0C 91 66 00 A0 2F BD 00 40 12 BD 00 Object dump
-
- Float structure
by Espen Ruud Schultz
- 2 Replies
- Last post
by Marius Bancila
- I understand that a float in its binary form have one part that is its value. And one part that is its exponent. But I need to find how exactly a float is structured. How many bits are used for the two parts, etc...
Need this information to contruct my own float to string converter.
TIA!
, Espen
-
- Microsoft Forms ActiveX Controls don't register
by parreg
- 1 Replies
- Last post
by parreg
- Hi All,
I recently installed VS 2005 for C++ on a new computer with installed WindowsXP. In doing so I noticed that
the Microsoft Forms ActiveX Controls as well as others did not register, and do not show up as ActiveX controls. In previous installations of the exact same VS 2005 this was not an issue. I therefore can't run tranfered programs from the other computers because the ActiveX
-
- Using java.util in C++ .NET 2005
by STabrik
- 1 Replies
- Last post
by Bruno van Dooren
- Hello,
I need to use java.util functions in my C++ project. I have included vjslib.dll and vjslibcw.dll in the references and try to import this namespace:
Using java.util;
But the namespace is not recognized. I appreciate if someone could help me with this issue.
Thanks in advance.
-
- Run external tools with vc++ directories
by Blicero
- 7 Replies
- Last post
by Bite Qiu - MSFT
- Is there a way to set up an external tool to run with the environment variables from VC++ Directories in visual studio 2005
-
- Data::Table::Select statement, C++
by Thomas2054
- 1 Replies
- Last post
by Thomas2054
- I am trying to convert a C# statement into an equivalent C++ statement.
The C# statement is:
websitesDataSet.SiteRow[ ] sites = (websitesDataSet.SiteRow[ ])websitesDataSet.Site.Select"CategoryID = " + catID);
That is, an array called "sites" of unspecified size is created and a cast version of the records (or rows) that meet the select criteria is then ente
-
- IMPLEMENT_DYNAMIC() error
by shwany
- 3 Replies
- Last post
by Damien Watkins - MSFT
- I am creating a class object that is inherited from COleDropTarget.
class CTest1 : public COleDropTarget { DECLARE_DYNAMIC(CTest1)
public: CTest1(); virtual ~CTest1();
protected: DECLARE_MESSAGE_MAP() };
When I build using "Use MFC in a Shared DLL", it's work fine.
but I buid using "Use MFC in a Static Libiary", it's not bulid.
I get the following error mess
-
- Project : error PRJ0002
by Wardyahh
- 8 Replies
- Last post
by xtronus11
- hello i'm a complete novice in visual studio 2005 and was wondering if i could get some help from the pro's i have Visual Studio 2005 Professional Edition and was trying out some basic (and i mean really simple) code to get to grips with it and then work up, i'm not new to c++ as such so i'm pretty sure the code is ok i was trying to build a simple hello world program in a win32 console applica
-
- Memory leak with MS 32 - Bit C++ compiler (v14) and C++ event_source attribute
by OmegaSigma
- 1 Replies
- Last post
by crescens2k
- Hello,
if in a C++ project the C++ attribute " event_source " for a C++ - object is used a memory - leak appears if the connection to the event - Provider object is released with the "__unhook" function.
The memory for the node within the event client list is not freed (32 Bytes). I found the reason for that memory leak within the injected Code of the func
-
- Using debug dll:s in release build?
by andy237
- 5 Replies
- Last post
by andy237
-
- Accessing Graphics in .resx files
by DB-9_Connector
- 0 Replies
- Last post
by DB-9_Connector
- I wish to keep a set of graphics files in a .resx file with the project. I am at a loss as to set the typeid to point to a different .resx file.
InputMix.resx is a system generated .resx file that is recreated every time I modift the form. If I manually add the graphics to this .resx file, the program runs and I can access the .jpg file. But when the form is touched, the compiler recreates
-
- AfxGetApp() returns NULL in DLL
by dezhur
- 12 Replies
- Last post
by dezhur
- Hello!
I have next function inside the MFC shared DLL library:
BOOL CMyBasic::CheckMessageQueue() { MSG msg; while (: eekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { if (msg.message == WM_QUIT) { return(FALSE); } else { ::GetMessage(&msg, NULL, 0, 0); ::TranslateMessage(&msg); : ispatchMessage(&msg); } } AfxGetApp()->RestoreWaitCursor(); // <-- AfxGetApp()
-
- memory could not be read, unmanaged memory problem?
by mgilorma
- 2 Replies
- Last post
by mgilorma
- I'm trying to fix a program that somebody else wrote, and in the code there are instances where they are converting to unmanaged memory using Marshal: tringToHGlobalAnsi to covnert a managed string to a char *. I believe this is what is causing the program to eventually spit out the following error: The instruction at 0x7c9111cd refrenced memory at 0x0504da88. The memory could not be "read&qu
-
- COleControl::FireEvent() not working!!!
by Vinod N N
- 10 Replies
- Last post
by Vinod N N
- Hi,
I want to call COleControl::FireEvent() to send a notification from one OCX to another. Eventhough the FireEvent() is called, the event handler function on the other OCX is not invoked at all.
Can any one point out the things to be ensured for the correct working of FireEvent()(the correct communication b/w the two ActiveX controls)
Rgds,
Vinod N N