Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Stober

@Stober
About
Posts
33
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I don't like the new design of this site
    S Stober

    What happened to the Home page where all the categories of articles were shown on the left side of the page? It was easy to find anything I wanted -- but now I can't find anything. I just don't like this new design.

    The Lounge design question

  • how to download fonts to laser printer
    S Stober

    you mean to tell me that nobody here knows how to do this :omg: I can't believe that nobody here has every had to download fonts to a printer. Unbelieveable.:confused:

    C / C++ / MFC c++ sysadmin json tutorial

  • how to download fonts to laser printer
    S Stober

    I need to print barcodes using VC++ 2005 Pro on XP network laser printer. I have the barcode on the PC but need to download them to the printer. My program already calls win32 api function CreateFontIndirect(), but the barcode doesn't print, so I assume the font needs to be downloaded. Thanks

    C / C++ / MFC c++ sysadmin json tutorial

  • ActiveX Controls [modified]
    S Stober

    Using VC++ 2005 Pro, I created the shell of an MFC ActiveX control, then added one property with get/put methods. That compiled ok. Then I wrote a simple MFC dialog application to test my ActiveX control. Added the control, and gave it a variable name. That all worked ok after some studying about how to accomplish that. My question is, the *.cpp and *.h files that were added to the MFC project do not contain the set/put methods of the control All those two files contain are the controls constructors. VC++ 6.0 compiler would put all the control's properties and methods in those to files for me. So, with VC++ 2005 how am I supposed to call the property and methods ? The control has a type library, but I don't know how to use it. Will someone please point me to a thread of site that shows how to use ActiveX with this compiler? Thanks. [edit]I found out how to create an MFC clas based on the type library, but how to use it in a CDialog application? It should not be this difficult. :mad:[/edit]

    C / C++ / MFC c++ question com linux tutorial

  • MFC ActiveX Control Errors
    S Stober

    Oh never mind. I found out what I did wrong by reading this tutorial: http://www.codeproject.com/com/CompleteActiveX.asp[^]

    COM c++ help com tutorial question

  • MFC ActiveX Control Errors
    S Stober

    I am using VC++ 2005 Pro, created an MFC ActiveX control (From project types MFC, not ATL), then created an MFC dialog application to test the control. In the dialog application, right-clicked on the dialog box and selected 'Insert ActiveX Control', selected my control -- all that is ok. Right-click the control, select "Add Variable" and get the error "The Extender Provider failed to return an Extender for this object" Any ideas what this means and how to fix it? :confused:

    COM c++ help com tutorial question

  • bad pointer
    S Stober

    >>memcpy(buffer, Sentences.strSentence[iCurrent], MAX_SENTENCE_LENGTH); how is Sentences.strSentence declared? is it a char**? has memory been allocated or is your program just scribbling all over memory with that statement?

    C / C++ / MFC algorithms json question

  • using search in VC++ 2005 Pro
    S Stober

    its probably the way you have your browser set up.

    C / C++ / MFC c++ visual-studio help question

  • using search in VC++ 2005 Pro
    S Stober

    When I select menu item Help-->Search, enter a search string, the IDE displays a URL in the middle of the screen and the only way I can get rid of it is to shut down and restart the entire IDE. This is really starting to pi$$ me off! Any way to change that "feature"?

    C / C++ / MFC c++ visual-studio help question

  • Where to start?
    S Stober

    I have an NT Service program written with VC++ 6.0 as ATL/COM components that runs on W2K or XP. Now I want to upgrade to VC++ 2005 but not sure where to start. It has nothing at all to do with the web, just processes database requests from clients on wireless scanning devices. The wireless device needs some data from a database, calls my service which processes the request, formats the data for the device then returns the formatted data all through various COM calls. I guess my question is: is there any advantage to migrating to VC++ 2005 other than getting a new compiler? Are there any books you would recomment that might help me migrate the program to managed c++? Thanks for any inputs.

    Managed C++/CLI c++ question database com help

  • how to remove com object from memory
    S Stober

    Thanks -- just what I was looking for ;)

    COM c++ com performance tutorial question

  • how to remove com object from memory
    S Stober

    I use CoCreateInstance(...) to create an instance of a COM/ATL DLL that I wrote, then use obj->Release() when done with it. During development I discover the only way to remove it from memory is to reboot! Is there a better way? I cannot replace the dll when its in use. thanks -- modified at 14:08 Wednesday 29th March, 2006

    COM c++ com performance tutorial question

  • ATL Dialogs
    S Stober

    using VC++ 2005 Pro, I created an ATL/COM dll, added a simple object, then created a dialog control with a combo box and some other controls. Now I want to populate that combo box with some strings -- how do I do that? I use MFC a lot, so I know in MFC how to use ClassWizard to create a class name to the control, then call its AddString() method. But I don't see anything equilivant -- in VC++ 2005 I hold Ctrl key down and double click the control -- it brings up a window where I can assign class name, but only an integer. So I tried to call GetDlgItem(), but the compiler will not let me typecast its return value to CCombBox* as I can do in MFC. Do I have to resort to sending normal win32 api messages to populate the combo box list?:confused::confused: Thanks

    ATL / WTL / STL c++ question com json tutorial

  • Fixed path for File Open/Save Dialog....
    S Stober

    I guess your program could just ignore the path.

    C / C++ / MFC help tutorial question

  • C# Sucks!
    S Stober

    Pretty-please :laugh: I suppose I probably should buy a book about C#.:->

    C# csharp c++ visual-studio json tutorial

  • C# Sucks!
    S Stober

    [rant]I've only been at it for about an hour and already don't like it! I'm a long c++ programmer, MFC -- MS-Windows. All I want is a form with an edit box where you can type in a filename and a button that will let you browse for the filename. In C++ I would simply use VC++ 6.0 to create an MFC project, create and initialize an object of type OPENFILENAME, then call the win32 api function. Simple. Without knowing better, using Visual Studio .NET 2003 I created a windows C# project, made the form like I wanted (that was pretty intuitive) then clicked the button on the form to get the event handler. There, everything goes to hell in a handbag. The compiler knows nothing about OPENFILENAME structure. So I downloaded the sample C# tutorial project from codeproject. I can't believe the kind of hell C# programmers have to go through just to do one simple call to a Win32 api function.:( Its enough to make me throw in the towel and use C++ instead.[/rant] Isn't there an easier way to accomplish this? -- modified at 17:34 Friday 23rd September, 2005

    C# csharp c++ visual-studio json tutorial

  • mr MFC please do something when I press a key
    S Stober

    First -- don't screw around with the code that ClassWizard writes unles you know what you are doing. Change it back the way it was. WM_KEYDOWN events are not handled by CDialog-derived classes. You have to use PreTranslateMessage() to capture the key events. Key events always go to the window that has focus.

    C / C++ / MFC question c++

  • sub-classing CComboBox
    S Stober

    Perfect -- thank you so very much!:)

    C / C++ / MFC c++ sharepoint help question workspace

  • sub-classing CComboBox
    S Stober

    compiler: VC++ 6.0, SP 6 I subclassed CComboBox into CMyComboBox, then setup up event handlers for several of the reflected events -- one being CBN_CLOSEUP event. I have an object of type CMyComboBox in an MFC program, which also needs to catch the CBN_CLOSEUP event. I used ClassWizard to create all event handlers. Problem: The event handler in CMyComboBox works ok, but the handler in the application program never gets called. I tried having the event handler in CMyBomcoBox post a message to parent, but parent never got it. Is there a way around this problem?

    C / C++ / MFC c++ sharepoint help question workspace

  • toupper macro key
    S Stober

    Thanks. I never realized that existed!

    C / C++ / MFC c++ visual-studio question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups