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

Software Development Network >> Visual C++

Visual C++

New Question

Reading USB port
Finding if the VC Runtime is installed
vs.net 2003 Find in Files dialog
reply to gettempath() threads
Access Violation Crash in mfc80!ATL::CStringData::Release+0x17
Mixed managed ARX DLL (LNK2028/LNK2019)
Compile error when using CList
Parameter attribute issue upgrading from .NET 1.0 -> .NET 2.0
LNK2005 (VC8)
Getting Error Description.

Top Answerers

Byenary
Michal1979
G.D.T
Jay Thomas
Shrek.NET
EddieMu
daydreamsy2k
Tatworth
h1
KavyaKonda
sitemap
Only Title

Answer Questions

  • Gurpreet Singh Sawhney LNK2020 unresolved token std.allocator<int>::<MarshalCopy>

    I am building a simple MFC dialog based application in VS2005 with CLR support. I am linking to a number of 3rd party (dynamic) libraries. I get the following error while linking: LNK2020 unresolved token std.allocator<int>::<MarshalCopy> What can be the cause of such an error Hi Y2Y, Can you add "/verbose" to your link command and post the linker's output Thanks, Alan Hi Alan, Sorry for the late response. Linking with verbose on generated a build log of 249KB. Not the best idea to put it here :). However I was not able to treace the cause of the problem. What should I look for in the log Can I attach files to the posts here ...Show All

  • Azriel Cross What is the function that returns the integer code of ASCII

    Dear All, Any one can remind me with the win32 C++ function that convert the ASCII symbole to its equivalent integer code of the ASCII table Regards Bassam I am more curious to drill down and thanks for your answer that it worked out. I know about the representation of negative numbers in computes, they have to be in 2's complemet. However, why do I need to have two unsigned typecast I have tried with the following and it worked out as well: cout<< "0x" <<hex<< static_cast < short >( static_cast < unsigned char >(authenticator[count])) does static_cast < short > typecast will return a signed representation Regards ...Show All

  • BenFinkel 'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR'

    Statement void ProcMsg::getMessage(Message *m, Boolean Inserted) { PDEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR)m->LParam; } above statement was came out with error 'type cast' : cannot convert from 'System::IntPtr' to 'PDEV_BROADCAST_HDR' Question: May i know how to cast the structure PDEV_BROADCAST_HDR to System::IntPtr. yes I compiling with /Clr. How to use System::Runtime::InteropServices::Marshal::PtrToStructure http://msdn2.microsoft.com/en-us/library/4ca6d5z7(VS.80).aspx Hope this gives you some idea Information provided is not enough to answer this question. Could you tells us if this application is a mixed mode (being compiled with /Clr). Ho ...Show All

  • Nonu_k invoking the msdev debugger from the commandline

    I am using the following text in command prompt rather cygwin to start the msdev debugger to debug a process but it doesnot attach directly to the process and I have to exclusively attach to the process. need to know if the parameters are missing "msdev mdbsrvr.exe -section BEAMDBSERVER -dbg" herein the mdbsrvr.exe the target process being used by BEAMDBSERVER process This might be a question for the Cygwin people, but I sure can understand that you would prefer to get help here. Those Cygwin people can be brutal. So first check the documentation, because the Cygwin people will just be rude if you ask a question without doing the things we are suppose to do first. ...Show All

  • farukh compiler cant find dll

    In vs2005 .net im trying to use 3 unmanaged plain .dlls written in c++ in a plani win32 app. Ok I have a folder at the path c:\folder and inside there i have folder\include and folder\lib. I added c:\folder\lib to the vc++ library references, and the c:\folder\include to the include references. Then in the c++ additional includes I have c:\folder\includes. In linker general additional library directories I have c:\folder\lib. input additional dependencies I have say file1.dll file2.dll file3.dll just like that. Finally I #include the 3 .h files for those. When I compile it everything is ok, but when it runs it says dll not found. Any clue why Linker compiler errors with .dlls suck. Any good tutorials for setting up .dll in .net ...Show All

  • Ke Sun color Slider Control

    Hi to All, My Requirement: i want to show a slider with color containing a range of numbers. for example from 1-100 user can pick any number. i want show the user already used number by red color, unused by blue and picked by someother guy but never used it in green color. the control is some wat like slider, so the user easily slider over the numbers and pick any number which is unused. plz guide me wat control to be used and how can i do this in vc++6.0 Thanks and Regards Amjath You may have to do some custom draw to accomplish your requirement. This article could help you to learn something related to it. ...Show All

  • mroctober Math::sqrt() not cutting it

    The .NET sqrt function returns double, but I need a decimal value returned (double is not accurate enough) does any one know of a squareroot fucntion that returns a decimal value thanks in advanced You might be able to roll your own by wrapping sqrtl(); Which uses a long double Dan Sorry, I opened my big newbie mouth, it seems sqrtl() still returns an 8 byte value which is the same precision you get with a double Dan The problem is double is the largest floating point type available. If you want to have higher precision then you have to use a different method for storing the values. What are you trying ...Show All

  • Tiny Pan MFC DLL load from Win32 App -> Memory Leaks

    I hope i'm clear to post the problem.  I'm using Visual Studio 2003 SP1 . The main application is a simple Win32 application that link dinamically a MFC dll. In some case when a try to execute FreeLibrary of the dll previusly loaded by LoadLibrary i get a memory leaks. For example in this code : a=new int [100]; hmod=LoadLibrary(FILEDLL); FreeLibrary(hmod); delete [] a; when i execute the FreeLibrary i get this memory dump: "TestLoadFree.exe": Load"C:\.......\TestMemLeaks.dll", .... "TestLoadFree.exe": Load"C:\WINDOWS\system32\mfc71d.dll", .... "TestLoadFree.exe": Load"C:\WINDOWS\system32\MFC71ITA.DLL", .... Detected memory leaks! Dumping objects -> {60} normal block at 0x00852C88, 400 bytes long. Data: <  &n ...Show All

  • New-Bee Switching from BETA to RELEASE VS 2005 gets me an error!

    c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(1814) : error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject' This diagnostic occurred in the compiler generated function 'CCmdTarget::CCmdTarget(const CCmdTarget &)' OK, so I found the problematic lines of code but this really confuses me! Those lines are the lower part of the code, near the bottom. They represent event handlers for changing of a text inside CEdit ...Show All

  • SaurabhJain Special build mode

    Hello! I wonder whether the following is possible in Visual Studio 2005: I create Win32 console project; I add some source files to it with an unknown extension (e.g. ".scf"); There is no custom build rule applicable for these files; In the project configuration properties I can still configure "C/C++" properties; I press F7 to build the project: .scf-files are being processed by some application that produces another source files (e.g. with an ".out" extension); .out-files are then being compiled by a Visual C++ compiler (using settings given on step 4) to obtain final executable. Thanks in advance. Hi Wissen, The output files of CBRs are m ...Show All

  • bitskull dynamically compiling C++

    Is there anyway to dynamically compile C++ files in visual studio 8 I know i can use codedom namespace for compiling C# sources but im wondering if there is a way to do the same with C++ source files. I have the same problem So, a couple of examples is here: private void button1_Click( object sender, EventArgs e) {   Microsoft.CSharp. CSharpCodeProvider vCodeProvider =     new Microsoft.CSharp. CSharpCodeProvider ();   System.CodeDom.Compiler. CompilerParameters vCompilerParameters =     new System.CodeDom.Compiler. CompilerParameters ();   // It`s passed: CSharpCodeProvider   vCodeProvider.CompileAssemblyFromSource(vCompilerParameters,   &nbs ...Show All

  • Avi Edri Should generate C4407 warning in VC++ 2005??

    Consider the following code: #include <iostream> class CVA { public : }; class CVB : virtual public CVA { public : }; class CB0 { public :    CB0() {}    void TestFunc() {       std::cout << _T( "In CB0::TestFunc" ) << std::endl;    } }; class CB1 : public CB0 { public :    CB1() {}    void TestFunc() {       std::cout << _T( "In CB1::TestFunc" ) << std::endl;    } }; class CD : public CB1, public CVB { public :    CD() {}    void TestFunc() {       std::cout << _T( ...Show All

  • Ahoapap Importing, compiling and running source code

    Okay, so I've downloaded some source code off the net, can someone pls tell me how to get it into visual c++, compile it and run it ... can't seem to find this info anywhere. Desperately yours, ron.photog Hello Re: Importing, compiling and running source code I am going to mark this thread as answered since you have not followed up with any further information on your problem - I assume you solved the problem yourself or one of the suggestions in this thread helped you solved the problem. If you have a solution you could post it so others can find it. If you do not have a solution then please submit further details and then mark the thread as unanswered. Thanks ...Show All

  • umer riaz Why I can't complie below code in VS2005

    Because of std::swap function, I can't compile below function. but if I don't specify template parameter, it is compiled very well. I wonder why I can't specify template parameter when I use swap function, but if include <utility> instead of <vector>, I can use std::swap specifing template paramter. I think it's Microsoft STL library bug..., it is needed to fix it. #include <vector> // if I include <utility> I can compile below code. template <class T> class CTest { typedef CTest<T> ThisType; T* m_Array; public: void Swap(ThisType& other) { std::swap<T*>(m_Array, other.m_Array); } }; int _tmain(int argc, _TCHAR* argv[]) { CTest<double> test, test2; test.Swap(test2); ...Show All

  • Marc Lacoursiere Issues with Docking

    Hi Ppl, In my application I have a menubar(stingray) and toolbars. I want the menubar to stick to top. I have made menubar non-floating and docked to the top. But since there is a toolbar also, if I drag the toolbar on top of teh menubar, it docks on top of menubar. I want that menubar should always be on the top, an dno other ControlBar should be docked on top of it. Pl suggest as I am badly stuck :( Thnx Prateek Hi Damien, I am using MFC and also stingray, the menu is SECMEnuBar from the StingRay classes. I tried overriding the OnRecalcl of CFrmaeWnd, and docking the menubar at the top. But this looks like a hack. Is there a better way Thnx Prateek ...Show All

373839404142434445464748495051525354

©2008 Software Development Network

powered by phorum