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

Software Development Network >> Visual C++

Visual C++

New Question

Getting started with C++/CLI
Problem with DialogBox-will not halt the program
IUnknown Interface
Form with an expandable area
Getting an error RC2188 (Visual Studio 2005, C++)
numeric_limits problem with windows.h
Mysterious dlls referenced in Visual C++ 2005 Project
Reverse Engineering with Visual C++ 2005
CTabCtrl drawing problem with XP Style
BSTR * is not returning value when the server dll code is updated from VC2003 to VC2005

Top Answerers

sciFiFan
Silaros
Kosmo007
Dietz
Thymen
sroughley
Lauriew
sugrhigh
BenMo
Mirai
sitemap
Only Title

Answer Questions

  • Ganeshkumar S how to add a dll to the system namespace ???

    im having a dll that i want to add to the System namespace so that someone could do the following. using namespace System::MyDLLNamespace so is there anyway to do this Thanks in advance Jonathan Caves - MSFT wrote: You should note that the ISO/IEC C++ Standard does not allow users to extend their equivalent of the System namespace which namespace std - is there any reason you want to extend the System namespace First of all thanks for your answer. I managed to add my namespace into the System namespace :). The reason im doing this is to give the clients using the dll the influence that my namespace is inside the System namespace. I wanted to fellow the standard also (Sys ...Show All

  • Tarey Wolf Computing for large matrices

    I tried to write a file for 1e6 by 1e6 and it literally crashed. Double is too small to handle. How should I code so that I could begin to write and compute my matrices I am looking along the lines of computing values larger than 1e6. Is that realistic Also, how can I optimize on the memory space using MV.Net 2003 I am starting with a simple code, see below. Thanks. [code]int main() {    int i, j, nmat;    double *b, **a4;    nmat = 1000000;    Init_Matrix(a4, nmat);    Init_Vector (b, nmat);    for (i = 0; i<nmat; ++i) {       if (i%2 == 0) a4 = 4;       if (i%2 == 1) a4 = 4;       if ((i-1)%1 ...Show All

  • Jonathan Abbott Warning 2 warning C4995: 'ConstructElements': name was marked as #pragma deprecated

    Warning 2 warning C4995: 'ConstructElements': name was marked as #pragma deprecated d:classarr.h 53 the code is as follow: public: template<class TYPE, class ARG_TYPE> class CClassArray { ................... ................... void ConstructElements(TYPE* pElements, int nCount); ................... } void CClassArray<TYPE, ARG_TYPE>::ConstructElements(TYPE* pElements, int nCount) { // first do bit-wise zero initialization memset((void*)pElements, 0, nCount * sizeof(TYPE)); // then call the constructor(s) for (; nCount--; pElements++) ::new((void*)pElements) TYPE; } I only give a few code. Because ConstructElements function was declared deprecated, but I do not use the orignal defintion of this f ...Show All

  • Avner Kashtan how to take numbers from int and put them on table 1 by one

    hi.... im trying to figure an easy way, how to take numbers from int and put them on table 1 by one. for example 12345 would go to table as {5,4,3,2,1}. hopefully someone could help me on this :) What have you tried so far Thanks, Ayman Shoukry VC++ Team peteyy wrote: i wasnt able to make that work :( You couldn't make my code work Really Because I tested it before I posted it here. What compiler are you using Did you include these headers #include <iostream> #include <string> #include <algorithm> I think this is what you want: int toint( int val) { return val - '0' ; } int _tmain( int argc, _TCHAR ...Show All

  • Whoisit Error: Stack corruption around the variable 'tm'

    Hi, I have a win32 based application written in VC6. However, when I port it to VC2005 express edition, i get runtime check errors in the following way. Run-Time Check Failure #2 - Stack around the variable 'tm' was corrupted Run-Time Check Failure #2 - Stack around the variable 'lpText' was corrupted. The application works perfectly in VC6. As this has been tested using profiling tools such as Numega Bounds checker. Only on .NET versions 2003 and 2005, i get above such error. I use the following settings for my project: /D "WIN32" /D "_DEBUG" /D "_LIB" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /FD /EHsc /MTd /Zp1 /Fp".\Debug/mmi.pch" /Fo".\Debug/" /Fd".\Deb ...Show All

  • sandeep437 clr 3.0 sdk command line with clr 2.0 projects

    I did not want to replace all my 2.0 VS05 variables with 3.0 yet, but I wanted to compile some projects with 3.0. Would copying source and assembly files to another directory, cl /clr <files> from the sdk 3.0 command prompt suffice The one I tried did not readily reveal it was using 3.0 unless I added /Zi to the command line within the pdb, is there any other way to know for certain it is using 3.0 instead of 2.0 Thanks. ...Show All

  • harcrow How can i use Queue concept in PC Serial Port communication...?

    Hi... I want to use FIFO queue concept for PC serial port communication through PC com port for data transmission or reception. Can anybody suggest me any good document available on net for this or any suggestion how i can use it in my application... Thanks, Vinay Moved from Windows Forms Forum. I know that there's a book on this topic "Serial Port Complete". Generally speaking the FIFO functionality is already implemented in the interface of the serial port, UART. For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups. OTP For the scope of the VC General forum please look at: http://forums.microsoft.com/MSD ...Show All

  • katie_13 File upload and download

    Hi All, I want to upload and download file in HTTP. plz help me how to do this one. -Amjath Hello Re: File upload and download Such general questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups . Many technologies/libraries that MS supplies support such functionality. OTP Thanks Damien ...Show All

  • eldiener Running dotnet applications on other machines

    Hi everyone, I have a very big problem: I developed an application (with forms) in Visual C++ Express Edition (that is using .NET framework). The problem is that this application doesn't work on other machines but mine, even though they install .NET framework (version 2.0, it is about 20 MB). How is it possible How can I solve this problem Thank you very much Since you have installed .NET 2.0 it should work. Why do you say it does not work It does not start, it throws an exception What exception I probably solved the problem: I noticed that the exe file in the /debug folder is that which works only on my pc, while that in the /release folder works everywhere ...Show All

  • Rafet Problem loading dll created by VisC 2005

    Hi, I converted a C++ project from VS .NET 7.1 to VS .NET 8. The project uses old fopen methods and similar. Under 7.1 the project compiles and runs, but under 8, I am unable to run. First, when running the application, it complains about missing msvcr80.dll. Then, when I locate it (somewhere) on the computer, I get the error that the application tried to load the dll in an illegal manner. When searching for info on this, I stumble into manifests, and I see that the manifest should contain some lines about the msvcr80.dll, version etc. But my manifest file is empty. It only contains this information: < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manif ...Show All

  • MarkOlbert How to combine managed and unmanaged types?

    Hello. I have some managed class MyClass and unmanaged structure my_struct. And I need to create a member of MyClass of type my_struct. typedef struct { int a, int b } my_struct; public ref class MyClass { my_struct val; public : } But compiler reports me about the error: cannot define 'my_struct' as a member of managed 'MyClass': mixed types are not supported The same trouble occures when I try to declare std::map<int> as a member of MyClass. Question: what is the right way to create the unmanaged member of managed object typedef struct { int a, int b } my_struct; public ref class MyClass { my_struct val; public : } Mo ...Show All

  • jgd12345 linkage error when using _DEBUG with multi-threaded dll (as runtime libraries)

    Hi, We work on a project and would like to be able to use some dll's in release and some in debug. There for and since we use stl we wanted to change our runtime libraries (for the debug build) to use the "multi-threaded dll" and not the "multi-threaded debug dll". doing so created a link error: error LNK2001: unresolved external symbol __imp___CrtDbgReportW as I understand things this shouldn't have happend (I guess it's new to VC++ 2005 due to the runtime checks of iterators). I have found 3 ways to solve it but none is what I would like to use. 1. removing the _DEBUG from the preprocessor definitions. 2. undef the _SECURE_SCL before every include to stl. 3. define _imp___CrtDbgReportW as our own function. here is an ...Show All

  • Redlightpacket Resources Path String

    I have embedded an AVI file into my project as a resource. I want it to play it in a Windows Media Player object using the <player>.URL property. How do I supply a url for my example.avi file when it is in my resources folder You can use the animation control to play the AVI! Access_Open can take a resource ID Martin Richter wrote: You can use the animation control to play the AVI! Access_Open can take a resource ID Newbie Q.: What is the animation control I can't see it in the .NET Framework or COM component toolbox items list. I'm not familiar with the WMP-object, but extracting the movie resource to a file and then playing it is an option. I'd ...Show All

  • Deepu_a Updating Microsoft Visual C++ 6.0 to Visual C++ net 2003

    /*-------------------------------------------------------------- HelloMsg.c -- Displays "Hello, Windows 98!" in a message box (c) Charles Petzold, 1998 --------------------------------------------------------------*/ #include <windows.h> int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow) { MessageBox (NULL, TEXT ("Hello, Windows 98!"), TEXT ("HelloMsg"), 0) ; return 0 ; } I am using Visual C++ net 2003 standard compiler. I am reading Programming Windows Fifth Edition by Charls Petzold isbn 157231995x Errors linking programme: WinConsole error LNK2019: unresolved external symbol _main referenced in function _mai ...Show All

  • Zero_ how to get rid of 0xc0150002 error?

    Hi all, I have this 0xC0150002 error when I tried to run my client.exe. I am making use of log4cplus.dll and have put it in system32 folder. What else must I do to make my program run I have been trying to run my program in a different pc. My client program was created using VS2005 with the log4cplus.dll in system32 and the include headerfiles of log4cplus placed in VS8/Common7/Include folder. It compiled nicely. I have tried using the depends.exe and have already ensured that it can find all the dlls. But i still have that error. I do have one warning from the depends.exe though - At least 1 module has an unresolved import due to a missing export function in a delay-load dependent module. Which me ...Show All

282930313233343536373839404142434445

©2008 Software Development Network

powered by phorum