Click here to Skip to main content
15,929,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to send a file between two computers? Pin
SAK24-Jan-02 8:31
SAK24-Jan-02 8:31 
AnswerRe: how to send a file between two computers? Pin
Richard Jones24-Jan-02 9:35
Richard Jones24-Jan-02 9:35 
GeneralRe: how to send a file between two computers? Pin
SAK24-Jan-02 10:12
SAK24-Jan-02 10:12 
GeneralRe: how to send a file between two computers? Pin
Vladimir Georgiev24-Jan-02 10:24
Vladimir Georgiev24-Jan-02 10:24 
GeneralRe: how to send a file between two computers? Pin
Vladimir Georgiev24-Jan-02 10:58
Vladimir Georgiev24-Jan-02 10:58 
Generalvisual c++ Pin
24-Jan-02 8:26
suss24-Jan-02 8:26 
GeneralRe: visual c++ Pin
Richard Jones24-Jan-02 9:24
Richard Jones24-Jan-02 9:24 
GeneralHelp with VC & IE Pin
Cabadam24-Jan-02 8:14
Cabadam24-Jan-02 8:14 
OK... I had a program (originally written using VC 6.0) that, as part of its function, retrieves values from an open Internet Explorer window. However, when I compile the SAME EXACT code that works in VC6 in VS.NET, the retrieve function fails.

In the code, once I get the IE window, I check for frames:
IDispatchPtr dis;
IHTMLDocument2Ptr doc;
spBrowser->get_Document(&dis); //spBrowser is earlier declared and initialized
dis->QueryInterface(&doc);

IHTMLFramesCollection2* frames;
long num;
doc->get_frames(&frames); /* THIS IS THE PROBLEM
if (frames == NULL)
///failed
else
{
....
}

In VC6, the get_frames function returns a valid address everytime, whether it is a framesize of 1, or 2 or whatever...
However, when compiled in VS.NET, 'frames' ALWAYS ends up NULL.

What would cause this?
I am using the VS.net Beta 2. Is this a known problem that is fixed in the final release? Is there a solution??
Or is the problem something else entirely?

This was tested and confirmed using both IE5.5 and IE6.

Thanks!

Adam
cabadam@houston.rr.com
GeneralDialog color Pin
24-Jan-02 6:48
suss24-Jan-02 6:48 
GeneralRe: Dialog color Pin
Michael Dunn24-Jan-02 6:54
sitebuilderMichael Dunn24-Jan-02 6:54 
GeneralRe: Dialog color Pin
24-Jan-02 6:55
suss24-Jan-02 6:55 
GeneralRe: Dialog color Pin
pba_24-Jan-02 7:04
pba_24-Jan-02 7:04 
GeneralRe: Dialog color Thanks Pin
24-Jan-02 7:08
suss24-Jan-02 7:08 
GeneralNo name variables Pin
Javaman24-Jan-02 5:55
Javaman24-Jan-02 5:55 
GeneralRe: No name variables Pin
Michael Dunn24-Jan-02 6:57
sitebuilderMichael Dunn24-Jan-02 6:57 
GeneralControlling the HTML in IWebBrowser2 Pin
Jim Crafton24-Jan-02 5:27
Jim Crafton24-Jan-02 5:27 
GeneralRe: Controlling the HTML in IWebBrowser2 Pin
pba_24-Jan-02 5:58
pba_24-Jan-02 5:58 
GeneralRe: Controlling the HTML in IWebBrowser2 Pin
Jim Crafton24-Jan-02 6:51
Jim Crafton24-Jan-02 6:51 
GeneralRe: Controlling the HTML in IWebBrowser2 Pin
Not Active24-Jan-02 7:15
mentorNot Active24-Jan-02 7:15 
GeneralRe: Controlling the HTML in IWebBrowser2 Pin
Kastellanos Nikos25-Jan-02 2:14
Kastellanos Nikos25-Jan-02 2:14 
QuestionHow to get the name of the recently added file to a Particular folder? Pin
anju24-Jan-02 5:30
anju24-Jan-02 5:30 
AnswerRe: How to get the name of the recently added file to a Particular folder? Pin
User 988524-Jan-02 5:44
User 988524-Jan-02 5:44 
GeneralIs there any API two catch the recently added file from a particular folder? Pin
anju26-Jan-02 18:58
anju26-Jan-02 18:58 
GeneralRe: Is there any API two catch the recently added file from a particular folder? Pin
User 988527-Jan-02 4:23
User 988527-Jan-02 4:23 
GeneralHooking GPFs Pin
Jamie Hale24-Jan-02 5:14
Jamie Hale24-Jan-02 5:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.