Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

ss431

@ss431
About
Posts
14
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Thread synchronization problems
    S ss431

    Thank you for your reply Raj, If the resource is locked what we have to do to unlock that locked resource and make it used by other Threads. If the resource is locked by CMutex object then there is no problem as it will automatically unlocks the locked resource after the thread whick locks it is exited. But what about the situation if we use CCriticalSetion or CSemaphore,as they don't release the resources automatically.

    C / C++ / MFC question learning

  • Thread synchronization problems
    S ss431

    Hi All, I am beginer for Threading program.I did some programs on all the four thread synchronization classes(CCriticalSection,CMutex,CSemaphore, CEvent). Now my question is "What happens if a thread which locks a resource crashes/terminates without unlocking it?" Thanks in Advance.

    C / C++ / MFC question learning

  • How to set the Form of a C# assembly as a child to COM Compatible Forms?
    S ss431

    Hi all, I'm new to .NET environment. I wrote an assembly in C#. This will take the Handle of the form from the client application and sets the form of this assembly as child to the Client application form. When i send the parent handle from the .NET client the form in the assembly appears as child form. But when i send the parent handle from the COM comaptible language(VB6 or VC++) forms,it doesn't appear as child instead it appears outside of the form. My code is <u>In MyAssembly.dll</u> public bool Create(long hwndParent) { ChildForm f = new ChildForm(); // object for the Form present in the Assembly f.TopLevel = false; f.Parent = Form.FromHandle((IntPtr)hwndParent); f.Show(); return true; } <u>From VC++ Client</u> { IFramePtr pChildFrame; //Object for the Assembly HRESULT hr = pChildFrame.CreateInstance(__uuidof(CFrame)); if(FAILED(hr)) { AfxMessageBox(_T("Failed")); } pChildFrame->Create((long)this->m_hWnd); } Can any one please help me Thanks in advance

    C# csharp c++ com help

  • Problem while Running the Application in Release Configuration
    S ss431

    Hi All, Please help me to solve my problem. I've an MFC ActiveX control(.OCX) and i created this control in one of my Extension Dll's View class(derived from CView).This view has been placed in the SDI Splitter window application as one of the view.Every thing is working fine but when i close the Application window i'm getting the Assertion in "Release" Configuration but the assertion is not in "Debug" configuration.when i check with message boxes ,all the destructors are called in order. After all destructors completed i'm getting Assertion. Can any one give me the Solution for my problem. Thanks in Advance.

    C / C++ / MFC help c++ com debugging announcement

  • Getting a variant containing safe array of Double Values from MFC ActiveX in C#?
    S ss431

    Hi nissims Thanks for your reply, Below is the IDL for my MFC ActiveX Control library MyActiveXLib { importlib(STDOLE_TLB); // Primary dispatch interface for CMyActiveXCtrl [ uuid(9117C567-1EAD-48B3-BA9E-C4D44852D181), helpstring("Dispatch interface for MyActiveX Control")] dispinterface _DMyActiveX { properties: methods: [id(1), helpstring("method AddDataPoint")] void AddDataPoint(LONG lngIdx, DOUBLE dblXVal, DOUBLE dblYVal); [id(2), helpstring("method AddDataPoints")] void AddDataPoints( LONG lngNoOfPoints, VARIANT varXVals, VARIANT varYVals); [id(3), helpstring("method GetData")] LONG Calculate( DOUBLE dblXVal, VARIANT* varResult); }; // Event dispatch interface for CMyActiveXCtrl [ uuid(07A82910-34BC-43C2-ADAE-A462286D4E10), helpstring("Event interface for MyActiveX Control") ] dispinterface _DMyActiveXEvents { properties: // Event interface has no properties methods: }; // Class information for CMyActiveXCtrl [ uuid(E98E4ED3-C038-4705-8EAB-43AD8A1B75AB), helpstring("MyActiveX Control"), control ] coclass MyActiveX { [default] dispinterface _DMyActiveX; [default, source] dispinterface _DMyActiveXEvents; }; }; "varResult" variable of "Calculate" method will return the SafeArray of Double values. Please suggest me the solution to solve this problem Thanks again

    C# help csharp c++ com data-structures

  • Getting a variant containing safe array of Double Values from MFC ActiveX in C#?
    S ss431

    Hi All, I have a MFC ActiveX control which has a method which returns a variant which contains a safe array of double values . void Calculate(double value,VARIANT *Result); "Result" variable is of "Out" type. When i'm trying to access this function from C# i'm by passing variable of type "Object" i'm getting RunTime Exception as follows "An unhandled exception of ype 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll Additional information: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))" Please Anyone help me to solve this problem I can access this from VB 6 without any issues. Thanks in Advance

    C# help csharp c++ com data-structures

  • How to call a Function in VC++ from C#?
    S ss431

    Hi all, I'm new to .NET .I have A function which declared in VC++ like LONG GetData(VARIANT *varData) This function returns the data of type double through this varData variable. How could i call this function from C#? Thanks in advance?

    C# csharp c++ tutorial question

  • how to Aggregate the ActiveX control frm ATL component
    S ss431

    Hi all, I've an ActiveX control with me and i want to aggregate this ActiveX control from an ATL component.How can i do this? Anyone please help me. Thanks in advance ss

    COM question c++ com help tutorial

  • Aggregating the ActiveX control
    S ss431

    Hi all, I've an ActiveX control with me and i want to aggregate this ActiveX control from a component.How can i do this? Anyone please help me Thanks in advance ss

    C / C++ / MFC question com help

  • How to handle WM_NCLBUTTONUP in my window.
    S ss431

    hiiii, I want to handle WM_NCLBUTTONUP in my doc/view application. I already add this message handler for my window. But it was not responded when my mouse was up in the caption bar of my window.Please give suggestion for how to handle the WM_NCLBUTTONUP? Thanks in advance... ss

    C / C++ / MFC tutorial question

  • Handling of WM_NCLBUTTONUP
    S ss431

    thanks for ur reply, sorry for my delay in giving this reply. I had done the same what you given in your reply. But i didn't get the result. WM_NCLBUTTONUP message was not called when my mouse up on the caption bar of my window. please help me.. urgent ss

    C / C++ / MFC help tutorial question

  • Handling of WM_NCLBUTTONUP
    S ss431

    hiiii, I want to handle WM_NCLBUTTONUP message in my doc/view application and I don't know how to use it.Please help me how to handle it? ss

    C / C++ / MFC help tutorial question

  • How to dock the views?
    S ss431

    Hi, I want to dock the views in my MFC Application that means views can be drag and drop from one place of my frame area to other.How can it possible? Please help me ganesh

    C / C++ / MFC c++ help tutorial question

  • How to drag the splitter windows in doc/view application
    S ss431

    I divide my frame window into two parts by using splitter window(pane1,pane2). Now i want to drag pane1 to pane2 place in the frame. How can i implement this.Please help me... ganesh

    C / C++ / MFC help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups