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

Software Development Network >> Visual C++

Visual C++

New Question

QuickWatch Expression Type column hidden
Running a very simple Win32 app... / VS2005pro & MFC: Same thing?
Importing tlb file, and loading dll directly from file.
I don't want to implement Operators Precedence
Q: How to disallow users to terminate my program?
Problem: "Placement new" does not compile in Visual Studio 2005...
problems building a set of libraries
ListView /TreeView do not draw themselfes after CreateWindow
what after win32 api? and general programming advice!
Is this bug fixed - "Add/Remove operation is impossible"

Top Answerers

Michael Wu
MichaelD!
George2
hkhalifa
Daniel Gadens
Oz22
SASTEAM
Ken_Bussell
PerPixel
detzX
sitemap
Only Title

Answer Questions

  • Jalf ethernet programming

    I want to write a program in Visual C++ to transfer data between a computers and microcontroller via 10/100 Ethernet RJ-45. What i need (libraries, or is there any help in MSDN.) What i figured out is that i need "winsock" for programming.(TCP client and TCP Server) Where should I start. thanks but rom where should i start in MSDN. what should i search for. I am a beginner. MSDN would be a nice place to start. There are several examples there, which should give you an impression of where to go and what to do. For a more comprehensive socket tutorial, you could turn to Beej. See http://beej.us/guide/bgnet/ . If you are using MFC, you should read up on http://msdn.microsoft.com/library/de ...Show All

  • a.d.m Problem using FindFirstFile

    Hi, I intend to find the name of any file of a directory. This is the function that I am using for the purpose - void print_first_file_name(char *str) { LPCWSTR DirSpec; DirSpec = MultiCharToUniChar(str); WIN32_FIND_DATA FindFileData; HANDLE hFind = INVALID_HANDLE_VALUE; hFind = FindFirstFile(DirSpec, &FindFileData); if (hFind == INVALID_HANDLE_VALUE) printf("Not working."); else { printf("First file name is %s and its file size is %d.\n", FindFileData.cFileName, FindFileData.nFileSizeHigh); } } I want to know the name of the file that is present in my the folder 'd:\test\' For testing purpose, I have kept a file called hello.bmp in the folder. When I pass "d:\\test\\*" as t ...Show All

  • Wanting to gain knowledge VC++ 2005 redistributable

    Hi, I'm trying to get an MFC application compiled with VC++ 2005 to run on a machine with VC++ 2005 express. There seems to be a problem with the manifest (which I don't fully understand despite reading the info on msdn). The original error in the event log when I tried to run it said Microsoft.VC80.CRT not installed so I installed the platform SDK and also copied over the atlmfc directory from the development to target machine. I also downloaded the VC++ 2005 redistributable and installed it. When I installed it, I didn't get any confirmation that the installation was successful, the installer appears to quit after displaying the progress bar. Is this the correct behaviour Now I no longer get any messages in the event log but when I try ...Show All

  • c_shah printer

    hi how can i know weather a particula printer is connected to a system or not. i have only name of the printer and printer's driver is installed on the system. Regards Pankaj you can use EnumPrinters, EnumPrinterDrivers,OpenPrinter, AddPrinter depending on what functionality you need. ...Show All

  • Mahyar154572 DateTimePicker

    This may be a simple question but I cannot find the answer to it. I am somewhat new to C++ Programming and I have a new job where all of the existing programs are written in visual C++. Anyway, on one of the applications, I need to replace a date entry textbox with a datetimepicker. I got the datetimepicker to work properly and the data is being stored in my DB correctly. The only thing I cannot figure out is how to make the datetimepicker not default to today’s date. I need it to be blank if possible to force the user to enter a date. If anybody can help me out with how to do this I would really appreciate it. Thanks It seems the Date-Time picker uses a checkbox for specifying undefine ...Show All

  • laiseng execut p

    I want to execut another program ( exe file ) from my program ( cpp ) what is the statment , is there anything more I have to add it to my program ( cpp ) like include ---- please give me an example thanks You could use CreateProcess, system, or a bunch of other similar functions. Look them up on MSDN for more info. This is an example of how CreateProcess could be used: STARTUPINFO si = {0}; PROCESS_INFORMATION pi = {0}; si.cb = sizeof(STARTUPINFO); CreateProcess(NULL, _T("c:\\windows\system32\notepad.exe"), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); See http://www.codeproject.com/system/newbiespawn.asp If you merely need to spawn an app, I'd recommend ShellExecute over CreateProcess, as it ...Show All

  • ved_30 Regarding the exe registration in XP machine builded in VS 2005

    HI, I have ported the visual studio 6.0 code to VS 2005. The project gets builded sucessfully. The application runs sucessfully in my system. I have put the builded dlls and exe in windows 2000 pc and windows xp machine. I am able to register the exe in 2000 pc without any problem except it requires mfc80.dll. Whereas i am not able to register the exe in XP machine it throws the error "The system cannot execute this program". I have used the command "test.exe -RegServer". Pls let me know if anyone know the solution. Thanks, Ganesh Hello   Sounds like something is missing from one machine that is need to install it. Have you checked that you have all you ...Show All

  • nagajim Pressing 'Enter' key terminates the Application.

    Hello! I had asked for the solution of this question earlier as well,but, those solutions did not work. I was asked to look for 'OnOK()' and override it. But the biggest problem is that even after overriding it , the debugger doesn't doent stop at this function. hence proving that 'OnOK()' solution doesnt work here. Please suggest me the solution to this problem, as, this is the last thing that is blocking the completion of this project. The things i u misunderstood are two different things. 1. The dialog box vanishes and the application terminates when 'Enter'' key is hit. 2. I was suggested a solution to override OnOK(), but the problem is , i tried debugging the application with a breakpoint placed at the OnOK(). To my ...Show All

  • DevboyX Strange problem with a c file with subroutines

    Hi everyone, I have a very weird problem with this program: with Visual C++ compiler it isn't compiled (the compiler says " missing ';' before 'type'" ) and with another IDE it works, but the return value is always 0.0. Could anyone help me Thanks #include <stdio.h> #include <stdlib.h> #include <math.h> int inCylinder_1( double , double , double ); double distance( double , double , double , double , double , double , double , double , double ); int main() { double x,y,z; printf( "%s" , "Insert point coordinates: " ); //scanf("%f%f%f",&x,&y,&z); x = 1.0 ; y = 1.5 ; z = 0.5 ; int inCylinder = inCyl ...Show All

  • Prince of Dhump error C2144: syntax error : 'int' should be preceded by ';'

    Hi, I am trying to migrate my project from VS 2003 to VS 2005. The project has lots of legacy project migrated over time too. I am getting C2144 error on the following code which compiles fine on VS 2003. MyCode.h CStringArray m_straPeriodExcludedItems; int GetNumberOfFixedVariables() const int { return m_straPeriodExcludedItems.GetSize(); } produces: error C2144: syntax error : 'int' should be preceded by ';' error C2059: syntax error : '{' error C2334: unexpected token(s) preceding '{'; skipping apparent function body Thanks Remove the "int" that follows the "const", it should not be there. int GetNumberOfFixedVariables() const int { retur ...Show All

  • xxxmpsxxx Write a text file with Visual Studio

    Hi, I am trying to write a function thats save to a text file the text I wrote in an EditBox of my main dialog. I tried many ways but the only approach that seems to work is through the code that I detail below. Still I could not write down the whole text, the last three characters are not written!!!, What I am doing wrong . Is there any way of doing this more easily . I am using Visual Studio C++ 2005 Express Edition and if i try to use fopen compiler tell me is a deprecated method, so I don't want to use it. Thanks in advance. HRESULT RecordAuxTextData(HWND hDlg) { HANDLE hDestFile = INVALID_HANDLE_VALUE; BOOL bSuccess = FALSE; // Open destination file hDestFile = CreateFile (TEXT( "c:\\RASITSonidos\\myfile. ...Show All

  • Hamed_1983 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 ). Thank you very much Einaros for your valuable suggestions and replies. :) Purusothaman A For each LPUSER_INFO_1 you iterate after calling NetUserEnum, check the usri1_flags member for the UF_ACCOUNTDISABLE flag, such as if((pUserInfo->usri1_flags & UF_ACCOUNTDISAB ...Show All

  • Walker Boh any documentation for coding a compiler

    I have a friend who is doing a school project: coding/implementing a comipler for C or C++ Where can he find some documentation pls Thanks. it s for his stupif school. I didn t know things re supposed to be that complex. Never mind. Here is the final draft of the C99 international standard. How complex is this compiler supposed to be First of all, go to ansi.com and buy the C++ standard document. That's a nice thing to have, regardless of how advanced the compiler should be. Second, read up on "compiler compilers", such as Yacc ( http://en.wikipedia.org/wiki/Yacc ). When you've done that, it's time to read up on code generation and binary formats. Note that this forum deals with the C++ language, as imple ...Show All

  • J. Brian 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. Could you go into a little more detail regarding the last paragraph of your post. I'm unclear as to dealing with functions that are not declared static. Where are you creating the private member How do you invoke that private member, PInvoke Would it be possible to s ...Show All

  • ZoomyX Switching from BETA to RELEASE VS 2005 gets me an error!

    c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxwin.h(1814) : error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject' This diagnostic occurred in the compiler generated function 'CCmdTarget::CCmdTarget(const CCmdTarget &)' OK, so I found the problematic lines of code but this really confuses me! Those lines are the lower part of the code, near the bottom. They represent event handlers for changing of a text inside CEdit ...Show All

404142434445464748495051525354555657

©2008 Software Development Network

powered by phorum