|
|
Hi,
Thanx for your reply , but i would appreciate something thats related to excel file reading ,writing etc by using automation.
Thanx
FarPointer
|
|
|
|
|
Ok, I'll send you tomorrow a pice of code by e-mail.
SkyWalker
|
|
|
|
|
|
See here.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Good New's microsoft jumps in Domain of
Business Intell.
Not seeking to compit with established firms for
already successful work like n/w security by SAS
http://www.nytimes.com/2005/10/24/technology/24soft.html
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi,
I have two applications. One application will push all its COM objects to the ROT.
And tried to get the Objects in the second application.
I got the Object pointer by calling GetActiveObject().
But I am not able to use the pointer properly.
I am getting the "Acccess Violation" error while trying to call QueryInterface.
Is it possible for the two process to communicate like this.
If yes will anybody help me to resolve this problem.
If not which is the best way for the two process to communicate. Communicate in the sence the second app should be able to invoke some functionality in the first process.
Thanks in advance
|
|
|
|
|
Hi fellows
I've readed in MSDN something like this:
Link Collections are nested subcollections in a Top-Level collection.
LinkCollection arrays: describes all the LinkCollections in the Top-Level Collection. They are organized in a hierarquical order. The first node of LinkCollection array is the Top-Level Collection and the remaining are the remaining Top-Level Collection's LinkCollections.
Finally my question:
What are a LinkCollection? On the MSDN there aren't a explanation.
Can you help me guys?
|
|
|
|
|
How can we format a removalble drive, in particular an ATA flash card, in Visual C++ silently without the user intervention? I tried the SHFormatDrive but this API just starts the Windows format command.
Also, how can we distinguish different type of removable drive? I used the SDK function GetDriveType(), and a hard disk or any flash device connected to the USB port would return the type DISK_REMOVABLE
Any suggestion would be greatly appreciated.
Thanks
Tien
|
|
|
|
|
I have a c++ application that i am attempting to launch a video clip that is located on a web server over a web browser. Can i use the shell execute function for that?
Also, is there such a thing as an html window that i can use to launch the video in.
If none of the above, i am open to other ideas...
Thanks,
|
|
|
|
|
LCI wrote: Can i use the shell execute function for that?
Yes.
LCI wrote: Also, is there such a thing as an html window that i can use to launch the video in.
Can you use CHtmlView ?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Never used CHtmlView before.
Any thoughts on how to use?
I will do a search on help.
|
|
|
|
|
LCI wrote: Any thoughts on how to use?
Yes. What exactly is it that you want to know?
LCI wrote: I will do a search on help.
Start here.
"Take only what you need and leave the land as you found it." - Native American Proverb
-- modified at 10:48 Monday 24th October, 2005
|
|
|
|
|
I simply just want to use it to launch a video clip located on a web server. I figured that using this will have a cleaner windows look than using shellexecute to launch an IE browser.
Can you resend the link that you were recommended? Does not look like it came through...
Thanks,
|
|
|
|
|
LCI wrote: I simply just want to use it to launch a video clip located on a web server. I figured that using this will have a cleaner windows look than using shellexecute to launch an IE browser
But if the video clip is associated with a browser, that's exactly what ShellExecute() will use.
LCI wrote: Can you resend the link that you were recommended? Does not look like it came through...
Try again.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hmmm, maybe i was wrong in the way i am thinking about this.
I though that with Shell execute, i will launch a .avi and it will play it through whatever player is on the system. Like Media player etc.
However, i thought with the ChtmlView, it will be played in a windows window view and look like part of your application rather than say a media player.
Am i way off?
|
|
|
|
|
The design is such that this clip will just sit on a web server.
The application should be able to hit that web server and play the clip in question.
I was going to use ShellExecute but figured that CHtmlView may have a cleaner look.
|
|
|
|
|
LCI wrote: I though that with Shell execute, i will launch a .avi and it will play it through whatever player is on the system.
That's exactly what happens by default. You can always have it open some other application by specifying the name of the .exe file and supplying the .avi file as a command-line argument. There's also CreateProcess() . I'm not for sure if it can deal with a URL or not.
LCI wrote: However, i thought with the ChtmlView, it will be played in a windows window view and look like part of your application rather than say a media player.
You thought correctly. The media player, probably an ActiveX control, will be embedded within the view.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
LCI wrote: I have a c++ application that i am attempting to launch a video clip that is located on a web server over a web browser.
I don't understand, you want to launch a browser with the URL pointing to the video ? or display the video in a browser inside ( from within ) your application ? or something else ?
You could use ShellExecute to launch the browser with the appropriate URL
for example :
::ShellExecute( NULL, "open", "http://www.codeproject.com", NULL, NULL, SW_SHOWNORMAL );
I think that if you put in a filename/URL with a media file type that is associated it will try to load the registered application for that file type ( or maybe will ask to save the file instead ).
if you use an htmlview class, you will ( might ?) have to create the html code to display the video inline instead of the browser trying to save as an external file.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
There will be video clips on stored on a web server.
I have an application that should be able to run any of those clips once i click a button pertaining to said clip from the C++ application.
So if clip is called 123.avi and located on say http:\\webserver\123.avi
the application should be able to play this clip.
I have used shell execute and it launches the app associated with the video to play the video.
I would like to have it so that the video plays within a windows style window and looks like part of the application and not a separate media player or such.
I was looking into using CHtmlView instead of ShellExecute to achieve this cause i do not think that ShellExecute can.
|
|
|
|
|
then insert an activeX control in you UI ( as suggested by david ).
you will have to download the file from the server.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
sir,
i make obe program in MFC .i want to debug any memory leaks in my program .how can i find out memeory leak
|
|
|
|
|
|
aloktambi wrote: how can i find out memeory leak
by seeing the memory use growing and growing while your application is running...
this is very hard to track with a tool...
the best thing to avoid memory leaks is still to take much care when handling heap memory... when you malloc() or when you new some memory on the heap, be sure to free() or delete it when it is no longer used...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
If you want an easy solution (yeah, I always prefere a solution where I don't need to read a bunch of articles ), you can simply launch the debugger (press F5) and then, when your program exits, you will have a dump of all memory leaks your program produced (and you can double-click on the lines and it will show where the memory has been allocated).
But this works only when the memory has been allocated with new and of course it only shows you the memory leaks your program produced (not all potential ones). That is, if there is function that is called when you press a button and if there is a leak within it, if you don't press the button, the leak won't be detected.
|
|
|
|