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

Software Development Network >> Visual C++

Visual C++

New Question

Linker Error LNK2001 When Calling a Function from a DLL
error LNK2019: unresolved external symbol ...
Problem with Active-x Control...
Problems while generating Browse Information
No events, virtual functions, etc. for derived class in properties window
Is there a zip/unzip API that I can use from "C" that works on 32/64 bit?
const_cast and mutable
Vector trouble
size_t: redefinition; different basic types
native C++ to CLI

Top Answerers

Sevugan
ancient sord
kuponutcom
Wellnow
Lawrence 007
Delphieur
David Sutherland
jackinthegreen
swg
Chuck Turner
sitemap
Only Title

Answer Questions

  • Quirk A question about WMI in VC++ 6.0

    I'm a chinese,I used VC++ 6.0 to make wmi program ,why the flowing err (Windows2003 CN + SP1) I searched the answer on internet,google,yahoo,or others,and can't resolved I had set the include path and lib path "C:\Program Files\Microsoft Platform SDK\Include" and "C:\Program Files\Microsoft Platform SDK\Lib",and make this path first, please help me --------------------Configuration: wmi - Win32 Debug-------------------- Linking... wbemuuid.lib : warning LNK4003: invalid library format; library ignored wbemuuid.lib : warning LNK4003: invalid library format; library ignored wmi.obj : error LNK2001: unresolved external symbol _CLSID_WbemLocator wmi.obj : error LNK2001: unresolved external symbol _IID_IWbemLocator Debug/wm ...Show All

  • DavidLong _CRT_SECURE_NO_DEPRECATE problem

    I ported my project from Visual Studio 6.0 to Visual Studio 2005.I was able to compile perfectly in debug mode using the _CRT_SECURE_NO_DEPRECATE definition. Unfortunately when i ran it in release mode i got many errors like this:  Error 5 error C2664: 'strcpy' : cannot convert parameter 1 from 'TCHAR [260]' to 'char *'  When i didn't use the _CRT_SECURE_NO_DEPRECATE definition then the above was a warning in debug mode but these dissapeared after i inserted that definition. I put this definition in the Project Properties->Configuration Properties->PreProcessor->Preprocessor Definitions. My preprocessor options are the following: WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRE ...Show All

  • asalcedo How to synchronize between applications

    I'm creating a data acquisition application that has to have its DAQ process started at the same time as the voltage generation application's start process. Naturally, this is a case of how to simultaneously trigger two separate applications. Windows messaging comes to mind, and i've been digging out PostMessage() but i dont understand how to implement it, if it even works between applications instead of just within one. Is there a MSDN entry or topic i should look into specifically to achieve this There's no such thing as "simultaneous execution" in Windows of course. To minimize the delay between one app's thread signalling another app's thread, consider using a named semaphore . ...Show All

  • OpinionatedGeek Passing C++ objects from managed C++ to unmanaged C++ and vice versa

    I've an unmanaged C++ app which uses an managed C++ DLL to create a Windows Forms UI. The app has a callback API which provides functions that allow the UI to retrieve data from the app. These use std::wstring for transferring string data with prototypes such as: wstring GetTitle(); void GetText(wstring& text1, wstring& text2); Therefore from my managed C++, I need to do this: wstring title = callback->GetTitle(); and this: wstring text1, text2; callback->GetText(text1, text2); [callback is a pointer to a C++ object in the unmanaged app] It's not clear to me what I need to do to make this work correctly because I've not seen this scenario discussed in any documentation I've seen. Can anyone advise i ...Show All

  • Thomas.Goddard List Control Perfomance Issue

    Hi, I have a list control in which i will be loading nearly 3000 records.To load them its taking around 20 seconds.Can anyone provide a solution to minimize the timing and improve the performance.Thanks in advance. Use a virtual list. See http://www.codeproject.com/listctrl/virtuallist.asp ...Show All

  • Ray Dyce Errors with an ordinals function ... :(

    I'm using an ordinals function for my current program, I found the code written in javascript so I decided to translate it into C++, but I have a whole lot of errors that are coming up now... System::String^ getOrdinal(int number) { System::String^ ord = 'th'; if((number % 10) = 1 && (number % 100) != 11) { ord = 'st'; } if((number % 10) = 2 && (number % 100) != 12) { ord = 'nd'; } if((number % 10) = 3 && (number % 100) != 13) { ord = 'rd'; } return ord; } The errors are: Everytime I have used the varaible 'ord' including the initialization I get an error saying that the computer can't convert string to int type. I think this is being caused by the int default return type rule. Bu ...Show All

  • Saurabh G 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

  • Scheinka URGENT!! MFC function call error

    HI I am using MFC .net single document extending from CRichEditView class I want to call a function from my view class during startup of the program. I tried to call it from the constractor method of the view class but non statc function call error. sample code CMyView::CMyView()//constractor { ...... LoadText(); //error with this call ...... } void CMyView::LoadText() { CString str= "something" ; //my actual code reads something from txt file. CRichEditView::SetWindowText(str); } How can call LoadText() method during start up of my MFC single document GUI tried this way but the folowing fragment does not set the editor text on start up  int CMyView::On ...Show All

  • Seppe001 Using animated GIF image in Forms

    Hi, I'm trying to use an animated gif image in a form within C++/CLI but so far without success. I looked at picturebox control but the image stay still, no animation. I browsed the NET to find any clue to my problem and got a few articles stating the fact that I have to make somekind of class that would rather display one at a time each frame found in my GIF. Any clue or easier way, any example on how to do it Thanks in advance, Stephane Hi Sahir,   I was first surprised when you said that animated gif should show and animate using PictureBox.  Now I made my homeworks and instead of specifying gif file name in "BackgroundImage" property, I specified it within "Image ...Show All

  • cues7a can i create multipule threads in dllmian function

    can i create multipule threads in dllmian function i do this.it often rise exception.why thank you! What type exception it does rise Kernel.dll is only function that garantly load when user DllMain called. So, you can use CreateThread in DllMain. _beginthreadex may not work, if you link with CRT as a dynamic link library. If you link as a static link library it will work. ...Show All

  • CPPUSer7 class destructor not operated.

    Hello, I have a question about destructor in a class. In the below code I was expecting the destructor part of the code to be executed and the message printed out. However, I only see the constructor message. This is the output: "We're in the constructor with arguments Press any key to continue . . ." Why is the destructor message not printed #include <iostream> using namespace std; class Point { public : Point( float f_x = 1.0, float f_y = 1.0, float f_z = 1.0); ~Point(); private : float x, y, z; protected : }; Point::Point( float f_x, float f_y, float f_z) { cout << "We're in the constructor with arguments" << endl; } ...Show All

  • stallion_alpa Hello World code compiles succesfully but doesn't run

    I will apreciate if you can help me with my following trouble as I'm trying to find a solution for the last 2-3 days. I've got a simple hello world code (see below) and I'm trying to build an executable. For compiling and linking I'm using "cl -GX hellow.cpp" and the operation completes succesfully without errors. hellow.cpp: #include <iostream> using namespace std; int main() { cout << "hello world\n" ; return 0; } However, when I execute the derived executable the "hello world" text isn't displayed. Any clues why Note: I'm using Visual Studion 2003 .NET and the compiler is ver. 13.10.3077 for 80x86. Also, I've tested the code on another PC with the same software and works like a swe ...Show All

  • sloth77 how to write IO Manipulator without arguments

    Hi, all i have found about writing io manipulators depends on the _Smanip macro and only allows for programming io manipulators with arguments. The result is something like: cout << encrypt(MyString) << endl; This works, yes, but it is not as intuitively to be used like: cout << encrypt << MyString << endl; What i would like to know is, how can i write an io manipulator with no arguments ( like the hex manipulator ); eg.: int number = 4711; cout << hex << number << endl; or: cin >> hex >> MyString; I can do the desired manipulations by overloading the shift operators as well, yes, but that is not the same thing as a manipulator. There are no Examples in ...Show All

  • snegidhan Another Error while compiling

    while compiling this error happened error C2661: 'UtlHashMap::UtlHashMap' : no overloaded function takes 2 arguments JavaSUAListenerDispatcher::JavaSUAListenerDispatcher() : OsServerTask(m_sTaskName) , m_htSipListeners(8, TRUE) , m_htLineListeners(8, TRUE) { // <-- here it’s where the error happened } there’s someone that knows what can i do to solve this error http://msdn2.microsoft.com/en-us/library/064x9y7c.aspx contains the possbile causes of such error. Thanks, Ayman Shoukry VC++ Team ...Show All

  • KennyGuoHsl Adding Buttons in ListCtrl

    hi, I want to add a Button in ListCtrl in a Cell as a Cell Item. Can I add more than one button in the Listctrl's particular cell. Do you have any idea regarding this pls send the idea. Is it possible to do with an CListView or CListCtrl. thanks you sarath for giving me an good example. Dear Hima, Please see an article from codeproject on Customized Report List Control With In Place Combo Box & Edit Control You can easily replace with a button control instead of the edit control they have used in the article. HTH ...Show All

888990919293949596979899012345

©2008 Software Development Network

powered by phorum