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

Managed C++/CLI

 
GeneralRe: Assembly info not showing up in explorer in managed DLL Pin
alleyes20-Jun-10 5:53
professionalalleyes20-Jun-10 5:53 
GeneralRe: Assembly info not showing up in explorer in managed DLL Pin
Nish Nishant20-Jun-10 5:54
sitebuilderNish Nishant20-Jun-10 5:54 
QuestionHow can I compile some parts of C++/CLI code as Native and some part as Managed? Pin
glitteringsound7-Jun-10 21:53
glitteringsound7-Jun-10 21:53 
AnswerRe: How can I compile some parts of C++/CLI code as Native and some part as Managed? Pin
Nish Nishant12-Jun-10 6:42
sitebuilderNish Nishant12-Jun-10 6:42 
QuestionExchange Autodiscover Service Pin
Steve Thresher7-Jun-10 6:41
Steve Thresher7-Jun-10 6:41 
QuestionWhy (LoadTypeLibEx failed : : Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))? [modified] Pin
glitteringsound7-Jun-10 6:30
glitteringsound7-Jun-10 6:30 
AnswerRe: Why (LoadTypeLibEx failed : : Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))? Pin
Mircea Puiu25-Jun-10 0:58
Mircea Puiu25-Jun-10 0:58 
QuestionHow to Save Image from WebBrowser Control Pin
voo doo125-Jun-10 6:04
voo doo125-Jun-10 6:04 
Hi everybody. I'm tring to save image form webBrowser control. and i have the following code
mshtml::HTMLDocument^ document = dynamic_cast<mshtml::HTMLDocument^>(this->webBrowser1->Document->DomDocument); 

mshtml::IHTMLElementCollection^ collImages = document->getElementsByTagName(L"img");

for(int i = 0; i < collImages->length; ++i) 
{    
    mshtml::IHTMLImgElement^ img = safe_cast<mshtml::IHTMLImgElement^>(collImages->item(nullptr, i));

    mshtml::IHTMLElementRender^ render = dynamic_cast<mshtml::IHTMLElementRender^>(img);
    
    Bitmap^ bmp = gcnew Bitmap(img->width, img->height); 
   
    Graphics^ g = Graphics::FromImage(bmp);
    
    IntPtr hdc = g->GetHdc();    

    render->DrawToDC(hdc);  //Here is the Error 
  
    g->ReleaseHdc(hdc);
    
    delete g; 
    g = nullptr;
   
    bmp->Save(L"C:\\Test\\SaveImage.Jpg", System::Drawing::Imaging::ImageFormat::Jpeg);	
}


I get the following error message

Error C2664: 'mshtml::IHTMLElementRender::DrawToDC' : cannot convert parameter 1 from 'System::IntPtr' to 'mshtml::_RemotableHandle %'

is there any one who knows how to fix this?
AnswerRe: How to Save Image from WebBrowser Control Pin
Richard Andrew x647-Jun-10 1:52
professionalRichard Andrew x647-Jun-10 1:52 
Questionloop through comboboxes Pin
KlaasVersteeg4-Jun-10 0:06
KlaasVersteeg4-Jun-10 0:06 
AnswerRe: loop through comboboxes [modified] Pin
Richard Andrew x644-Jun-10 5:09
professionalRichard Andrew x644-Jun-10 5:09 
GeneralRe: loop through comboboxes Pin
voo doo125-Jun-10 6:12
voo doo125-Jun-10 6:12 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:17
KlaasVersteeg7-Jun-10 1:17 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:19
KlaasVersteeg7-Jun-10 1:19 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:23
KlaasVersteeg7-Jun-10 1:23 
GeneralRe: loop through comboboxes Pin
Richard Andrew x647-Jun-10 1:40
professionalRichard Andrew x647-Jun-10 1:40 
QuestionMultiple forms problem C++ / CLI Pin
Piotrekneo1830-May-10 13:53
Piotrekneo1830-May-10 13:53 
AnswerRe: Multiple forms problem C++ / CLI Pin
Andreoli Carlo3-Jun-10 22:35
professionalAndreoli Carlo3-Jun-10 22:35 
GeneralRe: Multiple forms problem C++ / CLI Pin
Piotrekneo184-Jun-10 3:59
Piotrekneo184-Jun-10 3:59 
QuestionBatch Help: Delete Oldest File Pin
See_Sharp28-May-10 10:56
See_Sharp28-May-10 10:56 
AnswerRe: Batch Help: Delete Oldest File Pin
Luc Pattyn28-May-10 11:32
sitebuilderLuc Pattyn28-May-10 11:32 
GeneralRe: Batch Help: Delete Oldest File Pin
See_Sharp31-May-10 4:52
See_Sharp31-May-10 4:52 
GeneralRe: Batch Help: Delete Oldest File Pin
Luc Pattyn31-May-10 5:04
sitebuilderLuc Pattyn31-May-10 5:04 
QuestionHow do I make a managed c++ struct that will be usable in c# as an array, while still being able to be passed to unmanaged c++ as an array? Pin
544d4e27-May-10 7:42
544d4e27-May-10 7:42 
AnswerRe: How do I make a managed c++ struct that will be usable in c# as an array, while still being able to be passed to unmanaged c++ as an array? [modified] Pin
Paul Michalik3-Jun-10 2:35
Paul Michalik3-Jun-10 2:35 

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.