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

Software Development Network >> Visual C++

Visual C++

New Question

First-chance exception occurs when using socket?
Help Finding a Setting
conditional compilation; Intellisense doesnt seem to be working
(Newbie) - getline - Import/Export file
Hyperlink to a dll on a website
VS 2005 linker bug
need help with console window closing to early
Zipping in VC++
C6.0->VS2005 -user messsages- ON_MESSAGE error C2440: 'static_cast'
Refreshing an rich edit box

Top Answerers

PhaedraC
Christian Bayer
EastNayl
James Talon
greyhound75635
Lord Steve
Wayne Woodbury
greycats
Ivo Manolov MSFT
C#Architect
Perlscripten.de
Only Title

Answer Questions

  • Jim Wang This is kind of a newbie question but i am stuck

    this is my simple hello world program #include <iostream> using namespace std; int main() { cout << "Hello World" ; } The prgram runs in the black command prompt window thing but it flashes on the screen for only a second and closes.  Normally, after it runs, the widow should stay open and display "Press any key to continue..."  HELP!! system("PAUSE"); before return 0; ...Show All

  • cmb082000 Putting something in stdin

    Hey, I'm writing a cli, I use getc to get the input from stdin. Now when a tab is pressed I call a function that sees if any completions for the (partially) typed in command are available. If completions are available I want to put them on stdin so that getc processes them, how can I do this Thx, Steven You should probably add some abstraction. If getc() calls a function HandleChar() the auto-completion ...Show All

  • NOVA_devel Addition Operator Overloading Problem

    Hi folks, I'm writing a Windows Forms app in Managed C++ for MS Visual C++ 2003. I wanted to overload the Addition operator for the System::String class so that I could Concat Strings with '+'. However, when I added the following code: static String* op_Addition(String* strStringA, String* strStringB) { String* strResult; strResult = String::Concat(strStringA, strStringB); return strResult; } ....... Form1(void) { InitializeCo ...Show All

  • Alan Smith MVP Using <gcroot>

    The idea of the class is controlling some text data: #include "stdafx.h" #include "gcroot.h" using namespace System; class rCurrency{ public : gcroot<System::String * > txtContent; void connectToInet( void ){ txtContent= "s" ; Console::WriteLine(txtContent); } }; int main() { rCurrency* s; s->connectToInet(); } But this doesn't work: A first chance exception of type 'System.NullReferenceException' occurred in VIP. ...Show All

  • Santosh Thankachan Structs and CArrays

    I have the following bits of code typedef CArray <CPoint, CPoint> POINTS_ARRAY; struct MY_STRUCT { int a_stored_integer; POINTS_ARRAY points; }; typedef CArray<MY_STRUCT , MY_STRUCT> MY_STRUCT_ARRAY; All that code is in a header file, then in a cpp file i have the following MY_STRUCT_ARRAY my_array; MY_STRUCT my_struct; my_array.Add(my_struct); and it throws this error error C2664: 'CArra ...Show All

  • ruiefree which situation does'error C2039' happen?

    when i compile my code,i get this error error C2039: 'Import3dmax3DS' : is not a member of 'C3dWorld' see declaration of 'C3dWorld' but i have define 'Import3dmax3DS' in 'C3dWorld' which situation does 'error C2039' happen it went wrong here ...... C3dObject* pObject = m_pWorld->Import3dmax3DS(szPath, FALSE); ...... and i declare it here class AFX_EXT_CLASS C3dWorld : public CObject ...Show All

  • nancy white Interoperability of different compiler versions

    I'm developing a DLL that will be used by a customer using Visual Studio 6, and it will in turn connect to vendor DLL's developed with the same tools. How interoperable are DLL's developed by the latest MS toolchain with binaries produced by the older tools For example, has the C++ ABI changed Can I safely expose a C++ interface in my headers or do I need to drop down to a C-based public interface If C++ is ok, what idioms should I avoid in pub ...Show All

  • Diego Ojeda Loop unroll optimization

    Hi, I was playing around with different systems/compilers in aspect of code optimization. I found and that was surprizenly enough, VC 2005 does not unroll loops, it seems like. So then looking only at loop optimization for different compilers I found that for instance Sun Java ( does loop unroll ) perform sometimes 2-3 times better then simular C++ code. So my question is, is ther any reasons for not doing loop unroll or may be it's hidde ...Show All

  • Angry SQL 2005 User Is there any thing equivalent to NotOverridable in C++?

    Hi guys, My problem is this. class Base {    public:        void  OneFunction()       {           cout<<"Base";         } }; class Derived:public Base {    public:              //overriden, I ...Show All

  • Tiago Dias RegularExpressions namespace seems to have moved in VC 2005

    I am trying to create a program that uses the Regex class in namespace System::Text::RegularExpressions, but the compiler says it does not exist Error 1 error C2039: 'RegularExpressions' : is not a member of 'System::Text'  Did it move   Thanks The Regex class is still located in System::Text::RegularExpressions. Does your project have a reference to System.dll (Project Proper ...Show All

  • Mark Christopher ComboBox Help

    Hi. I am making a program that has a combo box in it. It is a static drop-down list. I want to be able to open a certain window when "Test window" is selected in the box. How do I do this. I am programming this using Visual C++ 6.0. It is a MFC so if I could get any help that would be wonderful. Thanks. So, I would use a if..else statement for that. For instance if (str=='Test Window\0') { TestWindow wnd; wnd.DoModal(); } R ...Show All

  • jwyckoff Linker Error with the file atlsd.lib

    Hi all, I am facing a problem when building my code in VC++. Actually i built my code on a machine which contained VS2003. When i copied the same files into my machine which has VS 6 in it gives me a linker error saying, LINK : fatal error LNK1104: cannot open file "atlsd.lib". What is the reason for this to occur ,I think there will be a simple solution for this. Please look into it and gimme a suggestion. Thanks &am ...Show All

  • Adria Grau Rovira displaying a dialog over a game window

    Hi, We have a requirement of displaying a VC++ dialog over a game running in full screen mode on Windows. We are able to achieve this for normal flash based games running in full screen mode. However we are not able to do this for NTVDM(dos based) and other games running in full screen mode. Could someone please direct us as to how this can be achieved We are currently using SetWindowPos(&CWnd::wndTopMost, 700, 20, 0, 0, ...Show All

  • Sahikon SetTimer() inside a thread

    I have a MFC Application that creates a thread to do some processing. The thread needs to perform a task at a regular interval, and when it is not busy with that task, it needs to be available to respond to events (such as stop-your-processing) from the main window. My original thought was to put a timer inside the thread, but I discovered the thread does not like code such as: BEGIN_MESSAGE_MAP(CArc220Thread, CWinThread) ON_WM_TIMER() END_ME ...Show All

  • D13G0 Winsock and that common external error

    I've got the common "LNK2019: unresolved external symbol" error see below. socket.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function _wmain socket.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _wmain These refer to the following code: #include "stdafx.h" #include <Winsock2.h> int _tmain( int argc, _TCHAR* argv[]) { WSADATA wsaData; ...Show All

86878889909192939495969798990123

©2008 Software Development Network

powered by phorum