|
as i said Winexec() was not opening ".htm" file it opening only "Exe" file.
again i tryied but not opening
shakumar
|
|
|
|
|
Winexec does not open a text file, it can only open a .exe file.
Use like this:
Winexec("C:\Program Files\Internet Explorer\iexplore.exe abc.htm"...)
treat abc.htm as the parameter of program IE
|
|
|
|
|
Hi,
I think you are missing complete path of IE.
I tried this WinExec("\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" \"C:\\testpage.htm\"", SW_SHOW); and it worked fine.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|
|
did you try ::system() with the html-file?
That should call the user-defined browser (not forcing the user in IExplore).
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
I think you can use of this code
::ShellExecute(NULL, "open", "iexplore.exe", "your_url.htm", NULL, NULL, SW_SHOWNORMAL);
but anyway you can use of CDHtmlDialog.
|
|
|
|
|
Thanks for your reply
shakumar
|
|
|
|
|
Are you wanting to open the HTM file via Internet Explorer, or are you wanting to open the file in an editor such as Notepad? Those are two different things.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi All,
I am using VS2005 and Active Directory Service (LDAP).
I am using "objectclass=Users" filter string. There are some conditions where i don't want to retrieve any object. How to do it?
Is "objectclass=0" or "objectclass=null" the correct way to do?
Thanks,
|
|
|
|
|
Can somebody tell me how do i create a setup file for an MFC application..i am using MS Visual Studio 6.0
|
|
|
|
|
|
i m sorry i didn't understand
|
|
|
|
|
Try NSIS[^]. Its free and working fine here.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
NSIS asks for some .nsi file for which it creates the installer....how do i use it for an MFC exe??
|
|
|
|
|
.nsi file is the source code to make installers.
You just write some script in the .nsi file in NSIS specific syntax, then compile and build the installer.
Maxwell Chen
|
|
|
|
|
You add a project called "setup" to your solution. You have this depend on your main projects release build.
In the Post-build step of it you trigger the setup-generation by launching the .nsi script with nsis.
You would have to write that script, though.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
well jhwurmbach
i am new to vc++ and i am sorry i didnt understand what you mean by your statements. Could you be kind enough to explain it to me??
|
|
|
|
|
In VC++6 (which you said you are using), you have a "solution", which is the set of "projects", which in turn are where your code-files are held.
Now you can add another "project" to your "solution", and use this to generate the setup, in the way the NSIS documentation tells you.
This involves writing a setup-script!
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
jhwurmbach wrote: In VC++6 (which you said you are using), you have a "solution",
In VC++6 it was called "workspace"
Ah, good old days...
|
|
|
|
|
Nemanja Trifunovic wrote: In VC++6 it was called "workspace"
As you mention it *slap forehead*
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
|
hai all,
while i'm trying to read a text file using ifstream, my code is reading data when i run the code from my vc++ (VS 6.0) workspace in debug mode.My .txt file is in the workspace folder and i'm reading from there. My problem is even if the .txt file is not there,the code is not throwing any exception and doing some calculation.
i like to know y is it so,also i have closed and cleared the file pointer still the problem exists
ifstream ifs;
ifs("sample.txt",ifstream::in);
thanks in advance
swaroop
|
|
|
|
|
ifstream ifs;
ifs.open( "sample.txt", ifstream::in);
if( !ifs.is_open()) {
}
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
hi
still the same problem exists.The code is not checking whether the file is opened or not, its getting some values from some other location.
swaroop
|
|
|
|
|
swaroopkb wrote: still the same problem exists
And what is the problem? You are vague.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
sorry for the troubles,
could u please tell me how to close or destroy an ifstream object, i think thats the problem when the program run ifstream object is having the buff value, its not getting cleared. Even if the sample.txt file is not there the buff is showing the contents of sample.txt, could u please tell me y is it so ???
swaroop
|
|
|
|