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

Software Development Network >> Visual C++

Visual C++

New Question

Release build memory problems leading to performance degredation
C++/CLI detecting memory leaks
Content type setup for an application.
Builds with IDE, but with msbuild LNK1104: can't find libc.lib??
GetDC() call
Errors when compiling a VC6 project in VC2005
I want to create a shared memory for my program.Can you give me the example for doing this ?
Build error converting C++ 2003 to 2005
string::find_last_not_of
InterOp:wrapping an observer pattern - or: how can the wrapper be notified if the native class changed

Top Answerers

Terrence Chan
coefficientX
sk3636
AgWells
rodri_ogri
Ondra Br.
Anthony Romano
Joshua Morgan
GrayMatter Software
BobishKindaGuy
sitemap
Only Title

Answer Questions

  • Steve9753 Use Managed Extensions

    Hi, I'm trying to create a project in Visual Studio 2005 and I am following the instructions a friend gave me (as I want to recreate his project) but he is using Visual Studio 2003. I can't seem to find one of the instructions that he asked me to do: Goto: Project->Project Properties->General. Change "Use Managed Extensions" to No. Where can I find this in Visual Studio 2005 or what is its equivalent Thanks DAN Project Properties - General - Common Language Runtime support ...Show All

  • zdrae System.Timers.Timer not elapsing

    I have a two timers in my service that will be reset after some work gets completed. The problem comes in if the service is left running for a few days, the timers will reset but then not elapse. The problem is that without the timers elapsing no work gets accomplished. Any ideas void OnQueueTimerElapsed(System::Object *sender, ElapsedEventArgs* e){ gQueueTimer->Enabled = false ; gLogFile->Write(S"QueueTimerElapsed", false ); /*********************** CODE *********************/ gQueueTimer->Enabled = true ; gLogFile->Write(S"QueueTimer reset.", false ); } should be void OnQueueTimerElapsed(System::Object *sender, ElapsedEventArgs* e){ ...Show All

  • xeondev How do I compile?

    I want to compile a .cpp file with visual C++ 2005 express edition. how My code is: //this program takes two numbers and adds them together #include <iosource.h> void main(){ //define variables float num1; float num2; float total; //get the variables from the user cout << "Enter a number: " cin >> num1 cout << "Enter another number: " cin >> num2 //add the numbers together total = num1 + num2 //display result cout << "The sum of the numbers is: " << total << endl } Unless you are compiling from the command line, you don't compile cpp files individually. Instead you create a proj ...Show All

  • Markus Sch. WaitForMultipleObjects doesn't work

    Hello Everyone! Function WaitForMultipleObjects Requirements: Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95. But this function doesn't work in WinNT. Why Thanks in advance Vladimir Can you give us GetLastError after: CreateWaitableTimer SetWaitableTimer And return results of this functions. Are you sure, that CHECK_PERIOD == 1000 May be it's zero. What do you mean by "it doesn't work" Could you show some code, elaborate on error messages or similar In WinXP SP2 everything is ok, but in WinNT nothing happens: I cannot r ...Show All

  • AboOmar CFont & CDC

    I need out text string with certain size of font I think need to use CFont::CreateFont and associate them with CDC How to make this How to with help mfc determine width and heigh string of text in pixels, Here's an example using CFont::CreateFont to create a font with a specified size and CDC::GetTextExtent to get the size in pixels of a string. The example assumes that you have a pointer to a CDC in the pDC variable. CPoint location( 0, 0 ); CFont font; font.CreateFont( 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _T("Tahoma" )); CGdiObject *pOldFont = pDC->SelectObject(&font); // save the current font CSize size = pDC->GetTextExtent(_T( "Hello Wo ...Show All

  • simon burgess Localizing AfxMessageBox, "Yes", "No" etc.

    I have an MFC / C++ app in Studio 2005 that supports 10 languages using MBCS for Chinese. I can change the language of my GUI by calling SetLocale for each thread and the dialogs and CString strings are then loaded with the correct language. But any calls to AfxMessageBox get the English title (on XP English) of the application and Yes / No / Cancel buttons in English. The CWinApp has a member variable with the app title, so I can reload that. But I haven't figured out how to get the Yes / No / Cancel buttons to change language too. Any ideas I feel a bit silly.  I based my response on this KB (they mention it will start working as of windows 2000) http://support.microsoft.com/kb/152670 I shou ...Show All

  • spelger mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)

    I create a project by 'ATL Project' wizard. Then I set 'Dynamic-link library(DLL)', 'Allow merging of proxy/stub code' and 'Support MFC'. I don't add any code in it. I can build it first time. But after close it and reload it, I get a link error: mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) My VS is: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41984 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0000007-41984 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 77626-009-0000007-41984 Microsoft Visual C ...Show All

  • g0nzo Using resource as a normal file

    Hi, i have a problem regarding resources and files. So i'm using ZipArchive library to manipulate zip files, and i don't want to load file directly from specyfied path, but from resource. I've add *.zip file into resource, but i can't think a way to open it, directly from program. I'am opening archive with CZip::OpenArchive(const char*) // specyfied parameter can have diffrent type, but i think the main idea is obviuos. Thank for help, and sorry about my English if i've made anny mistakes. Something like: rsrc = ::FindResource(0, MAKEINTRESOURCE(YOUR_RESOURCE_ID), "YOUR_RESOURCE_CUSTOM_TYPE") //I do not remember order of arguments it could be id first, also it could be easier if your ids are strings h ...Show All

  • UncleSam89 Redistributing with SP1?

    This has already problem been asked and answered, but I couldn't find another post or article to this effect. I installed SP1 for Visual C++ Express Edition yesterday. Installation went smoothly, and my apps compiled and ran fine. However, when I moved my apps to another computer I got the error "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." I checked to see if the VC 2005 runtime( availble here ) was present and installed, and it was. I finally concluded that SP1 requires a different redistributable. I have everywhere on MSDN but haven't yet found it. I also searched on my computer, but I couldn't find it there either. Please, coul ...Show All

  • mcheung ENCRYPTION SAMPLE IN VC++ 6.0

    I NEED SAMPLE SOURCE CODE FOR ENCRYPTION AND DECRYPTION IN VC++ 6.0 THNK U The following article will help you Check this Article hi encrypting sql script file (text file with .sql extention) content will be decrypted for execution thank u What kind of encryption are you looking for   Sarath. wrote: The following article will help you Check this Article That article is regarding Managed C++, and otherwise requires VC7+. The OP is using VC6. Crypto++ ( http://www.eskimo.com/~weidai/cryptlib.html ) is an excellent library, which should work with older versions of VC. OP: Note that VC6 is no longer supported by Microsoft, and is as such not covered by this forum. Direct fu ...Show All

  • Angry Coder Hide console window

    Hi, in my console application i want to exit the console and switch to a windows form. opening te form works fine, but the console window is disturbing at this time. how can i hide the console window or do i have to create a windows forms project instead thanks in advance! Try FreeConsole(); longwood12345 wrote: Is it possible to make it so that the console windows is never created in the first place Don't spawn a console process. That's controlled by the SubSystem setting in the configuration properties > linker > system section of the project properties. If you want an external process to not have a console window, CreateProcess has flags to control this. Look it up on MSD ...Show All

  • -&amp;#42;-&amp;#42;- problem about font

    problem about font i write CMFont class,it inheritance CFont e.g: class CMFont:public CFont {..........}; ======================== CMFont font; font.CreateFont(...); GetDlgItem(IDC_FONTID)->SetFont(&font); error error C2664: 'CWnd::SetFont' : cannot convert parameter 1 from 'CMFont **__w64 ' to 'CFont *' how to CMFont convert CFont thank:) i am sorry,i write error...... =============New=========== problem about font i write CMFont class,it inheritance CFont e.g: class CMFont:public CFont {..........}; ************COMBOBOX*********** CMFont font; font.CreateFont(...); GetDlgItem(COMBOBOXID)->SetFont(&font); error error C2664: 'CWnd::SetFont' : cannot convert parameter 1 from 'CMFont **__w64 ' to 'CFont *' how ...Show All

  • garethv wating progressbar

    how can i create a wating progress bar or busy progress bar where the progressbar dont now when the work will finshe in mfc c++ do i need to use the CProgressCtrl or another way thanks The MSDN discussion groups should be used to ask Win32 programming questions, not this Visual C++ forum. (This forum is about the tool, not what you do with it.) Brian fst thanks  but how can i use this style i have the manifrest i the style of XP and i am using the  comctl32 version 6.0  but how can i use thos style do i need to any thing else my code is m_Progress . CreateEx ( WS_EX_APPWINDOW | WS_EX_CLIENTEDGE | WS_EX_CONTROLPARENT , WS_VISIBLE | WS_CHILD | PBS_SMOOTH ...Show All

  • DavidC&amp;#35;2005 Complie Error

    I am a new to use VS.net 2005 Today when i complie a DX's application,two errors had happened: error C2440: "init" can't transfer "const char [4] to "LPCWSTR" error C2664: "CreateWindowExW":can't parameter 2 transfer "const char [4] to "LPCWSTR" and why the DX'SDK on june 2006 has not include DirectShow if it has,what is instead of The program is following: ============================ #include "stdafx.h" #include "DX1.h" #include <d3d9.h> #define MAX_LOADSTRING 100 LPDIRECT3D9 g_pD3D=NULL; LPDIRECT3DDEVICE9 g_pD3DDevice=NULL; LPDIRECT3DVERTEXBUFFER9 g_pVertexBuffer=NULL; struct CUSTOMVERTEX { FLOAT x,y,z,rhw; DWORD colour; }; ...Show All

  • Stephen Turner COM newbie question

    when i use COM objects from C++ i need GUID and interfaces definitions.. i usually get them from an header. I noticed also that when i add a reference to a COM object (dll) in a C# project, the enviroment get directly all those informations about classes and interfaces. this suggest me that i could use COM objects even without headers. So my question is, it is possible to retrieve guids and interfaces definitions from a com object thanks to everyone in advice :) C# IDE does this by reading COM component type library. To to the same in C++ use #import directory with COM Dll name. It reads type library and generates wrapper C++ class which can be used by client code. thx, ...Show All

585960616263646566676869707172737475

©2008 Software Development Network

powered by phorum