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

Software Development Network >> Visual C++

Visual C++

New Question

What does the ^ refer to in 'System::Drawing::Image ^'???
Switching from CClientDC to memory DC?
What is the function that returns the integer code of ASCII
COM/ATL App Method Return/Pass defined types
LNK2001: using unmanangedC++ in manC++
Problem : Change view
Unable to find an entry point named 'HidD_GetHidGuid' in DLL 'HID.DLL'.
WinSock runtime problem
Reverse Engineering with Visual C++ 2005
Using zlib within a managed MS Visual C++ 2005 Express project

Top Answerers

jss3426
Greg Van Mullem
DocMoriarty
ebooker
WineNCheese
Spangltk
ihackdw
Martin Odhelius
Hugor
Corinna Vinschen
sitemap
Only Title

Answer Questions

  • BuddhaBoy breaking into "Microsoft C++ exception" code

    Hello, I am currently using Visual Studio 2003. I have code that throws a ton of Microsoft C++ exceptions: First-chance exception at 0x77e73887 (kernel32.dll) in gvrshell.exe: Microsoft C++ exception: unsigned long @ 0x0126cd24. First-chance exception at 0x77e73887 (kernel32.dll) in gvrshell.exe: Microsoft C++ exception: unsigned long @ 0x0126cd5c. First-chance exception at 0x77e73887 (kernel32.dll) in gvrshell.exe: 0x000006BA: The RPC server is unavailable. First-chance exception at 0x77e73887 (kernel32.dll) in gvrshell.exe: Microsoft C++ exception: unsigned long @ 0x0126cdf8. First-chance exception at 0x77e73887 (kernel32.dll) in gvrshell.exe: Microsoft C++ exception: unsigned long @ 0x0126ce44. First-chance exception at 0x77e73887 (kern ...Show All

  • ntsoo hiding LNK warnings

    Basically, I want to get rid off all the LNK warning For ex, LNK4099, or LNK4204, or any other one. I am linking my debug lib with a third party release lib. That's why I am getting those. Is there some kind of "pragma" for the linking step to hide warnings There was the undocumented #pragma comment(linker, "/ignore:4099") but it does not work anymore on Visual Studio 7.1. I is annoying to look at hundreds of these warnings rolling down on my screen. Thank you. If I add /ignore:4099 to the "additional options" of project properties->linker->command line, I still get the warnings LNK4099 I am using: Microsoft Visual C++ .NET MS Development Environment 2003 Versi ...Show All

  • 2V. Help button get chm instead of hlp

    I have a application built around a CPropertySheet derived class. The help button is looking for 'app.hlp' file (this is the default MFC stuff, I've not added anything other than moving the button). How do I get it to look for a 'app.chm' file instead I've tried the following using a test help file in InitInstance() //First free the string allocated by MFC at CWinApp startup. //The string is allocated before InitInstance is called. free((void*)m_pszHelpFilePath); //Change the name of the .HLP file. //The CWinApp destructor will free the memory. m_pszHelpFilePath=_tcsdup(_T("C:\\filezilla\\filezilla.chm"));     EnableHtmlHelp(); but i just get "Failed to launch help" Thanks for yo ...Show All

  • Terry Smith Accelerator letter in menu

    Hello, I am developing an app using VC++ 2005 and MFC. The app menu contains some accelerator keys that are visible only when we press ALT (its default characteristic). Is there any way I can make them visible all the time Please give a sample of this. But thanks for your idea. Thanks a lot Alex. You can make use of owner draw menu I believe This behavior depends on system settings: Display Properties - Appearance - Effects - Hide underline letters for keyboard navigation until I press the Alt key. In the program you cannot change this. User who wants to see underline immediately, unchecks this it his computer settings. ...Show All

  • S.Jan memory leak for socket program

    I got memory leak after running a socket program. I checked for "new" and "delete" socket, they both seem fine. So I couldn't figure out what's wrong. Here are the messages after exiting the application: ...... 'ip.exe': Unloaded 'C:\WINDOWS\system32\iphlpapi.dll' Detected memory leaks! Dumping objects -> {269} normal block at 0x00B15870, 2401 bytes long. Data: <2.0.8 n > 32 2E 30 2E 38 00 6E 00 00 00 00 00 00 00 00 00 Object dump complete. The thread 'Win32 Thread' (0xc7c) has exited with code 0 (0x0). The program '[1372] ip.exe: Native' has exited with code 0 (0x0). If I run the certain function twice which creates the new socket then deleting it, memory leak will be detect ...Show All

  • RyanB88 How do I make a modal window

    I've made a number of windows and I'd like a few of them to be modal (they will appear when different events are triggered and remain open until the user closes them). I am using Win32 and I thought there was a flag like WS_BORDER that I could use. Any suggestions You create modal dialogs by using the DialogBox method ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/dialogbox.asp ). A modal window is essentially one that disables its parent window, and enables it when it is closed. If you are not using a dialog box, then you just need to do this yourself and achieve modality. Thanks Folks. Both ways seemed to wo ...Show All

  • bhavu unresolved external symbol because of a further function

    Unfortunately I have one more problem, I have now the following: the header file: [code] #include <iostream> namespace main_savitch_2C { class statistician { public: void next(double r); private: bool operator ==(const statistician& s1, const statistician& s2) { return true; } [/code] and my testfile: [code] #include <iostream> // Provides cout, cin #include "stats.h" using namespace main_savitch_2C; using namespace std; int main(int argc, char* argv[]) { statistician s1, s2, s3; if (s1 == s2) cout << "s1 and s2 are equal." << endl; else cout << "s1 and s2 are not equal." << endl; } I know that the operator== function is not ...Show All

  • airwalker2000 executing a member function in a separate thread

    hello everybody !! my new problem is that i have a class that contain a some functions and some variables i want to execute one of these functions in a separate thread using AfxBeginThread(...); and FYI this function uses some member variables of the class to do it's work any idea thnx 4 ur time and concern a.hemdan as sarah Mention that is the Proper Approach.here is the code for that.and i don't think in this case you need any synchronization.Because you are not Performing mutiple action or neither using multiple thread here .Following cod eyou can use inside your class.and this will work proper in your case.and at the place of createThread you can use your AfxbeginThread HANDLE hThread = CreateThread(NULL,NULL,(LPTH ...Show All

  • Sangweb C++ in visual

    I have just started using visual and my codes don't work. DO i have to change some setting or what's wrong. #include <iostream.h> main() { int a; int b = 20; int c = A + B; cout << "ENTER A VALUE FOR 'A' : "; cin >> a; cout << "Here is the ANSWER when u add 20 to ur varible: " << c ; return 0; } You can set or reset the precompiled header through file properties in Visual Studio. Either you can set for the whole project from Project Properties->C++->Pre-Compiled Header You can select from that. if you avoid pre-compiled header, you need include the common header files like windows.h, stdio.h etc. repreatedly ...Show All

  • Rhubarb Prevent same string in ofstream

    Hi all. Is there a way to prevent ofstream from writing the same line if it already exisits If so please let me know because i wrote a function that loops the time/date but it keeps on showing the same time/date. Thanx in advance! Before anyone asks. My code below. #include #include #include using namespace std; int main (){ while(1){ Sleep(300); char date [9]; char time [9]; _strdate(date); _strtime(time); ofstream file1; file1.open("time.txt",ios::app); file1 << "[Date]: " << date << endl; file1 << "[Time]: " << time << endl; file1.close(); } return 0; } Note: the idea is to update when the time changes, not to write the same time over and over until it ...Show All

  • Fulankazu ap libraries

    Is there a download for getting ap libraries for Visual C++ 2005 Express Edition Beta 2 Here's another site that appears to have an easier download process: http://www.studio-ide.com/downloads/APInstall.html Now that I have installed the libraries how do I make them work with the compiler This was helpful in as much as I now have the apstring files needed. However, I am running into another problem when attempting to use them. The apstring references the old iostream.h file in the code. How can I get this to work, any ideas  Let me rephrase this, and perhaps explain a bit better. I am using Visual Studio 2005 Professional Edition Version 8.0.5072 ...Show All

  • MikeHNatti How to open solution via project

    Hi I have a little problem. I create VS solution and then add to it already existing VC project. Then I close VS , and when I open project file (via double click) it's created a new solution file for that project, i. e. it doesn't open solution in which it added.But when I add new project to solution everything is ok. So I want to understand how project file "find" its solution. Thanks I suppose Visual Studio searches the solution file, containing the opening project, first in the project’s directory, and then in parent folder. I think this can be verified with some tests. thanks for reply, but you didn't understand my problem. I'll t ...Show All

  • Benelf breakpoints and watches in un/managed c++/cli mixed code

    I'm adding managed c++ (c++/cli) code to a mostly unmanaged project and I'm finding that I cannot put any breakpoints in the managed portions and that watches don't return any useful information. Is this a feature, or is there a workround TIA Project - Properties - Configuration Properties - Debugging. Set Debugger Type to Mixed. Nope, has no effect. It doesn't seem to matter whether I set the debugger type to mixed, managed only, native only or auto; it only and always breaks in native code. The project has no clr support, while the managed cpp module has /clr set. By the same token I only get intellisense in native code, it's like the olden days of coding with a sep ...Show All

  • jonas k How to link standard c .lib in Visual C++.NET??

    As title, when I try to link with a standard c .lib in Visual C++.NET(VS 2005). And I've tried different compiler switch of "runtime library" {/MD, /MDd, /MT, /MTd}. The code is as simple as below ------------------------------- #define omniapi_session_handle void* extern "C" omniapi_session_handle omniapi_create_session(); omniapi_session_handle hSession; int main(array<System::String ^> ^args) { hSession = omniapi_create_session(); return 0; } --------------------------------- And I got following errors - Error 1 error LNK2019: unresolved external symbol __iob referenced in function _omniapi_tx_ex Error 2 error LNK2019: unresolved external symbol _errno referenced in function _oa_connect Anyone can help ...Show All

  • Michael Mortensen Errors when compiling a VC6 project in VC2005

    Hi All, I try to compile a project built several years using VC++6 in VC++ 2005 and got following errors when trying to build the project after clearing out all the other errors in *.CPP file: error C2248: 'CObject::CObject': cannot access private member declared in class 'CObject' file afxwin.h line#1814 The line#1814 in afxwin.h is the end of class definition for CCmdTarget. This is a GUI interfaced application. I read somewhere that this might be caused by some private constructor in CObject. But the problem is the error did not even show me which .cpp file has the problem just pointing to the afxwin.h file and I have close to 100 .cpp file in this project. Any help is appreciated. Wel ...Show All

717273747576777879808182838485868788

©2008 Software Development Network

powered by phorum