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

Software Development Network >> Visual C++

Visual C++

New Question

C# DataGridView control in CWinFormsControl hangs on ALT + TAB
hangman project
windows.h not found...
VS C++ Forms Designer
need a help regarding dwmapi.dll and DwmExtendFrameIntoClientArea function
how can i change the icon of a win32 console program
infinite looooooop?
Converting String to Int
Cannot see the version information in the properties of an EXE.
R

Top Answerers

Dvlnblk
Niksta
Wee Bubba
Tryston02
Doug DeBug
Abhayc
Michael Herman - Parallelspace
slaprade
Doug DeBug
Andr&#233&#59; Dias
sitemap
Only Title

Answer Questions

  • Cslom How to get InnerException information in MFC/C++ Application

    I wrote a test program that I am able to use the ConsolWrite to diplay the InnerException information. I need to be able to write out the same information to the EventLog in a NT Service. I have tried many different things trying to get the information but have been unsuccessful. I look into the class in debug but I cannot even find the string that diplays in the ConsoleWrite. Here is a code snippet from the test program and it's output. Console::WriteLine (S "In Main catch block. Caught: {0}" , e->Message); Console::WriteLine (S "Inner Exception is {0}" , e->InnerException); In Main catch block. Caught: Exception has been thrown by the target invocation InnerException is System.MissingMethodException: Method not found.. ...Show All

  • Sarath. My PE Loader cannot load EXE file which bulit with VS2005.

    I need to write a Simple Loader which can run simple EXE(PE Format) file. My loader can parse PE header: IMPORT,EXPORT,RELOC...... I bulit AP.exe with VS2005, and AP.exe imported msvcr80d.dll. So when my loader parse AP.exe's import table and call LoadLibrary to load msvcr80d.dll, but it return NULL. I have searched some information on internet, and known the "manifest" file's effect. I have read http://msdn2.microsoft.com/en-us/library/ms235342.aspx Troubleshooting C/C++ Isolated Applications and Side-by-side Assemblies and related information. And I try some method to let my loader load msvcr80d.dll successful. For example: Before call LoadLibrary, I do open AP.ex ...Show All

  • Uggywuggy C++/CLI: why does a reference variable on the stack need a copy constructor?

    Hi all, I am trying to declare a reference variable on the stack, so that the destructor (i.e. Dispose) is called automatically, when the variable goes out of scope: void VideoPixelShader :: OnCreateDevice ( Device ^ device , Stream ^ shader ) { String ^ errors ; GraphicsStream code ( ShaderLoader :: CompileShaderFromStream ( shader , L "VideoPS" , nullptr , nullptr , L "ps_2_0" , ShaderFlags :: None , errors , m_constantTable )); m_imageHandle = m_constantTable -> GetConstant ( nullptr , L "image" ); // Create the shader m_shader = gcnew PixelShader ( device , code ); } But then I am getting a compilation error: error C3673: 'Microsoft::Direc ...Show All

  • The Philosiphiser Need to re-register???

    I installed service pack 1 for Visual C++ the other day, and now im being told to register Visual C++, yet it is already registered is it possible to use the registration key I was using before, or do I need a new one well no i havent tried that yet but im not sure if anyone else has had the same problem and, if they have, what they did to sort it out. Its weird because the product is already registered hello I haven't really tried to repro this situation but it seems you do need to re-register with previous license, refer to: http://www.hauser-wenz.de/s9y/index.php /archives/219-Visual-Studio-2005-Service-Pack-1-Gotchas.html thanks rico have you at least tried to use previous key ok then thanks ...Show All

  • Han Qiao MFC Dll Project?

    When given a problem that involves quantum interactions, behavior among particles such as atoms etc.: (using: MS VC++) Would you create an, MFC Dll Project Would you take another path Thanks very much for any and all (no matter how minor) info. in regards to above question(s). B. John tnks so much for quick reply. will sit down and compose something more succinct (if you require), without giving away what im going to accomplish (someday). would feel better with email to email, but want others with ideas similar to mine to have the knowledge you are giving to me for free. basically, i'll use formulas (with variables, variables which program will attempt to solve for; made it thru calc. 3, diff. eq., linear alg ...Show All

  • REspawn 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

  • dinh xuan dung Starting off with C++

    I keep hearing it's hard to learn, but that you should try and begin learning with C++...That being said I just downloaded Visual C++ Express and was eager to code for the first time   Only to be even more frustrated; I created a new file under Visual C++, C++ file, then started typing in code from tutorials.  The color of the text is changing, appearing like I'm entering code but there is no output.  Here is what I typed // my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!" ; return 0; } Output doesn't appear and when I click on "Show output from" it makes a noise that I can't do it. Do I have to create a certain type of file or ...Show All

  • Pseudocode Visual Studio Tab Groups

    Is it possible to close a Tab Group without closing a file In Visual Studio, in the Windows menu we can create horizontal and vertical Tab Groups. I am unable to close a Tab Group without closing a file also. We have not yet installed SP1 and if it has fixed the problem, then I am sorry for bothering people with this. This is a minor issue but I wanted to ask in case there is something I missed. Yes that works. I can move the files among Tab Groups and windows do close when they become empty. Tab Groups are variations of split screens, which I used in VC 6 and prior. As for the menu items to move the files, I always assumed that simply changed which window was active; such as the equivalent o ...Show All

  • jjvkm C++/CLI C++ Interop and FxCop/Code-Analysis warning CA2122

    I've purposely been ignoring a CA2122 warning in some C++ interop code I've been working on for quite some time.  I've just recently had the cycles to investigate the warning  The warning message is as follows Warning CA2122 : Microsoft.Security : MyClass.Method():Void calls into Marshal.GetExceptionPointers():IntPtr which has a LinkDemand. By making this call, Marshal.GetExceptionPointers():IntPtr is indirectly exposed to user code. Review the following call stack that might expose a way to circumvent security protection: ->System.Runtime.InteropServices.Marshal.GetExceptionPointers : IntPtr ->MyClass.Method : Void ... MyClass is a managed class where Method calls a native static (for readable illustration purp ...Show All

  • son of dad Simple Question! (about Cpp)

    Hi. maybe this is a simple question.I'm sorry for this. I try to exit from "while loop" by this code : while ( true ) {   // something... //--------------------------------->>>>>>>>>>>>>>  cout<< "Press --> Enter <-- To Exit" << "\n";  cin >> cVar;   if (cVar == '\r')    break ; ///-------------------------------->>>>>>>>>>>>>> } but it doesn't wotk. when I changed  to this, it works properly. while ( true ) {  // something... //--------------------------------->>>>>>>>>>>>>>  cout<< "Press --> a <-- To Exi ...Show All

  • Chris Aus Problems just adding a message to WndProc in a Win 32 API code.

    Hi to all, I have add the WM_XBUTTONDOWN message in my WndProc() in this way: switch (message) { case:WM_XBUTTONDOWN: WPARAM wParam; LPARAM lParam; break; ... } but it gives this error: 'WM_XBUTTONDOWN' : undeclared identifier. I have added "Windows.h" and the folder where it is. Whats the problem What does your definitions look like Give the following a try: #define _WIN32_WINNT 0x501 #include <windows.h> A better place for such issues is the win32 dev newsgroups at http://msdn.microsoft.com/newsgroups OTP Thanks, Ayman Shoukry VC++ Team Ayman Shoukry wrote: A better place for such issues is the win32 dev newsgroups at http://msdn.microsoft.com/newsgr ...Show All

  • Pieter Nelson performance Comparison between C++, C# and COBOL

    Hi everyone, Currently our company is in the process of converting from a mainframe environment to PCs. As a pilot we took an application that processses about 5 million rows with about a record length of 7000 bytes the stats were amazing C# it took 3 minutes 17 seconds, C++ (native and not .net) 1 minute 28 seconds and believe it or not the COBOL program took only 45 seconds. The program has a simple read of a record, process few business rules and replace certain bytes in the string and write back to a new file. I expected C++ to perform better. does anyone has any idea why the COBOL program performed better than the C++ program. The data files were the same, the logic were the same, the machine it was executed was t ...Show All

  • gbobg Runing in "background"

    Hey all. I have a program running from the tray, and I want it to be able to react whenever a special key is pressed. Just like with ICQ, it works in the background but when you press ctrl+shift+a it apears. So how can I achive the same for my program To be able to listen to a certing combination of keys Thanks :) You need to register a hotkey with Windows and listen for a WM_HOTKEY message. http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_hotkey.asp thanks :) It says that on WM_HOTKEY i can get the key, where do I detect this event in my MFC dialog ...Show All

  • Damien fromOZ I met a very strange problem

    please see the code and the result : #include<fstream> std::ofstream out("Name.txt"); class Monitor{ public: static int number; void incident(){number++;} void print(){ out<<"inciden is called "<<number<<std::endl; } void decrement(){number--;} ~Monitor(){ out<<"~Monitor is called"<<std::endl; } Monitor(){ out<<"Monitor is called"<<std::endl; } }; class Monitor2{ public: Monitor* mo; Monitor2(Monitor* mo):mo(mo){ out<<"Monitor2 is called"<<std::endl; mo->incident(); mo->print(); } ...Show All

  • Rick Kriscka Enabling Low Fragmentation Heap fails with GetLastError()=31

    Sorry, another novel here. I'm writing a templated collection class that stores objects by string index as a potentially very wide and deep tree representing all the characters used in all the indices. The class is a rework of one I already have in my project that has been a candidate for optimisation for a while now, and now it's essential because of a significant increase in load through my app. The main problem will be that one of these trees is going to be grown and pruned across a wide range of indices on a very fast basis - probably up to 100-200 times a second at the normal rate of activity, whilst in highly volatile conditions it could go up to 500 or 600 times a second. I ran tests of my original code against std::hash_map ...Show All

414243444546474849505152535455565758

©2008 Software Development Network

powered by phorum