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

Software Development Network >> Visual C++

Visual C++

New Question

Deleting the Items in Listbox with delete button on keyboard
Large (int64) interger Variables
displaying formatted text in edit box control
Enum type with less than 4 bytes???
Export/Import a Bitmap to a DLL
Delete a certain tree node
Problems just adding a message to WndProc in a Win 32 API code.
Screencapture and pixel problem
Question about const_cast
Closing Window

Top Answerers

Douglas Nakamoto
swapna_n
tbothan
pj_bennett
Michael_317
Hobbit666
Tonito01
AShukri
prozac11
Barry Kwok
sitemap
Only Title

Answer Questions

  • Horst Klein [export]ing helpstrings

    Hi, I want to insert the helpstring into [export]ed idl items in attributed C++ code. I have (i.e. this works): in my.h file [export] typedef enum KillConstant { KillConstantReboot = 1, KillConstantExitOnly = 2, KillConstantShutdown = 3, KillConstantPowerOff = 4 } KillConstant; This generates the following idl: typedef enum KillConstant { KillConstantReboot = 1, KillConstantExitOnly = 2, KillConstantShutdown = 3, KillConstantPowerOff = 4, } KillConstant; I want something like this (doesn't work): [export] typedef [helpstring("Selector for kill method.")] enum KillConstant { [helpstring("Reboot the computer.")] KillConstantReboot = 1, KillConstantExitOnly = 2, KillConstantShutdown = 3, Ki ...Show All

  • totty3478 how to add header(.h) file in resource file (.rc)

    hi, I am getting below error when I compile an resource project in VC++ 2003. error RC2104 : undefined keyword or key name: E_CANTCREATELIST when I rearch about this keyword, I found its definition in one of the header file. please let me know how to add this header file information in above resource file to avoid above error. Reagrds Shiv   rudra_shiv wrote: [...]please let me know how to add this header file information in above resource file to avoid above error.[...] If you right-click on your .RC file in Resource View window, you will see the Resource Includes command, and then Read-only include directives field. I think this is the right place for custom #include directives.   ...Show All

  • hawash Visual Studio features - gone in later versions

    I'm trying to figure how to do certain things in a later version of Studio that I could do in VS6 but don't work anymore. Such as (a) dismiss the compilation output window just by hitting ESC, and (b) identifying the exact path to a given source file. I switched from 6 to .NET a couple of years ago, and have regretted not knowing how to make .NET behave like 6 in these particular areas. Now that I'm in the right forum (I hope) - a bit more detail: 1. In VS6, after I had compiled, I could hit ESC and the compile window would vanish. In VS.NET, I have to go click on the close button. Not the end of the world, but annoying nonetheless. 2. In VS6, if I wanted to know the complete path to a particular so ...Show All

  • jzfredricks doubt about visual studio 2005

    I’m using cisual c++ from visual studio 2005, and i am a new usuer of visaul c++, it’s my first time using. And what i want to know is i create a window application (for example, that show a message of welcome), i can take the file . EXE to a pc without visual studio or any aplication that build c++ code, and execute and work without problem. I ask that, becouse a build the a opensource program that was create using visual c++, and take to another computer without visual studio and this erro was show: It could not initiate the application so that the configuration is incorrect. Reinstalar the application can solve the problem. The original message it’s in spanish. Maybe that error was becouse i miss the transfer ...Show All

  • LpAngelRob Error message PSAPI.DLL

    I am getting a error pop up saying Get Process Image file name w. could not be located in the dynamic link library psapi.dll What should I do to fix this. April Brain, I found the blog, This is what my computer came up with about 10 items, I tried to copy and paist but I couldn't. So should I rename all of them taking away the .dll and replace with old. All modified Dates are before 2004. Name Folder dhcpsapi.dll C:\I386 psapi.dll C:\I386 psapi.dll C:\dj840\win2k_xp dhcpsapi.dll & psapi.dll c:\windows\system32 psapi.dll c:\programs files\motive\asstcommon &c:\windows\servicepackfiles\i386 & c:\programfiles\hewlett-packa ...Show All

  • GoDaddy call wrappers and function addresses in DLL's

    Hi, I'm having trouble with C code that stores the addresses of functions that come from DLL's. The problem is I don't get the same value if I take the address of a particular function from two different DLL's. I can see that this is ultimately because the value my C code gets is actually an address in a jump table and my program has more than one one jump table. Here's my situation: .exe doesn't do much, just implicitly linked to DLL A which does all the work DLL A explicitly (calls LoadLibrary) on DLL B. Runs a routine in DLL B by calling GetProcAddress() etc, I'll call this initB() DLL B is implicitly linked to DLL A. When initB() is called it stores the address of a function inside DLL B in a list. I'll call that routine fu ...Show All

  • paulixml Profiling C++ .Net app in Visual Studio .Net 2003 enterprise version

    Hi, Does anyone know how to profile a C++ .Net application in VS .NET 2003. With VS 6, you can do it by enabling the "profile" in project property link page. But in VS .NET 2003, I couldn't find this setting. Has it moved to some other places DevPartner Performance Analysis Community Edition http://www.compuware.com/products/devpartner/profiler Be warned - you will get a phone call from their sales before you are finished downloading the file :-) Oh, this information, along with a link to the community edition profiler can easily be found by a web search. Thanks for the infomation! ok my at ...Show All

  • Adam2342342341 C2027 Error: Full class declaration required: Bug?

    Hi, This may touch on some obscure corners of the C++ standard, but I believe the example below should compile as is, without the full declaration of class Atom. Comments Thanks. Stuart ____________________ // Shows VC++ 2005 Bug Requiring Full Class Declaration Where Forward Declaration Should Suffice // Compile: cl /EHsc forward.VC.bug.cc (other options didn't make a difference) // Error: error C2027: use of undefined type 'rosetta::conformation::Atom' // Compiles without warning on: GCC 3.4 and 4.0, and Intel C++ 9.1 // Compiles if: // . Full Atom.hh header is included // , std::vector is used instead of vector1, // . vector1 dtor is made non-virtual // . typedef for Atoms_Iterator is removed // Something about the vector class hierarc ...Show All

  • mbaclawski mangled name

    Is there any API to retrieve the address of a method (private/public) using the mangled name. the method is supposed to be a class member. we can know the mangled name from the .map file in VC++ 6.0 Please also suggest a method of using this in GCC. einaros wrote: Holger Grund wrote: Erh Why would you expect the unmangled name to produce valid input to GetProcAddress If the function is indeed exported it would very likely have the mangled name in the export name table, but certainly not anything I can think of that would be produced by undname on a C++ mangled name. This is a follow up thread to another similar one, in which the function was a standard thiscall mem ...Show All

  • qrli getlasterror()==2

    Here's the thing: LPCSTR lpFileName = "c:\\Soft\\test.txt"; HANDLE crtfile; crtfile = CreateFile(lpFileName, GENERIC_READ, // open for reading FILE_SHARE_READ, // share for reading NULL, // no security OPEN_EXISTING, // existing file only FILE_ATTRIBUTE_NORMAL, // normal file NULL); printf("Get last error: %d\n",GetLastError()); When I run this, createfile doesn't find the file in the specified path, though the file is there. My project is set with the multi-byte character set. I tried with TEXT() and it won't either. When I print the file path, the debug window displays: c:\Soft\test.txt. What am I missing Thanks **** I have ran this code on my account which have administrator rights. I have tried something: fopen to create and w ...Show All

  • Ralphs This code snippet makes no sense...

    I've come across some code syntax I've never seen. It compiled, but I don't know how, or what it even does! I've been reading a book about DirectX, and in one of the examples, this little piece of code was present: D3DXMATRIX *D3DXMatrixIdentity(D3DXMATRIX *pout); "D3DXMATRIX" is a type, of course. And "D3DXMatrixIdentity" is a function, of course. Now I don't see how this works. Okay, to break it down, first we have a type, which is D3DXMATRIX, then we have the indirection-operator (which I assume is a pointer), and then we have a function (perhaps a call) with a new D3DXMATRIX (pointer) as it's only parameter. How the heck does this work It isn't just a regular function-call. It isn't a function-call that' ...Show All

  • Luis Esteban Valencia Muñoz Difference between Visual C++ and Visual Basic.net

    hi, What is the Difference between Visual C++ and Visual Basic.net thanks I think you mean Visual C# .net and Visual Basic .net, right If so, you can refer to this KB URL: http://support.microsoft.com/default.aspx/kb/308470 And if you dont have the time to read it, generaly they are the same, both are complied to MSIL. They differ slightly within the code syntax and some classes. I hope this helps It looks like duck thing is a Visual C++ fan! Both languages differ in terms of syntax, target solutions, and architecture. What I can say is VC++ is super powerful and VB.net is super easy. Couple of months ago Dave Oliver started sort of debate over Channel 9 ( http://channel9.msd ...Show All

  • RufusLDK c1xx attempting to compile first preprocessor directive.

    Yesterday I didn't notice any problems with my project, but today whenever I change a file, it compiles the changed file, and then attempts to compile the first preprocessor directive I've defined (in my case WIN32). The exact error reads as follows: WIN32 c1xx : fatal error C1083: Cannot open source file: 'WIN32': No such file or directory After I get this error once, I can recompile again, and since the changed file has now been compiled, it goes directly to linking and doesn't spit this error out again. I'm using VS2005 Standard Edition. What can I do to fix this or to get more information on what's happening I'd added an environment variable which had now been removed, thus ...Show All

  • Michael_DE Ref class and friends

    I've been using CPPUNIT for unit testing unmanaged classes. In particular, I can write an unit test class to test a private function of a class. However, the unit test class must be defined as "friend" in the under test class. Since, Ref classes (managed ones) does not support friends, as such, how do I test its private functions A #define private public could fix that... hello Managed type cannot have any friend function/classes/interface, this is by-design. I would like to recommend you to find an open discussion group for CppUnit like cppunit forums to obtain more experimental suggestions. thanks rico ...Show All

  • Shazen Question about CoUninitialize and access violations

    Should this sequence cause an AV I made the fairly common mistake highlighted in yellow, and fixed it, but I was surprised that it resulted in an AV only if COM had not been initialized on Thread A. I would like to understand why or why not I should expect an AV in this case. Thread A calls CoInitializeEx Thread A creates Thread B Thread B calls CoInitializeEx Thread B creates and uses some COM objects Thread B calls CoUninitialize Thread B releases COM objects <--Bug Thread A calls CoUninitialize Hello So I think your are asking an “invalid” question (if such a thing exists) here. Are you saying that if you do not follow the COM rules (you try to access an object after ...Show All

86878889909192939495969798990123

©2008 Software Development Network

powered by phorum