|
Thanks guys. I was already trimming file path before and was just trying to find a better way.
I went to http://www.codeproject.com/dialog/cfolderdialog.asp, found out and then learned how to use SHBrowsefolder and my thing works. thanks for your help
|
|
|
|
|
how can i decompile a dll file to see what is used to call it?
|
|
|
|
|
you can't decompile a DLL..though you can use a tool "Dependency Walker" to know the list of exported funtion names
"Every morning I go through Forbes list of 40 richest
people in the world. If my name is not in there, I go to
work..!!!" -- modified at 23:26 Tuesday 7th February, 2006
|
|
|
|
|
Use DUMPBIN.EXE from command line
|
|
|
|
|
How can I resume a FTP broken download in C API? I'm working in Visual Studio 5.0. Please show me how to do this. Thank you very much!
Sincerely
Thangnvhl
|
|
|
|
|
Create a simple single-dialog based MFC application by using MFC application wizard in VC++ 6. For the EXE program generated, would it possible to let the EXE take in CmdLine parameters like switches e.g. "-t", "-a" etc?
|
|
|
|
|
use GetCommandLine API & try with WinExec()
-- modified at 0:20 Wednesday 8th February, 2006
|
|
|
|
|
How do i extract text from Microsoft Words or convert MS word file to a text file? Does anyone have a ready source project? if have, pls send to hl8476@gmail.com. Thanks
|
|
|
|
|
You need an automation program. Google for that.
~RaGE();
|
|
|
|
|
Is there any way to get the content of html and save it to a word document?
|
|
|
|
|
open the HTML file in word, click file-> save as... and select .doc as the format
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
I creating an application, and the user is able to load url or html. and extract the content to word via just a click on the convert button. So ur ans is not appropriate. Any other ways?
|
|
|
|
|
You can use COM automation to launch MS Word, open an HTML file and save it as a Word document. Have a look on MSDN under Office Development.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
I'm writing an application and I need to launch Windows Media Player programmatically.
I'd like to do that as simply as entering "wmplayer.exe" in Windows Run utility.
Can someone help?
Thanks,
Allad
----
Navigator - Your best alternative to Windows Explorer
-- modified at 18:46 Tuesday 7th February, 2006
|
|
|
|
|
|
Thanks
It works nicely.
I do ShellExecute(NULL,NULL,"wmplayer.exe",NULL,NULL,NULL);
Cheers,
Allad
----
Navigator - Your best alternative to Windows Explorer
|
|
|
|
|
Allad wrote: I do ShellExecute(NULL,NULL,"wmplayer.exe",NULL,NULL,NULL);
Better use CreateProcess, it give more control to calling application to control new application
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
CreateProcess()
system
WinExec
|
|
|
|
|
Hi
I want to edit my resource file to change it to a UNICODE version. But I can not input UNICODE into VS 6.0 resource editor.
Any one has the experience to solve this problem?
Thanx.
|
|
|
|
|
Open resource script in Notepad editor then input unicode text, save as unicode file and compile. Hope that works
|
|
|
|
|
Hi
Thank you for the reply. I tried that. The VC 6.0 can not compile the UNICODE resource file.
Thanx
|
|
|
|
|
Hi all:
I have a struct like following:
struct {
float x, y, z;
} Vector;
Vector v1, v2;
at some time, I want v1 and v2 to be a single variable what I mean is that v1 v2 are always containing the same value and whenever I change the value of v1, v2 will be changed automatically. For some reason somewhere else the program, I can't declare v1, v2 as pointers Vectorv *v1, *v2 explicitly. I tried &v1 = &v2. But obviously it doesn't work. Does anybody have a solution for this problems please???
Thanks alot!!!
Asura
-- modified at 15:29 Tuesday 7th February, 2006
|
|
|
|
|
Well, if V1 == V2 ( always ), then remove one or the other.
or make V2 a reference to V1;
Vector V1;
Vector& V2 = V1;
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Ming Luo wrote: at some time, I want v1 and v2 to be a single variable...
Can't you just use a union ?
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
I'd be a little cautious naming your struct type, 'Vector'. That could collide and cause confusion. But having said that the following should be work okay.
struct{
float x,y,z;
} ThreeFloats;
...
ThreeFloats v1;
ThreeFloats* v2 = &v1;
...
v2->x = 1.2;
v2->y = 3.4;
v2->z = v1.x * v1.y;
assert ( v1.z == 1.2*3.4 );
Chris Meech
I am Canadian. [heard in a local bar]
When I want privacy, I'll close the bathroom door. [Stan Shannon]
BAD DAY FOR: Friendly competition, as Ford Motor Co. declared the employee parking lot at its truck plant in Dearborn, Mich., off limits to vehicles built by rival companies. Workers have to drive a Ford to work, or park across the street. [CNNMoney.com]
Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]
|
|
|
|