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

Software Development Network >> Visual C++

Visual C++

New Question

Positioning the abstract keyword for class declaractions
Is it possible to use OCR in Vc++ OR Vc++.NET project?
An LNK2019 error. Can someone help, ive been trying to fix this error for a while
Getting current system time
How many users still develop with Visual C++ 6 or 7.0?
Accessing Image resource (bitmap)
Matrices of constant data
While loop blocking interaction
Start Debugging problem with SP1
Q: How to disallow users to terminate my program?

Top Answerers

AirMike
Davids Learning
Pure Krome
Chris Honcoop
Evan Mulawski
giancolaj
markm75c
jdunlap
CFutino
learnerplates
Visual Sidekick
Only Title

Answer Questions

  • Smalldust const in Visual Studio .NET 2005

    I am wondering about how the compiler handles const member functions. For example here is code that compiles in Visual Studio C++ .NET: Relevant private members of class: private : int *set; inline void setSetValue( int pos, int val ) const ; Implementation: inline void IntegerSet::setSetValue( const int pos, const int val ) const { *( set + pos ) = val; } set is dynamically allocated in the class constructor. An assignment is being done to a const object but the compiler does not catch it. Is there something I am missing, or is this a known problem Thank you. Moorpark wrote: I am wondering about how the compiler handles const ...Show All

  • shohom67 Can't add a function by mapping a Windows message using the ClassWizard

    Hi, I failed in mapping a Windows messge such as OnCreat in my View class using VS 2005 ClassVizard. An error message saying "Add/remove operation is impossible, because the code element 'xxx' is read only" appears. Please help figure out a solution. Thanks. Jason You have provided only a small amount of information about the problem. Perhaps someone that has encountered that same error message will be able to help, otherwise it is unlikely anyone can help with the small amount of information that has been provided. make sure code inside the message map is accurate. delete the .ncb file. Kuphryn I am sorry about the mista ...Show All

  • suchi banerjee Building a x64 bit app

    Hi This is the app I was building #include <windows.h> #include <stdio.h> void main() { ULONG_PTR x; printf("Size = %d, X = %d\n", sizeof(ULONG_PTR), sizeof(x)); } I built Win32/Release binary and it displayed as expected Size = 4, X = 4 I changed the platform type to x64 built a Rlease binary and I got as expected Size = 8, X = 8 After couple of days I agian do the same thing I am unable to build the x64 module Earlier the size of the x64/Release binary was 549,376 bytes and now x64/Relase binary size is 6,144. I installed VS 2005 on a different system and tried and it failed. I keep getting "The system cannot execute the program specified" I am missing on some vital step I did earleir. which I am not ...Show All

  • Nonu_k access violation exception in popen call

    I developed an applicaiton using VC6. It works fine under Windows 2000/NT. But I saw access violation exception when I run it under Windows 2003 environment. My current structure is like follows: 1. main process spawn a process (A) to get some data. 2. Process A uses popen to get result from another command/application. let's say, dir *.* The problem happens when Process A call in popen(...). (I narrow down to the popen code under debugger). Whatever command/application in the popen call, it always throw the access violation exception. Does anybody shed a light for this What may be the cause The problem never happen in Win NT4/ 2000. See The scope of this forum . Your question is a Win ...Show All

  • Malleswar problem in device notification

    hai all, I had written a application that had to detect the usb device vendor name. I got the notification for device arrival and removal. On arrival i am enumerating the device using setupdi... function It gives me the following info USB MASS STORAGE for SPDRP_DEVICEDESC. I am getting 2 notification for one arrival and removal one with DBT_DEVTYP_DEVICEINTERFACE and then with DBT_DEVTYP_VOLUME any idea kindly suggest... the details are given below.. switch (wParam) { case DBT_DEVICEARRIVAL: { PDEV_BROADCAST_HDR shdr = (PDEV_BROADCAST_HDR) lParam; switch ( shdr->dbch_devicetype ) { case DBT_DEVTYP_DEVICEINTERFACE: { PDEV_BROADCAST_DEVICEINTERFACE sDevInt = (PDEV_BROADCAST_DEVICEI ...Show All

  • gala123 connecting client to server

    i have windows xp home edition sp2. i am working in visual C++ 6.0. i have a chatter client (Sample). i don't know how to connect to sever. how can i make server on my laptop. i want to know possible solutions. Thanks Bye Take a look at these threads: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=659689&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=652602&SiteID=1 ...Show All

  • seco Simulating Left Mouse Button Click

    Hi, At the moment, I am running into a problem which is this: Every time I right-click on a TreeView item in my application, the selected item remains the item prior to right-clicking rather than changing to the right-clicked item. While this isn't exactly a BUG, it is quite an inconvenience. The most obvious solution to the problem, to me, is to simulate a left-button click in the right-click NM_RCLICK event that will in turn select the item prior to any further actions. Is there a better way to accomplish this If not, how can the left-click simulation be accomplished Thanks in advanced. ---Dan To simulate mouse clicks, you can use mouse_event and SendInput. However, I think it will be better to use ...Show All

  • boran_blok_edan I need Help Please. Runtime Error C++ Library......For Trillian

    When I open up Trillian(A Instant Messenger Program) An error comes up saying Something about something being detected and the program has now have to be Terminated. How do I fix this Oh yah the error Is Runtime Error C++ Library Hi, please ask the Trillian support. -- SvenC ...Show All

  • donbox5 Question on including header files to project in VC++

    The question might sound dilly but couldnt find a proper answer. I created a new project in VC++ 6.0 and included an existing header file into it but when I try to use it in a cpp file (also in the same project), I still have to include the header file specifying its exact location. I thought if i add the header file to the project, i can just write # include "xxx.h" in my cpp file and the header file would be automatically found. Instead I am having to write the path of the header file in the include. Am I missing something Thanks, KarthikR If the file you mentioned(header) is in same folder as cpp you want to include this header in, then # include "xxx.h" will work. xxx.h must ...Show All

  • robinjam When I use the following code to invoke a COM function, can I return a array from vResult and how should I change the data typ

    When I use the following code to invoke a COM function, can I return a array from vResult and how should I change the data type conversion of vResult I appreciate your help. CComPtr<IDispatch>pdispScript; .......... CComVariant vResult; if (SUCCEEDED(pdispScript->Invoke(dispID, IID_NULL, 0, DISPATCH_METHOD, &params, &vResult, NULL, NULL))) { if ((vResult.vt != VT_EMPTY) && ((vResult.vt == VT_I4) || SUCCEEDED(vResult.ChangeType(VT_I4)))) { *pIntResult = vResult.lVal; bRet = TRUE; } } -- jake -- jake Can you give me the sample of how to return a array from vResult ...Show All

  • awsiv Creating Menus

    I have VS 2005 and I'm reading a tutorial on creating menus. After designing the menus, I need to add functionality by following these steps: 1. Open the Menu Designer to your menu. 2. Open the Class Wizard from the View menu. 3. The Adding a Class dialog is displayed ... Leave the dialog selection on Select an Existing Class and click OK Since there is no Class Wizard in VS2005, I tried right-clicking my menu item in Resource View, but there is no option to Add Class. I am trying to attach a menu to a dialog. Can someone tell me how to add the dialog's class to the menu Hello My suggestion is get a tutorial based on your version of the compiler rather than using a tutorial for the previous v ...Show All

  • Brad Smith Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host?

    Is there a way to create a dll in C++ without a def file and have it work for a Visual Basic Host Thanks Viorel, that works. Mmm... you have some problems here, you would really use to read a C/C++ book probably. C/C++ is quite different from VB. 1) char FilePath$ $ does not have any special meaning in C++, it's treated like any other character in an identifier. The result of this is that FilePath$ is a variable of type char and not a string. You need to use a pointer to char here: char *FilePath 2) the commented out code (with strcat) now looks like this char filename[256]; strcpy(filename, FilePath); //copy FilePath into filename strcat(filename, ".MLT"); // append .MLT to filename 3) the fi ...Show All

  • Demix LNK2001: using unmanangedC++ in manC++

    Hi, i'm writing a new user-interface for a small software-company. The old interface should be replaced by the new one, the "inner core" should stay. The old program was written in unmanaged C++, but now I'm writing the user-interface in C#, so I have to use class wrappers. While building the managed C++-project (in a solution with the unman. C++-projects) there a some errors. For example: Error error LNK2001: unresolved external symbol ___argv nafxcwd.lib and Error error LNK2001: unresolved external symbol ___argc nafxcwd.lib Another one: Error error LNK2001: unresolved external symbol __pgmptr db.lib [db is one of the old unmanaged C++-projects] The settings are the following: Linker->Input->Add. Dep ...Show All

  • CliffW269333 strange run time error notification (empty pop-up window)

    When a run time error occurs (e.g. an invalid file handle is used) in a console application created in debug mode with C++ Express Edition I get a completely empty pop-up window (title reads "Microsoft Visual C++ Debug Library") with three empty buttons. Clicking on any button terminates the application. 1.) Is this behaviour due to the missing C debug runtime libraries in EE (i.e. is it a "feature") 2.) Running the same .exe in an environment with .net 2002 installed shows the usual window contents and I am able to run the debugger - it points to the bad statement I use /MTd (link runtime lib statically) - how comes the pop-up window is fully working Any help highly appreciated ...Show All

  • Scottw512 using winternl.h for RtlInitUnicodeString in Visual Studio 2005

    Hi, I'm trying to test some basic stuff in VC++ with PUNICODE_STRING data. But for the live of me I'm not able to use the RtlInitUnicodeString Function. When I compile I get an error : Error 1 error C3861: 'RtlInitUnicodeString': identifier not found d:\visual studio 2005\projects\passtest\passtest\passtest.cpp 33 But I did include winternl.h in my source code, and I made sure may paths in the VC++ settings are pointing to the Platform SDK directories. What am I doing wrong Any ideas would be appreciated. Thanks, You can use the /P compiler option or /showincludes to confirm you are actually including the needed header. If that doesn't help, take a look at http://msdn.microsoft.com/library/default.asp url ...Show All

313233343536373839404142434445464748

©2008 Software Development Network

powered by phorum