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

Software Development Network >> Visual C++

Visual C++

New Question

How do I get font width and height in pixels ?
Problem instantiating my own class
syntax error : missing ';' before '*' compile error using diffpack library with vsc++6.0
Visual C++ Toolkit for VS2005?
Can't use gcroot with derived interface
Resource Editor: Add/Remove operation is impossible ... read only (NOT)
Dialog Editor -> Add Variable - Control Id field is blank
ap libraries
rand() not being random!!!
Edit Box And Timer

Top Answerers

JanJacobs
shwethak
jnys
E00Y
Peter607
Brad Rhodes - MSFT
Daniel Guerra
CMcGuire
daveky
Bryan D.
Retic锚ncias
Only Title

Answer Questions

  • Ranjit Charles Will porting a project from Visual C++ 6.0 to Visual C++ 2003 improve look of GUI?

    We are about to embark on upgrading from 6.0 to 2003 (and possibly 2005 to follow shortly afterwards). We are fairly sure this will give us some nasty headaches through compiler changes, but what we'd like to know is will we get a more XP-like look to our UI through compiling it with the newer libraries - The project uses MFC. Thanks for the advice. I followed the steps in the first link, but when I try to run ...Show All

  • rob111rob ifstream performance

    I'm finding that using ifstream to read in numbers from a text file runs slow in MFC applications (vc++ 6.0). This seems to be related to MFC applications being multi-threaded. In a console application without MFC, the following code ifstream in("test.txt"); double x; while(!in.eof()) { in >> x; } in.close(); runs 3-4 times slower when Project Settings - Code Generation "use run-time library" is Multi-thr ...Show All

  • Thomas Lindgren Linking problems about MFC and others

    Dear all, I meet some linking problems as follows. I have added afxwin.h in the head file. Also, I use these libs: strmbasd.lib Quartz.lib strmiids.lib  winmm.lib msvcrtd.lib Kernel32.lib oleaut32.lib vfw32.lib advapi32.lib version.lib largeint.lib user32.lib gdi32.lib comctl32.lib ole32.lib olepro32.lib uuid.lib WSOCK32.LIB log.lib Could you please give me some ideas about that thanks Linking... StdAfx.obj : error LNK2001 ...Show All

  • Selven cp->CompilerOptions = "/optimize"; and other questions

    cp->CompilerOptions = "/optimize"; statement lists only one parameter /optimize. What if I need to use more than one Do I have to list them all in one string or I can use a sequence of statements: cp->CompilerOptions = "/optimize"; cp->CompilerOptions = "/Z7"; cp->CompilerOptions = "/Gd"; or for this matter : cp->CompilerOptions = "/Od"; Also can I use this statement: cp->CompilerOptions = "/Ox"; versus "/optimize" It is ...Show All

  • NDen Problem running in release mode

    When I compile my program in Debug mode it works perfectly, however when compiled in Release mode tons of weird things go wrong. The data that is read from my files is incorrect, and sometimes it will just crash for no apperent reason. Is there some setting that I need to change to make Release version compile correctly There are millions of reasons for such a problem. We need more specific infos about your pr ...Show All

  • Mark Wienzek Visual Studio 2005 edition required for C++ profiling

    Hi, Could someone clarify which Visual Studio 2005 edition is required in order to have the ability to profile C++ code execution. The product comparison grid seems to indicate that the team system edition is required, but the buying guide at http://msdn.microsoft.com/vstudio/howtobuy/guide/default.aspx (Judd appears to be my man here - Judd needs the professional edition) says that "profile guided optimizations brings our work to the ne ...Show All

  • SDagger Shellexecute error

    HI, string cmd = ""; cmd = " -l "; cmd.append(user); cmd.append(" -pw "); cmd.append(pwd); cmd.append(" "); cmd.append(host); ShellExecute(NULL,TEXT( "open" ),TEXT( "putty.exe" ),TEXT(cmd),NULL,SW_NORMAL); I constructed a string that contains parameters for my .exe file. But when i try to insert the string into the ShellExecute command i got this: error C2664: 'ShellExecuteW' : cannot convert parameter 4 from 'std::string' to 'LPCWSTR' No u ...Show All

  • RacinRan MFC Message Routing to active view from a dialog box

    Hey everyone, I an working on a MDI MFC application (although the multiple documents aren't currently being used, just the multiple views). The program uses a modeless dialog box to take user input. The dialog box has an edit box that lets a user type in a command and an enter button for the user to enter the command in the edit box. The program makes use of multiple views through the "new window" item in the window menu. ...Show All

  • rohit_singh1679 Isolated COM/Replacements file

    I am looking into using your manifest tool to generate our manifest files, however I am looking for documentation on the "Replacements File" property. Looking in the documentaion all I see is: Uses the /replacements option to specify the full path to the file that contains values for replaceable strings in the .rgs file. What are theses replacable strings and are there any examples of how to use them Thanks, Mike ...Show All

  • Joseph Torre How Do I? Compile VS6 C++ projects from the command line.

    Can anyone point me to documention or information on how to extract the command line arguements from VS6 projects How do determine the post build steps the IDE is configured to take (that copy files to a common directory and register COM objects) Once I have the command line arguements what command would I use to compile the VS6 projects exactly like the IDE would compile (and register) them I am working for a very small startup and ...Show All

  • Mars.Wind need english

    Getting ready to work on another lab for school and I'm having trouble understanding the lab. This is the program they want me to write: Write a program that declares two twenty-element, one-dimensional integer arrays. Your program should fill these arrays with random numbers by calling a function called Fill_It. You will call Fill_It twice, once for each array, and ask the user to enter two different seed values. Fill_It needs to have a seed va ...Show All

  • jeroln Problem with _CrtSetReportHook on VC++ 2005

    Hello there! I have some a problem when i use _CrtSetReportHook( _CrtSetReportHook2 also has the same problem). as a parameter to _CrtSetReportHook i have a funtion: static int report(int reportType, char *message, int *returnValue); to dump the output data in a file. but when my program exits and the CRT Library attempts to call(automaticaly) the report() funtion i get an access violation at a file named stream.c at this line: ...Show All

  • Sam Gentile MVP - .NET Linking error while using VS.NET2003

    Hi    I am using VS.NET 2003 to build a project. I get this linking error when I try to build a project .   vc6-re300dm.lib(wide_posix_api.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" ( _Xlen@std@@YAXXZ ) referenced in function "private: bool __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::_Gr ...Show All

  • ebi_faratar crash problem with release build (vc7.1)

    hi, i have a curious crash problem in release build of my application. it is kind of game platform which integrates several software packages for rendering, physics, in-game gui, etc. the crash happens only sometimes and is not completely reproducable. i have built the app and all dependent libs with multi-threaded option and program data base ( /Zi, and the linker is also instrumented to generate debug info). so when the crash happens i can obs ...Show All

  • andrew_ Compile Error

    I have some training in C++ but limited expererience. I am editing a program written to change some configurations. #define MAX_DESIGNELEMENTS        500 The limit needs to be increased. When I manually edit and recompile, I get an error message - resource.h not found. How should I go about correcting this. Any help will be greatly appreaciated. The compiler cannot find a header file named "resource.h" ...Show All

192021222324252627282930313233343536

©2008 Software Development Network

powered by phorum