|
Well you can implement only if irfan view supports COleDropSource and of course COleDataObject.
To test it try dragging on one of famous applications like Adobe or Flash. If they get images then you have it.
-----------------------------
In my dream, I was dorwning my §orrow§
But my §orrow§, they learned to §wim
|
|
|
|
|
hi,
cehck this..
http://www.funducode.com/weeklyupdate/May_5_01/May_5.htm
followed by..
http://www.funducode.com/weeklyupdate/May_12_01/May_12.htm
i hope this function can do the desired work...
all the best and cheers
Himanshu
|
|
|
|
|
Hi,
I want to write an application to record the desktop and play it as avi files. Is there any article here that can help me with this.
Kindly help me..
Thanks for
Vini
|
|
|
|
|
|
|
How can I move the cursor in a Rich Edit Control? If someone chooses a html tag in a menu I want to put the starting and ending tags <bold> and place the caret in the middle for convenience. I can put the tags but I cant find a way to move the cursor in the middle. I'm assuming it's probably the same method for edit and rich edit controls. It will be for a SDI(doc/view) application. Thanks
paully
|
|
|
|
|
If you have to put the caret at a position pos in the control try to use
SetSel(pos, pos) ,
this should move the caret to that position.
|
|
|
|
|
And how do we retrieve the caret position in a CRichEditCtrl ? There is no GetPos or whatever ...
~RaGE();
|
|
|
|
|
int pos1, pos2;
m_myRichEd.GetSel(pos1, pos2);
pos1 and pos2 are passed by reference, if thier is no selection they should be both equal to the current caret postion.
|
|
|
|
|
Thanks for the help!
paully
|
|
|
|
|
I have remade APPBAR sample from MSDN.
It works OK, but when no explorer is running (e.g. TaskBar is not present), other windows can obscure my appbar. What should I do?
|
|
|
|
|
I have 1 dialog with 4 edit boxes. Their variables are of type double. I have two other varibles that need to be included in my second dialog as static text.
To make this simple:
m_varA = m_editA \ m_editB;
m_varB = m_editC \ m_editD;
I want my static text to represent m_varA and m_varB. My code for the button that opens the new dialog is as follows:
{<br />
m_m = (m_strY2 - m_strY1) / (m_strX2 - m_strX2);<br />
if(m_strY1 < 0)<br />
{<br />
m_b = (m_strY1 + m_m * m_strX1);<br />
}<br />
else<br />
{<br />
m_b = m_strY1 - (m_m * m_strX1);<br />
}<br />
m_m = CSlopeDlg.m_m;<br />
m_b = CSlopeDlg.m_b;<br />
m_dCSlopeDlg.DoModal ();<br />
}
Where m_strX1, Y1, X2, Y2 are my edit boxes. m_m is one of the variables that I want to be displayed in my other dialog, and so with m_b.
All of my variables are of type double as I said before.
CSlopeDlg.m_m is the euqivilant of m_m in my first dialog. It is the static text. It is of type CString. Same with CSlopeDlg.m_b.
The compiler give me the same error twice, as expected:
error C2275: 'CSlopeDlg' : illegal use of this type as an expression see declaration of 'CSlopeDlg.
What should I do?
Am I even on the right track?
Thanks,
Nicky
|
|
|
|
|
hi,
you can't use a class thing like that..you need an object first..to use it..
you can use it like this..
CSlopeDlg dlg;
m_m = dlg.m_m;
thats it..you are done..
cheers
Himanshu
|
|
|
|
|
Hi,
Thank you very much, but now it says:
error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class Ctring' (or there is no acceptable coversion)
How can I convert the double type variables to CString, or the CString variable to double?
Thanks,
Nicky
|
|
|
|
|
hi,
cant u make both of them of same type...i guess u have defined them as CString and other becomes double..in your calculations...once it is any type int float or double..you can type cast it and do the work...
i hope it helps..
cheers
Himanshu
|
|
|
|
|
I want to autmat an application that is supplied as a .exe.
Can anyone suggest the best way to send message to simulate menu selections on that software ?
Thanks.
Elaine
The tigress is here
|
|
|
|
|
|
I have a dialog based application that has 2 dialogs in it. I display each of them using doModal() something like the following:
CEulaDlg eDlg;
CSetupDlg dlg;
INT_PTR nResponse = -1;
nResponse = eDlg.DoModal();
if( nResponse == IDCANCEL )
return false;
nResponse = dlg.DoModal();
if (nResponse == IDOK)
{ ...
I'm calling both AfxEnableControlContainer() and AfxInitRichEdit2() in both dialog constructors. The problem I'm having is that once I add the eDlg dialog when I run the app nothing happens. The app doesn't even appear in the process mgr after a few seconds.
There is one thing unusual, if I build it from the VS.NET GUI it runs fine. If I build it from the command line, it doesn't work.
Any ideas what I might be doing wrong?
|
|
|
|
|
Hi all,
I was wondering if anyone knew of a way to change the default C-runtime heap for a DLL. I would like a DLL that I am creating to automatically allocate its data into a different heap than the host process, and I dont really want to resort to writing my own heap manager or using the Win32 heap functions to manage memory.
Thanks
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Correct me if I am wrong, but I always thought, that the dlls have they own heap - therefore if you malloc something in DLL you are not able to free it in the EXE (or another DLL). I am not really sure about that, but it was told me in some years ago, while learning working with DLLs I allocated some resource in DLL1 and tried to free it in DLL2, getting the heap corruption message.
|
|
|
|
|
Hello Everybody,
Is there a way to put text in a dialog that the user can click and load a IE window with the URL? I tried a couple of things and nothing works. Any suggestions? Any answer is more than welcome.
Best regards,
Luis E. Cuadrado
)
|
|
|
|
|
|
One solution is ShellExecute()
ShellExecute(// Handle to window of new process.
NULL,
// Command
TEXT("open"),
// Source data
"???.???.???/???.???"
// New process paramater
NULL,
// Directory
NULL,
// Window
SW_SHOWNORMAL);
Kuphryn
|
|
|
|
|
If Ido:
BOOL ret = pImageDisplay->Create(IDD_IMAGEDISPLAY, this);
pImageDisplay->m_zoomFactor = 500;
pImageDisplay->ShowWindow(SW_SHOW);
pImageDisplayVector.push_back(pImageDisplay);
}
THe images in the modeless dialog get the info about the zoomfactor.
But........ If I pull the pointer off the vector and do this (show the window here instead):
loop through the vector:
{
pImageDisplayVector[i]->m_zoomFactor = 500
pImageDisplayVector[i]->ShowWindow(SW_SHOW);
the dialog doesnt get any zoom info.....
I'm doing something dumb? Missing something really obvious?
Appreciate your help,
ns
|
|
|
|
|
If it's a pointer then it should work both ways. What is in the vector, a CWnd derived class ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|