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

Software Development Network >> Visual C++

Visual C++

New Question

Can one get Window Station Handle for a specific PID?
How to insert Certificates(such as *.cer) into system certificate store using ?
textbox and button
serialport problem(Quick-no time)
Alternative for _gcvt()
Listen - WinSock
Resources Path String
Files paths withing VS 2005?
Choice of P2P library
LNK2005 (VC8)

Top Answerers

Boulderdude
mel_mel
Jafar Bhatti
Karen G.
julial77
JoshKorn
cheng_lucia
Andy Mil
NastyMatt
borice
sitemap
Only Title

Answer Questions

  • GoDaddy export <exe> resource from my program.. how?

    Can anyone help me with API calls needed to export an .exe file attached to my program as the resource and copy this resourced .exe somewhere else Thanks Anton check out FindResource, LoadResource, LockResource, and CreateFile Kuphryn ...Show All

  • rwerner How to force intellisense update?

    Sometimes I press right click and then "go to definition", and it goes to a wrong place. I think this is because intellisense is not update yet. If this is correct, how to force it update Thanks Hi Aarongo, Thanks for your answer, I've tried like this many times but cannot force it update. Save all, rebuild all, close VC++ and then reopen again etc. It's not work. It still goes to wrong place when click "Go to definition". Do you have any suggestions Thank you very much A build or a save all will cause intellisense to update. If your intellisense database is corrupt you can delete it and recreate it. Go into the directory that contains your solution a ...Show All

  • REspawn A Problem with feof()

    I am trying to build a program that, among other things, loads data from a binary data file, I use fread() in a while loop with condition !feof. every thing loads fine but the last part of the file loads twice creating a duplecate element at the end of the list. Does anyone know why this is and if it can be avoided; hear is my source code for the loading function: afx_msg void EditWindow::OnOpen() { if(head) { while(current->next) { current = current->next; } while(current!=head) { current=current->prev; delete(current->next); current->next = NULL; } delete(current, head); head =NULL; current = NULL; } ReadOutIn o; FILE* loadPointer = fopen("Level.lvl", "rb"); if(loadPointer) { while(!fe ...Show All

  • Suraj Guptha Directory listing

    I was thinking about writing a quite simple program in c++ which purpose is to write all .mp3 files in a folder and subfolders onto a .m3u file. I cant find any standard library functions returning the next file or folder in a directory... Does anyone know how to do this (I'm quite a beginner in c++... I have read "c++ whitouth fear"! Does anyone recommend a book to continue learning ) Check this FAQ, http://www.codeguru.com/forum/showthread.php t=312461 Hi, I think you must write recursive function to get files in subdirectories, you must call "CFileFind::FindFile( pstrName )" and then call "CFileFind::FindNextFile()" to get another files, but note you must skip . and .. files, and chec ...Show All

  • gg1 Setup Visual C++

    Hi, I am very new to visual C++ and I am trying to use it to compile C code. I have everything setup and I created a hello.c file which basically prints Hello to the console window, but when I run my program the output windw opens and then closes in a flash. Does anybody have an idea why this is happening and if this is the right way to compile C code in Visual C++. Thanks, Sunny It seems that you are doing every everything right. The problem is that with today's computers your program executes before you can see much more than a flash on the screen. Trying adding the following as the last line of your main function int main() {    // ...    system("pause"); } This will ...Show All

  • Slyke How to write on Windows desktop from C/C++ code ?

    I want to display on my desktop some useful informations like my IP, MAC address, current time, etc.. Is it possible to write these informations directly on Windows desktop from C/C++ code Any ideea First, why do you want to draw it on the desktop Doesn't look like a good idea for me. You can get a handle to the desktop window with GetDesktopWindow(). If you do want to write there, you will have to intercept all painting calls aswell. Otherwise your output will be obscured / erased every time there's a repaint or invalidation. Anyway, please direct this question to the UI newsgroup at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ui&lang=en&a ...Show All

  • budbjames Add property problem in ATL ActiveX

    Hello, I am using Visual Studio 2005 Standard Edition. I follow the MSDN tutorial of creating activex with ATL, but unfortunately in the property add step I get nothing. I am adding the property to Activex from Class View. But nothing changes in IPolyCtl.h and IPolyCtl.cpp. Can you please help me Best regards, Karakaya Can you point to the article that you are following or put down the steps that you are following to Add Property. Just find out " ATL Tutorial" in msdn library, follow up to step3, see whether the property is added or not. Thanks. Please report this doc bug on http://connect.microsoft.co ...Show All

  • Gorav How can I change empty project default settings?

    I would like very much to change the default settings for empty projects to reflect my needs for the next several months. In general, I can't figure out how to change any of the default settings (only able to change them on a per project basis). In particular, I would like every empty project to be intialized with the following: Disable language extensions: Yes (/Za) Create/use precompiled header: Not using precompiled headers Debug information format: C7 Compatable (/Z7) Generate Debug info: Yes (/DEBUG) Any help in changing this settings is greatly appreciated and would be a huge convenience for me. Thanks, Robert nobugz wrote: The default project settings are stored in the vc\vcprojectdefaults ...Show All

  • JerryMcR you can download and find api reference for wifi,wlan api for xp sp2

    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. I have forward this my question to this email address. Thank you a lot! Math23: Will let you know if I get an answer. Thank you to everybody. I find the library when I apply to the program. you can download WLAN API Beta for XP Sp2 from : https://connect.microsoft.com/site/sitehome.aspx SiteID=179 u will ne ...Show All

  • Alex Bibiano Cannot add member variable

    Whenever I select "Add member variable" menu from context menu at dialog editor, I only get blank form with nothing in it, totaly blank. What's wrong It goes the same for MFC project, CLR, Win32, etc. I'm using Visual Studio 2005 update version and Windows Vista Business update version. I don't know. One thing you can try is deleteing the Intellisense file (ncb extension ) but the main reason I suggest it is because it is easy to do; I don't have a good reason otherwise to suggest it. The Intellisense file will be rebuilt by VS. Try it and let us know if it works. I don't think it has nothing to do with .ncb file. Because there's nothing wrong with the "Add member function" wizard. What I mean with ...Show All

  • Kyle_W How do you get hardware information?

    Without using WMI I've found ways to do so in nearly every language, except C++ (ok, maybe I'm exaggerating but you get my point)... I wanted things like processor clock & make, total ram, stuff like that, to be compatible with Windows Server 2003 & above... is there a way With C++ you can either get to WMI through COM (here's an example ) or if you use C++/CLI you can use the System::Management namespace. Many thanks my dear! To find the RAM quickly you can always use my.computer.info.TotalVirtualMemory. Here is an example (I cleaned the output up a little for you too. Dim varAvaVirtMem As Double varAvaVirtMem = My .Computer.Info ...Show All

  • OasisGames Very simple member variable question

    Hello all, I'm using VC++ 2005. I've got an MFC dialog app to which I've added a ComboBox control. I right-click the control and select "Add variable...". In "Category" I select "Value" and in "Variable name" I give the variable name "m_intComboBoxVal". I hit "Finish". But when I try to look for the declaration in the source files for the dialog, I don't see it anywhere. It is listed in Class View when I select my dialog class...when I right click the member variable and select "find all references" it finds one reference in the dialog header file but on an empty line. Where does the wizard insert the declaration for my variable Sah ...Show All

  • somecrazyguy Custom Environment Variables for Visual Studio IDE

    I need to modify some environment variables for visual studio ide. I have created a batch file that sets the environment correctly and I can run it from the vcvars32 for example to set the environment for the command line. Is there a way to tell visual studio IDE to get the environment variables from a file I do not want to set the variables globally, because I have to change them often, and I would prefer to have them on file for this purpose. It is also helpfull when I move to working in a different machine temporarily and I do not want to mess the environment in this machine. ...Show All

  • RemcoJVG why ok with istream but not with ostream?

    Hi there, In my program, I define a class Mytype. In order to make cin>> and cout<< availbe for Mytype objects, I include iostream and declare ostream& operator <<(ostream&, const dvariable&); istream& operator >>(istream&, dvariable&); But the combiler, visual studio 2003, seems not recognize ostream at all and gives a lot of error messages about the line with ostream, eg, syntax error: ',', 'int ostream': redefinition, syntax error : missing ';' before '&', etc., while the line with istream is fine. Any suggestions are appreciated. rich See the sample I copied the code from the web site and changed iostream.h to iostream ...Show All

  • rekhareflection Localizing AfxMessageBox, "Yes", "No" etc.

    I have an MFC / C++ app in Studio 2005 that supports 10 languages using MBCS for Chinese. I can change the language of my GUI by calling SetLocale for each thread and the dialogs and CString strings are then loaded with the correct language. But any calls to AfxMessageBox get the English title (on XP English) of the application and Yes / No / Cancel buttons in English. The CWinApp has a member variable with the app title, so I can reload that. But I haven't figured out how to get the Yes / No / Cancel buttons to change language too. Any ideas Looks pretty cool - the only worry I have is that it may look terrible under Vista (as Vista's native MessageBox is totally different) ...Show All

323334353637383940414243444546474849

©2008 Software Development Network

powered by phorum