|
because i read his second (re)post...
actually, i answered for launching cmd.exe at first, but i fixed it consequently then
anyway, Luke was at home to drink a tea this afternoon, after we practice a Sabro-laser training, so I think a kind of Force is with me...
|
|
|
|
|
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi,
I m using Microsoft Visual C++ 6.0 and i have a problem that i can't open more than 1 image in single child window.I can definitely open them in tabs but i want them to get open in same child window.
Any suggestions or code for the above are heartily welcome.....
|
|
|
|
|
I'm not certain what you want to do ?
You want to be able to display more than one image at the same time in one child window ? or one after the other in the same child window ?
|
|
|
|
|
Thanks for going through my problem.
I want to display more than one image at the same time in a single child window(say 2 or 3 image)
|
|
|
|
|
Wht issue you are facing while drawing more than one image?
Are you drawing the images or you use any control to show the image?
If you are drawing the image, then chk for the coordinates, where you are drawing and chk you are getting the image (are the images loaded properly).
Do your Duty and Don't expect the Result Rate this Post, if I helped You
|
|
|
|
|
Thanks for your consideration.
Actually, i have written a code to read the images stored in my computer and i m not drawing any image but problem is that it can show only 1 image in a single child window. I want that it can also show 2 or 3 images in the same child window.
|
|
|
|
|
gail wynand wrote: i m not drawing any image but problem is that it can show only 1 image in a single child window
Don't understand your need. if you are not drawing anything how you can able to see 1 image. Better you can post some code..
Do your Duty and Don't expect the Result Rate this Post, if I helped You
|
|
|
|
|
That still doesnt give us any clue about what you are trying to do. How do you display your images ? And why is it limited to one image ?
|
|
|
|
|
gail wynand wrote: i m not drawing any image but problem is that it can show only 1 image
You're not drawing any image but one gets drawn....hmmm.
Who is drawing that 1 image? Windows don't do it by themselves
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
When i run the code,it gives me an option of "Open".So while opening the image,i can only open 1 image in a single window and i want that if it would be possible to open more than one image in a single window & not superimposing on previous one at the same time.
|
|
|
|
|
Are you using MFC? If so, what class is the window?
At some point you'll need to implement functionality to load more images and render them.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
yeah i m using MFC and openCV in my code.I m not getting the proper code to get my work done.
|
|
|
|
|
openCV is providing the image rendering? If so, then that would be a good place to look
for a solution. In plain MFC there's a variety of solutions - GDI+ being the simplest IMO.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Do you want to show some images near together?
|
|
|
|
|
yeah u can say.I want to display 2 or 3 images side by side in a single child window.
|
|
|
|
|
This is very simple to do (at least there's help with Windows GDI/GDI+) except you are using
OpenCV. Unless you are willing to write your own code instead of using a third party library, you
may not get much info here. Maybe someone will respond that's familiar with OpenCV but it
still seems to me an OpenCV site would have more answers.
The basic steps are:
Load the images
Draw the images whenever necessary
Dispose of the images when the window is closed.
Which part is giving you trouble? Do you have some code that's not working so we can help you
with it?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Now i have lots of text files in a folder,i want to combine them into one large file,but the problem is that it is must be order the formation rule.
for instance:(the txt file order)
the first text file list item"1c.txt,2c.txt,.........
the second text file list item"1e.txt,2e.txt,........
now the combine file order must be "1c.txt,1e.txt,2c.txt,2e.txt........."
and so on!
Waiting for ur help!
Thx advance!;P
Don't try it, just do it!
*Archibald*rever dragon!
|
|
|
|
|
algo :
- find all file names to be combined
- add each name to a vector of strings (with the strings being the file names)
- write your functor to be used to sort the files list the way you like
- use std::sort with your functor
- create a new empty file
- read each file in the order of the sorted vector and add its content at the end of the new file just created at the previous step
- dont forget to close all remaining opened files.
you got it
|
|
|
|
|
thank u very much!
i know how to do it!
初学者!Don't try it, just do it!
*Archibald*rever dragon!
|
|
|
|
|
hi,
how could we create a header file from a DLL to use functions in that DLL ?
I have only the DLL file in hand. From this DLL, using some tools (e.g DLL explorer) I can view the list of functions in that DLL. To load this DLL and use it, I use function LoadLibrary() and then GetProcAddress(). But to use GetProcAddress(), I need to know the function prototype (that means parameters & return type of that function). Fortunately, I have the development documents of this DLL which explain reference to all functions & data structures. Eventually, I ended up in manually writting a header file for that DLL from scratch based on the development documents. This is tedious job because I have to rewrite all definitions, constants, declare all functions, ...
I wonder if it is possible to generate header file from DLL file ?
|
|
|
|
|
As far as I know, there is no way to do that. But that's strange that the supplier of the DLL didn't provide a header file with it.
|
|
|
|
|
there's none, as Cedric stated.
however, you can use Dependency Walker[^] to figure out the functions exported by the Library...
|
|
|
|
|
Amidst of development of toolbar, a requirment came to colour toolbar.
As we can colour explorerbar easily with OnPaint, we can colour the
toolbar also,but after colouring the Toolbar buttons Vanish. Code is totally
based on ATL\ COM and not MFC.
The reason I found is NM_CUSTOMDRAW not getting called . Even if I
post the message WM_ERASEBKGND.
Can anyone tell how to overcome this problem. Even if we call
TB_INSERTBUTTON at end of OnPaint it does not prove fruitful.
-- modified at 8:36 Monday 16th April, 2007
|| ART OF LIVING ||
|
|
|
|
|
shivditya wrote: Code is totally
based on ATL\ COM and not MFC.
Then why have you posted this question in this forum?
|
|
|
|