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

Software Development Network >> Visual C++

Visual C++

New Question

Big loss in performance when using wrapper for unmanaged code
help on displaying cursor location
How to determin my IP using winsock2 ?
R
Problem with duplication function
Visual C++ deployment error
Howto create startupscreen -/- borderless ?
Accessing CView From CDocument
problems building a set of libraries
Multiple Compilation

Top Answerers

icewill
pangitko79
David Zuckerman
Khan Azul
programmer01
arsonist
Glenno
Sunil_Kumar_63c25f
p.cosmos
kenneth123
Topix: Metallica
Only Title

Answer Questions

  • christophw time analysis

    hello, i have a question regarding time analysis, respectively calculating the Big O. For example when i have this function: [code] void sequence::attach(const value_type& entry) { if(!(is_item())) { cursor = tail_ptr; } if(cursor == NULL) { list_head_insert(head_ptr, entry); cursor = head_ptr; tail_ptr = head_ptr; } else { list_insert(cursor, entry); precursor = cursor; cursor = cursor->link(); } ++many_nodes; node* cursor1; node* precursor1; for(cursor1 = head_ptr; cursor1 != NULL; cursor1 = cursor1->link()) { precursor1 = cursor1; } tail_ptr = precursor1; } [/code] Does there exist an easy ...Show All

  • ROBIverson How do I activate the console and the GUI at the same time?

    Hello comunity. How can I show the console and the GUI (Forms) at the same time .. it's for debug propouses.. Thanks. You can build a CLR console application which spawns the windows you want. In your project properties under Linker, set the SubSystem to Console. Then the console app can instantiate your forms. Thanks about the interest Peter, and thanks to the last sir to answer. That's SubSystem option works fine for debug. Best Regards Whenever I need some debug info during the execution of a GUI application, I use the following code: HANDLE hConsole; //Global variable //During software startup AllocConsole() hConsole = Ge ...Show All

  • muko binding datagrid control with sql server database

    hi i need to build a dialog based application. next i need to place a datagrid control(registered activx control) and bind it to sql server database..i am completely new to vc++ and do not know what code to be placed and where(in which datagrid class...) please help Thanks I would first try some approaches and then post if there is a more specific issue you are facing. The forums are designed for more specific issues rather than generic ones. Thanks for your understanding! Thanks, Ayman Shoukry VC++ Team thanks a lot ayman.....i placed a datagrid on the window but dont know how to connect and display the data in it from sql server... Hello ...Show All

  • AnonymousI Linker Error LNK2001 When Calling a Function from a DLL

    Hi, I am using VC++ 6.0 Standard Edition, trying to call a function from a DLL using the Load Time method. The .exe compiles fine, but it seems that the linker does not see the .lib and gives me the 2001 error. I'm guessing it could be an IDE parameter that I have missed. Here's a simplified version of the code: ============ DLL =================== #include "stdafx.h" #define dll_entry( type ) extern "C" type __stdcall dll_entry( int ) run_alert () { return 15; } ========= .DEF File =========================== LIBRARY psMyDll EXPORTS run_alert ================Executable module ==================== #include "stdafx.h" //#include "psMyDll.h" int run_alert(void ...Show All

  • Scott_P System.Timers.Timer not elapsing

    I have a two timers in my service that will be reset after some work gets completed. The problem comes in if the service is left running for a few days, the timers will reset but then not elapse. The problem is that without the timers elapsing no work gets accomplished. Any ideas I don't think anyone can make a decent guess with the information you've provided. Perhaps you could show some code, describe more of the code context etc. void OnQueueTimerElapsed(System::Object *sender, ElapsedEventArgs* e){ gQueueTimer->Enabled = false ; gLogFile->Write(S"QueueTimerElapsed", false ); /*********************** CODE *********************/ gQueueTimer->Enabled = true ...Show All

  • Baok Usage of CImage

    I have some questions concerning the CImage class: Is there any possibility to assign the pixels a 16 bit grayscale value My source is a 320x240, 16 bit data array with intensity values from an infrared camera. I have tried to make the following: CImage image; image.create(320,240,16,0); image.setpixel(x,y,value); // but using this way I get different kinds of colors. I'd be glad to hear some feedback on this. Should I use another class or is this the one to use thanks The encoding of colors in the pixels on a 16 bpp bitmap is tricky, usually 5 bits for red, 6 bits for green a 5 bits for blue. It's a lot easier on a 24 bpp bitmap... ...Show All

  • maulikk How do I pass cin values into a constructor function

    I'm right at the beginning of my C++ journey, and I'm having trouble modifying code to do what I want! readers of SAMS will be familiar with the code example, if not the problem! I have a Class (Cat) that can be used to create Cat Objects (Frisky, Shandy, etc.) from header file cat.hpp:- //this is cat.hpp #include <iostream> class Cat { public : Cat ( int initialAge); // Constructor - initialises the class with the variable initialAge ~Cat(); // destructor - does nothing int GetAge() const { return itsAge;} // inline! void SetAge ( int age) { itsAge = age;} // inline! void Meow() { std::cout << "Meow.\n" ;} // inline! private : int itsAge; }; ...Show All

  • Tru_Messiah Intercept the PASTE message

    Hi: I want to know how to intercept the event which is generated when the user do : CTRL+X or a paste. I don't find a message like SC_PASTE in the documentation. Is there any message related to the Clipboard Thanks. A.B. The clipboard is a per session resource, while multiply-logged in users there are multiple clipboards. A service cannot access all clipboards. Hi: I think that the word "Service" is not the appropriate one, I use a systray for my application. I'm developing a small application like "SuperCopier" which intercept the paste, CTRL+X notification in order to create a progress bar for copying data with many functionality like (Stop/Resume). You could associate the service with a window ...Show All

  • Oleg Ignatov CFile Data REmoval Probs

    Is There any short way to remove some lines from a file say there is a file called Hello.dat contains 5000 lines 1) In that i just want read first 200 lines 2) Preform some operation 3)remove them i.e. 200 lines if the operation is proper //This is the problem Some efficient was i.e. without creating another file i.e. new file Sarguna Unfortunately, it seems the Operating System does not allow shortening of a file by removing data at the beginning. It only allows truncation of the tail. Therefore I think it is not possible to solve your problem without read and write operations (on the same or two files). But I would consider the following approach. The first value of your file should be reserved: it will contain the posit ...Show All

  • NickKang3 MFC: Right click toolbar button.

    Hi! I would like to be able to both left and right click a couple of toolbar buttons. I was thinking of using "UINT nFlags" to detect that. But I don't know how a MESSAGE_MAP would look like for that kind of function. Right now I'm using ON_COMMAND for the buttons which is the default. Thanks Hello The right place for your question is probably the MFC newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc&lang=en&cr=US OTP Thanks Damien ...Show All

  • Pi314159 Side-by-side problems after updating to VS2005 SP1

    Hi, I have a C++/CLI application using Winforms which has used to work great until I updated to VS2005 SP1. Now alot of users are complaining about problems with starting it up. Under Vista it says that the "side-by-side configuration is incorrect". So the obvious question is... how do I correct it I'm rather clueless since I got no indication what goes on (it works fine on the dev machine). Thanks in advance. -- Henrik I think it might use the CRT since I natively manage time_t in the app. However I've tried to deploy the redist package to one of the users and they returned and said that everything works fine now. Thank you very much for your assistance. -- Henrik ...Show All

  • TheViewMaster iertutil.dll and normaliz.dll missing on target system, can I redistribute them?

    I have created an application in vc6 c++ dependent on wininet.dll. On my system, I have also recently upgraded to ie7 which seems to have replaced my old wininet.dll with one that is dependent on iertutil.dll and normaliz.dll (two new dlls). When I deploy my application to a computer that is still using ie6, these two dlls are missing. My app crashes. Should and can I distribute/deploy these two dlls along with the app Thanks in advance. Hello Re: iertutil.dll and normaliz.dll missing on target system, can I redistribute them Such questions are outside the scope of this forum - for the scope of the Visual C++ General forum please look at: http://forums.microsoft.com/MSDN/S ...Show All

  • naddyB File Copying in network

    hello friends, I am trying to develop a Win32 appln which copies a specified file(.xml) from my system to a fully shared remote folder.But the problem is network mapping cant be used.So I think FileCopy() is not useful here.How can I achieve this .I want to get the facilities for specifying the remote system name,its IP address,shared folder name,user name,password and domain name. It will be better if I get the sample codes also. Pls help It will be very nice if u can give some sample codes of the APIs u mentioned. Use LogonUser(), ImpersonateLoggedOnUser(). Than you just can use again CopyFile. It is no problem to use the full UNC name: \\Server\Share\Dir\FileToCopy.Dat Event the Servername can be replaced ...Show All

  • RameezM A namespace with this name does not exists

    Hi dear pigs, I have a header file named ST1.h which you can see below: ++++++++++++++++++++++++++++++++++++++++++++++++++++ #ifndef ST1_H #define ST1_H #if _MSC_VER > 1020 using namespace std; #endif #include "POUBase.h" #include "std_fbn.h" #include <stack> class ST1 : public POUBase { public: //============= Extra Vars For Debugging ===================== bool breakPoint[1]; int CfileIP; //============= Outputs ===================== int SABALAN; //============= Locals ===================== unsigned int zer; private: //============= LocalOutputs ===================== int SABALANLocal; //Function instances public : virtual void Run() { //======== ...Show All

  • sharpMoon Where to download the platform SDK, February 2003 Edition

    "The last SDK that will work with VC 6.0 is the February 2003 Edition" Tanks a lot! http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm and http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm both can work with vc6.0 according to http://www.jeffhung.net/blog/articles/jeffhung/277/ Try this: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm Or just look at your old MSDN CDs/DVDs. ...Show All

424344454647484950515253545556575859

©2008 Software Development Network

powered by phorum