|
Hello!
Spy retrieves correctly.
Maybe this is UNICODE window?
|
|
|
|
|
hi,
i know that. but i wanted to retrieve from my Win32 program.there are other edit boxes also there,so hw to seperate that from other edit boxes......
Thank You
|
|
|
|
|
Hello!
Check with Spy. Maybe this edit box has some unique ID?
|
|
|
|
|
Hi All,
After all the datas are insert to the MAP, is it is possible to re-sort the MAP using some other key ??
With Best Regards,
A.Ilamparithi
|
|
|
|
|
I have a std::list of objects and want to capture the object by reference by storing its address in a pointer to use it in other code. I am having problems pulling the object's address from the iterator. The sample code below shows what I am doing.
typedef list<MyObject> ObjList;
int main()
{
ObjList obList;
MyObject* pObj = 0;
for(int i = 0; i < 10; ++i)
{
pObj = new MyObject(i);
obList.push_back(*pObj);
}
pObj = 0;
ObjList::iterator it = obList.begin();
for(int i = 0; i < 3; ++i)
++it;
MyObject *pMy3rdObject = it; <<<<<---C2440 ERROR HERE
[work done with pMy3rdObject here]
return 0;
}
When I compile the code above, I get the following error:
error C2440: 'initializing' : cannot convert from 'std::allocator<_Ty>::value_type' to 'MyObject *'
with
[
_Ty=MyObject
]
Any ideas of how to successfully and safely do this?
Thanks in advance!
Happy Programming!
WWW::CodeProject::BNEACETP
|
|
|
|
|
It figures... I figure out how to do this after posting it. Anyway, maybe someone else may be wondering how to do this, so here's how I did it.
This was what I had:
MyObject *pMy3rdObject = it; <<<<<---C2440 ERROR HERE
This is how I fixed it:
MyObject *pMy3rdObject = &(*it); <<<<<---COMPILES AND WORKS!
Happy Programming!
WWW::CodeProject::BNEACETP
|
|
|
|
|
I am looking for a good Graphical User Interface tool that can interface with Visual C++ or Delphi(sorry).
Does anyone know any web sites or products which I can look at.
The GUI tool must be able to accept and process real-time data in short.
Thanks
LOUIS
|
|
|
|
|
Hi,
I wanted to develop a generic component to download files using URLDownloadToFile, just to make it even easier for VC++ and VBasic clients.
The problem that I found is that... using IBindStatusCallback it's more or less easy to handle in C++, but I think handle this in Visual Basic it's a bit complicated ( for Vb Programmers :P). I thought about pass the handle of the window and one Message ID to my component and make a post message to that window... but it's a bit crappy and again Visual Basic guys won't know how to do it... use connection points for this case it's a good idea ? or again Visual Basic guys...
thanks in advance
Braulio
|
|
|
|
|
Well, VB programmers always have trouble with even adding two numbers.
But VB maps connection points as events, so VBers can declare the variable WithEvents and handle the event, just like a button click.
Any average VBer will be able to accomplish this.
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
|
|
|
|
|
Hi Daniel,
I have seen that if you develop an ActiveX control and place it with the designer you get for free the connection point in your "Event" combo, ... but how to do that if the COM component has no inteface at all ?
Thanks for your info
Braulio
|
|
|
|
|
I want to create DIBs using CreateDIBSection.
Are there any known (memory) size limitations if I use this function (maybe for some older OS like Windows 95/98/ME)?
When I use CreateCompatibleBitmap to create DIBs do I have the same 16 MB limitation if I use Window 95/98/ME like if I create DDBs with CreateCompatibleBitmap?
Has anyone some experience in creating large bitmaps (> 6000x6000 pixel (32bit))? What are good solutions to create and handle such large bitmaps in memory?
Would be nice if we can discuss this subject here, because I think it is very interesting and error-prone subject.
|
|
|
|
|
How can I displaying 2 dialogs in the same window ??
Are there any frame that can hold dialog ??
Or can one dialog hold more then one other dialog ??
Thank you very much!!
|
|
|
|
|
im not sure exactly what you mean, but - yes you can:
try with splitter windows, each pane should be a CFormView in which you place your dialog resource
|
|
|
|
|
Dear Excellence:
Suppose I've created on Bitmap, that says IDB_A, and how to get the Filename and it's path name from the code?
Thanks you all.
Morris
Morris Pan
|
|
|
|
|
Huh?
Once it's compiled into the .RES and linked into your .EXE or .DLL, there isn't a filename (and hence pathname). In the IDE you can select the bitmap, right-click and get the properties which include the pathname, which is the bitmap that will be IDB_A.
(Unless, of course you're talking about .NET resources, where the same may not be true).
Steve S
|
|
|
|
|
Dear Steve, thanks for your direction.
Got it.
Rgds
Morris
Morris Pan
|
|
|
|
|
Dear Excellence:
I want to move the bitmap in Dialog by presseing button, can you show me how to do it?
Thanks.
Morris
Morris Pan
|
|
|
|
|
In the handler for the button press, put something along these lines:
RECT stNewPosition;
// setup the new position for the bitmap (this can also resize it)
stNewPosition.top = 50;
stNewPosition.left = 50; // etc...
// this moves the bitmap only
GetDlgItem(IDB_YOUR_BITMAP)->MoveWindow(&stNewPosition, TRUE);
I think you can move the image off your dialog with this - effectively making it vanish so beware.
Regards,
Simon
|
|
|
|
|
Dear Simon :
Got it.
Many thanks.
Morris
Morris Pan
|
|
|
|
|
Dear Friend:
Thank you first.
It comes another question for me.
How come if I want to move Bitmap by implementing the DC ? Can you please show me the way?
Thanks
Morris
Morris Pan
|
|
|
|
|
If by DC, you mean device context, I am sorry but I don't know as much about this as I always use move window.
However, I know to get the device context you would do:
CDC * pDeviceContext = NULL;
pDeviceContext = GetDlgItem(IDC_YOUR_CONTROL)->GetDC();
Then you'll have to look in the MSDN for a CDC function that moves the image.
Regards,
Simon
|
|
|
|
|
I want to hide a toolbar by unchecking the menu item view->toolbar...the toolbar which i want to handle is userdefined ie its created by me using CToolBar.How do i do it?
|
|
|
|
|
i'm not sure if i got that right. you've got a CToolBar obj and want to hide / show it?
use CWnd::ShowWindow() with SW_SHOW / SW_HIDE.
hope this helps
|
|
|
|
|
Hi..
You are absolutely right!
I have a CToolBar object which needs to be hide/show as we click on menu item VIEW->ToolBar...i tried with ShowWindow(SW_HIDE),but its making the toolbar inactive instead of hiding.
Could you help me to solve this issue.
|
|
|
|
|
i've tried it and it works.
// your obj
CToolBarCtrl m_toolbar;
VERIFY( m_toolbar.Create(WS_CHILD | WS_VISIBLE | CCS_NOPARENTALIGN |
CCS_NORESIZE | TBSTYLE_FLAT | TBSTYLE_TOOLTIPS, CRect(10, 10, 100, 100),
this, AFX_IDW_TOOLBAR) );
// later on
m_toolbar.ShowWindow(SW_HIDE);
i rather use the CToolBarCtrl class, but if you don't want to, you can use CToolBar::GetToolBarCtrl() to get the CToolBar's underlying CToolBarCtrl class.
|
|
|
|