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

Software Development Network >> Visual C++

Visual C++

New Question

Visual C++/CLI
Dynamically bind to a library and function
calling a WINAPI function from a managed main creates linker error
How to program with a tape driver through ASPI in MFC?
error C3867: 'A::test': function call missing argument list; use '&A::test' to create a pointer to member
Newbie: Can't use WinAPI because included twice
error C2065 System::String^ PROBLEM HELP!!
Hex-to-RGB Conversion
Versioning
Strange bug-thread accesses wrong pointer under heavy loads.

Top Answerers

LiranK
ggunn
Brave Belzebuth
vinxter
Pecachew
ALZDBA
adil taqi
DrKMyTH
leo1
ruhollahakbari
James, Grant - Zeus CMD
Only Title

Answer Questions

  • Fraze Changing the Console Text Color

    I've come across an issue that I'm sure I can solve if I could change the console text colors at runtime.  I've spent a couple of nights trying to find something online but all I've learned is that you can do it in C#.  I still havent found one source that tells me how to do it in C++.   Any help will be greatly appreciated.  I have .net 2003 ----------------------------------------------------  ...Show All

  • keroed1 Heap Corruption with #include <atlstr.h>

    In VS2003, I could create a new WinForm project, add #include <atlstr.h> to stdafx.h (no other changes) and the app would build and run fine. If I do this in 2005, with the addition of using /clr instead of /clrpure, there is a _CrtIsValidHeapPointer failure when the app begins to run (no additional code added, just the include). I need to use some code that uses CAtlStrings. Is there a way to get this to work in VS2005 ...Show All

  • da31 C++ in VS2005: Enable automatic copy of depentend 3rdparty unmanaged dlls

    Hi, I am creating a managed C++ class library that uses several unmanaged old-style C++ libraries (with .h, .lib and .dll files). These dependent dll-files are located on a specific path on my computer, but each time I create a C# application that uses the managed C++ class library (which again uses the 3rd-party unmanaged dll-files), I have to copy these files to the bin-folder of the C# application. Is there some way I can a ...Show All

  • NathanLiu Debug in Windows NT

    Hi, I am using Visual Studio 2005, How do I debug my MFC application in Windows NT Regards Manoj Jangid can you suggest me how do i use error log Manoj Ooops - I just gave the .NET answer :-) You have to add try/catch blocks to your code where you think there could be a problem. If you add an ofstream object as a global variable, you can also provide a global method which writes to this stream, and flushes ...Show All

  • matt_uk create C++ DLL to be used by C# ?

    I want to write a native C++ function that I can later access from C#. Please keep in mind I do not have much experience developing on windows, (mostly unix) and that my only windows compiler is VS2005. I tried creating a MFC DLL. I am able to access this from a C++ .net program, but not from a C# program using P/Invoke. It seems that a plain MFC DLL is not "good enough" for use with DllImport. Is this correct It seems that I h ...Show All

  • Haider Ali Khan stl.net: why do I get lnk2005?

    If I include "#include <cliext/vector>" (or map, etc.) to more than one header file in my project I get lnk2005.  Why Creat a test project (CLR console app) Add 2 component (comp1 and com2) Add " #include <cliext/vector>" to t he header comp1.h Add " #include <cliext/vector>" to t he header comp2.h Compile  --> get lnk2005. hdp. Hi, We were not able to get S ...Show All

  • Brett M C++/CLI Translator

    In Stanley Lippman's article, "A Baker's Dozen: Thirteen Things You Should Know Before Porting Your Visual C++ .Net Programs to Visual Studio 2005"; in the introduction, there are three points, "To ease the transition...".  I quote point 2: "We're working on an informal translation tool that can get you 80% of the way there. It will likely be made available for test-driving during the time-frame of the second beta." I can not find this t ...Show All

  • MandatoryDefault Create an dll from existing c++ project

    Hello... I have a c++ project and want to use this in a c# program. So, I thought I could make a dll from this c++ code. But I didn't find the right solution at this moment. Maybe you can help me The c++ program consists of about 15 files (.cpp and .h). I think I have to remove the main method, but then ... In my c# programm, I want to call some functions of the c++ code... Regards, Jacquipre. ...Show All

  • Bength __stat64, redefinition; different type when including sys\stat.h after wchar.h

    #include <windows.h> #include <wchar.h> __stat64 a; #include <sys\stat.h> __stat64 b; // <-- compiler error Example compiler output: d:\temp\t3test1\t3test1\stdafx.h(20) : error C2146: syntax error : missing ';' before identifier 'b' d:\temp\t3test1\t3test1\stdafx.h(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\temp\t3test1\t3test1\stdafx.h(20) : error C237 ...Show All

  • Fire3.san How to manage WM_KEYUP and WM_KEYDOWN

    Hi, i have noted that if I have many buttons ore other elements in a Dialog, when you develop a MFC application, I won't be able to manage WM_KEYUP or WM_KEYDOWN, because they look like disabled. What do i have to do thanks a lot. PS: if my question is incomprehensible, i can give you a code sample. See http://www.codeproject.com/dialog/pretransdialog01.asp FilippoPPoppiliF wrote: ...Show All

  • Hila123 Code Window

    Hi, Is there a setting somewhere in VS2005 for one to put a verticle line in the code window at a particular character width, ex. 80 chars. Thanks Jeff AFAIK not with VS. But the tool VA X ( www.wholetomato.com ) can do this. Just look at this tool. Its the most powerful addon I ever saw for Visual Studio! ...Show All

  • Lost in VB space WM_SIZE message problem

    Hi:   i just begin to learn MFC,and i got a problem about WM_SIZE message.i start a new VC6 MFC Wizard project ,use all the defaul setting of the App wizard,except it is a single doc project,and the base class of the CTestView class is CFormView instead of CView.after the frame work is constructed ,i add a control to the form view,whatever control,say a button,whose id is IDC_BTN_TEST.i'd like to keep the size of the button the same wi ...Show All

  • nkw XML reader for native C++

    Hi! I'm looking for a small C++ XML SAX reader, similar to XmlTextReader in .NET. The most important thing is that the library is small can be statically linked. Can anybody recommend me anything Thanks in advance! That's of course true. If Windows 98 has MSXML installed by default, there is really no reason to avoid it. Just one final question: if I use MSXML 2.0 in my program will it also work with the versions installed with Win XP ...Show All

  • fddsfsdf Bug?

    class CSimpleStatus { public : CSimpleStatus(){} CSimpleStatus(string szName, int HPmod, DamageModifiers *DmgMods, AttribModifiers *AttribMods); }; That one is interesting.. I got lots of errors of missing ')' before szName here.. So first I added std:: before string.. Didn't help.. So I made sure I included string and all.. I had.. So I tried to remove 'string szName' from the constructor.. Then it complained about ...Show All

  • DanHaligas Difference between C++ and Managed Programming using C++

    Is there a difference between the two If so what are the differences of the two..Does the managed program have something to do with the how the language runs with the Commmon Language Runtime I just am tryin to get clear or somethings Hi, It is possible to write Managed Code as well as Unmanaged code using C++. Managed code is code that runs withing the context of the Common Language Runtime. So, if you write code using the Managed Ext ...Show All

757677787980818283848586878889909192

©2008 Software Development Network

powered by phorum