CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Don Guy

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    16
    Views
    12,623

    Re: CDHtmlDialog: Changing HTML File Dynamically

    I got this working in 2 different ways.

    1. Do a put_innerHTML to place CSS & HTML, then call execScript and pass the JavaScript. After this it's possible to get the script run as the script is...
  2. Replies
    16
    Views
    12,623

    Re: CDHtmlDialog: Changing HTML File Dynamically

    I am trying to pass the script from C++ code to the HTML page. Do you have any sample code that does that?

    I see that createElement and appendChild are generally used in JavaScript code. Can i do...
  3. Replies
    16
    Views
    12,623

    Re: CDHtmlDialog: Changing HTML File Dynamically

    When i look at the browser source after calling the put_innerHTML() function, it still shows the old content, but actually the browser display get's updated with newer content. For some reason the...
  4. Replies
    16
    Views
    12,623

    Re: CDHtmlDialog: Changing HTML File Dynamically

    I saved the html after doing a put_innerHTML() function call and found that everything's there. If i save that to another html file and open in my browser, then it works correctly.

    Not sure...
  5. Replies
    16
    Views
    12,623

    Re: CDHtmlDialog: Changing HTML File Dynamically

    Trying out a few things using the "put_innerHTML(BSTR)" function, i figured that CSS & HTML works fine.

    But for some reason the JavaScript function doesn't work. It gives an error saying the JS...
  6. Replies
    16
    Views
    12,623

    Re: CDHtmlDialog: Changing HTML File Dynamically

    Hello Igor,

    I just played around with your code a little bit and figured that by using "put_innerHTML(BSTR)" i can update the entire content of a html page.

    Is that an efficient way of doing...
  7. Replies
    16
    Views
    12,623

    Re: CDHtmlDialog: Changing HTML File Dynamically

    Currently my CDHtmlDialog application (client) has a html file compiled into it as a resource. This html has bunch of CSS, JavaScript and HTML tags in it.

    Now during run time of the application i...
  8. Replies
    16
    Views
    12,623

    CDHtmlDialog: Changing HTML File Dynamically

    Hello there,

    I am using CDHtmlDialog in my MFC application to create a UI with HTML, CSS & JavaScript.

    In my project there's one dialog created from CDHtmlDialog and a corresponding HTML file...
  9. Replies
    1
    Views
    1,474

    Low-Level Keyboard Input Detection

    Hey there,

    I am writing an software that should be able to detect all keyboard inputs by the user. i.e., both hardware and software/on-screen keyboard.

    This software is going to be written in...
  10. Replies
    6
    Views
    2,776

    MFC App & Physical Memory

    Hello there,

    I have a MFC app developed in VS 2012. Inside couple of worker threads it's constantly doing bunch of things.

    Now if i start the app and then open the Task Manager and look at...
  11. Replies
    1
    Views
    1,298

    CDHtmlDialog : Memory Management

    Hey there,

    I have a MFC app that has a CDHtmlDialog embedded in it. During run time i update the HTML content from the C++ code. There's a IMAGE tag in the content and the SRC for the tag is...
  12. CDHtmlDialog not working with CSS Media Queries

    Hello there,

    I have a CDHtmlDialog app in which am trying to add a CSS media query in the HTML file as shown below, but it doesn't work.

    @media (max-width:20em) {
    ...
  13. Replies
    1
    Views
    865

    OpenCV in MFC App

    Hey there,

    I have a C++ app that uses OpenCV. Currently i am statically linking the OpenCV libs into my app. This is adding an extra overhead of 6+ MB.

    Ideally i would like to remove some of...
  14. Replies
    2
    Views
    852

    Proper array memory management in C++

    I have an application that randomly displays images on a screen. There's a capture button, and when user clicks on that button, the image that is currently displayed is stored into a buffer.
    User...
  15. Replies
    0
    Views
    728

    Getting 6 frames per second from Webcam

    Hey there,

    I want to make a MFC app that will capture 6 frames per second from the webcam connected to the PC. And i want to get the frames as imageData, i.e., as bitmap or PNG. The idea is to get...
  16. CDHtmlDialog : Not supporting "Canvas" tag in HTML

    Hey there,


    I have a MFC app that uses CDHtmlDialog class. It supports most of the HTML tags, but not the CANVAS tag. If am right, IE 9+ only have support for Canvas tag.


    Which version of IE...
  17. Re: Convert BITMAPINFO header into unsigned char pointer

    The reason why i want to get the BITMAP Info structure in a unsigned char pointer is because i want to convert that into a base64 encoded string.

    So it's not about converting a structure into a...
  18. Convert BITMAPINFO header into unsigned char pointer

    Hey there,

    I have a bitmap header information in the struct

    typedef struct tagBITMAPINFO {
    BITMAPINFOHEADER bmiHeader;
    RGBQUAD bmiColors[1];
    } BITMAPINFO

    The total size of this is 1080.
  19. Replies
    5
    Views
    1,304

    Re: Dynamically updating image (PNG)

    The ultimate goal is protection itself.
  20. Replies
    5
    Views
    1,304

    Dynamically updating image (PNG)

    Hello there,

    I am working on a Windows application using Visual Studio 2012. One of the screens have a text entry field for the user. Instead of using a standard text field control, am placing a...
  21. Replies
    22
    Views
    19,262

    Re: CDHtmlDialog : JavaScript calling C++ Functions

    I got this resolved.

    DISP_FUNCTION(CHtmlClientUIDlg, "ProcessEvents", ProcessEvents, VT_EMPTY, VTS_BSTR VTS_BSTR)
  22. Replies
    22
    Views
    19,262

    Re: CDHtmlDialog : JavaScript calling C++ Functions

    Another Question: :)

    Is it possible to call a C++ function with 2 arguments from JavaScript. For some reason i get a JS error saying "Wrong number of arguments or invalid property assignment."...
  23. Replies
    22
    Views
    19,262

    Re: CDHtmlDialog : JavaScript calling C++ Functions

    I changed LPCSTR to LPCTSTR and it worked. THanks
  24. Replies
    22
    Views
    19,262

    Re: CDHtmlDialog : JavaScript calling C++ Functions

    The C++ code is UNICODE.

    Regarding JavaScript, i am pretty new to that don't know how strings work in that. So all am doing is hard coding a string like "user_entry".

    While looking to MSDN the...
  25. Replies
    22
    Views
    19,262

    Re: CDHtmlDialog : JavaScript calling C++ Functions

    So how to pass a string from JS to C++ function? What changes i need to make?

    Thanks
Results 1 to 25 of 53
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured