Software Development Network Logo
  • Smart Device
  • SQL Server
  • .NET Development
  • Windows Forms
  • Microsoft ISV
  • Visual C++
  • Visual C#
  • Windows Vista
  • Game Technologies
  • Visual Basic
  • Visual Studio
  • Visual FoxPro
  • Windows Live
  • VS Express Editions
  • VS Team System

Software Development Network >> Visual C++

Visual C++

New Question

program not exiting properly when compiled using VC8 (this is not a duplicate!)
How to pad a structure size to 32-bit?
Animation control stops ...!!
lnk 2019 error
Addition Operator Overloading Problem
floating point performance on x64 (AMD Opteron)
dialogs appearing behind the main window
error C2440: 'static_cast'
Problem deploying a VC++ application
LNK2019

Top Answerers

Nadavrub
BennyBunny
jfstephe
Frank Gervais
Coyote13
dkintgen
Wong Tin Chi Timothy
herocomplex
Daniela Torres
Spetluri
eZiners Web Solutions Inc.
Only Title

Answer Questions

  • DigDig Help Reading Data from PE Format File

    I am trying to get the section header information from an exe file with the following code #include <stdlib.h> #include <stdio.h> #include <iostream> #include <windows.h> using namespace std; int main() { HANDLE hFile; HANDLE hFileMapping; LPVOID lpFileBase; char filename[100]; scanf("%s", &filename); hFile = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATT ...Show All

  • Xarax setlocale problem with code page 65001

    Hello! I hope someone can help me with the following: I written a console app that forces the locale to UTF-8 (codepage 65001) and the following code works fine if compiled under VC 7.1 However, the call to setlocale() under VC 2005 fails.    if(!SetConsoleOutputCP(CP_UTF8)){         printf("could not set console output code page \n");         return 1;     ...Show All

  • lobot Unresolved external symbol _main referenced in function _mainCRTStartup

    Hello, When I upgraded my code from VS2003 to VS2005, the VS2005 gave me these error responses. Error 189 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Error 190 fatal error LNK1120: 1 unresolved externals The program works well under VS2005. I do not know how to fix this , please help me.... Thank you very much! Yang Thanks for your quick response. I am using MFC. ...Show All

  • zgierski Problem in CCheckListBox

    Hi, I have a Dialog based - MFC application in VC 8.0. There is a check ListBox (having property Owner Draw = Fixed and Has Strings = True) in the dialog. We have added some elements in the list box( The number of items in the list box should be less than the visible height of the list box without the vertical scroll). If we select one item and click mouse outside of the list box or in empty area of the list box then selection remain ...Show All

  • davezh debug information and classes with virtual functions

    Hi, im using vc2005. In my project, debug info relating to (referenced) classes with virtual functions seems to creep in into the output file no matter what i set in project settings (where it is all turned off). This is release mode. Any idea why this is, or how I can stop this, as I would rather distribute my stuff without the debug info By debug info, I mean stuff like this in the output file: AVtype_info@@ AVddumy@@ AVbase@@ etc. VC2003 did ...Show All

  • avishay_y console application Migration to VS 2005 from VS 6.0

    I have a console application developed in Visual Studio 6.0. I can compile and execute from Visual Studio 6.0. I am trying to migrate to Visual Studio 2005. But I get lots of compilation errors like below. Give me some hints on settings for Visual Studio 2005. Thanks, Raj C:\Program Files\Microsoft Visual Studio\VC98\Include\utility(81) : warning C4346: '_It::iterator_category' : dependent name is not a type prefix with 'typename ...Show All

  • Aerosol Processor info

    Is there a function, that give me information about processor (CPU) in my PC (ID, frequency, etc.) http://www.codeguru.com/cpp/w-p/system/hardwareinformation/article.php/c9087__1/ http://www.codeproject.com/system/Using_WMI_in_Visual_C__.asp I would recommend to use this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wmisdk/wmi/win32_processor.asp AFAIK the second link uses this met ...Show All

  • ittay eyal Problem In MFC AppWizard(exe) 2

    my code is like this: double kk; kk=1234.123; bb.Format("%d",kk); pOUTPUT->SetWindowText(bb); The output from the program above is not 1234.123. How come like this Is %d incorrect Please help me solve this. KitZ_CK wrote: Cannot also. Can anyone please help me Try this code :- CString str; double num = 1234.123; str.Format(_T( "%.3f" ), num); Message ...Show All

  • TAMurugan Visual Studio 2005 MFC Applications on Windows 98

    Hi, I am tring to build a unicode app to work on win 98/nt/xp. Built a sample MFC application in Visual Studio 2005 Team suite Beta 2. A unicode dialog app with a button. When run on windows 98 it shows this message.  Installed VCredist_x86 and .NET framework 2.0 latest versions downloaded from web. Also coped mfc80u.dll to the exe folder. Microsoft Visual C++ RuntimeLibrary Runtime Error! This application has requested the runtime to te ...Show All

  • asawaf msvcprtd.lib(MSVCP80D.dll) : error LNK2005

    I am having problems to port our product from vc7.0 to vc2005: Linking... LINK : warning LNK4076: invalid incremental status file '..\..\..\bigworld\tools\worldeditor\BigBang-debug.ilk'; linking nonincrementally msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall std::allocator<unsigned short>::allocator<unsigned short>(void)" ( 0 $allocator@G@std@@QAE@XZ) already defined in edgizmo.lib(soli ...Show All

  • SK123 How to get the size of a double char pointer?

    Basically, I want to get the size of a double char pointer, EG char **x; Not the elements of the individual arrays, but the actual number of elements inside the pointer. I don't want to use vectors or Strings either, I know how to do it that way, but it looks ugly. So if I could get some feedback on this, it would be appreciated. :-) Go for it man, there's no better way to figure out what is really going on ...Show All

  • nereida 2005 upgrade ports Floating Point Consistency incorrectly

    I have a fair sized project in Visual C++ 2003 that I ported to Studio 2005. It's taken a few days to track it down, but I have discovered that Studio ported the 2003 "Floating Point Consistency" project setting (under C++ | Optimization) incorrectly to the 2005 "equivalent" of "Floating Point Model" project setting (now under C++ | Code Generation). My 2003 project was set to Default Consistency (which is ...Show All

  • Ajish M GDI+ : Drawing objects over TabControl

    Hi, I've been working my way around GDI+ for a couple of weeks now. I made a little application where user can choose among several shapes and then move/place chosen shape using mouse, building this way a customized furniture set. The area where user can place each shape chosen is delimited by a panel control for which I defined the background color as having transparent. Everything is going smooth but... As second step, I added a tab co ...Show All

  • Albel How can I make the program assembly version shown after compilation?

    Whenever I right click an executable(for properties), I see five tabs, General, Version, Compatibility, security and summary. I understand that it is taking from assembly.cpp. However, I am not seeing version and summary in my compiled code though I have modified assembly.cpp. I am using Visual STudio 2003, mainly VC++ 2003. Any help or links how to fix this issue Thanks, the version information that you are seeing in that dialog is the ...Show All

  • Ralf P. Using classes from dynamically linked DLL

    I am attempting to use classes that are defined in my custom written DLLs. I am dynamically loading the DLLs using LoadLibrary. I already know how to access functions using GetProcAddress. Is it possible to do something similar for classes You can export classes from a DLL. A solution to your issue would be to put VirtTestBase in a DLL and then export it. The plugin can then derive from the exported class. ...Show All

373839404142434445464748495051525354

©2008 Software Development Network

powered by phorum