Software Development Network Logo
  • Windows Vista
  • .NET Development
  • SQL Server
  • Visual FoxPro
  • IE Development
  • Visual C#
  • Windows Forms
  • Microsoft ISV
  • Smart Devicet
  • Visual C++
  • VS Team System
  • Visual Basic
  • SharePoint Products
  • Visual Studio
  • Audio and Video

Software Development Network >> Visual C++

Visual C++

New Question

LNK2005 in debug mode only(VS2005)
Serial Port component
Dynamically allocated arrays of strings
It appears that C++ developers are abandoned in VS2005.
How to Link Multiple Project
ATL Stock Properties
function argument types and cross language compability
how to display pictures in a console program
How to find type of sound card
Read a memory location

Top Answerers

cgkitab
Asday
Rhubarb
Peter Lillevold
enric vives
Pavan Contractor
Allan Huang
ascanio
Zia Khan
UnknownScripter
sitemap
Only Title

Answer Questions

  • Mike Hildner LNK1104: cannot open file cyclic dependency

    I wonder if there is an easy solution to this problem. I have two dlls, which link to each other. For example, a.dll and b.dll In the additional dependencies linker option for a.dll I have b.lib and for the additional dependencies linker option for dll 'b' I have 'a.lib' I only need to create the lib file so that when building the other dll, it will succeed. Right now, if I clearn the solution and try to compile dll a the linker fails of course but does not create the a.lib file that I would need to compile dll b. Only current solution is to manually remove a.lib from dll a linker option and link it with errors to create the lib file and then put back b.lib and link it again to create the dll file. Any ideas ...Show All

  • thechristopher How to use a .NET User Control in MFC

    Hi We would like to use NASA World Wind (WW) embedded on a dialog or in a view in an MFC application. For this purpose we have wrapped WW as a User Control and registered it for COM Interop - we have also added the necessary information in order to have it appearing as an ActiveX controls. Not surprisingly we have encountered a number of problems Basically we would like to know if this at all is doable - i.e. can a user control be wrapped as an ActiveX control and then used from within an MFC application Thanks in advance. Lars You could use the new MFC-WinForms interop classes available in VC++ 2005 See http://www.codeproject.com/managedcpp/mfcdialogwinforms.asp and http://www.c ...Show All

  • Alexey Rokhin Static lib to DLL?

    Is it possible to convert a third party static library (libusb.lib) to a dll easily, without the source code I want to make calls from C# to C functions contained in a static library. One way is to write a C++ .NET wrapper around the C functions, link the static library at compile time and then call the C++ class methods from C#. Alternatively, if the C functions were in a DLL, I could use the [DLLImport] atribute and Interop services to call them directly from C#. Is it possible to easily convert the static lib to a DLL, if so how I do not have the source code for the library. Thanks, David. Here is a command line script that will convert a static library in one dynamic library! ...Show All

  • Mannequin666 Problem with VSc++2005. Cannot create project

    I installed visual studio 2005 (standard edition) a few months ago and was very upset to find then I could not succussfully create any c++ project. (I can though create C#, VB etc projects). I thought the install process must have gone wrong so I tried uninstalling/repairing/reinstalling system restore everything etc etc etc etc etc. Lucky I have a second computer, I installed VS2005 and could create c++ projects on that computer perfectly. I think the reason that VS2005 dosent work properly on my first pc is because I used to have the Express version installed on that pc. I uninstalled the express edition months before i installed the standard edition, but after an uninstall some components seam to be left behind. And I think it ...Show All

  • Michel-Hugo Connectiong Remote Sql server in vc++ 6.0

    Hi All, I'm new user of vc++ 6.0 and sql server express as the database. Both the development and the database are in same machine as of now. i use Ado and connect the database using the connection string as "Driver={SQL Server};Server=AMJATHKHAN\\SQLEXPRESS;Database=TestDB;Uid=;Pwd=;" its working fine in my pc. when i try to run the same executable in some other pc in the same lan it wont work.. the sql server express is accessible to all machine in the LAN. then wat is the way to connect the remote sql server using vc++ plz help me. With Regards Amjath I would suggest replacing this: strConn = (char*)_bstr_t("...."); with this: _bstr_t strConn2("...."); st ...Show All

  • Wil Burton mangled name

    Is there any API to retrieve the address of a method (private/public) using the mangled name. the method is supposed to be a class member. we can know the mangled name from the .map file in VC++ 6.0 Please also suggest a method of using this in GCC. yes i want to retrieve the address from the mangled name in the DLL only. Corressponding to the solution provided by you pvt p; _asm { lea ecx, p call pvt::sum } works fine with VS2005 but crimps in VC++6.0. (My project cant make use of Managed C++ compiler and CLR ) the following error shows up D:\RAJSHOUVIK\pvt\pvt.cpp(51) : error C2420: 'pvt' : illegal symbol in first operand D:\RAJSHOUVIK\pvt\pvt.cpp(51) : error C2415: improper operand type ...Show All

  • Amzi! Why doesn't PDH work?

    Hello, I've been trying to develop an application that reads the CPU load from the computer and the free RAM memory available. To do so, I was primarily thinking about using the PDH interface, since we are building to Windows Server 2003 and Windows XP, both of which already come with the PDH.dll. I downloaded the platform SDK from Microsoft's site, and I am using Visual Studio 2005. My dilemma is, every time I try to compile the source code, it gives me several errors, even with example codes taken from Microsoft's site. It gives me several unindentified objects in _main (it cannot understand/localize the commands, datatypes and so on). I don't understand why. I tried copying the pdh.h and pdh.lib to the main i ...Show All

  • bagjuice trouble getting started

    I have no programming experience and I have just installed microsoft visual studio 2005. I have a book on C++, it a few years old but i thought it would give me a start on learning c++. I want to compile one of the examples out of the book. How do I do that The book is teach yourself C++ by Al Stevens. Can anyone please help me out I tried that and it says there were build errors. Thats the same thing it has been saying. it works now! thanks alot! i owe u one nick865 wrote: I tried that and it says there were build errors. I tried it and there were no build errors. What are the buld errors you get   nick865 wrote: heres what i typed (copy and paste) &nbs ...Show All

  • RichLeyshon What does this Error means...? How do we fix the problem...?

    Hi, ...   ...   ...   Allah Is Here... I use the Visual Studio 2005 Standard Edition, with Visual C+++ and DirectX 8... I get this kind of error from the compiler, as below...   1>------ Build started: Project: Chapter 9_Project, Configuration: Debug Win32 ------ 1>Compiling... 1>Crap___1.cpp 1>c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(116) : warning C4005: 'D3DFVF_SIMPLEVERTEX' : macro redefinition 1> c:\documents and settings\ly heu\my documents\c++ codes\chapter 9_project\chapter 9_project\headercrap1.h(64) : see previous definition of 'D3DFVF_SIMPLEVERTEX' 1>c:\documents and settings\ly he ...Show All

  • DragonWolfZ Check Boxes

    Hi, I know this might be in front of me ready to bite my head of but i dont seem to see it... Basically i want to initialise my checkbox to be checked when the program runs and my frame appears. I have checked the properties of the checkBox but i do not seem to find the solution to this. Any suggestions will be much appreciated! Cheers Anger. Add a class variable for the check box and use the SetCheck function as follows m_btnCheck.SetCheck(BST_CHECKED); (Here m_btnCheck is the variable name for the check box)) Thanx. To check the check box: SendMessage(GetDlgItem(hDlg, IDC_ADVANCEDTEST), BM_SETCHECK, (WPARAM) BST_CHECKED, 0); ...Show All

  • oNe_Child C2555 error in VS C++

    I received error C2555 when trying to compile my VS 2005 C++ code. I found the following reference and it said under STATUS it has been fixed in Visual C++ .NET version. http://support.microsoft.com/kb/240862/ Should I not be getting this error anymore or am I missing something I am running Microsoft Visual Studio 2005 Version 8.0.50727.42, .Net 2.0.50727, Visual C++ 2005. Thank you both for the help. I have seen code snippet where the template argument OptionType of the base template does not even have to be specified when declaring the derived template, like below. Is this just a compiler-dependent thing or something else template <class OptionType> class OptionFactoryTemplat ...Show All

  • Saeideh c++ compiler bug in Visual Studio 2005?

    Hi! I have a hashmap. It seems to have more element at certain point of the program that does not seem to be logical. What do I refer to See yourself the extracted example... Two files are needed.. first is stonetest.cpp //#include <hrt/performance_counter.hpp> //#include <hrt/time_provider.hpp> //#include <hrt/system_time.hpp> #ifndef stonespace_ #define stonespace_ #include <vector> #include <iostream> #include <iomanip> #if defined __DMC__ || _MSC_VER #include <hash_map> #else #include <ext/hash_map> #endif #if defined __DMC__ using namespace std; #elif defined _MSC_VER using namespace stdext; #else using namespace __gnu_cxx; #endif # static hash_map<const char*,long ...Show All

  • Jewelfire1 Settings Designer for C++ Windows Forms apps?

    I'm trying to create a Windows Forms app using C++ in VS2005. I have found many tutorials that specify how to get to the Settings Designer - right click on the project in Solution Explorer, select Properties, and click on the Settings tab. This works for C# projects, but on C++ projects, the Properties dialog is completely different, and doesn't have a Settings tab. So how do I get to the Settings Designer for a C++ Windows Forms project Any help appreciated - thanks. 1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup Seems linker are looking for WinMain but failed, what's the entry point of your program (ma ...Show All

  • Jens K. Suessmeyer - MSFT Manifest not generated for dlls...

    Hi All, I am trying to build a dll that has some symbols that will be resolved at runtime. The linker is giving me errors (Thats expected!). To forcefully make the linker generate the dll I have used the linker option /FORCE:UNRESOLVED, but I observe that when I use this option I do not get the Manifest embedded in to the dll. In the two other dlls where I do not use /FORCE:UNRESOLVED I get the manifest embedded. Lack of manifest in the said dll makes it un-usable unless I supply the VC runtimes in the current direcotry, which ofcourse is not a good way of doing this. All the neccesary options in the IDE are set for generating the manifest. Is it that when I use this option /FORCE:UNRESOLVED Manifest will never be embedded in to the ...Show All

  • I.HJ MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup

    Hi Justin! i am completely new to this and have to learn the language fairly rapidly, got myself a decent book, but when i try and compile a simple hello world program i get the error:      Linking...    MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup    Debug\dont know.exe : fatal error LNK1120: 1 unresolved externals    Build log was saved at "file://c:\Documents and Settings\Justin Pyfrom\My Documents\Visual Studio 2005\Projects\dont know\dont know\Debug\BuildLog.htm" dont know - 2 error(s), 0 warning(s) the hello world code is in a .cpp file format and t ...Show All

686970717273747576777879808182838485

©2008 Software Development Network

powered by phorum