|
Post the code you pass into ShellExecute(). One possible solution is CreateProcess().
Kuphryn
|
|
|
|
|
Try adding -new after iexplore.exe in the ShellExecute parameters. There is a list of command line options here[^].
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
|
Isn't there a method that's compatible with all browsers ? something more 'Windows Specific' rather than IE specific ?
And how does the CLink class help ?
|
|
|
|
|
I've noticed in VS.NET 2003 when you use the app-wizard to generate a new C++ class, the header of the new class begins with #pragma once rather than and #ifndef, #define pair.
Anyone know if there is a way to make it go back to using the #ifndef instead? #pragma once is fine for VS.NET, but when I want to port code to Linux, GCC always complains that it is obsolete.
|
|
|
|
|
To my knowledge, there is no way to make the wizards in VC++.NET 2003 use the #ifndef, #define, #endif inclusion guards instead of #pragma once which is pain. I have had issues with this myself when porting code to Linux. If someone out there knows of a way to do it, I wouldn't mind knowing how to do that myself.
Happy Programming!
WWW::CodeProject::BNEACETP
|
|
|
|
|
Alright, I have searched too much, and I don't seem to find the answer.
I create a profile and create a MsgService for it. how can I specify the location of the .pst file?
Thanks in advanced...
|
|
|
|
|
very quick question..
I have following code
<br />
unsigned char buf[1024];<br />
ifstream afile("c:\k.txt",ios::in);<br />
if(afile.good())<br />
stream.read(buf, 1024);
<br />
but I got the following error
error C2664: 'read' : cannot convert parameter 1 from 'unsigned char [1024]' to 'char *'<br />
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
somehow I got no error while passing unsigned char buf[1024] to my function
void myFunction(unsigned char* buf);
why i got error passing the same function eventhough there are 3 istream functions to use
<br />
istream::read<br />
istream& read( char* pch, int nCount );<br />
<br />
istream& read( unsigned char* puch, int nCount );<br />
<br />
istream& read( signed char* psch, int nCount );<br />
thanks
|
|
|
|
|
Try defining buf as an array of just char. See if that works first. Try passing in the address of the first element.
read(&buf[0], 1024);
Kuphryn
|
|
|
|
|
There are no unsigned char or signed char overloads, as far as I know. You might have consulted faulty documentation.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You use the STL istream class, which is defined as a stream of char and so it allows only char (not unsigned) parameter in methods.
The three mentioned istream functions are from Microsoft istream class in iostream.h . This library is obsolete in favor of STL.
Use the char buf[1024] .
Robert-Antonio
"Love without sex is like a fish without antlers"
|
|
|
|
|
Yes. I'm using STL istream class
I had no problem if I change from
#include <iostream>
using namespace std;
to
#include <iostream.h>
with VC 6.0
but I'm using .Net and .net doesn't let me use iostream.h but only STL
I will try to use only with char instead of unsigned char
Thank you
|
|
|
|
|
hi every body
i have inserted microsoft web browser ActiveX in my dialog and i want to use it's features!
there is no GetSource() in this activeX's functions So how can i Get the Source of HTML that i am navigating?
thanx a lot
-=Ehsan-de-Burge=-
|
|
|
|
|
Yes, it is possible. Here is how:
1. Use the IWebBrowser2::Document property to obtain an IDispatch interface to the DOM document.
2. Query the obtained IDispatch for IHTMLDocument3.
3. Use the IHTMLDocument3::createTextNode() method to convert the root node to text.
If you don't like that approach you can simply enable the menu bar using the IWebBrowser2::MenuBar() method. View source is there.
Ivor S. Sargoytchev
Dundas Software
|
|
|
|
|
Hi,
I'm using VisualC++ 6.0 on Windows2000.
I'm doing an application dealing with images ( with GDI ).
I'm investigating using GDI+.
Do you know if it is possible to create new Image Encoders/Decoders for other formats ( not supplied in GDI+) ? Basically, I need to handle RGB files ( SGI ) and my own format.
Thanks.
Stephane
www.exotk.org
|
|
|
|
|
I am on Unix and wanted to see an int on the screen so I did
int i = 9;
cout << '(' << i <<')';
But I dont see the value of i , just (). What do I need to do to i to make cout show it? I thought cout knew how to interpret the arg...
thanks,
ns
|
|
|
|
|
Try
int i = 9;
cout << '(';
cout << i;
cout << ')';
Another solution would be:
int i = 9;
printf("(%d)", i);
Hope this helps
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
ns asked a good question... isn't there any way to write this in a same cout line? that seem to be strange if we could.
Of course, i think cout << '(' << ((int) i) << ')'; would be better, but i didn't test it yet.
TOXCCT alias Nicolas C.
|
|
|
|
|
There's nothing wrong with your code, and it works just fine on my system. Are you sure you used exactly the same code as in your message in your program?
|
|
|
|
|
Oh. I found what I was doing wrong. I wasnt doing exactly what I posted. WHat I did is essentially tried to display char s
where I had set s = 0;
That was dumb but I didnt realise that it woas not going to show me a '0'.....
So I appreciate you taking the trouble to test it out...
thanks,
ns
|
|
|
|
|
Can I have any examples ??
Also, I want to ask how can I open two dialog box at the same time when running an application??
thx very much!!
|
|
|
|
|
|
I want to ask regarding the masking in Visual C++ . In my project i need to control 9 devices at the same time by using one parallel port interfacing,which is 3 fan, 3lamp, and 3 switch. So, how should i do,should i use the masking way and what is its source code.
|
|
|
|
|
Tan Sen Nee wrote:
...and what is its source code.
Its source code is whatever you write.
I'll assume you have a way of setting the parallel port to a word (16 bits) of your choice.
struct
{
WORD wLamp1 : 1;
WORD wLamp2 : 1;
WORD wLamp3 : 1;
WORD wGap : 4;
WORD wFan1 : 1;
etc...
} MyHardware;
MyHardware.wLamp2 = 1;
SetParallelPortFunctionOfSomeKind ((WORD *)&MyHardware);
MyHardware.wLamp2 = 0;
SetParallelPortFunctionOfSomeKind ((WORD *)&MyHardware);
Search your C(++) manual for "bit fields".
Iain.
|
|
|
|
|
hello,
I want to do pci detection in an MFC application. I wrote inline assembly codes to do it.
...
int a=0;
int c=0;
__asm
{
mov ax, 0xB101;
int 0x1A;
mov a,eax;
mov c, ecx;
}
...
The program was compiled. while running, when this function is called, it gives an error message as "The instruction at '0x....' referenced memory at '0xffffffff'. The memory could not be 'read'." and closes.
I could not find any documentation for pci bios functions on vc++. I need to do it in vc++; not in dos, or dos under windows.
It's not only the detection, but also I want to read from the pci config. space later on.
i would be very happy to get some help.
thanks...
|
|
|
|