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.
Stober
Posts
-
I don't like the new design of this site -
how to download fonts to laser printeryou 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:
-
how to download fonts to laser printerI 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
-
ActiveX Controls [modified]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]
-
MFC ActiveX Control ErrorsOh never mind. I found out what I did wrong by reading this tutorial: http://www.codeproject.com/com/CompleteActiveX.asp[^]
-
MFC ActiveX Control ErrorsI 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:
-
bad pointer>>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?
-
using search in VC++ 2005 Proits probably the way you have your browser set up.
-
using search in VC++ 2005 ProWhen 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"?
-
Where to start?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.
-
how to remove com object from memoryThanks -- just what I was looking for ;)
-
how to remove com object from memoryI 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
-
ATL Dialogsusing 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
-
Fixed path for File Open/Save Dialog....I guess your program could just ignore the path.
-
C# Sucks!Pretty-please :laugh: I suppose I probably should buy a book about C#.:->
-
C# Sucks![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
-
mr MFC please do something when I press a keyFirst -- 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.
-
sub-classing CComboBoxPerfect -- thank you so very much!:)
-
sub-classing CComboBoxcompiler: 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?
-
toupper macro keyThanks. I never realized that existed!