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

Software Development Network >> Visual C++

Visual C++

New Question

How can I download a file???
Mixing Managed and Unmanaged C++
Converting byte counted strings to null-terminated strings
compilation error with unmanaged code in C++ project
Deprecated vsprintf
c++/cli array in value struct
may some master-hand help on this issue?
CDialog
Managed COM
FOR Full Text Searching

Top Answerers

Ananth Ramasamy Meenachi
BryanM-NZ
vbh83
jp01uk
j_o_h_a_n_n_e_s
Junkie List
Mike_C123456789
Novicestd
Amitsriva
Pavan Apuroop
Wolf Automation
Only Title

Answer Questions

  • Florin Micle Initializing an array of pointers to functions

    I am writing a dialog based MFC appliation using Visual C++ 6.0. In my simplified test case, I added the following definitions to the header (TestDlg.h). typedef void FOO(); FOO show1{}; FOO show2{}; FOO show3{}; FOO *pfun[3]; At the end of the OnInitDialog() code (before return TRUE;), I attempted to initialize the array as follows: pfun[0] = show1; pfun[1] = show2; pfun[2] = show3; Each of these lines has compile error C2440: '=' : ...Show All

  • Morias Can't set position of console window.

    I was wondering how to set the position of the console window. I want it to be in the top left position of the screen but can't seem to figure out how to do so. This is what i am trying to do. AllocConsole(); m_hStdout = GetStdHandle( STD_OUTPUT_HANDLE ); SMALL_RECT ConsoleWindow = {0,0,40,60}; COORD coord = {40,60}; if (SetConsoleWindowInfo(m_hStdout, true ,&ConsoleWindow) == 0) { // Show error messag ...Show All

  • Mark Hayes hae i need some help

    i made a program in which i used char *name; cin>>name; also i used cin>>*name; but both of these syntax are not giving any error but at runtime debug window opens and tell me whats unresolved external errors i think it will be stupid to ask these question frm ya but i am a new programmer what so ever so please reply me as soon as possible or tell me if i have any concept mistake In this situation it would be bette ...Show All

  • trillian managed targeted code requires a /clr option

    I am working on a VC++ 2005 project and I get a message "managed targeted code requires a /clr option" when i try to build this project do any one have any suggestion I trying to use a function in the mscorlib.dll to be able to work with the function like, clear, etc. #include <iostream> #include <string> // CL/CLR startup.cpp #using <mscorlib.dll> using namespace system::console; using std::cout; //program uses cout using std ...Show All

  • BryanMiller using DLLs

    After I maked a DLL for example d.dll and I added to new project,when I want to declare a type from that namespace for example   d::someclass *new_type = new someclass () ; the compiler generate this error: error C2871: 'd' : a namespace with this name does not exist how can i correct that error ( for add a DLL to a project i select references > add from solution Explorer and choose a DLL file ) thaks ...Show All

  • PabloL CRecordSet ReadOnly in C++ Dll called from .NET

    We are moving our existing VC++ V6 app to .NET using Visual Studio 2005 beta. To save on time we have been able to wrap up a lot of our existing base code into a separate C++ project within the .NET application. The main .NET application uses ADO.NET to connect to our SQL Server DB, the old C++ code uses ODBC via classes derived from the MFC classes, CDatabase and CRecordSet. We have completed some initial coding of the application and have be ...Show All

  • John Bar openGL with forms

    I get openGL to work fine with a CLR Console Application or a Win 32 Console Application but when I try it with a Windows Forms Application project type then I get the following. This is Visual C++ 2005 Express Edition. Program Files\Microsoft Visual Studio 8\VC\include\GL/glut.h(486) : error C3641: 'glutInit_ATEXIT_HACK' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe 1>C:\Program Files\Micro ...Show All

  • Sumit Kute LPCTSTR

    Hello all, I've got another question.  I'm using a bit of code written by Nishant Sivakumar ( http://www.codeproject.com/tips/CSMTPConnection2.asp ) to send an email programmatically.  The code is relatively straightforward and there are no problems during compile EXCEPT... Error 3 error C2664: 'ATL::CMimeHeader::SetSender' : cannot convert parameter 1 from 'const char [19]' to 'LPCTSTR' SetSender is a member of CSMTPConn ...Show All

  • Luu Minh Khoa using a 'C' dll of classes / functions from c#

    I have a DLL that exposes numerous functions (C), and numerous classes (C++). How can I create an instance of any of these classes in c# How can I call any of these functions in c# The O.P. is talking about a native DLL. Reflection is thus not an option. Hooper wrote: Hi, What I have been trying is Reflection. Using assemblies I look for a specific type, the class, and then create an inst ...Show All

  • AleXXus Re-engineering

    Hello, I haven't been able to find any information on what kind of (mainly legacy C and C++ code) re-engineering support exists in Visual Studio 2005. Is there any and if there is, where can I find more information on it I mean features like (1) creating diagrams and architecture documentation according to dependencies (function calls, macro calls, class hierarchies/associations, include file hierarchies, directory structure, ...) in ...Show All

  • mgiles Why no single-threaded support in compiler options? This breaks the /Za switch...

    >Is there a way to enable single-threaded support in VS2005 Michael, No, the single threaded libraries have been removed for VS2005. Can you give a minimal example of the problem you have - perhaps someone can help. Dave I think they are putting stuff in my code because the executables are about %15 bigger under 2005 than 2003 when I could disable language extensions and have no side effects wit ...Show All

  • Patricia Raj Using Hooks and Using Mouse Commands

    Hello, I have a couple of questions; first of all, is it possible to use hooks (e.g. - WH_Keyboard) in a windows forms application in VS2005 Secondly, how is it possible to move the mouse, make it click at points, drag etc... With Thanks,                     Gal Beniamini. Hello Martin and thanks, I still have one last question which is; wh ...Show All

  • Raj_Singh Opening Xml Files with C++

    Hi, I would like to know how to open an Xml File and the methods to use to access its diffrend nodes and add some new ones With C++. I usualy use C# and VB So if you have sample C++ Code it would be great. Thanks for your help. stlaural wrote: Hi, I would like to know how to open an Xml File and the methods to use to access its diffrend nodes and add some new ones With C++. I usualy use C# and VB So if you have sample ...Show All

  • penyaskito Optimizing Link Times

    I'm trying to merge our multi-dll project into a single EXE to get more advantage out of LTCG. The problem I'm having is that making this change has taken link times from 20-30 seconds up to 2:20, without enabling LTCG (in a debug build). I have incremental linking and use library dependancy inputs enabled, and with the uber-verbose output, it appears to be functioning. My final exe size in debug is 38 MB, and my .ilk file is 127 MB. Are there a ...Show All

  • Martin Hart Turner runtime error

    I have a computer that when you cut it on it goes all the way through windows xp home edition and starts and then gives an error message: runtime error: Program:\ \C:\windows\system32\winlogon.exe, this application has requested the runtime to terminate it in an unusual way. That is probably not related to VC++. Please contact the MS support in your area for such issues. Thanks, Ayman Shoukry VC++ T ...Show All

767778798081828384858687888990919293

©2008 Software Development Network

powered by phorum