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

Search:

Type: Posts; User: hmc

Page 1 of 24 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: Problem using ActiveX control in C++

    I found a bug article in the MSDN. http://support.microsoft.com/kb/224610

    The following change prevents errors to occur


    #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers...
  2. [RESOLVED] Problem using ActiveX control in C++

    Hi, i am trying to use a third party ActiveX control in my C++ code. I do not know if the control can also be used from C++ since there was only a Visual Basic example with it.
    In the stdafx.h i...
  3. Thread: COM/CORBA question

    by hmc
    Replies
    7
    Views
    1,295

    Re: COM/CORBA question

    If you want to add a function to an interface you have to create a new interface which is derived from the current interface. You can not add a function to an existing interface.
    This way older...
  4. Re: Unhandled exception: 0xC0000005: Access violation

    char szBuf[BUFLEN];
    CString sFilename;

    if( FileDlg.DoModal() == IDOK )
    {
    sFilename = FileDlg.GetFileName();

    CFile file;
    if(file.Open(sFileName, CFile::modeRead))
    {
  5. Replies
    3
    Views
    872

    Re: Locate application error in map file

    Thanks for your reaction ProgramArtist. The OS version my program is compiled with is Windows 95 using Visual C++ 1.52 (really old, i know but it is still out there).

    The problem with the printer...
  6. Replies
    3
    Views
    872

    Locate application error in map file

    Hi guru's,

    By connecting a certain kind of printer my program crashes and gives a General Application error message with 0007:BC22.
    Normally a crash address looks like this: 'The instruction at...
  7. Replies
    1
    Views
    591

    Re: question about sizing views?

    The location where you have your bitmap drawing code is very important. You should have this code in the OnDraw(), not in OnSize(). To speed things up you can use the memory device context trick....
  8. Re: [RESOLVED] Memory problem passing BYTE array to thread

    CPUWizard, do you have a suggestion how i can allocate/deallocate the BYTE buffer in this case because PostThreadMessage() does not wait for completion.

    Now i allocate memory in main thread, pass...
  9. Re: Memory problem passing BYTE array to thread

    Wow, you are sharp! Thanx man!
  10. [RESOLVED] Memory problem passing BYTE array to thread

    I am trying to pass a BYTE array to a thread. This is done using the PostThreadMessage() function and passing the BYTE array as the WPARAM parameter and the number of bytes in the array as LPARAM...
  11. Replies
    5
    Views
    1,082

    Re: Again serial port threads

    Thanx for the comments guys. Radius i think i am going for your solution. One question however. Should the threads use a semaphore for using the serial port, i can imagine two write threads wanting...
  12. Replies
    5
    Views
    1,082

    Again serial port threads

    My assignment is to do serial port communications with the Modbus protocol.
    I already wrote a Read thread and a Write thread. The readthread is a threadfunction in the main process and the write...
  13. Replies
    6
    Views
    2,366

    Re: Serial port WaitForMultipleObjects() problem

    This is the OnInitialUpdate() in which i open the serial port and create/start the threads.....



    void CMyserialportView::OnInitialUpdate()
    {
    CView::OnInitialUpdate();

    m_hCom =...
  14. Replies
    6
    Views
    2,366

    Re: Serial port WaitForMultipleObjects() problem

    No i pass in FALSE as one of the parameters which means if one of the parameters is signalled the WaitForMultipleObjects() returns.

    bWaitAll
    [in] If this parameter is TRUE, the function...
  15. Replies
    6
    Views
    2,366

    Serial port WaitForMultipleObjects() problem

    The call to WaitForMultipleObjects() does not return, it seems the event for the serial port does not get signalled. I was under the impression that sending data to the port will cause the event to...
  16. Replies
    5
    Views
    1,472

    Re: serial port communication problem

    Thanks for the link Victor, i am studying it. I am running into a little problem here. How is a shutdown event created? It is passed as one of the parameters to the thread and i cannot figure out...
  17. Replies
    5
    Views
    1,472

    Re: serial port communication problem

    Thanks for the link Victor, i am studying it. I am running into a little problem here. How is a shutdown event created? It is passed as one of the parameters to the thread and i cannot figure out...
  18. Replies
    5
    Views
    1,472

    serial port communication problem

    Hi guys, i have a problem with the serial port communication. I am trying to read from the serial port, but it appears that only 14 bytes can be read at once. This is probably the size of the serial...
  19. Replies
    12
    Views
    2,053

    Re: How to change colour dynamically

    One way is to draw the listbox yourself. Create a member variable which holds the color for your listbox. Depending on the condition you can set your membervariable with a certain color and call...
  20. Replies
    1
    Views
    978

    Re: COM Connectionpoint Error

    I think you have to add some includes to your sourcefiles. You have to find out if _ComPtr is declared in one of the following headerfiles: atlbase.h, atlcom.h. Otherwise try a google or msdn search...
  21. Replies
    3
    Views
    832

    Re: SendMessage Function

    Please post parts of your code containing the problem. Use code tags when posting code.
  22. Thread: MFC IDs question!!

    by hmc
    Replies
    3
    Views
    723

    Re: MFC IDs question!!

    One possibility is to put all ID's of buttons in an array:



    UINT aButtons[10] = { IDC_BUTTON1, IDC_BUTTON2, ....};


    or create a struct/class
  23. Replies
    2
    Views
    783

    Re: problem in reading values from an xml

    Please specify the exact error you encounter en give us the specific code piece the error occurs in.
  24. Replies
    6
    Views
    1,406

    Re: dynamic loading of dll

    No discard my previous post, i see you declare it as void*. Try casting the argument to void* ?
  25. Replies
    6
    Views
    1,406

    Re: dynamic loading of dll

    You are passing some argument to the function pointer while you declare it as being void (having no parameters).

    res=(*Func1)(&vm_args); // ERROR SHOWING IN THIS LINE
Results 1 to 25 of 587
Page 1 of 24 1 2 3 4





Click Here to Expand Forum to Full Width

Featured