|
_T is a macro that expands to cause a string to be char* normally and wide under Unicode.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Please help!!! Confusion reigns!
http://www.codeproject.com/com/comintro.asp provides a good introduction to COM. The only thing I was wondering, is how do I figure out information from the DLL. For instance, how can I find out what namespace thing is in - for instance how ado is in the ADODB namespace.
Likewise, if I decided to import the Excel typelibrary how do I know which objects are in there?? - ie how to get at the smart pointers - What are they called? Normally id look at the source code but can;t do this with DLL's.
I know theres a tool where type libraries can be loaded into and analysed but I cant make any sense of the IDL.
Im also working through a COM book by Alan Gordon. I dont understand why in his clients he adds header files from the server project. Surely this defeats the object of providing components in executable form?
If I was to buy a component would I just receive the DLL? Can COM components be implemented in .lib files. What is the difference with a Lib and a DLL??
Oh, and one more question- IF I want to get at a COM interface is it correct just to #import it from stdafx.h and then decalre the smart pointers - that feels a bit hacky?
Im having a right nightmare with component development! Id like to do some more work with ADO and with MSXML. Presumably to use MSXML I just #import the necessary DLL - but I cant figure out what to do from there. I have similar problems with ADO - when I import msado15.dll I get errors before going any further:
c:\source\tester\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\source\tester\debug\msado15.tlh(1306) : error C2629: unexpected 'short ('
c:\source\tester\debug\msado15.tlh(1306) : error C2238: unexpected token(s) preceding ';'
Error executing cl.exe.
What is the tlh file?? Why is it even used when im not importing it! Im confused
Regards
Ben
|
|
|
|
|
Hi,
I've a little problem.
In my MDI application, I have a Docking ControlBar in the Childframe and my
CView-derived class.
In the DockingBar, I have a TreeCtrl.
I want to populate the treecontrol with the datas coming from the document I
open.
So, I overloaded the CDocument::OnOpenDocument function.
In the OnOpenDocument function, I compute a tree ( pure C++ ).
I want to send this structure into the DockingBar.
But it seems that the childframe is not yet created.
So here is my question : Where do I put the initialization of my CTreeCtrl ?
I hope that it is clear enough.
Thanks in advance,
Stephane
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
UI handling should go in your view, not the doc. Do it in OnInitialUpdate().
--Mike--
My really out-of-date homepage
He who laughs last, didn't get the punchline and is just laughing so he won't look silly.
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
Hi,
What is the better way to create a GUI from a bitmap image? I have to create a GUI like the RealJukeBox's or winamp's and I was wondering if someone here could help with some infos.
Thanks in advance.
Where there is a WISH, there is a WILL.
|
|
|
|
|
Hi all,
could anybody help me with creating a syntax coloring control using the win32 API and not MFC?
Or does anybody knwo good ressources on this topic?
thanks in advace,
Oliver
|
|
|
|
|
Well, I guess you'll have to use the Richedit control via API. Its an ActiveX control so maybe you'd have to use some COM to get it to work. I am not very sure abt all that stuff. But basically that's the control you'd wanna use.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
|
Excuse me for posting this again, but I'd really appreciate having your help on this.
A couple of days ago I posted an article on the Collaboration/Testing section (you can see here) describing a weird behavior on Windows 2000/XP that I've got the hunch is actually a bug, and would love if some of you could be able to reproduce it on your computers and report it back to me, so that I've got more backing data to issue a bug report to MS. Thanx for your help.
Best regards
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I've given you a reply on the lounge regarding your timing of this re-post. Read it.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Could you please help me how to define which item was clicked in a TreeCtrl?
Thanks
PP
|
|
|
|
|
GetSelectedItem
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
my problem is that I dunno how to evaluate the HTREEITEM's returned from GetSelectedItem.
In the buttonclick message handler I tried to compare them to the HTREEITEM's from the InsertItem's but it did not help.
Thanks
PP
|
|
|
|
|
there a two ways i do this:
one is to set the tree item's itemdata member to the unique id of the item you are storing there and use that value to get which one was clicked on
the other is to store the htreeitem in a data structure of the data you are putting in the tree and use that way to find which was clicked on
depends if you have unique data id's or not i guess
---
"every year we invent better idiot proof systems and every year they invent better idiots ... and the linux zealots still aren't being sterilized"
|
|
|
|
|
hey all,
can anyone tell me how to put a bitmap as a background in my program. I am a newbie so please be patient
|
|
|
|
|
http://www.codeproject.com/bitmap/picturewindow.asp
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Okay thanks, I have done this part
All that you need to do is insert two new lines in your stdafx.h:
#include < atlbase.h > ;
extern CComModule _Module;
this is the part that is confusing, ie: do not know how to do.
The class is used by subclassing another window. So if you want to change the background of one of your dialogs or a control, all that you need is to add a new member of CPictureWindow in the object, and then subclass the object with your new member.
For instance, if you want to set the background image in a dialog, you would add a member variable m_PictureWindow to your dialog, and in the OnInitDialog call the function m_PictureWindow.SubclassWindow(m_hWnd ); where m_hWnd is the window handle of the dialog.
If you want to handle the EraseBackGround message in the dialog you have to call
m_PictureWindow.nMessageHandler = CPictureWindow::BackGroundPaint.
After you do this you have to call the Load function of the CPictureWindow class. In this way your background of the dialog will display an image.
#include "PictureWindow.h"
BOOL XXXX::OnInitDialog()
{
...
m_PictureWindow.SubclassWindow( m_hWnd );
m_PictureWindow.m_nMessageHandler = CPictureWindow::BackGroundPaint;
m_PictureWindow.Load("image.bmp");
};
Also, If you have one control child of one dialog (window) and you need to add a background picture all that you need to do is:
#include "PictureWindow.h"
BOOL XXXX::OnInitDialog()
{
...
// The IDC_STATIC1 is the identifier of child window, and the m_hWnd is the
// parent window handle
m_PictureWindow.SubclassWindow( ::GetDlgItem( m_hWnd, IDC_STATIC1 ) );
m_PictureWindow.m_nMessageHandler = CPictureWindow::ClientPaint; // This is the default value
m_PictureWindow.Load("image.bmp");
CAN YOU HELP ME ON THIS???
|
|
|
|
|
check out the Bitmap section omn CodeGuru. There you'll find a VERY easy class to use if you want to put an image as a background!!!
I've used it and haven't got any problems with it!!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
|
Hi ...i'm new at programming, i have visual c++ 6.0 standard edition. i just made my first programm using mfc and now when i tried to put it on another computter i have an error it says that i need some DLL (mfc42d.dll) i want to know how can i copy those dll or insert those dll in my programm so it will work on other computter. i canot link it staticly because it the standard edition.
thank you
|
|
|
|
|
You need to compile the program in Release mode not debug.
You can do this from the Build->Set Active Configuration menu.
The release MFC42.dll should already be installed on other Windows computers.
Michael
|
|
|
|
|
Not always!
Fresh installs of win 98 wont have that DLL and a few others
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
You built with the Debug option set.
Use 'Release' in order to use a program on another computer.
// Rock
|
|
|
|
|
Use dependency walker to figure out all required DLLs used by your program. By the way Release-build it first. Now you know what DLLs to install on the target machine. Use a freeware install-maker tool or Visual Studio Installer to create the setup program.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hi all,
Is any class in VC++ 6.0 for using thease protocols ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|