Software Development Network Logo
  • VS Team System
  • Microsoft ISV
  • Smart Devicet
  • Visual Studio
  • Windows Forms
  • Visual C++
  • SQL Server
  • Visual FoxPro
  • Audio and Video
  • Game Technologies
  • IE Development
  • Visual C#
  • Visual Basic
  • .NET Development
  • Windows Vista

Software Development Network >> Visual C++

Visual C++

New Question

Problems connecting C++ and VBA using a DLL
C standard applications in Visual Studio 2005
Calling native dll functions from managed C++
error LNK2005 on static class variable
Does Edit and Continue work in VS2005?
how to get all invoked system API of a program
i++ or ++i which one efficient
validating the user credentials WINDOWS2000 and XP
.pdb differs from previous link; relink or rebuild error
Visual C++ 2005 Precompiled Header Bug?

Top Answerers

NickoM
vTyphoon
Jan Kučera
etcheverrjc
Jocker23
kgkidd
Kamii47
Devver
Toni Greco
Vinit Tyagi
sitemap
Only Title

Answer Questions

  • Dietz Memory leaks created by the compiler/ run-time system

    I have spent nearly two weeks trying to find some memory leaks in a program I am developing. Initially I thought it had something to do with PlaySound (see previous post, 30 Jan 2007) but that was not so. I have now discovered some hidden memory leaks in C++ which I am happy to share with others. (Please note I am using Version 6.0. It’s possible these problems have been fixed in later versions.) The following code: CSize test = pDC->GetTextExtent(“ABCDEFG”); creates a memory leak. I thought that all memory allocated within a function (when not using ‘new’) would be deallocated at the exit, but this is not so. My best guess is this. GetTextExtent has two forms and the form used above needs a CString par ...Show All

  • Mayero Native C++ : Report on what the optimizer has done?

    I've recently fixed a problem in my code where the optimizer "optimized out" a variable assignment, causing problems. The assignment happened in one module and any reading happens in other modules, my guess is the compiler thought the assignment was useless and discarded it. Is there any way to get a report on what the optimizer has found / changed after doing a compile/link If you can post the function that uses the the global variable where the assignment to it gets optimized away, then Microsoft can investigate this issue and come up with a fix in a future version. This is a necessary next step in getting closure on this issue. Also, if this is a local variable, then using the volatile ...Show All

  • maulikk Hexadecimal Representation of an object?

    Hi, I would like to get the hexadecimal representation of an object and display it as a String, how would this been done using C++ .Net (VS 2003) Thanks! Would anyone know I have searched the net though can't find anythin Anythin in .Net which allows me to do this Would doing this work   Convert::ToInt32(objectname, 16);   Thanks Many thanks einaros for your reply and time I will look into what you said. Thanks!! Well yes, there are ways to do this through the marshalling classes. I've only done it in VS2005 (.Net 2.0), though. I haven't got 2003 inst ...Show All

  • Larry_t why ok with istream but not with ostream?

    Hi there, In my program, I define a class Mytype. In order to make cin>> and cout<< availbe for Mytype objects, I include iostream and declare ostream& operator <<(ostream&, const dvariable&); istream& operator >>(istream&, dvariable&); But the combiler, visual studio 2003, seems not recognize ostream at all and gives a lot of error messages about the line with ostream, eg, syntax error: ',', 'int ostream': redefinition, syntax error : missing ';' before '&', etc., while the line with istream is fine. Any suggestions are appreciated. rich judging by <iostream.h> you code uses pretty old staff (iostream.h expired like 5 year ...Show All

  • Paval upgrading application from windows2000 to windows XP

    Dear All, We have an application developed to work on windows 2000 and we want to run the application on windows XP now. Any changes are required to the application software Please suggest. Thanks XP must be 100% backward compatible for applications running in 2000, unless application code uses undocumented features and internal structures which are subject to change. Thanks a lot for the clarification Hello Martin and Alex, Thank you very much for your answers. I found in the code that the application checks for the operating system and if the OS is other than 2000/NT it aborts. Please find below that part of the ...Show All

  • bjkaledas VC++ 2005 Express deployment problem

    I've struggled with this unsuccessfully for 3 solid days. I've got a tbv.exe and a tbv.exe.manifest file produced by VC++ 2005 Express. Works fine on the computer I compiled on. Unfortunately, I'm unable to get it to work on anyone else's computer because it can't find the runtime system msvcr80.dll on their machine despite me having them download and run vcredist_x86.exe Sounds familiar So I studied the thread "Running a very simple Win32 app on a comp without VC++ 2005" and I've been unsuccessful with the Answer described there. I come from a Unix/MacOSX background, so there must be something obvious I'm missing. I followed the Answer suggested there. My application directory is called treebankviewer contains tbv.exe and tbv. ...Show All

  • Sunil Virmani Adobe\Acrobat 7.0\ActiveX\pdfshell.dll appearing in my executable

    During execution under the debugger of the debug configuration of MyOgm, I see the following in the output window. 'MyPgm.exe': Loaded 'C:\Program Files\Adobe\Acrobat 7.0\ActiveX\pdfshell.dll Since I am not using pdf or ActiveX in my program, where did this come from Is VC++ linking it into MyPgm How can I remove it, and all similar baggage hello check project properties page->linker->input->additional dependencies to see if pdfshell.dll is in there and delete it. If you cannot find it. Try to use dependency walker to see which function you are importing from this dll and search this(maybe not only one) function(s) in your project, it is much likely that nothing found, then search t ...Show All

  • Milzit Different behaviour of MainFrame with classic and XP styles!

    In my windows profile Windows Classic style is set. My application has no scroll control here. But when it is run on computers with XP style windows, it gets a big vertical scroll to move my View up/down. I really don't want no scrollbar on my application. First thing I did was to set FALSE parameter in View's InitInstance here:  GetParentFrame()->RecalcLayout(FALSE);  ResizeParentToFit(); ... but, it did nothing to remove my unwanted scroll! Then I tried this piece of code:  CRect r;  GetClientRect(r);  SetScaleToFitSize(CSize(r.right, r.bottom));   .. and that removes the scroll, but now left side of the mainframe is empty, and there is just about enough space left ...Show All

  • cverdon Reinstalling VC++ 2005 - New machine

    Hi,   This week, I acquired a new computer.  Before I erase former computer, I installed and configured my development environment.  No problems except when I tried to install and configure Visual Studio 2005.   Everything went OK except the fact that after successfully compiling a sample C++ application, I cannot run it...  I even tried to run a few C++ applications (.exe) I made in the past (out of VC++ 2005 environment on former computer), directly from Windows explorer, and I cannot run them either...  Seems something is missing...   I compared programs installed between my former machine and my new machine and the only difference I could see  ...Show All

  • knvb Trouble using blocking calls in a c library from ATL com

    I have created a ATL com project which uses a external C library. This C library does some blocking network calls. But the when I use these blocking calls from the com component these calls don't block instead they return immediately. Is this happening because of the windows message loop Direct such questions to the newsgroups at http://msdn.microsoft.com/newsgroups , and specifically http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ole&lang=en&cr=US . This forum deals with C++ language issues, and as few off topic questions as possible. The scope of this forum can be summed up to include the C++ standard, Microsoft extensions (be it CLI or to the native language) as well as the standar ...Show All

  • Timon Christl XML file operations in MFC

    Hi , I have to write data such as names into an xml file. can anyone tell me how to open and write data in an XML file using MFC . Thanks Thank u both for replying. Can u plz shw me hw to write a small program to add data to the xml file. There isn't XML direct support in MFC (classes to work with XML). For that you can use MSXML parser or xerces-c for example. h ave a look on this Thread http://www.codeguru.com/forum/showthread.php t=408426 #import <msxml.dll> named_guids using namespace MSXML; A Example for Creating a XMl File with Some node and value Function is Devided in two Parts So Easy to understand Code: IXMLDOMDocumentP ...Show All

  • Richard G.H.Lin Building standard unmanaged win32 DLL which calls functions in a managed C# library

    Hi, I would like to build a standard DLL which calls managed code library. Is it possible If possible, how Can anyone provides some references to online resources With many thanks. ok, so I still haven't been able to get this to work. Here is a big picture of everything that I have - I have a C# class called "Program" (yeah, bad name I know, but I didn't create it) that can call a web service. I have a C++ MFC DLL that has a few methods that are "exposed" to Windows (I can call the methods from a program I have that can import DLLs). I am trying to wrap the C++ DLL around the C# "Program" class (or even a single method would be fine). I have added "Program.cs" as a reference to my C++ ...Show All

  • MuscleHead Where should I link?

    Hi, I'm trying to build a DirectX program. I get linking error: main.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function _WinMain@16 I get the error using this line of code: g_D3D = Direct3DCreate9( D3D_SDK_VERSION); Where should I link d3d9.lib, I believe. When you're about to ask such questions, see the documentation which ships with DirectX. Navigate to the referenced function, e.g. Direct3DCreate9, and look for a library reference. fighter92 wrote: I have linked there, but it doesn't help The docs specify that library, so I'm guessing you aren't linking the right file after all. Where have you added the dependency As an alte ...Show All

  • CoachBarker Connecting to printer in MFC

    Hi all, Do anyone here know how to print a string for example to printer in mfc Is there any command or class available Thanks alot! You can use CDC class for Printing. CPrintDialog::CreatePrinterDC function can be used to create Printer device context. You can refer any of the articles listed in codeproject for reference https://secure.codeproject.com/printing/ ...Show All

  • dr.acv VC++ project compiling slower on Visual Studio 2005

    We originally had our main application which consists of a single solution and 5 projects in Visual Studio 2003 Professional. There is a linear dependency between the projects (Project 5 depends on project 4 which depends on project 3 and so on). A full rebuild of the solution used to take approximately 15 minutes under VS2003. I used the build timer in VS. We recently moved to Visual Studio 2005 Professional because a separate internal tool we develop benefited from the use of OMP. Since the tool and our main application share some of the same projects, it required us to upgrade to VS2005 for both. We used the wizard conversion tool to convert from 2003 to 2005. Now a full rebuild of the main application takes approximately 25 minutes. Ag ...Show All

858687888990919293949596979899012

©2008 Software Development Network

powered by phorum