Click here to Skip to main content
15,122,185 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: NEED HELP ASAP!!!!!!! I ALREADY DID THE PROGRAM IN MAIN I JUST NEED HELP TO SEPERATE IN .CPP, .H AND MAIN Pin
Akandel18-Apr-14 6:55
MemberAkandel18-Apr-14 6:55 
GeneralRe: NEED HELP ASAP!!!!!!! I ALREADY DID THE PROGRAM IN MAIN I JUST NEED HELP TO SEPERATE IN .CPP, .H AND MAIN Pin
Richard MacCutchan18-Apr-14 7:14
mveRichard MacCutchan18-Apr-14 7:14 
GeneralRe: NEED HELP ASAP!!!!!!! I ALREADY DID THE PROGRAM IN MAIN I JUST NEED HELP TO SEPERATE IN .CPP, .H AND MAIN Pin
Akandel18-Apr-14 7:59
MemberAkandel18-Apr-14 7:59 
GeneralRe: NEED HELP ASAP!!!!!!! I ALREADY DID THE PROGRAM IN MAIN I JUST NEED HELP TO SEPERATE IN .CPP, .H AND MAIN Pin
Richard MacCutchan18-Apr-14 9:19
mveRichard MacCutchan18-Apr-14 9:19 
GeneralRe: NEED HELP ASAP!!!!!!! I ALREADY DID THE PROGRAM IN MAIN I JUST NEED HELP TO SEPERATE IN .CPP, .H AND MAIN Pin
Akandel18-Apr-14 9:43
MemberAkandel18-Apr-14 9:43 
GeneralRe: NEED HELP ASAP!!!!!!! I ALREADY DID THE PROGRAM IN MAIN I JUST NEED HELP TO SEPERATE IN .CPP, .H AND MAIN Pin
Richard MacCutchan18-Apr-14 9:51
mveRichard MacCutchan18-Apr-14 9:51 
QuestionNEED HELP ASAP!!!!!!! I ALREADY DID THE PROGRAM IN MAIN I JUST NEED HELP TO SEPERATE IN .CPP, .H AND MAIN Pin
Akandel17-Apr-14 18:28
MemberAkandel17-Apr-14 18:28 
QuestionBuilding with Warning level 4 Pin
John Schroedl17-Apr-14 8:31
professionalJohn Schroedl17-Apr-14 8:31 
Hi, I'm trying to build my C++/CLI project with /W4 today and there's a warning I can't seem to avoid and hope someone here can help.

My project has a reference to Microsoft.mshtml for the web browser interfaces. At the first usage in code, I get a slew of warning similar to this:
C++
1>htmlView.cpp(244): warning C4564: method 'open' of interface 'mshtml::DispHTMLDocument' defines unsupported default parameter 'url'
1>          This diagnostic occurred while importing type 'mshtml::DispHTMLDocument ' from assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
1>          This diagnostic occurred while importing type 'mshtml::HTMLDocumentClass ' from assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.


I understand why it's warning (there are optional parameters in the managed interface but the generated C++ interface doesn't have the default values). That's fine.. I'd like to suppress the warning since I can't really do anything about the generated code.

I tried the following in various of places in the code including wrapping the whole file with it. Alas, it doesn't prevent the warning.
C++
#pragma warning( push )
#pragma warning( suppress : 4564 ) // /W4 will warn about optional parameters in mshtml interface

. . . CLI Code . . .

#pragma warning(pop)


If possible, I'd prefer to suppress it in the source instead of a compile-time switch so I thought I'd ask here... any suggestions?

John
AnswerRe: Building with Warning level 4 Pin
John Schroedl18-Apr-14 7:22
professionalJohn Schroedl18-Apr-14 7:22 
Questionaccess functions in a DLL created in C # for borland c + + builder Pin
Willian Mathias9-Apr-14 9:03
MemberWillian Mathias9-Apr-14 9:03 
AnswerRe: access functions in a DLL created in C # for borland c + + builder Pin
Richard Andrew x6417-Apr-14 9:59
professionalRichard Andrew x6417-Apr-14 9:59 
Questionretrieve words in a HTML page Pin
neterfari2-Apr-14 0:42
Memberneterfari2-Apr-14 0:42 
SuggestionRe: retrieve words in a HTML page Pin
Richard MacCutchan2-Apr-14 1:22
mveRichard MacCutchan2-Apr-14 1:22 
GeneralRe: retrieve words in a HTML page Pin
neterfari2-Apr-14 3:45
Memberneterfari2-Apr-14 3:45 
GeneralRe: retrieve words in a HTML page Pin
Richard MacCutchan2-Apr-14 4:02
mveRichard MacCutchan2-Apr-14 4:02 
GeneralRe: retrieve words in a HTML page Pin
neterfari2-Apr-14 4:26
Memberneterfari2-Apr-14 4:26 
QuestionMultimedia Timer Problem in MFC VS2010 Pin
lephanhung30-Mar-14 19:44
Memberlephanhung30-Mar-14 19:44 
AnswerRe: Multimedia Timer Problem in MFC VS2010 Pin
Richard MacCutchan30-Mar-14 22:52
mveRichard MacCutchan30-Mar-14 22:52 
GeneralRe: Multimedia Timer Problem in MFC VS2010 Pin
lephanhung31-Mar-14 3:11
Memberlephanhung31-Mar-14 3:11 
GeneralRe: Multimedia Timer Problem in MFC VS2010 Pin
lephanhung31-Mar-14 20:24
Memberlephanhung31-Mar-14 20:24 
QuestionCompiler Bug in C++/CLI vs Native C++ Pin
John Schroedl28-Mar-14 2:51
professionalJohn Schroedl28-Mar-14 2:51 
QuestionRun exe resource from memory. Pin
Member 1055963526-Mar-14 2:23
MemberMember 1055963526-Mar-14 2:23 
AnswerRe: Run exe resource from memory. Pin
Richard Andrew x6426-Mar-14 6:41
professionalRichard Andrew x6426-Mar-14 6:41 
Newscursor problem Pin
neterfari26-Mar-14 2:10
Memberneterfari26-Mar-14 2:10 
GeneralRe: cursor problem Pin
Richard MacCutchan26-Mar-14 2:38
mveRichard MacCutchan26-Mar-14 2:38 

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.