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

Software Development Network >> Visual C++

Visual C++

New Question

how to initialize a EditText control using DoDataExchange?
Is the MFC Font Dialog resizeable?
Errors when compiling a VC6 project in VC2005
RT_RCDATA error in msvs2003 resource editor?
Migrating from VC++6 Pro to VS2005 Standard
please help with variable argument lists
Deleted my thread...
LNK 2019, inline functions
New template compilation errors in 8.0
Please Help Me...

Top Answerers

Korey Atterberry
rkerstens
David _ M
Tarana
Darren Tao
Vladimir Chtepa
GeorgesZ
traderhen
Spyrrho
Gulden
sitemap
Only Title

Answer Questions

  • Forch LNK2001 _DebugHeapTag_t -- Missing Something...

    Hello, I've read over quite a few other posts and found many that are similar, but none that are identical, and none of their solutions solve my problem. Any thoughts would be greatly appreciated. Here's what I get while linking: buildsummaryform.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new[](unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" ( _U@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z) buildsummaryform.obj : error LNK2001: unresolved external symbol "struct std::_DebugHeapTag_t const & __cdecl std::_DebugHeapTag_func(void)" ( _DebugHeapTag_func@std@@YAABU_DebugHeapTag_t@1@XZ) There are two of these errors for every file in my project. I think I'm missing a library, but I don't know which. I ...Show All

  • Narayanan_N_852dc7 Can one get Window Station Handle for a specific PID?

    Hello all, Could anyone tell me how to do that show in a subject Thank you. Thank you, Mr/s. nobugz. I'v got it. And It is found that there may be some top-level windows. nobugz wrote: Get the top-level window handle for the process. Enumerate the window stations with EnumWindowStations, enumerate the desktops for each window station with EnumDeskTops, enumerate the windows in each desktop with EnumDesktopWindows until you find a match. Get the top-level window handle for the process. Enumerate the window stations with EnumWindowStations, enumerate the desktops for each window station with EnumDeskTops, enumerate the windows in each desktop ...Show All

  • Santosh Kalkeri Creating an Avi file

    hello, I found some sample source code showing how to create an Avi file from a series of still images. What components, libraries, SKDs, must I download in order to compile and run functions such as CreateAvi() I'm running 2005 Express or VC 6.0. Thanks. yes, I see some info.  thanks check out msdn http://msdn.microsoft.com/library/en-us/multimed/htm/_win32_video_for_windows.asp Kuphryn ...Show All

  • DeadlyEvilRyu I can see the .dsp by windiff, but in vc I can not see the content of .dsp, how can I see the content and edit the .dsp directly

    I can see the .dsp by windiff, but in vc I can not see the content of .dsp, how can I see the content and edit the .dsp directly in vc or other tool I appreciate your help. Hello   Re: I can see the .dsp by windiff, but in vc I can not see the content of .dsp, how can I see the content and edit the .dsp directly   Such 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 .   OTP   Thanks Damien -- ...Show All

  • Wicket What is a void pointer?

    Hello folks, Can someone please explain what a void pointer is I understand that a pointer simply contains the memory address of some variable, and if I qualify my variable with the "&" sign then I'm passing it by memory address (like a pointer) and not by value. But lately I've been seeing things like the following: SomeFunction(int var1, void* var2); Or: int var; someClass->SomeFunction(.., (void**)&var); Thanks in advance everyone. pintu*, when you quote other sources it's a good idea do include a link, to avoid copyright issues. The & is the address-of operator. int x; // int int* px = &x; // pointer to int int** ppx = &px; // pointer to p ...Show All

  • incendy How to get Data from C++ Program from C# program through Dll Import?

    I have created an application in C++, Now through dll Inport in C# I am accessing the method of C++. I wan to return some data from C++, can any one tell how this is possible. -------C#Code----------------- [ DllImport ( "Sabs.dll" )] public static extern int GetDataFromCPlus( string path); --------C# Code------------------ The C++ code is: extern "C" { __declspec ( dllexport ) void GetRdrData( char * path) { //---------Code----- } }  The following code does this (somewhat crudely, as there is no error handling or intelligence about the data being read).  Depending on the data you need to read, this may or may not help. -------- ...Show All

  • TerriM .pdb differs from previous link; relink or rebuild error

    I got ".pdb differs from previous link; relink or rebuild" error even if i am building the application first time in DEBUG build type. What could be the problem and how to resolve it. That does work.. I tried it.. Anything else Try checking the date/time of the .pdb file vs the .exe file... Try Build + Clean first, then try deleting the .pdb by hand... .exe file is not built only..ITs an error in linking stage.. So all you've got is bunch of .cpp's, .h's, a .sln and a .vcproj If so, try making a new (empty) project and import all the old source code -- the project settings may be borked. ...Show All

  • Gess Man problem with a .exe

    hi, well I have a program .exe done with visual c++, the problem : this only run when I setup the visual studio 2005 , I need that this program be independent . thanks! In addition to having the appropriate .NET runtime there may be other dependencies. The easiest way to get your program working on another computer is to create setup program using Visual Studio. Select new project | Other Project Types | Setup and Deployment | Setup Project and add your project to it. Build, and use the resultant msi to install your program on other computers. what kind of appllication it is Is it using the .NET runtime, is there any managed code in your project if that is true, then you need to install .NET framew ...Show All

  • Jason C. Foster Can't see the Controls Toolbar in Visual Studio 2005 , Visual c++

    Hi, I just started Visual C++ and have installed Visual Studio 2005. I am trying to follow an example in a book which calls for me to add the Controls Toolbar by using the Tools --> Customize--> Toolbars , then click on Controls. But Controls does not appear on the list of available toolbars. So the question is how do I activate the controls toolbar (so that I can add buttons, list boxes,...) Thanks!! What Controls Toolbar I'm not having any... Probably that book is old, for Visual C++ 6.0. In Visual C++ 2005 the equivalent feature is the Toolbox. You can find it in the View menu.   ...Show All

  • DoS user input to envvar

    I recently just learned how to create environmental variables using "_putenv" and "getenv". my question that im getting to, is there a way to take user input and add it to the envvar, such as an example: #include "stdafx.h" #include <stdlib.h> #include <conio.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char *libvar; //char name[32]; libvar = getenv( "LIB" ); if( libvar != NULL ) printf( "Original libvar is %s.\n", libvar ); _putenv( "LIB=c:\\program files\\steam\\steamapps"); //This is where I want to cat the users input. libvar = getenv( "LIB" ); if( libvar != NULL ) printf( "New libvar is %s.\n&qu ...Show All

  • stevieT01 first steps

    Hi Im just starting out to learn VC++, I have previous expericience of c, Java and SmallTalk. I have the VC++ 2005 compiler and the book 'MicrosoftR Visual C++R .NET Step by Step--Version 2003, the first exercise is 'Hello World' to give you the idea...which compiles and runs ok, My question is will I run into lots of problems working through this book...or maybe translating the code will aid my learning I realise its not the best way to start off, but my budget wont stretch to buying another book, Some feedback would be appreciated The point of this thread is it contains a link to a site that reviews C++ (and C) books - I wouldn't worry that the thread hasn't had a post in 10 months. In ...Show All

  • Kline Chen China BITMAP pixel information

    Hi, I need to get pixel by pixel color information from a bitmap, how can I do that, I'm new in Visual C++ 2005 so I don't have an idea on how to do this. Any advice would be great! Thanks! You cannot select a bitmap into a device DC (the one returned by GetDC or GetWindowDC). You need to create a memory dc for this: CDC* pDC = GetDC(); HBITMAP hBitmap = (HBITMAP)LoadImage(NULL, "D:\\Visual Studio 2005\\Pruebas\\PruebaCLR\\superman.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE); CBitmap myBmp; myBmp.Attach(hBitmap); BITMAP bm; myBmp.GetBitmap(&bm); CDC memDC; memDC.CreateCompatibleDC(pDC); HBITMAP hOldBitmap =(HBITMAP) dc.SelectObj ...Show All

  • jcollomosse Code generation bug when throwing exceptions in C++/CLI with optimizations.

    While writing a C++/CLI project using exceptions I've encountered a bug( ) related to stack unwinding and deleting local variables in unreached parts of the functions on the stack. The following code demonstrates the bug. Please compile with Visual C++ 2005 with /CLR and /O2 flags set. In debug mode, the stack unwinds and the runtime does nothing with the local variable str . In release mode, the runtime attempts to destruct str , even though it has not been used. A workaround which in some cases appears to work is to declare str in the scope of the function. In our case this would be very inconvenient. Has anyone experienced something similar We could not find anything on MSDN or on Connect. Output in debug mode: Main test functi ...Show All

  • Martin Rajotte place for code

    maybe this is a stupid question, but I have started microsoft visual C++ today (c++ itself also for the first time) and i dont know where to put the code. i'm making the program hello world, but it doesnt work it asks if i want to 'build' the programm and i dont know what it means. i named the program hello and i put the code in the place where it says: hello.cpp is this the right place if so, what am i doing wrong this is the code: // hello.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain( int argc, _TCHAR* argv[]) { return 0; } #include <iostream.h> int main() { cout << "Hello World!\n" ; return 0; } ...Show All

  • Thomas2054 basic (default) Console ap using STL has Manifest error on DEBUG but not RELEASE.

    I am using MSVC 2005, and I added VCRedist.exe and SP1 recently. It is running under WinXPpro (version 2002, SP2), on a Pentium 4 3.40GHz machine. I created a basic Console application using defaults in the wizard. - manifests were turned on by default (Linker property: Manifest File: Generate Manifest = YES) When I added my test code to _tmain(), and compiled it under both DEBUG and RELEASE, it looked fine. std::string hello("Hello, world"); printf( "%s", hello.c_str() ); But when I ran it under DEBUG, it gave me an R6034 error ( attempted to load the C runtime library without using a manifest ). But when I run the RELEASE mode, it looked like it ran fine (ctrl-F5). What is wrong I tried to look at the R6034 p ...Show All

575859606162636465666768697071727374

©2008 Software Development Network

powered by phorum