Click here to Skip to main content
15,920,625 members
Home / Discussions / C#
   

C#

 
QuestionRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
Eddy Vluggen25-Apr-14 4:01
professionalEddy Vluggen25-Apr-14 4:01 
AnswerRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
RRLCoder25-Apr-14 6:44
RRLCoder25-Apr-14 6:44 
GeneralRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
Eddy Vluggen27-Apr-14 9:00
professionalEddy Vluggen27-Apr-14 9:00 
GeneralRe: C# unable to get handle when multiple instances of app are open in windows 8.1 Pin
RRLCoder27-Apr-14 10:49
RRLCoder27-Apr-14 10:49 
QuestionMute other applications Pin
el_stupey24-Apr-14 15:40
el_stupey24-Apr-14 15:40 
AnswerRe: Mute other applications Pin
Mycroft Holmes24-Apr-14 16:17
professionalMycroft Holmes24-Apr-14 16:17 
GeneralRe: Mute other applications Pin
el_stupey26-Apr-14 1:39
el_stupey26-Apr-14 1:39 
AnswerRe: Mute other applications Pin
Eddy Vluggen25-Apr-14 3:53
professionalEddy Vluggen25-Apr-14 3:53 
GeneralRe: Mute other applications Pin
el_stupey26-Apr-14 1:46
el_stupey26-Apr-14 1:46 
Questionhow to edit in crystal report Pin
Er Aslam Khan23-Apr-14 22:33
Er Aslam Khan23-Apr-14 22:33 
AnswerRe: how to edit in crystal report Pin
Chris Quinn23-Apr-14 22:59
Chris Quinn23-Apr-14 22:59 
AnswerRe: how to edit in crystal report Pin
Keith Barrow24-Apr-14 3:09
professionalKeith Barrow24-Apr-14 3:09 
AnswerRe: how to edit in crystal report Pin
thatraja24-Apr-14 21:09
professionalthatraja24-Apr-14 21:09 
AnswerRe: how to edit in crystal report Pin
Mycroft Holmes24-Apr-14 21:57
professionalMycroft Holmes24-Apr-14 21:57 
AnswerRe: how to edit in crystal report Pin
V.25-Apr-14 2:00
professionalV.25-Apr-14 2:00 
QuestionWndProc related issue in win apps c# Pin
Tridip Bhattacharjee23-Apr-14 20:55
professionalTridip Bhattacharjee23-Apr-14 20:55 
i have developed a small win apps which is suppose to capture skype conversation. my main concern is that i have define the
C#
WndProc()
here is the code a bit
C#
protected override void WndProc(ref Message m)
{
    Boolean handled = false;
    if (m.Msg == NativeCalls.APIAttach && (uint) m.LParam == NativeCalls.SKYPECONTROLAPI_ATTACH_SUCCESS)
    {
        // Get the current handle to the Skype window
        NativeCalls.HWND_BROADCAST = m.WParam;
        handled = true;
        m.Result = new IntPtr(1);
    }

    // Skype sends our program messages using WM_COPYDATA. the data is in lParam
    if (m.Msg == NativeCalls.WM_COPYDATA && m.WParam == NativeCalls.HWND_BROADCAST)
    {
        COPYDATASTRUCT data = (COPYDATASTRUCT)Marshal.PtrToStructure(m.LParam, typeof(COPYDATASTRUCT));
        StatusTextBox.Items.Add(data.lpData + Environment.NewLine);

        // Check for connection
        //if (data.lpData.IndexOf("CONNSTATUS ONLINE") > -1)
        // ConnectButton.IsEnabled = false;

        // Check for calls
        IsCallInProgress(data.lpData);
        handled = true;
        m.Result = new IntPtr(1);
    }

    m.Result = IntPtr.Zero;
    if (handled) DefWndProc(ref m); else base.WndProc(ref m);
    //base.WndProc(ref m);
}


but controls is not coming in this
C#
if (m.Msg == NativeCalls.WM_COPYDATA && m.WParam == NativeCalls.HWND_BROADCAST)
block that is main problem.

SQL
here i attach the link of my win application and that is https://onedrive.live.com/#cid=C4A6F16F34D7540A&id=C4A6F16F34D7540A!126 just download the skypecalltest and run it.

before run my apps just login to skype and then run my apps where you put a phone no and click on call button then you can see the controls is not coming repeatedly to the second if block.

so what i need to change in my code as a result control will come to second if block repeatedly .

in the same link there is another same kind of apps which is based on wpf and that is working where wndproc is calling repeatedly. if possible check that code too and guide me what i am missing or making mistake. thanks

tbhattacharjee

QuestionRe: WndProc related issue in win apps c# Pin
Eddy Vluggen23-Apr-14 21:46
professionalEddy Vluggen23-Apr-14 21:46 
AnswerRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee24-Apr-14 0:25
professionalTridip Bhattacharjee24-Apr-14 0:25 
GeneralRe: WndProc related issue in win apps c# Pin
Eddy Vluggen24-Apr-14 1:20
professionalEddy Vluggen24-Apr-14 1:20 
GeneralRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee24-Apr-14 1:43
professionalTridip Bhattacharjee24-Apr-14 1:43 
GeneralRe: WndProc related issue in win apps c# Pin
Eddy Vluggen24-Apr-14 6:22
professionalEddy Vluggen24-Apr-14 6:22 
GeneralRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee24-Apr-14 20:49
professionalTridip Bhattacharjee24-Apr-14 20:49 
GeneralRe: WndProc related issue in win apps c# Pin
Eddy Vluggen25-Apr-14 3:27
professionalEddy Vluggen25-Apr-14 3:27 
GeneralRe: WndProc related issue in win apps c# Pin
Tridip Bhattacharjee27-Apr-14 20:42
professionalTridip Bhattacharjee27-Apr-14 20:42 
QuestionC# DATAGRIDVIEW CELL EDIT Pin
mubasit23-Apr-14 19:58
mubasit23-Apr-14 19:58 

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.