Software Development Network Logo
  • Visual Basic
  • Microsoft ISV
  • Game Technologies
  • Visual C#
  • SQL Server
  • Windows Vista
  • Visual C++
  • VS Express Editions
  • Visual FoxPro
  • Smart Device
  • .NET Development
  • Windows Live
  • Windows Forms
  • Visual Studio
  • Architecture

Software Development Network >> Visual C++

Visual C++

New Question

Visual C++ 6 Project with ASM module -> VS2003
errors LNK2001 and LNK2019 with VS .net 2005
64 bit applications and typelib files
Problems in Release Compilation
Function or algorithum for finding a value
Why exit if you can hang?
Manifest Issue
Reference to class library lost
STL nasty under the hood behaviour
How to convert unmanaged Recordset20Ptr to managed IntPtr or to managed DataSet object

Top Answerers

offa
GameOver
mrenf
caseynshan
DougWatt
bderemer
Nathan Wynne
Ugla
lp75
joelfreak
Xentric Server
Only Title

Answer Questions

  • Leon Zhu How could i pass a structure as CmdLine parameter while using CreateProcess?

    Hi all,        While i use CreateProcess(   LPCWSTR pszImageName,   LPCWSTR pszCmdLine,   LPSECURITY_ATTRIBUTES psaProcess,   LPSECURITY_ATTRIBUTES psaThread,   BOOL fInheritHandles,   DWORD fdwCreate,   LPVOID pvEnvironment,   LPWSTR pszCurDir,   LPSTARTUPINFOW psiStartInfo,   LPPROCESS_INFORMATION pProcInfo ); I want to pass a structure as second parameter(pszCm ...Show All

  • Kalisurfer How to initialize an independent display using CreateDC

    I am trying to initialise a second display as an independent display on my machine using:    CreateDC("\\\\.\\DISPLAY2", NULL, NULL, &demode); but I keep getting error code 0x709. The "\\\\.\\DISPLAY2" is the string returned from EnumDisplayDevices The devmode structure has been initiailised with basic information about the display (height, width, freq, color depth) which I know works with ChangeDisplaySettings if I extend ...Show All

  • Slade Gellin Microsoft COM Components on 64 bit ?

    I tried to port my application over to 64 bit. I was unable to port the code that used the standard Microsoft Data Grid Control (6.0) or any other microsoft COM component while running on 64 bit. I did not get any compiler errors, just at run time i got the Debug Assert Error... Can we not use any of the MS COM Components for developing apps on 64 bit Thanks Thanks for the information Kang.. Microsoft Data Grid Control 6.0 (MSDATGRD.OCX ...Show All

  • erossetto Is there any way to change to height of the columns in a Listview control?

    Hi everyone:        I'm tring to write a listview control inherit from  CListCtrl, and I want to put my own skin on it. But it seems that the height of the columns in a listview is not so easy to change. As CListCtrl did not provide a method like SetColumnWidth() to change the height of the columns. Is there any way to do it Any help will be greatly appreciated! Thanks ...Show All

  • Kevinbe File open mode ios::ate is not working correctly with standard c++ library

    In VC++ 6.0 the following sample program is not working as intended. It opens existing file and overwrites the contents. It should append at end of file because the mode ios::ate stands for: "ios::ate Opens an existing file (either input or output) and seeks the end. " It is working correctly if I use "fstream.h" in place of "fstream" or ios::app in place of ios::ate. Can any one tell me if it is known issue or do ...Show All

  • Carlo_DiGiacomo Saving WIA-acquired pictures

    Hello, i have an application allowing to take pictures with a (web)cam and select the ones to be saved. These are stored in a IWiaDataTransfer pointer. However, i don't know how to save them, and how to choose the desired file type (bmp,jgp,tiff,gif). Can someone give me some advice Thanks a lot! Ok, i already called the idGetData method, so now i'ld should call one of the bmp methods as suggested. But i reca ...Show All

  • Kunaal How to pass a LPTSTR value into a structure's LPWSTR parameter?

    I needed to use the WNetAddConnection2 function to establish a connection to a server share which requires a separate logon. It requires a NETRESOURCE structure to be passed, and one of the netresource items is .lpRemoteName, which is a LPWSTR. My sourcepath was captured in CString so i get an error whenever i tried to pass it to the item. It says 'error = : Cannot convert LPWSTR to LPTSTR'. I tried all sorts of type casting but it wont work, in ...Show All

  • Roy 12345 Compiler error - HELP

    Hi all So I just converted a huge project from MetroWerks CodeWarrior to Visual Studio 2005. The project converted fine and ran... ran I said, since now I cant run anymore. What did I change, well, I was changing some setting with 'struct member alignment' and trying some #pragma pack(1). After some tests I changed it back to default, and removed the pragma's. Now the code runs, but not very well, since some members of structs are not being read ...Show All

  • Joaquín Raya Monitoring Disk Efficiency

    Hello, How do I Monitor Disk Efficiency in MFC Avg. Disk Bytes/Read Avg. Disk Bytes/Write Regards Manoj Jangid Or use a performance counter. Category="LogicalDisk", Counter="Avg. Disk Bytes/Read" and "Avg. Disk Bytes/Write", Instance="_Total" or "C:". This webpage might help you get started... Perhaps you can try the famous Windows Management Instrumentatio ...Show All

  • FriendsReunited.com - Alex Why can't I build this simple program from command line?

    Only .Net Framework SDK 2.0 beta2 is installed. The program is really simple: int main() {     System::Console::WriteLine("hello, world"); } I compliled it from the SDK Command Prompt, but error generated: F:\testProj>cl HelloWorld.cpp Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50215.44 for 80x86 Copyright (C) Microsoft Corporation.  All rights reserved. HelloWorld.cpp HelloWorld.cpp(5) : error C26 ...Show All

  • dfad44Kyle linking fails when compiler is set with the \clr

    Hi, I have a solution comprise of 2 projects with one referencing the other, both are written in visual c++ and both are compiled with /clr, each of them is also compiled with the option /MDd. when this solution is compiled with the option "no run time support ", it's compiling allright, but with /clr I got the link error- lnk2022. the compiler has indicated an error in a lib file , so I used ildasm tool to generate an ...Show All

  • AngelT61 Visual Studio 2005 crashes when building a solution from command line

    I am trying to build a doployment solution from command line(devenv Setup.sln /Rebuild Release). It always crashes vs 2005, but when I try the same solutuin from IDE it works fine. I have been trying for the last 2 days but cannot get it working. Any help is appreciated. Note: My solution contains managed and unamaged projects as well as references to 3 rd party dlls. I already have 'Compression' option set 'Optimize speed' in my deplo ...Show All

  • Crux aspell compilation problems

    Hi, I tried to post on the forum but it kept coming up with an internal error so i was wondering if you could help me with the following:I have recently been trying to compile aspell (a spell checker written in c and c++) in visual studio .NET (2003) which has taken forever but i managed to get it to compile a dll now. When i come to add this dll file into another project which will be using the methods from this dll it keeps giving ...Show All

  • ETJorg We are facing a strange error!

    I am trying to port our code from VS 7.1 to VS 8 (C++ code using VC++ 2005). Code compiles with a lot of Warnings!!! As expected for the depricated functions.  Now when I try to run the code it runs in to a strange problem. While trying to access contents of a array I run in to assertion failure of BAD pointer! I understand that this is because of NULL Pointer that has come in! Now we have initialized this array to a null string earlier an ...Show All

  • pieter.vp MySQL help

    Hey, I'm a total newb at MySQL and C++ (together). However, I know some C++ and a lot of MySQL (I'm a former PHP coder). The question I have is how do you connect to a web-based MySQL server Like to go to PHPMyAdmin, I go to https://srv02.hostww.net:2083/3rdparty/phpMyAdmin/index.php to alter anything MySQL related, and my cPanel is http://www.vgscripts.net/cpanel/ . I have no idea how to even connect to the MySQL database through C++ because I ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum