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

Software Development Network >> Visual C++

Visual C++

New Question

how to link undefined data types of VC# dll in VC++
LNK1104: cannot open file cyclic dependency
Class wizard
combining /Zc:wchar_t- and /clr compiler options
Debug is hanging
Property Overloading
C++ tutorial
CLI Service with MFC ?
Separator in a context menu
using the NtFrsApiEnumBackupRestoreSets

Top Answerers

osamaT
Fire3.san
Bijoy Jacob Joseph
Bluehunter
Sushhant Duggal
Newmer60
GTH
Kamii47
Dave9999
Leon Zhu
Topix: Financial Markets
Only Title

Answer Questions

  • lympanda Constructors for global variables are not called???

    I have a VC++ project B that is linked into a static library "B.lib". This library is linked into project A which creates A.exe. The constructors for the global varaiables in B do not get called. 1. If I have golbal variables in A then there is no problem - the constructors for those get called. 2. I f the solution (Project A and B) get linked on my coleagues computer then there is no problem. 3. The whole soltion is shared between us via rational clearcase so we have the same sources and the same project files. - so it must be one of the flags of visual studio - but which Thanks, D. dannyg View Public Profile Find all posts by dannyg Add dannyg to Your Buddy List ...Show All

  • odinlai MSVCR80.dll

    Couldnt find library MSVCR80.dll (Required by c:\Program Files\Windows Defender\MpShHook.dll) Whilst trying to install a CD-Rom Game. Any 1 have any idea how to fix, pls. See the following discussion on the subject http://www.blitzbasic.com/Community/posts.php topic=60232 Also note that this is a forum related to Visual C++ 2005, and is as such not the right place for problems with other or third party applications. ...Show All

  • wencey How do you create a pointer to class funcitons (not members)?

    Hey, I was jsut wondering, how do you create a pointer to a function that is a member of a class Note that I don't want to make a pointer to member, I just want to be able to do something like this: class ClassA { public: void SayHello() { MessageBox(0, "Hello", "", 0); } }; int main() { ClassA a; void (*ptr)() = a.SayHello; // this would be how i would suspect it to be done ptr(); } How do I acomplish this Wow! I went to the link - this is exactly the answer I am looking for. Thanks heaps! But... It would stil be cool if you could create a pointer to a class function, even though its not possible. This would work if the class function is static. ...Show All

  • Dr. Wayne T. Wilner Encryption and strings problem

    In my code here String ^tmp = ""; if ( !split[x]->Contains("_") ) } tmp = String::Concat(tmp, String::Concat(objCrypto->Decrypt(split[x], 0), "\n\n")); } split is an array of strings and in this array there is encrypted data. The first string that needs decrypted is found it is returned decrypted from objCrypto and added to the tmp string as it should. However when the second encrypted element is found it is returned unecrypted from objCrypto but is not being concatenated on the tmp string. What am I doing wrong. This is a question concerning a .NET security class, not the C++ language. I would ask your question here instead: http://forums.microsoft.com/MSDN/Sho ...Show All

  • Badhris Help with OpenFileDlg - Urgent !!

    hi, I'm new to Win32 programming. I'm having an OpenfileDlg for the user to select a file. Could you please tell me how do I get the events of the control. I mean in which of the switch cases in the function LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) should I place getOpenFileName(&openfile). Thanks a lot. Santa Actually, you can place whatever function call in any place you want. First, note if you refer to WinAPI function which " creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open", that is G etOpenFileName and not g etOpenFileName. In C/C++ the identifiers, i.e. names you supply for variables, types, funct ...Show All

  • N_John nafxcwd.lib library linker error LNK2019 - help

    Hello experts, Below is the small program I am having issues with. It compiles successfully. As you see is quite small and simple program, but for some reason I am unable to link it when I tried to build it. I have also pasted the last part of the output from the linker with verbose. Hopping someone can help me out. It seems a problem with nafxcwd.lib but I am unsure. /* Setup includes */ #include <stdafx.h> #include <afxwin.h> /* Addinitional includes */ #include "ifl.h" /* Main */ int main(int argc, char** argv) { // Variables Declaration IFL_RC iRetCode = IFL_SUCCESS; HWND m_hwndMain; // Get Handle to the main window m_hwndMain = AfxGetMainWnd()->m_hWnd; // Initialize the use ...Show All

  • Bachi Starting off with C++

    I keep hearing it's hard to learn, but that you should try and begin learning with C++...That being said I just downloaded Visual C++ Express and was eager to code for the first time   Only to be even more frustrated; I created a new file under Visual C++, C++ file, then started typing in code from tutorials.  The color of the text is changing, appearing like I'm entering code but there is no output.  Here is what I typed // my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!" ; return 0; } Output doesn't appear and when I click on "Show output from" it makes a noise that I can't do it. Do I have to create a certain type of file or ...Show All

  • enric vives problem with /arch:sse2 on AMD

    hello i work with VC++ 2005 on an AMD 3500+ venice processor although the cpu support SSE2, compiling with the option /arch:sse2 yields a much slower code then the regular release build without this option. any ideas 10x, eyal. /arch:SSE2 doesn't generate only SSE2 instructions but rather a mix of x87 & SEE2. There could be some cases where the code might be slower (although in general, it should be faster). If you think that such degradation in performance is unacceptable, please log the issue at http://connect.microsoft.com/Main/content/content.aspx ContentID=2220 with a sample reproducing the problem. Thanks, Ayman Shoukry VC++ Team ...Show All

  • Mithun Dhali Modal Dialog not in foreground at start

    Hello, i have a problem with my modal dialogs. When I open a new dialog with DoModal() out of button method from my main dialog, the new dialog istn't in the foreground of my main dialog. You can't see that there is a new dialog. I have to press the <alt> key to switch to the new dialog. Yesterday all worked fine without this problem. I don't know what I've changed to create this bizarre behavior. Can anybody help THX My guess is that the solution is only coincidental. I think there is a simpler solution (I forget the details) so you should ask this question in a newsgroup or forum in which this question is appropriate. Ok, i found out that my from CStatic derived class is the reason but I do ...Show All

  • Philippe Cand Inserting lines of text in a textbox?

    Hi this is my first program, and I want to have a "Status TextBox" which shows everything thats going on. For instance, If i turn an option ON or OFF I want it to insert text into my text box on a new line saying it was turned on or off.. Not replace whats there.. What code would i put in my menu item for that Please see The scope of this forum ; text boxes and such are outside the scope of this forum. I will provide a brief answer at least. You need to have a multi-line edit control; that is a "style" for edit controls and if you need help with that, ask in an appropriate forum or newsgroup. To create a new line, add text that ends with "\r\n", which is a carriage return and linefeed. The VCTERM ...Show All

  • Chuff Automatically open up error-list after build with warnings or errors ??

    Greetings! Is it possible to tell VS2005 to automatically open up the error list tab after a C++ build finished Or do I always have to manually switch to the error list view thanks! br, Martin select "Tools/Options" menu item. in "Options" dialog, expand "Projects and Solutions" and select "General". check "Always show Error List if build finishes with errors". No sweat. ...Show All

  • Alex_UTL Error with '<<' operator and outputting strings!

    I recieve this error anytime I use << and try to follow with a string,... whether it be cout <<, or myfile<<,etc,... I'm using visual basic 2005, the free software you can DL from microsoft. The same happens using '>>' for inputs: error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)   JEBI wrote: You can use "string::c_str()" function to get C string equivalent of string class object and can use it with '<<' to print it or for other work. Remember in the member function returns a pointer to a nonmodifiable C string constructed by adding a terminating null e ...Show All

  • dlcollison How can i make a read-only partition in my usb disk ?

    i want to write a program to set the usb disk partiiton to become read-only, protect the data on the disk. is it possible to use some storage i/o request to achive that or can someone suggest me how to do thanks Damien Watkins - MSFT wrote: Hello Re question: How can i make a read-only partition in my usb disk Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups. OTP Thanks Damien Damien, I'm going to have to ...Show All

  • Dan Ribar Call to Fortran subroutine (DLL) using C++ and LNK2019 error

    I've been trying to build a simple .exe to test calling a fortran subroutine included in a DLL (and lib file). When building, I always get a "error LNK2019: unresolved external symbol _STDATMOSPHERE referenced in function _main" . The subroutine is: SUBROUTINE STDATMOSPHERE(H,Ro0, T0, RNu0, I_ERR) Input: H is REAL of 8 bytes; Outputs: Ro0, T0 and RNu0 are REAL of 8 bytes and I_ERR is 4 bytes integer. My code has header file: #include <iostream> extern "C" void __stdcall STDATMOSPHERE(double& H, double& Ro0, double& T0, double& RNu0, int& I_ERR) My .cpp file is #include "test.h" void main() { double H=1200; double Ro0; double T0; double RNu0; ...Show All

  • warning9 Asynchronous Sockets in C++?

    Hello, I want to use asynchronous sockets in pure C++. Is there anyone to tell me how to do it or at least show me a basic example The external libraries are appreciated too. Thanks... This book should help you learn Windows network API. Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohlund Give yourself two to three months to get familiarized with the API. Post questions when you need help with various I/O models. valikac Marius Bancila wrote: Baris ERGUN wrote: Never ever get stuck into the world of MFC and use the Windows API winsock2 I would say. Why are you so ...Show All

222324252627282930313233343536373839

©2008 Software Development Network

powered by phorum