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

Software Development Network >> Visual C++

Visual C++

New Question

How to include the System namespace?
combox close on "enter" in vc++ dialog
how to get Networks Connections device list
IMPLEMENT_DYNAMIC() error
Keep Visual studio 2003 from crashing when trying to load symbols from vista.
public method performance
Memory leak in using _variant_t object
Post Build Event Error
CTime alternative in WinForms apps
Exception handling showing undefined behaviour. Help !!!

Top Answerers

Chris A. Palmer
Paul Fedory
WV John
caltex
Sequel2k5
Samoyed
rchokler
kmcclung
katti205961
Bug-free
sitemap
Only Title

Answer Questions

  • bubu Console Program with user defined window(Portion)

    Hi, I am new to VC++ and specially Win32 Console API. I want to make a console program which can create one rectangle area in the middle of the console with my defined colour & text etc. And if I want to do any thing to that rectangle portion(I say it window), I should be able to do separately e.g. I can clear only that portion only not whole console etc. Can anybody guide me for that Is there any example on the web for that is there any book for console graphics programming in VC++ 5.0 Please let me know... Thanks in advance..... Thank you very much. This will be helpful. Is there any book for Win32 Console Programming As I am new, it will be really healpful to have ...Show All

  • killerless How to restrict a user from 'Deleting' a file by pressing DELETE key on Keyboard..???

    Hi, Here, I want to restrict a user from Deleting a file Manually (i.e, 1. By pressing DELETE Key on keyboard 2. Right-Click on file and selecting Delete. ) In MS-Word 2003, If a file is Opened, and we are trying to Delete it, it gives an error message like, " The file abc.doc cannot be delete : The file abc.doc is in use by following program Microsoft word . The file must be closed before delete." I want exact functionality as above. Could any one help me. HANDLE hFile = ::CreateFile(L "1.txt" , GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); cin.get(); It works, while you do not press ENTER in console no one can d ...Show All

  • Bhupathi Venkatesh fatal error LNK1181: cannot open input file ",.obj"

    I compiled my program after doing all those settings in "Project Setting Menu" but i got an error : fatal error LNK1181: cannot open input file ",.obj" I think there is some problem in the settings. I checked all the settings tht i know but still not able to remove this error. If anyone know about the settings in VC++ then plz reply any help will be of great use Thanks in advance hello i'am a new member; please will tell me if you have already found a solution for this problem , because i have the same problem, please it's very urgent for me : the message is: Linking... LINK : fatal error LNK1181: cannot open input file '.\Debug\AssemblyInfo.obj' thanks a lot ...Show All

  • David Ghikas Explicit Interface Method Implementation

    In MC++, I can do the following: - __gc __interface ICloneablePerson { Person* Clone(); }; public __abstract __gc class Person : public ICloneablePerson { private: String* _name; protected: Person() :_name(String::Empty) { } Person(String* name) :_name(name) { } Person(Person* source) :_name(source->_name) { } public: __property String* get_Name() { return _name; } }; public __gc class Student: public Person { private: String* _id; public: Student(void) :Person() { _id = String::Empty; } Student(String* name) :Person(name) { _id = String::Empty; } ...Show All

  • mobigital Autoplay - Multiple Event Prompts

    We are implementing autoplay for a non-volume device according to MSDN article "Autoplay in Windows XP: Automatically Detect and React to New Devices on a System". We are on XP SP2. In short, the problem is this: When we plug our device into the USB port there are two event prompt windows. One of the event prompt windows is what we expect - it displays things as we have them set up. But there is another event icon in the notification area of the taskbar - when we click on it an empty event prompt window appears. Has anyone experienced this problem Why is that second event prompt happening We have tried many things. We tried specifying a different handler (VideoCameraDeviceHandler). We tried responding to an event from a ...Show All

  • Mike Batton another date related problem

    I wrote a program that asks for a year and a day number between 1 and 366. It returns the date for that year and day number in the format:  "Weekday, nnth Month year" where Weekday is the name of the weekday nnth is the day of the date (with the appropriate suffix: st, nd, rd, or th) Month is the name of the month and year is the year. I wrote this program incorporating the System namespace and using the Console functions. I used the DateTime object to get the current date and set variables for the current year, current dayOfYear and current dayOfWeek. The program is working correctly. I also wrote code using the std namespace. To get the date I used ctime. The following is the code I used: time_t mytime; s ...Show All

  • crp2k4 Listen - WinSock

    Hi! I am just trying out few options with Sockets... I was reading the MSDN for the listen function and found the following lines.... If there are no available socket descriptors, listen attempts to continue to function. If descriptors become available, a later call to listen or accept will refill the queue to the current or most recent backlog, if possible, and resume listening for incoming connections. If listen is called on an already listening socket, it will return success without changing the backlog. Setting the backlog to 0 in a subsequent call to listen on a listening socket is not considered a proper reset, especially if there are connections on the socket. Can anyone elaborate on the same lines Does it implie ...Show All

  • m14cus 64b development: Huge problem with VS2005 on a 32b OS

    Hi, I've just discovered this weird bug in VS2005: when compiling and linking my application with the x64 platform target on a computer running Windows 2000, the executable can't be run on a Win64 computer. I've spent a lot of time trying to solve this pronlem, and I found the following: - by using Depends, I found that it's the "exported symbols" table that's invalid in these files, - it seems to be related to the Embed manifest option, because disabling it will generate valid executables and dlls, - the problem doesn't happen if I link the file on a Win 64 computer. So it seems that the Embedding process is not correctly done for 64 bit executables on 32 bit computers. By searching for this problem on the internet, I found that - some us ...Show All

  • Chris.Stewart Creating a text box in a dialog and processing it using the message loop

    How do make a text box in a dialog I need it so that i can set a text box to a string, and as the user edits the numbers of this box, any other numbers of the same type become that value, e.g. 12234356 If i change either 2 to a Q then it would instantly become: 1QQ34356 How do i initially make a text box in a dialog And how am i going to pass a text changed message to the message loop within a dialog After this i can simply compare it to the original string and change the other values, that bit isn't too hard. Thanks a lot, Chris. crazy_kebab wrote: Sorry, i am programming in C++ using the native Win32 API. This forum covers the C++ language and standard extensions, not the win32 api, nor a ...Show All

  • KrazyMGA how to solve LNK2001 and LNK1120 problem

    i'm using C++ programming and i have this error when i build it. But when i compile, no error occur. how to solve this problem Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/try1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Well, you need a main function because this what the system will call when your program is executed. You need to add this function and then call the code you already wrote from this function. Are you making a console-, or windowed / background application If this is a console app, you will need the "int main", as previously mentioned. If you've already got a WinMai ...Show All

  • Alek Davis CTabCtrl drawing problem with XP Style

    VC++ 2005 MFC. I'm using a CTabCtrl. The control works just fine if I do not include a manifest for XP Style. If I include a manifest for XP Style, the CTabCtrl stops drawing on most of it's client area. By stop drawing on most of the client area, I mean it draws about 4 pixels from the top and left correctly and everything else is not drawn. The controls on top of the CTabCtrl are drawn properly, it's the background and bottom/right borders that do not draw. By not drawing I mean it just keeps whatever was on the screen there before. If I drag a window across it, I see the remanents of the dragged window. It's like the CTabCtrl just decided to clip out everthing below & right of (4,4) of it's client area. Another way to visua ...Show All

  • Ramraj Balasubramanian - MSFT How can I get the handle of an already opened serial port

    Hello, my question: I need to excess to an already opened serial port. This port (COM1) is opened with the CreateFile command in an main programm. In a called DLL function I would like access this serial port. Is it possible to get the handle number in the DLL and then send bytes or reveive bytes Vegie Yes, you need to pass to Dll HANDLE returned by CreateFile. ...Show All

  • Fran431916 Why do I get "The transaction has already been implicitly or explicitly committed or aborted"?

    Without using TransactionScope the code runs fine.  With ts, the exception is throwed when I call Update(). Below is my code in C++: try {    Transactions::TransactionScope^ ts = gcnew Transactions::TransactionScope();    SavePatient(hPatient, hProgress);    ts->Complete(); } catch (Exception^ e) {    MessageBox::Show(e->Message, "Error!" ); } ////////////////////// void SavePatient(Patient^ hPatient, Progress^ hProgress) {    row = m_rtpDataSet->Patient->NewPatientRow();    row->StudyDate = DateTime::Now;    row->Name = hPatient->Name;    //... save other stuffs   &nb ...Show All

  • karnij7877 native WIFI -- wlanapi

    Hello there, I am trying to write a small software that manipulate the wlan configuration in windows XP. I download the beta version of Wireless LAN API for Windows XP SP2. While I am trying to give it a shot, I read somewhere that WPA (Wi-Fi Protected Access) is not supported in this API. Since I am not 100% sure, can anyone give me any information about it Thanks a lot. Thank you to everybody. I find the library when I apply to the program. Hi Math23,!! I`ve got the same problem with l2cmn.h. Did you solve it . Thanks. Hello Misoulee, I got vista SDK RC1 and I`ve got still the same problem with the header files. (l2cmn.h , windot11.h and wlanTypes.h). Would you know w ...Show All

  • ronks How to deploy MFCMIFC80.DLL?

    Hello VC++ Forum, I've added a CWinFormView to my MFC MDI project to show a .NET 2.0 control. Really really nice and working fine :) Now I wanted to test my stuff also on another machine and copied my DLLs and EXE there. That machine got .NET 2.0 and MFC 8.0 components installed. Well, when I want to open my View now, I get a message "MFCMIFC80.DLL version 1.0.0.0" missing. After that message, the program gets teared down and I must use the taskmanager to shut down its process. I tried to copy that DLL to the machine, but that doesn't help. I tried to install it to gac, but that won't work. Now I'm curious what I've got to do. I asked our deployment guy, and he said the MFC runtime stuff is installed on that machine. He doesn't h ...Show All

97989901234567891011121314

©2008 Software Development Network

powered by phorum