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

Software Development Network >> Visual C++

Visual C++

New Question

CAsyncSocket leaks
winnt.h(222): Error C2146 ...
copying files upon opening the project
pin an array for asynchronous calls
std::vector versus std::map performance
Getting a Collection of sublcass objects. Is this possible?
About the path of message
Executing Code
weird error - variable value not changing
Insert Hyperlink dialogue

Top Answerers

iljanated
Cezary
Mystret
NamelessJuan
Carroll Barrett
Michael Covington
Anil Dhiman
Emadkb
C. Doré
sunny123
sitemap
Only Title

Answer Questions

  • Filipe Silva Compiler Error C3213 in C++/CLI

    Compiler error C3213 says: "A type that will be visible from an assembly must use publicly visible base classes." Can anyone explain to me why this is so If another assembly accesses my publicly visible derived class, why must my entire base class hierarchy be publicly visible in .NET You're right. .NET also doesn't allow private derivation. C++ doesn't have anything resembling .NET's ability to control accessibility at the compiled unit level. The closest unmanaged analogy to an assembly and public ref class is a DLL and the __declspec(dllexport) attribute. There is however no facility to prevent a DLL client from executing code in base classes that are not exported. ...Show All

  • bookysmell2004 Using VC++ 8.0

    Hello, I have a project that was created/build using VC++ 6.0, the project uses a third party library iconnect.lib. I am trying to compile the project using VC++ 8.0 but I get a lot of linker errors - some of those errors are below. Note: the project compiles without errors or warnings when using VC++ 6.0. Can someone tell me what I need to do to get my project to compile/link successfully with VC++ 8.0 Thanks in advance! -Agustin ERRORS: Error 82 error LNK2001: unresolved external symbol __RTC_CheckEsp iconnect.lib Error 83 error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > ...Show All

  • Gaurav Singh filling and writing multidimensional vectors

    Hello, I have 3d image data ("pixelData") that I read into a dynamic array (size "countPix"). This data is then loaded into a 3d vector so that I can easily rotate the data. I have included the code below which does seem to do the job. However, it is really long winded with loads of loops. Could someone tell me how to make this code work faster Thanks in advance. //images upside down so sort em ... Uint16 *pixelsort; pixelsort = new Uint16 [countPix]; //multi dims dinnae work so use vectors to reverse vector< vector< vector<Uint16> > > my3Ddata; //generate a 3d space of the correct size my3Ddata.resize(irows); for(int i=0;i<irows;i++){ my3Ddata .resize(icolumns); } for(int i=0; ...Show All

  • brent.xml I got the Microsoft Platform SDK March 2006 Edition... But, NOW What do I do to make it work with my C++ Codes, about the OpenGL

    Hi, ... ... ... I just got the Microsoft Platform SDK March 2006 Edition... I installed it, but now WHAT... !!! ###&&&***@@@$$$%%% ^^^###, and #$%& Microsoft...!!! What do I do with it... I'm trying to build codes using the OpenGL " ... STUFFS ... ", but none of them are compiling at all ... I try the #include <windows.h> #include <GL/gl.h> #include <GL/glu.h> #include <cmath> and None of them are recognized by the Visual C++ Compiler... SO, WHAT'S GOING ON... !!!###$$$@@@%%% &&&***@@@###, DAMN MICROSOFT... THEY WON'T EVEN TELL ME JUST THE EXACT THING I NEED TO DO IN ORDER TO GET IT RIGHT...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ...Show All

  • kminear Need a delay routine inside application

    I am running an application that automatically processes a data string about every 8 minutes. Using Sleep(xx) function does not allow the continuously looping application to rebuild its window or allow other applications to run. Any suggestions I used Visual C++ vs 6 MFC on WindowsXP Prof. if (ok == -1) { // This is the waiting loop stopit = 0; nIDEvent = 1; OnTimer(nIDEvent); if (GetInputState() == TRUE) OnKeyDown(nChar, nRepCnt, nFlags); if (stopit== 1) { AfxMessageBox("You have terminated the data collection",MB_OK); return; } } etc. // These are the exit and time delay functions called in above waiting loop void CCemexDataView::OnKeyDown(UINT nChar, UINT ...Show All

  • demo_b VS2005 (SP1) crash on IntelliSense update with C++ project

    Hello I also had troubles with a crashing IntelliSense update (C++ Solution multiple projects) in the past and haven't been able to get it working with the hotfixes already discussed in this forum. Unfortunately, the VS2005 still crashes on "Updating IntelliSense" with VS2005 SP1 installed on the machine (feacp.dll Ver. 14.0.50727.762). I already made a bug entry: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=245794 Does anyone has an idea to isolate the crash to the specific problem I'm hitting this too and I put this comment on the bug report you mention:- >>> Its not obvious in our case that a single source file is causing the crash but seem ...Show All

  • Developer Dan Unable to Debug myappsrvr.exe

    Hi I am running into problem while I am debugging in mySVR project. The problem is “Debuging is hanging and throwing “First-Chance Exception” “ I am doing the following steps. 1) Registered mySVR as server with /RegServer option 2) Kept Break point at necessary point. 3) Then started debugging. But it is throwing First-chance exception at 0x7c812a5b in mySvr.exe: 0x000006EF: A null context handle was passed from the client to the host during a remote procedure call. Basically my application is Service .exe. So I am registering this service as server to debug. Can any one help me on this let me know if any other way to debug the service. Thanks SRINIVAS ENDRA Ma ...Show All

  • Philip Painter Every combination help

    Hey guys i am making a pq therom program. I am to the part where i have a[20]/b[20]. I need to do every possible combination like a[1]/b[1] and a[1]/b[2] and so on. What can i do so i get this. I need all the answers in another array. Hello Re question: Every combination help 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 the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien use two for loops with two different indexs for a and b and an array of size ...Show All

  • mayur8u How to send a wmv or avi file inline to/from outlook?

    Hi, In my one application I want to send a wmv file by mail. But I want that file to be send as inline instead of attachment so that user will start playing it as he opens the mail. Is it possible How can I achive this Regards, Hemant. Hi, Thanks for reply. Yes. User can click on it to view it. But this adds extra click . I want that when user opens his mail(which may be gmail,yahoo etc) the wmv file should start playing. Regards, Hemant The focus of this forum is the C++ language, as implemented by VC++ 2005. Please direct your question to one of the newsgroups, such as http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.prog ...Show All

  • robinjam fatal error LNK1181: cannot open input file ",.obj"

    I compiled my program after doing all those settings in "Project Setting Menu" but i got an error : fatal error LNK1181: cannot open input file ",.obj" I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error. If anyone know about the settings in VC++ then plz reply any help will be of great use Thanks in advance As Martin suggested, try creating project from scratch and see if the issue still reproduces. Thanks, Ayman Shoukry VC++ Team What did you entered in you linker settings. Check you linker settings. Did you placed a comma into one of those fields Separate entries with a semicolon. ...Show All

  • Ron Luebke Help with Thread scheduling

    Hello, I am trying to create two threads such that Thread-1 runs every 20milliseconds and Thread-2 runs all the time. Thread-2 is basically preempted or suspended till Thread-1 completes operation and again gets resumes operation. I am new to using threads, but based on some sample code I have managed to create threads. But I don't know how to schedule them in the above fashion. Its necessary that the Thread-1 runs absolutely every 20ms. I was trying to use the Sleep function but it somehow doesn't give deterministic Sleep times. Could anyone suggest how I can schedule the threads in the above fashion. Thank you, Suraj. FirstOfAll for Scheduling you can rely on WindowsAPI s to make the Thread 1 Highest P ...Show All

  • dumian Key Combinations

    Hi, I have a keydown function in one of my windows which goes like this void CLegacyScreenView::OnKeyDown(UINT nChar,UINT nRepCnt,UINT nFlags) { char ischar; ischar=char(nChar); if (::GetKeyState(VK_CONTROL) < 0 && ischar=='k') some code.... } My intetion is to handle the ctrl and k button at once. but this takes ctrl as a key down and k as a key down separately Please suggest me how i can make the comdition to be true. Thanks & Regards Try if ((GetKeyState(VK_CONTROL) < 0) && (nChar ==(UINT)'K')) it will work fine ...Show All

  • RMan54 Connection timed out - socket error crashes my program

    Hello forum, I'm desperate. I made a class in a client application, which has a function that loops through a series of hosts. However, when it finds a "connection timed out" error, it simply crashes with "std::out_of_range memory location" - when I just want it to go on without connecting to that server. It only breaks after the 2nd iteration - the first goes by smoothly, the 2nd crashes. What can I do [code] void Escalonador::Conecta(char* endereco){ MAQUINA temp; // variaveis de socket. WSADATA ws; int err; // verifica erros hostent *host; // dados do servidor SOCKET s; // descritor de socket SOCKADDR_IN addr; // endereco IP do host // testa a DLL associada a socket (WS2_32.DLL) cout << "Inicializando DLL... ...Show All

  • DodgingRain Compilation error in Release mode

    I have a .NET VC++ program and I can compile it perfectly alright in Debug mode. But when I compile it in Release mode, I got the following compilation errors: Error 1 error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function _main lpdsrv.obj Error 2 error LNK2019: unresolved external symbol _closesocket@4 referenced in function _main lpdsrv.obj .. .. I am a newbie. It seems I need to add a library reference somewhere for my winsock library Please kindly explain and enlighten me. Thank you very much. One possible explanation would be that you have different Release and Debug configuration settings leading to this linking problem. For example you made some change to th ...Show All

  • Sarwanan fatal error C1083 in VS C++ 2005 express

    Hi, I have previously created new windows console application with a precompiled header. At this point, I do not change any of the default settings in the project. I insert the following set of header files in stdafx.h #include <cmath> #include <fstream> #include <string> #include <conio.h> #include <iostream> #include <iomanip> using namespace std; However, I am now getting the following error message when I try to compile: c:\program files\microsoft visual studio 8\vc\include\cstdlib(13) : fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory I have looked in the directory and verified that the file exists and is located in the "..\include\" folder.I have alos che ...Show All

394041424344454647484950515253545556

©2008 Software Development Network

powered by phorum