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

Software Development Network >> Visual C++

Visual C++

New Question

call function in a C# class from a project created in Visual Studio C++
list boxes and data sources...
Every time while relocate : Add Files to Project
Managed array of pointers to elements in another managed array
MFC DLL load from Win32 App -> Memory Leaks
re help!
Impossible to track down a linker error
Printer online/offline status
find the datatype
BitBlt() in Child Wnd's OnPoint() failed.

Top Answerers

Lightening
Chris.Stewart
jkgtldn
Darren1
ManishSingh
Pure Krome
LouisPeter
gshaf
BobConsultant
Project Glitch
sitemap
Only Title

Answer Questions

  • JesseD70 msvcr80.dll problems: version 8.0.50727.363 versus 8.0.50727.42

    I have a really strange problem. I'm using Visual C++ 2005 Express installed, and everything worked fine ever since I installed it. But at some point during the last few days something broke, and now I can't run my programs anymore. I started to investigate, and found this: A simple test program like this (test.cpp): #include <stdio.h> int main() { printf("Hello, world!\n"); } when compiled with cl test.cpp /MD results in three files, test.exe, test.exe.manifest and test.obj. The manifest contains: < xml version='1.0' encoding='UTF-8' standalone='yes' > <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> <dependency> <dependentAssembly> <assemblyIdentity typ ...Show All

  • Programm3r Monitoring Child Process..

    Hi, I am writing an application which silently install netfx.exe redistributable. I want to catch events(start and end of the child process) and error codes in case if execution fails. I have tried using Piping but not sucess. I am not getting any bytes in the pipe for all the use cases which i have tried. I also tried one C runtime function which creates and wait for the termination of the process. It also return the Error codes for netfx.ex. But i am looking for more flexible solution like piping. Could anyone help me figure understand why piping is not working and how _wspawn() [i think i got the name right] works. Is there any other ways i can monitor and get error codes. Regards Debugger ...Show All

  • Tovdb Integrated environment loses keyboard after debugging

    When exiting the debugger prematurely, (ie debug | stop debugging from a breakpoint or abort on an exception or assert), more often than not the keyboard interface is broken. The only keystrokes the IDE recognizes would be the short cut to a main menu, and while the menu is displayed, then any keystrokes seem to flow into the active window. I have to quit and reload Visual Studio to fix this. No other software is affected. Any idea what's going on Thanks, dw You don't specify what type of program it is, such as console program, but the program is probably doing something it should not do. Check the Task Manager to see if your program is still shown as a process (in the Processes tab) after y ...Show All

  • celinedrules MoveWindow for dialog has no effect when invoked by message handler

    Problem: MoveWindow function for a dialog appears to not work when called from a message handler. Details: My dialog-based application needs to work in both landscape and portrait screen modes. Not only that, but it needs to detect when the user has chosen to rotate his/her display from portrait to landscape or vice versa, and adjust itself accordingly. When in portrait mode, the dialog is 1024h x 768w. When in landscape mode, it is 768h x 1024w I added a message handler ON_WM_SHOWWINDOW, which is called when the application is first displayed. I also added a message handler WM_DISPLAYCHANGE which is called when the system detects an aspect ratio change. Both of these message handlers call a member function that does the follow ...Show All

  • Bulldog.NET Hello World app not "finding" header files?

    I am re-teaching myself Visual C++, and I am starting with the Hello World app (that I think we've all created early in our C++ lives). I get compiler errors that should be covered by the header files I'm including in the project. What am I doing wrong here Your reply just ended about 2 hours of painful, hair-pulling frustration. Thanks a million!! You need to inlcude the header file after the PCH header file otherwise it is ignored. Try: #include <stdafx.h> #include <iostream> You need to include <iostream> not <iostream.h> Yep i like this reply!! Thank goodness someone else had this problem before me otherwise i would've been there for hours!! thanks ...Show All

  • Matt Ellis Disassembling

    Hi all, I know how to do this: foo.cpp=====> foo.asm I want to do: foo.asm=====>foo.exe and: foo.exe======>foo.asm Can I do these by VS2005Pro IDE or its bundled softwares Or I need to get another software Microsoft offers a macro assembler (MASM) as a free download at: http://www.microsoft.com/downloads/details.aspx familyid=7A1C9DA0-0510-44A2-B042-7EF370530C64&displaylang=en if you need an assembler nobugz wrote: To go from .exe to .asm, you can use Dumpbin /disasm. Isn't it possible with MSVS I found a file named ml.exe in its folder. MASAM is not bundled with MSVS I found a file named ml.exe in its directory. You can generate the .asm from .cpp with P ...Show All

  • DanBaumbach 'Is' in C++

    Hi! In C#, there is a keyword named 'is'. It compares whether one type can be converted into another. Is it possible to do something like this in C++ Thank you You can use safe_cast. See http://msdn2.microsoft.com/en-us/library/23b7yy6w.aspx . Ok, but my problem is a bit different. Perhaps my question was not significant enough. I've a class 'A', a class 'B' and a class 'C'. 'B' contains a property 'foo' whose type is 'A'. 'C' inherits from 'A'. Some other classes ('D' and 'E'), too. Now I want to check whether 'B' points to an instance of 'C'. 'B' could also point to an instance of 'D' or 'E'. In C#, it would be: if(B.foo is C) {  // .... } try { C^ c = safe_cast<C^>(B->fo ...Show All

  • Prodigal Son Unmanaged C++ and VS2005: Hidden .NET Requirements?

    Hi everyone. While developing some unmanaged C++ DLL that uses COM and ATL, I've been having issues with deploying the DLL to other machines - those without .NET Framework v2. I've found out after some digging that changing the runtime library from its default to one of the debug libraries (and none of the DLL ones) removed this dependency, but introduced some crashes that im not entirely sure are related to my own application's logic. What is the proper way of creating unmanaged c++ DLLs in VC++2005, Who use ATL and COM Thanks in advance. Thanks for your answers, I've marked the one more relevant as the 'answer' for this post. I hope that its the source of the issues i was having. Just to be sure i'm d ...Show All

  • AlbertoV getting all existing windows login names in my computer by VC++ programming.

    Hi all. I want to get all existing windows login names in my computer by VC++ programming. :) Purusothaman A Try NetUserEnum, with the filter parameter set to FILTER_NORMAL_ACCOUNT. See http://msdn2.microsoft.com/en-us/library/aa370652.aspx . Also note that there are places better suited for SDK questions ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=980773&SiteID=1 ). Thanks Einaros. I have seen that link and tested with the given code. The output is, ///////////////////////////////////////////////// User account on (null): -- Administrator -- Guest -- HelpAssistant -- postgres -- Public -- Purusothaman -- Sujith -- SUPPORT_388945a0 Total of 8 e ...Show All

  • rene schrieken Other lanuguages (Japanese) strings in quickwatch while debugging

    Hi everybody, I am seeing a peculiar thing, i.e when I debug I getting japanese strings in Quickwatch while debugging a VC++ Project in wchar_t array. I using wsprintf(pExeFile,(LPCWSTR)"%s",pModuleFile); If I use char array instead of wchar_t it is showing the following error. The error is error C2664: 'wsprintfW' : cannot convert parameter 1 from 'char [512]' to 'LPWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Pls help me in resolving this, Thanks and regards, Bharath .k Please using TCHAR pExeFile[512]; TCHAR pModuleName[512]; wsprintf( pExeFi ...Show All

  • Lucas Pasquali Presenting a C++ library (.lib) for use in C# project

    I have a collection of C++ programs and the C++ libraries they use. The libraries currently compile to a .lib format. Changing the project property to use a .dll results in multiple reference errors. Without having to go through the entire collection of source files, is there a way to create any kind of project in a .NET language that would provide a "wrapper" for the existing .lib files so that they could be used in that environment. Thanks. These posts really helped me along. The only trouble i'm having now are some more complex datatypes than a simple double. How would I go if the function in the lib expects some char* which is additionally used as a callback reference The definition of the function from the .libs head ...Show All

  • Dipi upgrading application from windows2000 to windows XP

    Dear All, We have an application developed to work on windows 2000 and we want to run the application on windows XP now. Any changes are required to the application software Please suggest. Thanks This is from the docs: VER_PLATFORM_WIN32_NT is set for "Windows Server 2003, Windows XP, Windows 2000, or Windows NT." So this check must also succeed for XP! Hello Martin and Alex, Thank you very much for your answers. I found in the code that the application checks for the operating system and if the OS is other than 2000/NT it aborts. Please find below that part of the code. In this case do I need to change any thing which will make the software to run even on W ...Show All

  • OTNS Hexadecimal Representation of an object?

    Hi, I would like to get the hexadecimal representation of an object and display it as a String, how would this been done using C++ .Net (VS 2003) Thanks! Yes, thats what I want. Would anyone know I have searched the net though can't find anythin Anythin in .Net which allows me to do this The hexadecimal representation of an object, as in the a dump of the bytes the object is made up of Well yes, there are ways to do this through the marshalling classes. I've only done it in VS2005 (.Net 2.0), though. I haven't got 2003 installed now, so I can't really be of much help with an approach for that platform. My sugge ...Show All

  • patternagnstusr Visual Studio 2005 layout prob

    Hi guys   I have been trying to compile an app in Visual Studio 2005(its a c++ app) but every time i run the proggy after compiling it, it looks like this:    After Compiling(click me)     although when i click on the Test Dialog button in Visual Studio 2005 it shows the apps layout like this:    Using Test Dialog(click me)     I started the project in Visual Studio 2005 and the first time when i compiled the app after adding just a simple button ,nothing else, it worked and my app was compiled in the VS2005 format although after adding som functions and stuff it compiled in Visual C++ 6 format! Visual Studio 2005 Format: Click Here ...Show All

  • Joreatha i++ or ++i which one efficient

    Hi, which of this statement is efficient i++ or ++i; i tried hard to find the answer but i am getting many explanations i am not able to find the correct answer. .help me manish sharma pre increment is more efficient suppose you want to overload the operators, this is how the implementation goes for complex class Complex & Complex :: operator ++() //Pre increment { ++ imag ; ++ real ; return (* this ); } Complex Complex :: operator ++( int ) //Post increment { Complex temp (* this ); //first call to copy constructor ++ temp . real ; ++ temp . imag ; return temp ; //second call to copy constructor(since not returning b ...Show All

787980818283848586878889909192939495

©2008 Software Development Network

powered by phorum